]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
06Mar05
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882
883   --with-python=DIR       Include Python support.  DIR is the Python base
884                           install directory, default is to search through
885                           a number of common places for the Python files.
886   --with-tcp-wrappers=DIR        enable tcpwrappers support
887   --with-working-dir=PATH        specify path of Bacula working directory
888   --with-scriptdir=PATH    specify path of Bacula scripts directory
889   --with-dump-email=EMAIL        dump email address
890   --with-job-email=EMAIL         job output email address
891   --with-smtp-host=HOST          SMTP mail host address
892   --with-pid-dir=PATH            specify location of Bacula pid files
893   --with-subsys-dir=PATH         specify location of Bacula subsys file
894   --with-baseport=PORT           specify base port address for daemons
895   --with-dir-password=PASSWORD   specify Director's password
896   --with-fd-password=PASSWORD    specify Client's password
897   --with-sd-password=PASSWORD    specify Storage daemon's password
898   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
899   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
900   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
901   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
902   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
903   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
904   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
905   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
906   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
907   --with-dir-user=USER           specify user for Director daemon
908   --with-dir-group=GROUP                 specify group for Director daemon
909   --with-sd-user=USER            specify user for Storage daemon
910   --with-sd-group=GROUP          specify group for Storage daemon
911   --with-fd-user=USER            specify user for File daemon
912   --with-fd-group=GROUP          specify group for File daemon
913   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
914   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
915                           base install directory, defaults to /usr/local/pgsql
916
917   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
918                           install directory, default is to search through
919                           a number of common places for the MySQL files.
920
921   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
922                           install directory, default is to search through
923                           a number of common places for the MySQL files.
924
925   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
926                           install directory, default is to search through
927                           a number of common places for the SQLite3 files.
928
929   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
930                           install directory, default is to search through
931                           a number of common places for the SQLite files.
932   --with-x                use the X Window System
933
934 Some influential environment variables:
935   CC          C compiler command
936   CFLAGS      C compiler flags
937   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
938               nonstandard directory <lib dir>
939   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
940               headers in a nonstandard directory <include dir>
941   CXX         C++ compiler command
942   CXXFLAGS    C++ compiler flags
943   CPP         C preprocessor
944
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
947
948 _ACEOF
949 fi
950
951 if test "$ac_init_help" = "recursive"; then
952   # If there are subdirs, report their specific --help.
953   ac_popdir=`pwd`
954   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955     test -d $ac_dir || continue
956     ac_builddir=.
957
958 if test "$ac_dir" != .; then
959   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960   # A "../" for each directory in $ac_dir_suffix.
961   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 else
963   ac_dir_suffix= ac_top_builddir=
964 fi
965
966 case $srcdir in
967   .)  # No --srcdir option.  We are building in place.
968     ac_srcdir=.
969     if test -z "$ac_top_builddir"; then
970        ac_top_srcdir=.
971     else
972        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973     fi ;;
974   [\\/]* | ?:[\\/]* )  # Absolute path.
975     ac_srcdir=$srcdir$ac_dir_suffix;
976     ac_top_srcdir=$srcdir ;;
977   *) # Relative path.
978     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979     ac_top_srcdir=$ac_top_builddir$srcdir ;;
980 esac
981
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
984 case `pwd` in
985 .) ac_abs_builddir="$ac_dir";;
986 *)
987   case "$ac_dir" in
988   .) ac_abs_builddir=`pwd`;;
989   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990   *) ac_abs_builddir=`pwd`/"$ac_dir";;
991   esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *)
996   case ${ac_top_builddir}. in
997   .) ac_abs_top_builddir=$ac_abs_builddir;;
998   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1000   esac;;
1001 esac
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1004 *)
1005   case $ac_srcdir in
1006   .) ac_abs_srcdir=$ac_abs_builddir;;
1007   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1009   esac;;
1010 esac
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *)
1014   case $ac_top_srcdir in
1015   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018   esac;;
1019 esac
1020
1021     cd $ac_dir
1022     # Check for guested configure; otherwise get Cygnus style configure.
1023     if test -f $ac_srcdir/configure.gnu; then
1024       echo
1025       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1026     elif test -f $ac_srcdir/configure; then
1027       echo
1028       $SHELL $ac_srcdir/configure  --help=recursive
1029     elif test -f $ac_srcdir/configure.ac ||
1030            test -f $ac_srcdir/configure.in; then
1031       echo
1032       $ac_configure --help
1033     else
1034       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1035     fi
1036     cd $ac_popdir
1037   done
1038 fi
1039
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1042   cat <<\_ACEOF
1043
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1047 _ACEOF
1048   exit 0
1049 fi
1050 exec 5>config.log
1051 cat >&5 <<_ACEOF
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1054
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59.  Invocation command line was
1057
1058   $ $0 $@
1059
1060 _ACEOF
1061 {
1062 cat <<_ASUNAME
1063 ## --------- ##
1064 ## Platform. ##
1065 ## --------- ##
1066
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1075
1076 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1077 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1080 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1081 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1082 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1083
1084 _ASUNAME
1085
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 for as_dir in $PATH
1088 do
1089   IFS=$as_save_IFS
1090   test -z "$as_dir" && as_dir=.
1091   echo "PATH: $as_dir"
1092 done
1093
1094 } >&5
1095
1096 cat >&5 <<_ACEOF
1097
1098
1099 ## ----------- ##
1100 ## Core tests. ##
1101 ## ----------- ##
1102
1103 _ACEOF
1104
1105
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_configure_args=
1112 ac_configure_args0=
1113 ac_configure_args1=
1114 ac_sep=
1115 ac_must_keep_next=false
1116 for ac_pass in 1 2
1117 do
1118   for ac_arg
1119   do
1120     case $ac_arg in
1121     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123     | -silent | --silent | --silen | --sile | --sil)
1124       continue ;;
1125     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127     esac
1128     case $ac_pass in
1129     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130     2)
1131       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132       if test $ac_must_keep_next = true; then
1133         ac_must_keep_next=false # Got value, back to normal.
1134       else
1135         case $ac_arg in
1136           *=* | --config-cache | -C | -disable-* | --disable-* \
1137           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139           | -with-* | --with-* | -without-* | --without-* | --x)
1140             case "$ac_configure_args0 " in
1141               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142             esac
1143             ;;
1144           -* ) ac_must_keep_next=true ;;
1145         esac
1146       fi
1147       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148       # Get rid of the leading space.
1149       ac_sep=" "
1150       ;;
1151     esac
1152   done
1153 done
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log.  We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163   # Save into config.log some information that might help in debugging.
1164   {
1165     echo
1166
1167     cat <<\_ASBOX
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1171 _ASBOX
1172     echo
1173     # The following way of writing the cache mishandles newlines in values,
1174 {
1175   (set) 2>&1 |
1176     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177     *ac_space=\ *)
1178       sed -n \
1179         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181       ;;
1182     *)
1183       sed -n \
1184         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185       ;;
1186     esac;
1187 }
1188     echo
1189
1190     cat <<\_ASBOX
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1194 _ASBOX
1195     echo
1196     for ac_var in $ac_subst_vars
1197     do
1198       eval ac_val=$`echo $ac_var`
1199       echo "$ac_var='"'"'$ac_val'"'"'"
1200     done | sort
1201     echo
1202
1203     if test -n "$ac_subst_files"; then
1204       cat <<\_ASBOX
1205 ## ------------- ##
1206 ## Output files. ##
1207 ## ------------- ##
1208 _ASBOX
1209       echo
1210       for ac_var in $ac_subst_files
1211       do
1212         eval ac_val=$`echo $ac_var`
1213         echo "$ac_var='"'"'$ac_val'"'"'"
1214       done | sort
1215       echo
1216     fi
1217
1218     if test -s confdefs.h; then
1219       cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224       echo
1225       sed "/^$/d" confdefs.h | sort
1226       echo
1227     fi
1228     test "$ac_signal" != 0 &&
1229       echo "$as_me: caught signal $ac_signal"
1230     echo "$as_me: exit $exit_status"
1231   } >&5
1232   rm -f core *.core &&
1233   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234     exit $exit_status
1235      ' 0
1236 for ac_signal in 1 2 13 15; do
1237   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1240
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1245
1246 # Predefined preprocessor variables.
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1271
1272
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276   if test "x$prefix" != xNONE; then
1277     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278   else
1279     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1280   fi
1281 fi
1282 for ac_site_file in $CONFIG_SITE; do
1283   if test -r "$ac_site_file"; then
1284     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286     sed 's/^/| /' "$ac_site_file" >&5
1287     . "$ac_site_file"
1288   fi
1289 done
1290
1291 if test -r "$cache_file"; then
1292   # Some versions of bash will fail to source /dev/null (special
1293   # files actually), so we avoid doing that.
1294   if test -f "$cache_file"; then
1295     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297     case $cache_file in
1298       [\\/]* | ?:[\\/]* ) . $cache_file;;
1299       *)                      . ./$cache_file;;
1300     esac
1301   fi
1302 else
1303   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305   >$cache_file
1306 fi
1307
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314   eval ac_new_set=\$ac_env_${ac_var}_set
1315   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316   eval ac_new_val="\$ac_env_${ac_var}_value"
1317   case $ac_old_set,$ac_new_set in
1318     set,)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,set)
1323       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325       ac_cache_corrupted=: ;;
1326     ,);;
1327     *)
1328       if test "x$ac_old_val" != "x$ac_new_val"; then
1329         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1332 echo "$as_me:   former value:  $ac_old_val" >&2;}
1333         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1334 echo "$as_me:   current value: $ac_new_val" >&2;}
1335         ac_cache_corrupted=:
1336       fi;;
1337   esac
1338   # Pass precious variables to config.status.
1339   if test "$ac_new_set" = set; then
1340     case $ac_new_val in
1341     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343     *) ac_arg=$ac_var=$ac_new_val ;;
1344     esac
1345     case " $ac_configure_args " in
1346       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1347       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348     esac
1349   fi
1350 done
1351 if $ac_cache_corrupted; then
1352   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 BUILD_DIR=`pwd`
1384 cd ..
1385 TOP_DIR=`pwd`
1386 cd ${BUILD_DIR}
1387
1388 ac_aux_dir=
1389 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1390   if test -f $ac_dir/install-sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install-sh -c"
1393     break
1394   elif test -f $ac_dir/install.sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install.sh -c"
1397     break
1398   elif test -f $ac_dir/shtool; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/shtool install -c"
1401     break
1402   fi
1403 done
1404 if test -z "$ac_aux_dir"; then
1405   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1407    { (exit 1); exit 1; }; }
1408 fi
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412
1413           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1414
1415
1416
1417
1418
1419 for ac_prog in true
1420 do
1421   # Extract the first word of "$ac_prog", so it can be a program name with args.
1422 set dummy $ac_prog; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1426   echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428   case $TRUEPRG in
1429   [\\/]* | ?:[\\/]*)
1430   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1431   ;;
1432   *)
1433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1435 do
1436   IFS=$as_save_IFS
1437   test -z "$as_dir" && as_dir=.
1438   for ac_exec_ext in '' $ac_executable_extensions; do
1439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442     break 2
1443   fi
1444 done
1445 done
1446
1447   ;;
1448 esac
1449 fi
1450 TRUEPRG=$ac_cv_path_TRUEPRG
1451
1452 if test -n "$TRUEPRG"; then
1453   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1454 echo "${ECHO_T}$TRUEPRG" >&6
1455 else
1456   echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1458 fi
1459
1460   test -n "$TRUEPRG" && break
1461 done
1462 test -n "$TRUEPRG" || TRUEPRG=":"
1463
1464 for ac_prog in false
1465 do
1466   # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   case $FALSEPRG in
1474   [\\/]* | ?:[\\/]*)
1475   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1476   ;;
1477   *)
1478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1480 do
1481   IFS=$as_save_IFS
1482   test -z "$as_dir" && as_dir=.
1483   for ac_exec_ext in '' $ac_executable_extensions; do
1484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487     break 2
1488   fi
1489 done
1490 done
1491
1492   ;;
1493 esac
1494 fi
1495 FALSEPRG=$ac_cv_path_FALSEPRG
1496
1497 if test -n "$FALSEPRG"; then
1498   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1499 echo "${ECHO_T}$FALSEPRG" >&6
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 fi
1504
1505   test -n "$FALSEPRG" && break
1506 done
1507 test -n "$FALSEPRG" || FALSEPRG=":"
1508
1509
1510 #AC_CANONICAL_HOST
1511
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1516
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }; then
2031   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032   case $ac_file in
2033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035        break;;
2036   esac
2037 done
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2054 ac_objext=$OBJEXT
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h.  */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h.  */
2066
2067 int
2068 main ()
2069 {
2070 #ifndef __GNUC__
2071        choke me
2072 #endif
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080   (eval $ac_compile) 2>conftest.er1
2081   ac_status=$?
2082   grep -v '^ *+' conftest.er1 >conftest.err
2083   rm -f conftest.er1
2084   cat conftest.err >&5
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -z "$ac_c_werror_flag"
2088                          || test ! -s conftest.err'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; } &&
2094          { ac_try='test -s conftest.$ac_objext'
2095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096   (eval $ac_try) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; }; then
2100   ac_compiler_gnu=yes
2101 else
2102   echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_compiler_gnu=no
2106 fi
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109
2110 fi
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2116 CFLAGS="-g"
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>conftest.er1
2140   ac_status=$?
2141   grep -v '^ *+' conftest.er1 >conftest.err
2142   rm -f conftest.er1
2143   cat conftest.err >&5
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); } &&
2146          { ac_try='test -z "$ac_c_werror_flag"
2147                          || test ! -s conftest.err'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; } &&
2153          { ac_try='test -s conftest.$ac_objext'
2154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155   (eval $ac_try) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; }; then
2159   ac_cv_prog_cc_g=yes
2160 else
2161   echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_cv_prog_cc_g=no
2165 fi
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171   CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173   if test "$GCC" = yes; then
2174     CFLAGS="-g -O2"
2175   else
2176     CFLAGS="-g"
2177   fi
2178 else
2179   if test "$GCC" = yes; then
2180     CFLAGS="-O2"
2181   else
2182     CFLAGS=
2183   fi
2184 fi
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   ac_cv_prog_cc_stdc=no
2191 ac_save_CC=$CC
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h.  */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h.  */
2198 #include <stdarg.h>
2199 #include <stdio.h>
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2206      char **p;
2207      int i;
2208 {
2209   return p[i];
2210 }
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2212 {
2213   char *s;
2214   va_list v;
2215   va_start (v,p);
2216   s = g (p, va_arg (v,int));
2217   va_end (v);
2218   return s;
2219 }
2220
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2222    function prototypes and stuff, but not '\xHH' hex character constants.
2223    These don't provoke an error unfortunately, instead are silently treated
2224    as 'x'.  The following induces an error, until -std1 is added to get
2225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2226    array size at least.  It's necessary to write '\x00'==0 to get something
2227    that's true only with -std1.  */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2229
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2234 int argc;
2235 char **argv;
2236 int
2237 main ()
2238 {
2239 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX                   -qlanglvl=ansi
2247 # Ultrix and OSF/1      -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2250 # SVR4                  -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2252 do
2253   CC="$ac_save_CC $ac_arg"
2254   rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256   (eval $ac_compile) 2>conftest.er1
2257   ac_status=$?
2258   grep -v '^ *+' conftest.er1 >conftest.err
2259   rm -f conftest.er1
2260   cat conftest.err >&5
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -z "$ac_c_werror_flag"
2264                          || test ! -s conftest.err'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; } &&
2270          { ac_try='test -s conftest.$ac_objext'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; }; then
2276   ac_cv_prog_cc_stdc=$ac_arg
2277 break
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 fi
2283 rm -f conftest.err conftest.$ac_objext
2284 done
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2286 CC=$ac_save_CC
2287
2288 fi
2289
2290 case "x$ac_cv_prog_cc_stdc" in
2291   x|xno)
2292     echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2294   *)
2295     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297     CC="$CC $ac_cv_prog_cc_stdc" ;;
2298 esac
2299
2300 # Some people use a C++ compiler to compile C.  Since we use `exit',
2301 # in C++ we need to declare it.  In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #ifndef __cplusplus
2306   choke me
2307 #endif
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>conftest.er1
2312   ac_status=$?
2313   grep -v '^ *+' conftest.er1 >conftest.err
2314   rm -f conftest.er1
2315   cat conftest.err >&5
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -z "$ac_c_werror_flag"
2319                          || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   for ac_declaration in \
2332    '' \
2333    'extern "C" void std::exit (int) throw (); using std::exit;' \
2334    'extern "C" void std::exit (int); using std::exit;' \
2335    'extern "C" void exit (int) throw ();' \
2336    'extern "C" void exit (int);' \
2337    'void exit (int);'
2338 do
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345 $ac_declaration
2346 #include <stdlib.h>
2347 int
2348 main ()
2349 {
2350 exit (42);
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>conftest.er1
2358   ac_status=$?
2359   grep -v '^ *+' conftest.er1 >conftest.err
2360   rm -f conftest.er1
2361   cat conftest.err >&5
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -z "$ac_c_werror_flag"
2365                          || test ! -s conftest.err'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   :
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 continue
2383 fi
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385   cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391 $ac_declaration
2392 int
2393 main ()
2394 {
2395 exit (42);
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402   (eval $ac_compile) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag"
2410                          || test ! -s conftest.err'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; } &&
2416          { ac_try='test -s conftest.$ac_objext'
2417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418   (eval $ac_try) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   break
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 done
2430 rm -f conftest*
2431 if test -n "$ac_declaration"; then
2432   echo '#ifdef __cplusplus' >>confdefs.h
2433   echo $ac_declaration      >>confdefs.h
2434   echo '#endif'             >>confdefs.h
2435 fi
2436
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449 ac_ext=cc
2450 ac_cpp='$CXXCPP $CPPFLAGS'
2451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2454 if test -n "$ac_tool_prefix"; then
2455   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2456   do
2457     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_CXX+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CXX"; then
2465   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480
2481 fi
2482 fi
2483 CXX=$ac_cv_prog_CXX
2484 if test -n "$CXX"; then
2485   echo "$as_me:$LINENO: result: $CXX" >&5
2486 echo "${ECHO_T}$CXX" >&6
2487 else
2488   echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2490 fi
2491
2492     test -n "$CXX" && break
2493   done
2494 fi
2495 if test -z "$CXX"; then
2496   ac_ct_CXX=$CXX
2497   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2498 do
2499   # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$ac_ct_CXX"; then
2507   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516     ac_cv_prog_ac_ct_CXX="$ac_prog"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522
2523 fi
2524 fi
2525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2526 if test -n "$ac_ct_CXX"; then
2527   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2528 echo "${ECHO_T}$ac_ct_CXX" >&6
2529 else
2530   echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2532 fi
2533
2534   test -n "$ac_ct_CXX" && break
2535 done
2536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2537
2538   CXX=$ac_ct_CXX
2539 fi
2540
2541
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO:" \
2544      "checking for C++ compiler version" >&5
2545 ac_compiler=`set X $ac_compile; echo $2`
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2547   (eval $ac_compiler --version </dev/null >&5) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2552   (eval $ac_compiler -v </dev/null >&5) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }
2556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2557   (eval $ac_compiler -V </dev/null >&5) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }
2561
2562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573
2574 int
2575 main ()
2576 {
2577 #ifndef __GNUC__
2578        choke me
2579 #endif
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587   (eval $ac_compile) 2>conftest.er1
2588   ac_status=$?
2589   grep -v '^ *+' conftest.er1 >conftest.err
2590   rm -f conftest.er1
2591   cat conftest.err >&5
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -z "$ac_cxx_werror_flag"
2595                          || test ! -s conftest.err'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; } &&
2601          { ac_try='test -s conftest.$ac_objext'
2602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603   (eval $ac_try) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; }; then
2607   ac_compiler_gnu=yes
2608 else
2609   echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 ac_compiler_gnu=no
2613 fi
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2616
2617 fi
2618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2620 GXX=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CXXFLAGS=${CXXFLAGS+set}
2622 ac_save_CXXFLAGS=$CXXFLAGS
2623 CXXFLAGS="-g"
2624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cxx_g+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_cxx_werror_flag"
2654                          || test ! -s conftest.err'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   ac_cv_prog_cxx_g=yes
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 ac_cv_prog_cxx_g=no
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 fi
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677 if test "$ac_test_CXXFLAGS" = set; then
2678   CXXFLAGS=$ac_save_CXXFLAGS
2679 elif test $ac_cv_prog_cxx_g = yes; then
2680   if test "$GXX" = yes; then
2681     CXXFLAGS="-g -O2"
2682   else
2683     CXXFLAGS="-g"
2684   fi
2685 else
2686   if test "$GXX" = yes; then
2687     CXXFLAGS="-O2"
2688   else
2689     CXXFLAGS=
2690   fi
2691 fi
2692 for ac_declaration in \
2693    '' \
2694    'extern "C" void std::exit (int) throw (); using std::exit;' \
2695    'extern "C" void std::exit (int); using std::exit;' \
2696    'extern "C" void exit (int) throw ();' \
2697    'extern "C" void exit (int);' \
2698    'void exit (int);'
2699 do
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 $ac_declaration
2707 #include <stdlib.h>
2708 int
2709 main ()
2710 {
2711 exit (42);
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718   (eval $ac_compile) 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } &&
2725          { ac_try='test -z "$ac_cxx_werror_flag"
2726                          || test ! -s conftest.err'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   :
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 continue
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746   cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752 $ac_declaration
2753 int
2754 main ()
2755 {
2756 exit (42);
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763   (eval $ac_compile) 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } &&
2770          { ac_try='test -z "$ac_cxx_werror_flag"
2771                          || test ! -s conftest.err'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; } &&
2777          { ac_try='test -s conftest.$ac_objext'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   break
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 fi
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 done
2791 rm -f conftest*
2792 if test -n "$ac_declaration"; then
2793   echo '#ifdef __cplusplus' >>confdefs.h
2794   echo $ac_declaration      >>confdefs.h
2795   echo '#endif'             >>confdefs.h
2796 fi
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803
2804 if test "x$CC" != xcc; then
2805   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2806 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2807 else
2808   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2809 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2810 fi
2811 set dummy $CC; ac_cc=`echo $2 |
2812                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2813 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h.  */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h.  */
2822
2823 int
2824 main ()
2825 {
2826
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 # Make sure it works both with $CC and with simple cc.
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2835 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); };
2845 then
2846   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2847   if test "x$CC" != xcc; then
2848     # Test first that cc exists at all.
2849     if { ac_try='cc -c conftest.$ac_ext >&5'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); };
2866       then
2867         # cc works too.
2868         :
2869       else
2870         # cc exists but doesn't like -o.
2871         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2872       fi
2873     fi
2874   fi
2875 else
2876   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2877 fi
2878 rm -f conftest*
2879
2880 fi
2881 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2882   echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2884 else
2885   echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2887
2888 cat >>confdefs.h <<\_ACEOF
2889 #define NO_MINUS_C_MINUS_O 1
2890 _ACEOF
2891
2892 fi
2893
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2903   CPP=
2904 fi
2905 if test -z "$CPP"; then
2906   if test "${ac_cv_prog_CPP+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909       # Double quotes because CPP needs to be expanded
2910     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2911     do
2912       ac_preproc_ok=false
2913 for ac_c_preproc_warn_flag in '' yes
2914 do
2915   # Use a header file that comes with gcc, so configuring glibc
2916   # with a fresh cross-compiler works.
2917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918   # <limits.h> exists even on freestanding compilers.
2919   # On the NeXT, cc -E runs the code through the compiler's parser,
2920   # not just through cpp. "Syntax error" is here to catch this case.
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927 #ifdef __STDC__
2928 # include <limits.h>
2929 #else
2930 # include <assert.h>
2931 #endif
2932                      Syntax error
2933 _ACEOF
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } >/dev/null; then
2942   if test -s conftest.err; then
2943     ac_cpp_err=$ac_c_preproc_warn_flag
2944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2945   else
2946     ac_cpp_err=
2947   fi
2948 else
2949   ac_cpp_err=yes
2950 fi
2951 if test -z "$ac_cpp_err"; then
2952   :
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957   # Broken: fails on valid input.
2958 continue
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962   # OK, works on sane cases.  Now check whether non-existent headers
2963   # can be detected and how.
2964   cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 #include <ac_nonexistent.h>
2971 _ACEOF
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } >/dev/null; then
2980   if test -s conftest.err; then
2981     ac_cpp_err=$ac_c_preproc_warn_flag
2982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2983   else
2984     ac_cpp_err=
2985   fi
2986 else
2987   ac_cpp_err=yes
2988 fi
2989 if test -z "$ac_cpp_err"; then
2990   # Broken: success on invalid input.
2991 continue
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996   # Passes both tests.
2997 ac_preproc_ok=:
2998 break
2999 fi
3000 rm -f conftest.err conftest.$ac_ext
3001
3002 done
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3006   break
3007 fi
3008
3009     done
3010     ac_cv_prog_CPP=$CPP
3011
3012 fi
3013   CPP=$ac_cv_prog_CPP
3014 else
3015   ac_cv_prog_CPP=$CPP
3016 fi
3017 echo "$as_me:$LINENO: result: $CPP" >&5
3018 echo "${ECHO_T}$CPP" >&6
3019 ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3021 do
3022   # Use a header file that comes with gcc, so configuring glibc
3023   # with a fresh cross-compiler works.
3024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025   # <limits.h> exists even on freestanding compilers.
3026   # On the NeXT, cc -E runs the code through the compiler's parser,
3027   # not just through cpp. "Syntax error" is here to catch this case.
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 #ifdef __STDC__
3035 # include <limits.h>
3036 #else
3037 # include <assert.h>
3038 #endif
3039                      Syntax error
3040 _ACEOF
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } >/dev/null; then
3049   if test -s conftest.err; then
3050     ac_cpp_err=$ac_c_preproc_warn_flag
3051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3052   else
3053     ac_cpp_err=
3054   fi
3055 else
3056   ac_cpp_err=yes
3057 fi
3058 if test -z "$ac_cpp_err"; then
3059   :
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064   # Broken: fails on valid input.
3065 continue
3066 fi
3067 rm -f conftest.err conftest.$ac_ext
3068
3069   # OK, works on sane cases.  Now check whether non-existent headers
3070   # can be detected and how.
3071   cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } >/dev/null; then
3087   if test -s conftest.err; then
3088     ac_cpp_err=$ac_c_preproc_warn_flag
3089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3090   else
3091     ac_cpp_err=
3092   fi
3093 else
3094   ac_cpp_err=yes
3095 fi
3096 if test -z "$ac_cpp_err"; then
3097   # Broken: success on invalid input.
3098 continue
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Passes both tests.
3104 ac_preproc_ok=:
3105 break
3106 fi
3107 rm -f conftest.err conftest.$ac_ext
3108
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3113   :
3114 else
3115   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120 fi
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127
3128
3129 echo "$as_me:$LINENO: checking for egrep" >&5
3130 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3131 if test "${ac_cv_prog_egrep+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3135     then ac_cv_prog_egrep='grep -E'
3136     else ac_cv_prog_egrep='egrep'
3137     fi
3138 fi
3139 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3140 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3141  EGREP=$ac_cv_prog_egrep
3142
3143
3144 if test $ac_cv_c_compiler_gnu = yes; then
3145     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3146 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3147 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150     ac_pattern="Autoconf.*'x'"
3151   cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157 #include <sgtty.h>
3158 Autoconf TIOCGETP
3159 _ACEOF
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3162   ac_cv_prog_gcc_traditional=yes
3163 else
3164   ac_cv_prog_gcc_traditional=no
3165 fi
3166 rm -f conftest*
3167
3168
3169   if test $ac_cv_prog_gcc_traditional = no; then
3170     cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176 #include <termio.h>
3177 Autoconf TCGETA
3178 _ACEOF
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3181   ac_cv_prog_gcc_traditional=yes
3182 fi
3183 rm -f conftest*
3184
3185   fi
3186 fi
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3188 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3189   if test $ac_cv_prog_gcc_traditional = yes; then
3190     CC="$CC -traditional"
3191   fi
3192 fi
3193
3194 if test "x$CC" = xgcc
3195 then
3196    cat >>confdefs.h <<\_ACEOF
3197 #define HAVE_GCC 1
3198 _ACEOF
3199
3200 fi
3201
3202 # Find a good install program.  We prefer a C program (faster),
3203 # so one script is as good as another.  But avoid the broken or
3204 # incompatible versions:
3205 # SysV /etc/install, /usr/sbin/install
3206 # SunOS /usr/etc/install
3207 # IRIX /sbin/install
3208 # AIX /bin/install
3209 # AmigaOS /C/install, which installs bootblocks on floppy discs
3210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3213 # OS/2's system install, which has a completely different semantic
3214 # ./install, which can be erroneously created by make from ./install.sh.
3215 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3216 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3217 if test -z "$INSTALL"; then
3218 if test "${ac_cv_path_install+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   # Account for people who put trailing slashes in PATH elements.
3227 case $as_dir/ in
3228   ./ | .// | /cC/* | \
3229   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3230   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3231   /usr/ucb/* ) ;;
3232   *)
3233     # OSF1 and SCO ODT 3.0 have their own names for install.
3234     # Don't use installbsd from OSF since it installs stuff as root
3235     # by default.
3236     for ac_prog in ginstall scoinst install; do
3237       for ac_exec_ext in '' $ac_executable_extensions; do
3238         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3239           if test $ac_prog = install &&
3240             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241             # AIX install.  It has an incompatible calling convention.
3242             :
3243           elif test $ac_prog = install &&
3244             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3245             # program-specific install script used by HP pwplus--don't use.
3246             :
3247           else
3248             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3249             break 3
3250           fi
3251         fi
3252       done
3253     done
3254     ;;
3255 esac
3256 done
3257
3258
3259 fi
3260   if test "${ac_cv_path_install+set}" = set; then
3261     INSTALL=$ac_cv_path_install
3262   else
3263     # As a last resort, use the slow shell script.  We don't cache a
3264     # path for INSTALL within a source directory, because that will
3265     # break other packages using the cache if that directory is
3266     # removed, or if the path is relative.
3267     INSTALL=$ac_install_sh
3268   fi
3269 fi
3270 echo "$as_me:$LINENO: result: $INSTALL" >&5
3271 echo "${ECHO_T}$INSTALL" >&6
3272
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3276
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3278
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3280
3281 if test -n "$ac_tool_prefix"; then
3282   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_RANLIB+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$RANLIB"; then
3290   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305
3306 fi
3307 fi
3308 RANLIB=$ac_cv_prog_RANLIB
3309 if test -n "$RANLIB"; then
3310   echo "$as_me:$LINENO: result: $RANLIB" >&5
3311 echo "${ECHO_T}$RANLIB" >&6
3312 else
3313   echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315 fi
3316
3317 fi
3318 if test -z "$ac_cv_prog_RANLIB"; then
3319   ac_ct_RANLIB=$RANLIB
3320   # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   if test -n "$ac_ct_RANLIB"; then
3328   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335   for ac_exec_ext in '' $ac_executable_extensions; do
3336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_ac_ct_RANLIB="ranlib"
3338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342 done
3343
3344   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3345 fi
3346 fi
3347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3348 if test -n "$ac_ct_RANLIB"; then
3349   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3350 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3351 else
3352   echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 fi
3355
3356   RANLIB=$ac_ct_RANLIB
3357 else
3358   RANLIB="$ac_cv_prog_RANLIB"
3359 fi
3360
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_path_MV+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   case $MV in
3369   [\\/]* | ?:[\\/]*)
3370   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3371   ;;
3372   *)
3373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385 done
3386
3387   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3388   ;;
3389 esac
3390 fi
3391 MV=$ac_cv_path_MV
3392
3393 if test -n "$MV"; then
3394   echo "$as_me:$LINENO: result: $MV" >&5
3395 echo "${ECHO_T}$MV" >&6
3396 else
3397   echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3399 fi
3400
3401 # Extract the first word of "rm", so it can be a program name with args.
3402 set dummy rm; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_path_RM+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   case $RM in
3409   [\\/]* | ?:[\\/]*)
3410   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3411   ;;
3412   *)
3413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426
3427   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3428   ;;
3429 esac
3430 fi
3431 RM=$ac_cv_path_RM
3432
3433 if test -n "$RM"; then
3434   echo "$as_me:$LINENO: result: $RM" >&5
3435 echo "${ECHO_T}$RM" >&6
3436 else
3437   echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3439 fi
3440
3441 # Extract the first word of "cp", so it can be a program name with args.
3442 set dummy cp; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_path_CP+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   case $CP in
3449   [\\/]* | ?:[\\/]*)
3450   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3451   ;;
3452   *)
3453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458   for ac_exec_ext in '' $ac_executable_extensions; do
3459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465 done
3466
3467   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3468   ;;
3469 esac
3470 fi
3471 CP=$ac_cv_path_CP
3472
3473 if test -n "$CP"; then
3474   echo "$as_me:$LINENO: result: $CP" >&5
3475 echo "${ECHO_T}$CP" >&6
3476 else
3477   echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3479 fi
3480
3481 # Extract the first word of "sed", so it can be a program name with args.
3482 set dummy sed; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_path_SED+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   case $SED in
3489   [\\/]* | ?:[\\/]*)
3490   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3491   ;;
3492   *)
3493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498   for ac_exec_ext in '' $ac_executable_extensions; do
3499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505 done
3506
3507   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3508   ;;
3509 esac
3510 fi
3511 SED=$ac_cv_path_SED
3512
3513 if test -n "$SED"; then
3514   echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520
3521 # Extract the first word of "echo", so it can be a program name with args.
3522 set dummy echo; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_path_ECHO+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   case $ECHO in
3529   [\\/]* | ?:[\\/]*)
3530   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3531   ;;
3532   *)
3533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538   for ac_exec_ext in '' $ac_executable_extensions; do
3539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545 done
3546
3547   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3548   ;;
3549 esac
3550 fi
3551 ECHO=$ac_cv_path_ECHO
3552
3553 if test -n "$ECHO"; then
3554   echo "$as_me:$LINENO: result: $ECHO" >&5
3555 echo "${ECHO_T}$ECHO" >&6
3556 else
3557   echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561 # Extract the first word of "cmp", so it can be a program name with args.
3562 set dummy cmp; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_path_CMP+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   case $CMP in
3569   [\\/]* | ?:[\\/]*)
3570   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3571   ;;
3572   *)
3573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578   for ac_exec_ext in '' $ac_executable_extensions; do
3579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585 done
3586
3587   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3588   ;;
3589 esac
3590 fi
3591 CMP=$ac_cv_path_CMP
3592
3593 if test -n "$CMP"; then
3594   echo "$as_me:$LINENO: result: $CMP" >&5
3595 echo "${ECHO_T}$CMP" >&6
3596 else
3597   echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601 # Extract the first word of "tbl", so it can be a program name with args.
3602 set dummy tbl; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_TBL+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   case $TBL in
3609   [\\/]* | ?:[\\/]*)
3610   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3611   ;;
3612   *)
3613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618   for ac_exec_ext in '' $ac_executable_extensions; do
3619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625 done
3626
3627   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3628   ;;
3629 esac
3630 fi
3631 TBL=$ac_cv_path_TBL
3632
3633 if test -n "$TBL"; then
3634   echo "$as_me:$LINENO: result: $TBL" >&5
3635 echo "${ECHO_T}$TBL" >&6
3636 else
3637   echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3639 fi
3640
3641 # Extract the first word of "ar", so it can be a program name with args.
3642 set dummy ar; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_path_AR+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   case $AR in
3649   [\\/]* | ?:[\\/]*)
3650   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3651   ;;
3652   *)
3653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658   for ac_exec_ext in '' $ac_executable_extensions; do
3659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662     break 2
3663   fi
3664 done
3665 done
3666
3667   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3668   ;;
3669 esac
3670 fi
3671 AR=$ac_cv_path_AR
3672
3673 if test -n "$AR"; then
3674   echo "$as_me:$LINENO: result: $AR" >&5
3675 echo "${ECHO_T}$AR" >&6
3676 else
3677   echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3679 fi
3680
3681 # Extract the first word of "openssl", so it can be a program name with args.
3682 set dummy openssl; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_path_OPENSSL+set}" = set; then
3686   echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688   case $OPENSSL in
3689   [\\/]* | ?:[\\/]*)
3690   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3691   ;;
3692   *)
3693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696   IFS=$as_save_IFS
3697   test -z "$as_dir" && as_dir=.
3698   for ac_exec_ext in '' $ac_executable_extensions; do
3699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702     break 2
3703   fi
3704 done
3705 done
3706
3707   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3708   ;;
3709 esac
3710 fi
3711 OPENSSL=$ac_cv_path_OPENSSL
3712
3713 if test -n "$OPENSSL"; then
3714   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3715 echo "${ECHO_T}$OPENSSL" >&6
3716 else
3717   echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3719 fi
3720
3721 # Extract the first word of "mtx", so it can be a program name with args.
3722 set dummy mtx; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_MTX+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   case $MTX in
3729   [\\/]* | ?:[\\/]*)
3730   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3731   ;;
3732   *)
3733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745 done
3746
3747   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3748   ;;
3749 esac
3750 fi
3751 MTX=$ac_cv_path_MTX
3752
3753 if test -n "$MTX"; then
3754   echo "$as_me:$LINENO: result: $MTX" >&5
3755 echo "${ECHO_T}$MTX" >&6
3756 else
3757   echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3759 fi
3760
3761 # Extract the first word of "mkisofs", so it can be a program name with args.
3762 set dummy mkisofs; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_path_MKISOFS+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   case $MKISOFS in
3769   [\\/]* | ?:[\\/]*)
3770   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3771   ;;
3772   *)
3773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785 done
3786
3787   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3788   ;;
3789 esac
3790 fi
3791 MKISOFS=$ac_cv_path_MKISOFS
3792
3793 if test -n "$MKISOFS"; then
3794   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3795 echo "${ECHO_T}$MKISOFS" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801 # Extract the first word of "python", so it can be a program name with args.
3802 set dummy python; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_PYTHON+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   case $PYTHON in
3809   [\\/]* | ?:[\\/]*)
3810   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3811   ;;
3812   *)
3813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3828   ;;
3829 esac
3830 fi
3831 PYTHON=$ac_cv_path_PYTHON
3832
3833 if test -n "$PYTHON"; then
3834   echo "$as_me:$LINENO: result: $PYTHON" >&5
3835 echo "${ECHO_T}$PYTHON" >&6
3836 else
3837   echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841 # Extract the first word of "growisofs", so it can be a program name with args.
3842 set dummy growisofs; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   case $GROWISOFS in
3849   [\\/]* | ?:[\\/]*)
3850   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3851   ;;
3852   *)
3853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865 done
3866
3867   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3868   ;;
3869 esac
3870 fi
3871 GROWISOFS=$ac_cv_path_GROWISOFS
3872
3873 if test -n "$GROWISOFS"; then
3874   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3875 echo "${ECHO_T}$GROWISOFS" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3882 set dummy dvd+rw-mediainfo; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   case $DVDRWMEDIAINFO in
3889   [\\/]* | ?:[\\/]*)
3890   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3891   ;;
3892   *)
3893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898   for ac_exec_ext in '' $ac_executable_extensions; do
3899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905 done
3906
3907   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3908   ;;
3909 esac
3910 fi
3911 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3912
3913 if test -n "$DVDRWMEDIAINFO"; then
3914   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3916 else
3917   echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3919 fi
3920
3921 # Extract the first word of "pkg-config", so it can be a program name with args.
3922 set dummy pkg-config; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   case $PKGCONFIG in
3929   [\\/]* | ?:[\\/]*)
3930   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3931   ;;
3932   *)
3933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938   for ac_exec_ext in '' $ac_executable_extensions; do
3939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942     break 2
3943   fi
3944 done
3945 done
3946
3947   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3948   ;;
3949 esac
3950 fi
3951 PKGCONFIG=$ac_cv_path_PKGCONFIG
3952
3953 if test -n "$PKGCONFIG"; then
3954   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3955 echo "${ECHO_T}$PKGCONFIG" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 fi
3960
3961 # Extract the first word of "wx-config", so it can be a program name with args.
3962 set dummy wx-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   case $WXCONFIG in
3969   [\\/]* | ?:[\\/]*)
3970   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3971   ;;
3972   *)
3973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985 done
3986
3987   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3988   ;;
3989 esac
3990 fi
3991 WXCONFIG=$ac_cv_path_WXCONFIG
3992
3993 if test -n "$WXCONFIG"; then
3994   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3995 echo "${ECHO_T}$WXCONFIG" >&6
3996 else
3997   echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001 # Extract the first word of "cdrecord", so it can be a program name with args.
4002 set dummy cdrecord; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_CDRECORD+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   case $CDRECORD in
4009   [\\/]* | ?:[\\/]*)
4010   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4011   ;;
4012   *)
4013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025 done
4026
4027   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4028   ;;
4029 esac
4030 fi
4031 CDRECORD=$ac_cv_path_CDRECORD
4032
4033 if test -n "$CDRECORD"; then
4034   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4035 echo "${ECHO_T}$CDRECORD" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041 # Extract the first word of "pidof", so it can be a program name with args.
4042 set dummy pidof; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_PIDOF+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   case $PIDOF in
4049   [\\/]* | ?:[\\/]*)
4050   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4051   ;;
4052   *)
4053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4068   ;;
4069 esac
4070 fi
4071 PIDOF=$ac_cv_path_PIDOF
4072
4073 if test -n "$PIDOF"; then
4074   echo "$as_me:$LINENO: result: $PIDOF" >&5
4075 echo "${ECHO_T}$PIDOF" >&6
4076 else
4077   echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079 fi
4080
4081 for ac_prog in gawk mawk nawk awk
4082 do
4083   # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_AWK+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$AWK"; then
4091   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_AWK="$ac_prog"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107 fi
4108 fi
4109 AWK=$ac_cv_prog_AWK
4110 if test -n "$AWK"; then
4111   echo "$as_me:$LINENO: result: $AWK" >&5
4112 echo "${ECHO_T}$AWK" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118   test -n "$AWK" && break
4119 done
4120
4121 # Some AWK programs fail, so test it and warn the user
4122 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4123       { if ((prog == $2) || (("(" prog ")") == $2) ||
4124            (("" prog "") == $2) ||
4125            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4126 else
4127   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4128    The regex engine of $AWK is too broken to be used you
4129    might want to install GNU AWK.
4130    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4131 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4132    The regex engine of $AWK is too broken to be used you
4133    might want to install GNU AWK.
4134    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4135    { (exit 1); exit 1; }; }
4136 fi
4137 THE_AWK=$AWK
4138 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4139 set dummy $THE_AWK; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_AWK+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   case $AWK in
4146   [\\/]* | ?:[\\/]*)
4147   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4148   ;;
4149   *)
4150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162 done
4163
4164   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4165   ;;
4166 esac
4167 fi
4168 AWK=$ac_cv_path_AWK
4169
4170 if test -n "$AWK"; then
4171   echo "$as_me:$LINENO: result: $AWK" >&5
4172 echo "${ECHO_T}$AWK" >&6
4173 else
4174   echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178
4179 test -n "$ARFLAG" || ARFLAGS="cr"
4180
4181
4182 MAKE_SHELL=/bin/sh
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 # Make sure we can run config.sub.
4193 $ac_config_sub sun4 >/dev/null 2>&1 ||
4194   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4195 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4196    { (exit 1); exit 1; }; }
4197
4198 echo "$as_me:$LINENO: checking build system type" >&5
4199 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4200 if test "${ac_cv_build+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   ac_cv_build_alias=$build_alias
4204 test -z "$ac_cv_build_alias" &&
4205   ac_cv_build_alias=`$ac_config_guess`
4206 test -z "$ac_cv_build_alias" &&
4207   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4209    { (exit 1); exit 1; }; }
4210 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4211   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4212 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4213    { (exit 1); exit 1; }; }
4214
4215 fi
4216 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4217 echo "${ECHO_T}$ac_cv_build" >&6
4218 build=$ac_cv_build
4219 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4220 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4221 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4222
4223
4224
4225 echo "$as_me:$LINENO: checking host system type" >&5
4226 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4227 if test "${ac_cv_host+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   ac_cv_host_alias=$host_alias
4231 test -z "$ac_cv_host_alias" &&
4232   ac_cv_host_alias=$ac_cv_build_alias
4233 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4234   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4235 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4236    { (exit 1); exit 1; }; }
4237
4238 fi
4239 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4240 echo "${ECHO_T}$ac_cv_host" >&6
4241 host=$ac_cv_host
4242 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4243 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4244 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4245
4246
4247 case $host_os in
4248   *cygwin* ) CYGWIN=yes;;
4249          * ) CYGWIN=no;;
4250 esac
4251
4252 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4253 then
4254
4255
4256 if $TRUEPRG; then
4257   HAVE_SUN_OS_TRUE=
4258   HAVE_SUN_OS_FALSE='#'
4259 else
4260   HAVE_SUN_OS_TRUE='#'
4261   HAVE_SUN_OS_FALSE=
4262 fi
4263         cat >>confdefs.h <<\_ACEOF
4264 #define HAVE_SUN_OS 1
4265 _ACEOF
4266
4267 else
4268
4269
4270 if $FALSEPRG; then
4271   HAVE_SUN_OS_TRUE=
4272   HAVE_SUN_OS_FALSE='#'
4273 else
4274   HAVE_SUN_OS_TRUE='#'
4275   HAVE_SUN_OS_FALSE=
4276 fi
4277 fi
4278
4279 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4280 then
4281
4282
4283 if $TRUEPRG; then
4284   HAVE_OSF1_OS_TRUE=
4285   HAVE_OSF1_OS_FALSE='#'
4286 else
4287   HAVE_OSF1_OS_TRUE='#'
4288   HAVE_OSF1_OS_FALSE=
4289 fi
4290         cat >>confdefs.h <<\_ACEOF
4291 #define HAVE_OSF1_OS 1
4292 _ACEOF
4293
4294 else
4295
4296
4297 if $FALSEPRG; then
4298   HAVE_OSF1_OS_TRUE=
4299   HAVE_OSF1_OS_FALSE='#'
4300 else
4301   HAVE_OSF1_OS_TRUE='#'
4302   HAVE_OSF1_OS_FALSE=
4303 fi
4304 fi
4305
4306 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4307 then
4308
4309
4310 if $TRUEPRG; then
4311   HAVE_AIX_OS_TRUE=
4312   HAVE_AIX_OS_FALSE='#'
4313 else
4314   HAVE_AIX_OS_TRUE='#'
4315   HAVE_AIX_OS_FALSE=
4316 fi
4317         cat >>confdefs.h <<\_ACEOF
4318 #define HAVE_AIX_OS 1
4319 _ACEOF
4320
4321 else
4322
4323
4324 if $FALSEPRG; then
4325   HAVE_AIX_OS_TRUE=
4326   HAVE_AIX_OS_FALSE='#'
4327 else
4328   HAVE_AIX_OS_TRUE='#'
4329   HAVE_AIX_OS_FALSE=
4330 fi
4331 fi
4332
4333 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4334 then
4335
4336
4337 if $TRUEPRG; then
4338   HAVE_HPUX_OS_TRUE=
4339   HAVE_HPUX_OS_FALSE='#'
4340 else
4341   HAVE_HPUX_OS_TRUE='#'
4342   HAVE_HPUX_OS_FALSE=
4343 fi
4344         cat >>confdefs.h <<\_ACEOF
4345 #define HAVE_HPUX_OS 1
4346 _ACEOF
4347
4348 else
4349
4350
4351 if $FALSEPRG; then
4352   HAVE_HPUX_OS_TRUE=
4353   HAVE_HPUX_OS_FALSE='#'
4354 else
4355   HAVE_HPUX_OS_TRUE='#'
4356   HAVE_HPUX_OS_FALSE=
4357 fi
4358 fi
4359
4360 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4361 then
4362
4363
4364 if $TRUEPRG; then
4365   HAVE_LINUX_OS_TRUE=
4366   HAVE_LINUX_OS_FALSE='#'
4367 else
4368   HAVE_LINUX_OS_TRUE='#'
4369   HAVE_LINUX_OS_FALSE=
4370 fi
4371         cat >>confdefs.h <<\_ACEOF
4372 #define HAVE_LINUX_OS 1
4373 _ACEOF
4374
4375 else
4376
4377
4378 if $FALSEPRG; then
4379   HAVE_LINUX_OS_TRUE=
4380   HAVE_LINUX_OS_FALSE='#'
4381 else
4382   HAVE_LINUX_OS_TRUE='#'
4383   HAVE_LINUX_OS_FALSE=
4384 fi
4385 fi
4386
4387 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4388 then
4389
4390
4391 if $TRUEPRG; then
4392   HAVE_FREEBSD_OS_TRUE=
4393   HAVE_FREEBSD_OS_FALSE='#'
4394 else
4395   HAVE_FREEBSD_OS_TRUE='#'
4396   HAVE_FREEBSD_OS_FALSE=
4397 fi
4398         cat >>confdefs.h <<\_ACEOF
4399 #define HAVE_FREEBSD_OS 1
4400 _ACEOF
4401
4402 else
4403
4404
4405 if $FALSEPRG; then
4406   HAVE_FREEBSD_OS_TRUE=
4407   HAVE_FREEBSD_OS_FALSE='#'
4408 else
4409   HAVE_FREEBSD_OS_TRUE='#'
4410   HAVE_FREEBSD_OS_FALSE=
4411 fi
4412 fi
4413
4414 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4415 then
4416
4417
4418 if $TRUEPRG; then
4419   HAVE_NETBSD_OS_TRUE=
4420   HAVE_NETBSD_OS_FALSE='#'
4421 else
4422   HAVE_NETBSD_OS_TRUE='#'
4423   HAVE_NETBSD_OS_FALSE=
4424 fi
4425         cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_NETBSD_OS 1
4427 _ACEOF
4428
4429 else
4430
4431
4432 if $FALSEPRG; then
4433   HAVE_NETBSD_OS_TRUE=
4434   HAVE_NETBSD_OS_FALSE='#'
4435 else
4436   HAVE_NETBSD_OS_TRUE='#'
4437   HAVE_NETBSD_OS_FALSE=
4438 fi
4439 fi
4440
4441 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4442 then
4443
4444
4445 if $TRUEPRG; then
4446   HAVE_OPENBSD_OS_TRUE=
4447   HAVE_OPENBSD_OS_FALSE='#'
4448 else
4449   HAVE_OPENBSD_OS_TRUE='#'
4450   HAVE_OPENBSD_OS_FALSE=
4451 fi
4452         cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_OPENBSD_OS 1
4454 _ACEOF
4455
4456 else
4457
4458
4459 if $FALSEPRG; then
4460   HAVE_OPENBSD_OS_TRUE=
4461   HAVE_OPENBSD_OS_FALSE='#'
4462 else
4463   HAVE_OPENBSD_OS_TRUE='#'
4464   HAVE_OPENBSD_OS_FALSE=
4465 fi
4466 fi
4467
4468 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4469 then
4470
4471
4472 if $TRUEPRG; then
4473   HAVE_BSDI_OS_TRUE=
4474   HAVE_BSDI_OS_FALSE='#'
4475 else
4476   HAVE_BSDI_OS_TRUE='#'
4477   HAVE_BSDI_OS_FALSE=
4478 fi
4479         cat >>confdefs.h <<\_ACEOF
4480 #define HAVE_BSDI_OS 1
4481 _ACEOF
4482
4483 else
4484
4485
4486 if $FALSEPRG; then
4487   HAVE_BSDI_OS_TRUE=
4488   HAVE_BSDI_OS_FALSE='#'
4489 else
4490   HAVE_BSDI_OS_TRUE='#'
4491   HAVE_BSDI_OS_FALSE=
4492 fi
4493 fi
4494
4495 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4496 then
4497
4498
4499 if $TRUEPRG; then
4500   HAVE_SGI_OS_TRUE=
4501   HAVE_SGI_OS_FALSE='#'
4502 else
4503   HAVE_SGI_OS_TRUE='#'
4504   HAVE_SGI_OS_FALSE=
4505 fi
4506         cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_SGI_OS 1
4508 _ACEOF
4509
4510 else
4511
4512
4513 if $FALSEPRG; then
4514   HAVE_SGI_OS_TRUE=
4515   HAVE_SGI_OS_FALSE='#'
4516 else
4517   HAVE_SGI_OS_TRUE='#'
4518   HAVE_SGI_OS_FALSE=
4519 fi
4520 fi
4521
4522 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4523 then
4524
4525
4526 if $TRUEPRG; then
4527   HAVE_IRIX_OS_TRUE=
4528   HAVE_IRIX_OS_FALSE='#'
4529 else
4530   HAVE_IRIX_OS_TRUE='#'
4531   HAVE_IRIX_OS_FALSE=
4532 fi
4533         cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_IRIX_OS 1
4535 _ACEOF
4536
4537 else
4538
4539
4540 if $FALSEPRG; then
4541   HAVE_IRIX_OS_TRUE=
4542   HAVE_IRIX_OS_FALSE='#'
4543 else
4544   HAVE_IRIX_OS_TRUE='#'
4545   HAVE_IRIX_OS_FALSE=
4546 fi
4547 fi
4548
4549 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4550 then
4551
4552
4553 if $TRUEPRG; then
4554   HAVE_DARWIN_OS_TRUE=
4555   HAVE_DARWIN_OS_FALSE='#'
4556 else
4557   HAVE_DARWIN_OS_TRUE='#'
4558   HAVE_DARWIN_OS_FALSE=
4559 fi
4560     cat >>confdefs.h <<\_ACEOF
4561 #define HAVE_DARWIN_OS 1
4562 _ACEOF
4563
4564 else
4565
4566
4567 if $FALSEPRG; then
4568   HAVE_DARWIN_OS_TRUE=
4569   HAVE_DARWIN_OS_FALSE='#'
4570 else
4571   HAVE_DARWIN_OS_TRUE='#'
4572   HAVE_DARWIN_OS_FALSE=
4573 fi
4574 fi
4575
4576
4577 # -----------------------------------------------------------
4578 # ----------------------------------------------------------
4579 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4580 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4581 if test "x$DISTNAME" != "x"
4582 then
4583         echo "distname set to $DISTNAME"
4584 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4585 then
4586         DISTNAME=alpha
4587 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4588 then
4589         DISTNAME=aix
4590 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4591 then
4592         DISTNAME=hpux
4593 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4594 then
4595         DISTNAME=solaris
4596 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4597 then
4598         DISTNAME=freebsd
4599 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4600 then
4601         DISTNAME=netbsd
4602 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4603 then
4604         DISTNAME=openbsd
4605 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4606 then
4607         DISTNAME=irix
4608 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4609 then
4610         DISTNAME=bsdi
4611 elif test -f /etc/SuSE-release
4612 then
4613         DISTNAME=suse
4614 elif test -d /etc/SuSEconfig
4615 then
4616         DISTNAME=suse5
4617 elif test -f /etc/mandrake-release
4618 then
4619         DISTNAME=mandrake
4620 elif test -f /etc/whitebox-release
4621 then
4622        DISTNAME=redhat
4623 elif test -f /etc/redhat-release
4624 then
4625         DISTNAME=redhat
4626 elif test -f /etc/gentoo-release
4627 then
4628         DISTNAME=gentoo
4629 elif test -f /etc/debian_version
4630 then
4631         DISTNAME=debian
4632 elif test -f /etc/slackware-version
4633 then
4634         DISTNAME=slackware
4635 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4636 then
4637     DISTNAME=darwin
4638 elif test -f /etc/engarde-version
4639 then
4640         DISTNAME=engarde
4641 elif test "$CYGWIN" = yes
4642 then
4643         DISTNAME=cygwin
4644         cat >>confdefs.h <<\_ACEOF
4645 #define HAVE_CYGWIN 1
4646 _ACEOF
4647
4648 else
4649         DISTNAME=unknown
4650 fi
4651 echo "$as_me:$LINENO: result: done" >&5
4652 echo "${ECHO_T}done" >&6
4653
4654
4655 # -----------------------------------------------------------
4656 # ----------------------------------------------------------
4657
4658
4659
4660 if false; then
4661   INSIDE_GNOME_COMMON_TRUE=
4662   INSIDE_GNOME_COMMON_FALSE='#'
4663 else
4664   INSIDE_GNOME_COMMON_TRUE='#'
4665   INSIDE_GNOME_COMMON_FALSE=
4666 fi
4667
4668         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4669
4670         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4671
4672
4673 # ------------------------------------------------------------------
4674 #  If the user has not set --prefix, we set our default to nothing.
4675 #  In this case, if the user has not set --sysconfdir, we set it
4676 #  to the package default of /etc/bacula.  If either --prefix or
4677 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4678 # ------------------------------------------------------------------
4679 if test x${prefix} = xNONE ; then
4680     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4681         sysconfdir=/etc/bacula
4682     fi
4683     prefix=
4684 fi
4685 sysconfdir=`eval echo ${sysconfdir}`
4686
4687 # -------------------------------------------------------------------------
4688 #  If the user has not set --exec-prefix, we default to ${prefix}
4689 # -------------------------------------------------------------------------
4690 if test x${exec_prefix} = xNONE ; then
4691     exec_prefix=${prefix}
4692 fi
4693
4694 # ------------------------------------------------------------------
4695 # If the user has not set --sbindir, we set our default as /sbin
4696 # ------------------------------------------------------------------
4697 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4698     sbindir=${exec_prefix}/sbin
4699 fi
4700 sbindir=`eval echo ${sbindir}`
4701
4702 # ------------------------------------------------------------------
4703 # All list of languages for which a translation exist. Each
4704 #  language is separated by a space.
4705 # ------------------------------------------------------------------
4706 ALL_LINGUAS=""
4707
4708 for ac_prog in msgfmt
4709 do
4710   # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_MSGFMT+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   case $MSGFMT in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727   for ac_exec_ext in '' $ac_executable_extensions; do
4728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734 done
4735
4736   ;;
4737 esac
4738 fi
4739 MSGFMT=$ac_cv_path_MSGFMT
4740
4741 if test -n "$MSGFMT"; then
4742   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4743 echo "${ECHO_T}$MSGFMT" >&6
4744 else
4745   echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4747 fi
4748
4749   test -n "$MSGFMT" && break
4750 done
4751 test -n "$MSGFMT" || MSGFMT="no"
4752
4753 if test "$MSGFMT" = "no"
4754 then
4755    echo 'msgfmt program not found, disabling NLS !'
4756    USE_NLS=no
4757    USE_INCLUDED_LIBINTL=no
4758 #else
4759 #   AM_GNU_GETTEXT
4760 fi
4761
4762
4763 support_mysql=no
4764 support_sqlite=no
4765 support_sqlite3=no
4766 support_postgresql=no
4767 support_smartalloc=yes
4768 support_readline=yes
4769 support_conio=yes
4770 support_gnome=no
4771 support_wx_console=no
4772 gnome_version=
4773 support_static_tools=no
4774 support_static_fd=no
4775 support_static_sd=no
4776 support_static_dir=no
4777 support_static_cons=no
4778 support_python=no
4779 build_client_only=no
4780 cats=
4781 db_name=Internal
4782 DB_NAME=bdb
4783
4784
4785 # -------------------------------------------
4786 # gnome (default off)
4787 # -------------------------------------------
4788 # Check whether --enable-gnome or --disable-gnome was given.
4789 if test "${enable_gnome+set}" = set; then
4790   enableval="$enable_gnome"
4791   if test x$enableval = xyes; then
4792     support_gnome=yes
4793   fi
4794 fi;
4795
4796 GNOME_DIR=
4797 if test x$support_gnome = xyes; then
4798   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4799   pkg=$?
4800   if test $pkg = 0; then
4801      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4802      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4803      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4804      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4805
4806
4807
4808
4809      GNOME_DIR=src/gnome2-console
4810      gnome_version="Version 2.x"
4811   else
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4824 if test "${with_gnome_includes+set}" = set; then
4825   withval="$with_gnome_includes"
4826
4827         CFLAGS="$CFLAGS -I$withval"
4828
4829 fi;
4830
4831
4832 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4833 if test "${with_gnome_libs+set}" = set; then
4834   withval="$with_gnome_libs"
4835
4836         LDFLAGS="$LDFLAGS -L$withval"
4837         gnome_prefix=$withval
4838
4839 fi;
4840
4841
4842 # Check whether --with-gnome or --without-gnome was given.
4843 if test "${with_gnome+set}" = set; then
4844   withval="$with_gnome"
4845   if test x$withval = xyes; then
4846                         want_gnome=yes
4847                                                                         :
4848                 else
4849                         if test "x$withval" = xno; then
4850                                 want_gnome=no
4851                         else
4852                                 want_gnome=yes
4853                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4854                                 CFLAGS="$CFLAGS -I$withval/include"
4855                                 gnome_prefix=$withval/lib
4856                         fi
4857                 fi
4858 else
4859   want_gnome=yes
4860 fi;
4861
4862         if test "x$want_gnome" = xyes; then
4863
4864             # Extract the first word of "gnome-config", so it can be a program name with args.
4865 set dummy gnome-config; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   case $GNOME_CONFIG in
4872   [\\/]* | ?:[\\/]*)
4873   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4874   ;;
4875   *)
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889
4890   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4891   ;;
4892 esac
4893 fi
4894 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4895
4896 if test -n "$GNOME_CONFIG"; then
4897   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4898 echo "${ECHO_T}$GNOME_CONFIG" >&6
4899 else
4900   echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4902 fi
4903
4904             if test "$GNOME_CONFIG" = "no"; then
4905               no_gnome_config="yes"
4906             else
4907               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4908 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4909               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4910                 echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6
4912
4913
4914         # Extract the first word of "orbit-config", so it can be a program name with args.
4915 set dummy orbit-config; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   case $ORBIT_CONFIG in
4922   [\\/]* | ?:[\\/]*)
4923   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4924   ;;
4925   *)
4926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931   for ac_exec_ext in '' $ac_executable_extensions; do
4932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938 done
4939
4940   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4941   ;;
4942 esac
4943 fi
4944 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4945
4946 if test -n "$ORBIT_CONFIG"; then
4947   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4948 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4949 else
4950   echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952 fi
4953
4954         # Extract the first word of "orbit-idl", so it can be a program name with args.
4955 set dummy orbit-idl; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   case $ORBIT_IDL in
4962   [\\/]* | ?:[\\/]*)
4963   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4964   ;;
4965   *)
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971   for ac_exec_ext in '' $ac_executable_extensions; do
4972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978 done
4979
4980   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4981   ;;
4982 esac
4983 fi
4984 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4985
4986 if test -n "$ORBIT_IDL"; then
4987   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4988 echo "${ECHO_T}$ORBIT_IDL" >&6
4989 else
4990   echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992 fi
4993
4994         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4995 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4996 if test "${gnome_cv_orbit_found+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999
5000                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5001                         gnome_cv_orbit_found=no
5002                 else
5003                         gnome_cv_orbit_found=yes
5004                 fi
5005
5006 fi
5007 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5008 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5009
5010
5011 if test x$gnome_cv_orbit_found = xyes; then
5012   HAVE_ORBIT_TRUE=
5013   HAVE_ORBIT_FALSE='#'
5014 else
5015   HAVE_ORBIT_TRUE='#'
5016   HAVE_ORBIT_FALSE=
5017 fi
5018         if test x$gnome_cv_orbit_found = xyes; then
5019
5020                 ORBIT_CFLAGS=`orbit-config --cflags client server`
5021                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5022
5023
5024         else
5025                 if test xfail = xfailure; then
5026                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5027 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5028    { (exit 1); exit 1; }; }
5029                 fi
5030         fi
5031
5032         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5033 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5034 if test "${gnome_cv_gnorba_found+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037
5038                 gnome_cv_gnorba_found=no
5039                 if test x$gnome_cv_orbit_found = xyes; then
5040                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5041                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5042                         if test -n "$GNORBA_LIBS"; then
5043                                 gnome_cv_gnorba_found=yes
5044                         fi
5045                 fi
5046
5047 fi
5048 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5049 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5050
5051
5052 if test x$gnome_cv_gnorba_found = xyes; then
5053   HAVE_GNORBA_TRUE=
5054   HAVE_GNORBA_FALSE='#'
5055 else
5056   HAVE_GNORBA_TRUE='#'
5057   HAVE_GNORBA_FALSE=
5058 fi
5059         if test x$gnome_cv_orbit_found = xyes; then
5060
5061                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5062                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5063
5064
5065         else
5066                 if test xfail = xfailure; then
5067                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5068 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5069    { (exit 1); exit 1; }; }
5070                 fi
5071         fi
5072
5073                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5074                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5075                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5076                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5077                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5078                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5079                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5080
5081               else
5082                 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084                 no_gnome_config="yes"
5085               fi
5086             fi
5087
5088             if test x$exec_prefix = xNONE; then
5089                 if test x$prefix = xNONE; then
5090                     gnome_prefix=$ac_default_prefix/lib
5091                 else
5092                     gnome_prefix=$prefix/lib
5093                 fi
5094             else
5095                 gnome_prefix=`eval echo \`echo $libdir\``
5096             fi
5097
5098             if test "$no_gnome_config" = "yes"; then
5099               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5100 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5101               if test -f $gnome_prefix/gnomeConf.sh; then
5102                 echo "$as_me:$LINENO: result: found" >&5
5103 echo "${ECHO_T}found" >&6
5104                 echo "loading gnome configuration from" \
5105                      "$gnome_prefix/gnomeConf.sh"
5106                 . $gnome_prefix/gnomeConf.sh
5107
5108               else
5109                 echo "$as_me:$LINENO: result: not found" >&5
5110 echo "${ECHO_T}not found" >&6
5111                 if test xfail = xfail; then
5112                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5113 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5114    { (exit 1); exit 1; }; }
5115                 fi
5116               fi
5117             fi
5118         fi
5119
5120         if test -n ""; then
5121           n=""
5122           for i in $n; do
5123             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5124 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5125             case $i in
5126               applets)
5127
5128                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5129                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5130 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5131               docklets)
5132
5133                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5134                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5135 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5136               capplet)
5137
5138                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5139                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5140 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5141               *)
5142                 echo "$as_me:$LINENO: result: unknown library" >&5
5143 echo "${ECHO_T}unknown library" >&6
5144             esac
5145             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5146             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5147           done
5148         fi
5149
5150
5151      GNOME_DIR=src/gnome-console
5152      gnome_version="Version 1.4"
5153   fi
5154 fi
5155
5156
5157
5158 # -------------------------------------------
5159 # wx-console (default off)
5160 # -------------------------------------------
5161 # Check whether --enable-wx-console or --disable-wx-console was given.
5162 if test "${enable_wx_console+set}" = set; then
5163   enableval="$enable_wx_console"
5164   if test x$enableval = xyes; then
5165     support_wx_console=yes
5166   fi
5167 fi;
5168
5169 WX_DIR=
5170 if test x$support_wx_console = xyes; then
5171   abc=`$WXCONFIG --cppflags`
5172   pkg=$?
5173   if test $pkg = 0; then
5174      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5175      WXCONS_LDFLAGS=`$WXCONFIG --libs`
5176
5177
5178      WX_DIR=src/wx-console
5179   else
5180      echo " "
5181      echo "wx-config program not found. wx-console disabled."
5182      echo " "
5183      support_wx_console=no
5184   fi
5185 fi
5186
5187
5188
5189 # -------------------------------------------
5190 # tray-monitor (default off)
5191 # -------------------------------------------
5192 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5193 if test "${enable_tray_monitor+set}" = set; then
5194   enableval="$enable_tray_monitor"
5195   if test x$enableval = xyes; then
5196     support_tray_monitor=yes
5197   fi
5198 fi;
5199
5200 TRAY_MONITOR_DIR=
5201 if test x$support_tray_monitor = xyes; then
5202   abc=`$PKGCONFIG --exists gtk+-2.0`
5203   pkg=$?
5204   if test $pkg = 0; then
5205      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5206      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5207
5208
5209      TRAY_MONITOR_DIR=src/tray-monitor
5210      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5211      pkg=$?
5212      if test $pkg = 0; then
5213         cat >>confdefs.h <<\_ACEOF
5214 #define HAVE_GTK_2_4 1
5215 _ACEOF
5216
5217      fi
5218   fi
5219 fi
5220
5221
5222 # -------------------------------------------
5223 # smartalloc (default off)
5224 # -------------------------------------------
5225 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5226 if test "${enable_smartalloc+set}" = set; then
5227   enableval="$enable_smartalloc"
5228   if test x$enableval = xno; then
5229     support_smartalloc=no
5230   fi
5231 fi;
5232
5233 if test x$support_smartalloc = xyes; then
5234    cat >>confdefs.h <<\_ACEOF
5235 #define SMARTALLOC 1
5236 _ACEOF
5237
5238 fi
5239
5240 # -------------------------------------------
5241 # static-tools (default off)
5242 # -------------------------------------------
5243 # Check whether --enable-static-tools or --disable-static-tools was given.
5244 if test "${enable_static_tools+set}" = set; then
5245   enableval="$enable_static_tools"
5246   if test x$enableval = xyes; then
5247      support_static_tools=yes
5248    fi
5249 fi;
5250
5251 TTOOL_LDFLAGS=
5252 if test x$support_static_tools = xyes; then
5253    TTOOL_LDFLAGS="-static"
5254 fi
5255
5256
5257 # -------------------------------------------
5258 # static-fd    (default off)
5259 # -------------------------------------------
5260 # Check whether --enable-static-fd or --disable-static-fd was given.
5261 if test "${enable_static_fd+set}" = set; then
5262   enableval="$enable_static_fd"
5263   if test x$enableval = xyes; then
5264      support_static_fd=yes
5265    fi
5266 fi;
5267
5268 STATIC_FD=
5269 if test x$support_static_fd = xyes; then
5270    STATIC_FD="static-bacula-fd"
5271 fi
5272
5273
5274 # -------------------------------------------
5275 # static-sd    (default off)
5276 # -------------------------------------------
5277 # Check whether --enable-static-sd or --disable-static-sd was given.
5278 if test "${enable_static_sd+set}" = set; then
5279   enableval="$enable_static_sd"
5280   if test x$enableval = xyes; then
5281      support_static_sd=yes
5282    fi
5283 fi;
5284
5285 STATIC_SD=
5286 if test x$support_static_sd = xyes; then
5287    STATIC_SD="static-bacula-sd"
5288 fi
5289
5290
5291 # -------------------------------------------
5292 # static-dir   (default off)
5293 # -------------------------------------------
5294 # Check whether --enable-static-dir or --disable-static-dir was given.
5295 if test "${enable_static_dir+set}" = set; then
5296   enableval="$enable_static_dir"
5297   if test x$enableval = xyes; then
5298      support_static_dir=yes
5299    fi
5300 fi;
5301
5302 STATIC_DIR=
5303 if test x$support_static_dir = xyes; then
5304    STATIC_DIR="static-bacula-dir"
5305 fi
5306
5307
5308 # -------------------------------------------
5309 # static-cons  (default off)
5310 # -------------------------------------------
5311 # Check whether --enable-static-cons or --disable-static-cons was given.
5312 if test "${enable_static_cons+set}" = set; then
5313   enableval="$enable_static_cons"
5314   if test x$enableval = xyes; then
5315      support_static_cons=yes
5316    fi
5317 fi;
5318
5319 STATIC_CONS=
5320 STATIC_GNOME_CONS=
5321 STATIC_WX_CONS=
5322 if test x$support_static_cons = xyes; then
5323    STATIC_CONS="static-bconsole"
5324    STATIC_GNOME_CONS="static-gnome-console"
5325    STATIC_WX_CONS="static-wx-console"
5326 fi
5327
5328
5329
5330
5331 # -------------------------------------------
5332 # client_only  (default off)
5333 # -------------------------------------------
5334 # Check whether --enable-client-only or --disable-client-only was given.
5335 if test "${enable_client_only+set}" = set; then
5336   enableval="$enable_client_only"
5337   if test x$enableval = xyes; then
5338      build_client_only=yes
5339     db_name=None
5340     DB_NAME=none
5341    fi
5342 fi;
5343 if test x$build_client_only = xno; then
5344    ALL_DIRS="subdirs"
5345 else
5346    ALL_DIRS=""
5347 fi
5348
5349
5350 # ---------------------------------------------------
5351 # Check for conio (Bacula readline substitute)(
5352 # ---------------------------------------------------
5353 # this allows you to turn it completely off
5354 # Check whether --enable-conio or --disable-conio was given.
5355 if test "${enable_conio+set}" = set; then
5356   enableval="$enable_conio"
5357   if test x$enableval = xno; then
5358     support_conio=no
5359   fi
5360 fi;
5361
5362 got_conio="no"
5363 if test x$support_conio = xyes; then
5364    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 #include <stdlib.h>
5376 #include <stdarg.h>
5377 #include <string.h>
5378 #include <float.h>
5379
5380 int
5381 main ()
5382 {
5383
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390   (eval $ac_compile) 2>conftest.er1
5391   ac_status=$?
5392   grep -v '^ *+' conftest.er1 >conftest.err
5393   rm -f conftest.er1
5394   cat conftest.err >&5
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -z "$ac_c_werror_flag"
5398                          || test ! -s conftest.err'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; } &&
5404          { ac_try='test -s conftest.$ac_objext'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   ac_cv_header_stdc=yes
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_cv_header_stdc=no
5416 fi
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418
5419 if test $ac_cv_header_stdc = yes; then
5420   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421   cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 #include <string.h>
5428
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431   $EGREP "memchr" >/dev/null 2>&1; then
5432   :
5433 else
5434   ac_cv_header_stdc=no
5435 fi
5436 rm -f conftest*
5437
5438 fi
5439
5440 if test $ac_cv_header_stdc = yes; then
5441   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442   cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h.  */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h.  */
5448 #include <stdlib.h>
5449
5450 _ACEOF
5451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5452   $EGREP "free" >/dev/null 2>&1; then
5453   :
5454 else
5455   ac_cv_header_stdc=no
5456 fi
5457 rm -f conftest*
5458
5459 fi
5460
5461 if test $ac_cv_header_stdc = yes; then
5462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5463   if test "$cross_compiling" = yes; then
5464   :
5465 else
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472 #include <ctype.h>
5473 #if ((' ' & 0x0FF) == 0x020)
5474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5476 #else
5477 # define ISLOWER(c) \
5478                    (('a' <= (c) && (c) <= 'i') \
5479                      || ('j' <= (c) && (c) <= 'r') \
5480                      || ('s' <= (c) && (c) <= 'z'))
5481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5482 #endif
5483
5484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485 int
5486 main ()
5487 {
5488   int i;
5489   for (i = 0; i < 256; i++)
5490     if (XOR (islower (i), ISLOWER (i))
5491         || toupper (i) != TOUPPER (i))
5492       exit(2);
5493   exit (0);
5494 }
5495 _ACEOF
5496 rm -f conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498   (eval $ac_link) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503   (eval $ac_try) 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }; }; then
5507   :
5508 else
5509   echo "$as_me: program exited with status $ac_status" >&5
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 ( exit $ac_status )
5514 ac_cv_header_stdc=no
5515 fi
5516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5517 fi
5518 fi
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5521 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5522 if test $ac_cv_header_stdc = yes; then
5523
5524 cat >>confdefs.h <<\_ACEOF
5525 #define STDC_HEADERS 1
5526 _ACEOF
5527
5528 fi
5529
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5541                   inttypes.h stdint.h unistd.h
5542 do
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556
5557 #include <$ac_header>
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561   (eval $ac_compile) 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } &&
5568          { ac_try='test -z "$ac_c_werror_flag"
5569                          || test ! -s conftest.err'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; } &&
5575          { ac_try='test -s conftest.$ac_objext'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   eval "$as_ac_Header=yes"
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 eval "$as_ac_Header=no"
5587 fi
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5593   cat >>confdefs.h <<_ACEOF
5594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5595 _ACEOF
5596
5597 fi
5598
5599 done
5600
5601
5602 if test "${ac_cv_header_termcap_h+set}" = set; then
5603   echo "$as_me:$LINENO: checking for termcap.h" >&5
5604 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5605 if test "${ac_cv_header_termcap_h+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 fi
5608 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5609 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5610 else
5611   # Is the header compilable?
5612 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5613 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 $ac_includes_default
5621 #include <termcap.h>
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>conftest.er1
5626   ac_status=$?
5627   grep -v '^ *+' conftest.er1 >conftest.err
5628   rm -f conftest.er1
5629   cat conftest.err >&5
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } &&
5632          { ac_try='test -z "$ac_c_werror_flag"
5633                          || test ! -s conftest.err'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; } &&
5639          { ac_try='test -s conftest.$ac_objext'
5640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641   (eval $ac_try) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; }; then
5645   ac_header_compiler=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ac_header_compiler=no
5651 fi
5652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5654 echo "${ECHO_T}$ac_header_compiler" >&6
5655
5656 # Is the header present?
5657 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5658 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665 #include <termcap.h>
5666 _ACEOF
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } >/dev/null; then
5675   if test -s conftest.err; then
5676     ac_cpp_err=$ac_c_preproc_warn_flag
5677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5678   else
5679     ac_cpp_err=
5680   fi
5681 else
5682   ac_cpp_err=yes
5683 fi
5684 if test -z "$ac_cpp_err"; then
5685   ac_header_preproc=yes
5686 else
5687   echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690   ac_header_preproc=no
5691 fi
5692 rm -f conftest.err conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6
5695
5696 # So?  What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5698   yes:no: )
5699     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5703     ac_header_preproc=yes
5704     ;;
5705   no:yes:* )
5706     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5708     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5714     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5716     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5718     (
5719       cat <<\_ASBOX
5720 ## ------------------------------------------ ##
5721 ## Report this to the AC_PACKAGE_NAME lists.  ##
5722 ## ------------------------------------------ ##
5723 _ASBOX
5724     ) |
5725       sed "s/^/$as_me: WARNING:     /" >&2
5726     ;;
5727 esac
5728 echo "$as_me:$LINENO: checking for termcap.h" >&5
5729 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5730 if test "${ac_cv_header_termcap_h+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   ac_cv_header_termcap_h=$ac_header_preproc
5734 fi
5735 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5736 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5737
5738 fi
5739 if test $ac_cv_header_termcap_h = yes; then
5740    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5741 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5742 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-ltermcap  $LIBS"
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753
5754 /* Override any gcc2 internal prototype to avoid an error.  */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 /* We use char because int might match the return type of a gcc2
5759    builtin and then its argument prototype would still apply.  */
5760 char tgetent ();
5761 int
5762 main ()
5763 {
5764 tgetent ();
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771   (eval $ac_link) 2>conftest.er1
5772   ac_status=$?
5773   grep -v '^ *+' conftest.er1 >conftest.err
5774   rm -f conftest.er1
5775   cat conftest.err >&5
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -z "$ac_c_werror_flag"
5779                          || test ! -s conftest.err'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; } &&
5785          { ac_try='test -s conftest$ac_exeext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_cv_lib_termcap_tgetent=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_cv_lib_termcap_tgetent=no
5797 fi
5798 rm -f conftest.err conftest.$ac_objext \
5799       conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5803 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5804 if test $ac_cv_lib_termcap_tgetent = yes; then
5805    CONS_LIBS="-ltermcap"
5806          CONS_OBJ="conio.o"
5807          CONS_SRC="conio.c"
5808          got_conio="yes"
5809          support_readline=no
5810
5811 cat >>confdefs.h <<\_ACEOF
5812 #define HAVE_CONIO 1
5813 _ACEOF
5814
5815
5816 else
5817    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5818 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5819 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-lncurses  $LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h.  */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h.  */
5830
5831 /* Override any gcc2 internal prototype to avoid an error.  */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 /* We use char because int might match the return type of a gcc2
5836    builtin and then its argument prototype would still apply.  */
5837 char tgetent ();
5838 int
5839 main ()
5840 {
5841 tgetent ();
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848   (eval $ac_link) 2>conftest.er1
5849   ac_status=$?
5850   grep -v '^ *+' conftest.er1 >conftest.err
5851   rm -f conftest.er1
5852   cat conftest.err >&5
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } &&
5855          { ac_try='test -z "$ac_c_werror_flag"
5856                          || test ! -s conftest.err'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; } &&
5862          { ac_try='test -s conftest$ac_exeext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   ac_cv_lib_ncurses_tgetent=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_cv_lib_ncurses_tgetent=no
5874 fi
5875 rm -f conftest.err conftest.$ac_objext \
5876       conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5878 fi
5879 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5880 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5881 if test $ac_cv_lib_ncurses_tgetent = yes; then
5882    CONS_LIBS="-lncurses"
5883            CONS_OBJ="conio.o"
5884            CONS_SRC="conio.c"
5885            got_conio="yes"
5886            support_readline=no
5887
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_CONIO 1
5890 _ACEOF
5891
5892
5893 fi
5894
5895
5896 fi
5897
5898
5899 else
5900
5901
5902 for ac_header in curses.h
5903 do
5904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906   echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 fi
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5913 else
5914   # Is the header compilable?
5915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923 $ac_includes_default
5924 #include <$ac_header>
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928   (eval $ac_compile) 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -z "$ac_c_werror_flag"
5936                          || test ! -s conftest.err'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; } &&
5942          { ac_try='test -s conftest.$ac_objext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_header_compiler=yes
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_header_compiler=no
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5958
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968 #include <$ac_header>
5969 _ACEOF
5970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } >/dev/null; then
5978   if test -s conftest.err; then
5979     ac_cpp_err=$ac_c_preproc_warn_flag
5980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981   else
5982     ac_cpp_err=
5983   fi
5984 else
5985   ac_cpp_err=yes
5986 fi
5987 if test -z "$ac_cpp_err"; then
5988   ac_header_preproc=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993   ac_header_preproc=no
5994 fi
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5998
5999 # So?  What about this header?
6000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6001   yes:no: )
6002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6006     ac_header_preproc=yes
6007     ;;
6008   no:yes:* )
6009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6021     (
6022       cat <<\_ASBOX
6023 ## ------------------------------------------ ##
6024 ## Report this to the AC_PACKAGE_NAME lists.  ##
6025 ## ------------------------------------------ ##
6026 _ASBOX
6027     ) |
6028       sed "s/^/$as_me: WARNING:     /" >&2
6029     ;;
6030 esac
6031 echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   eval "$as_ac_Header=\$ac_header_preproc"
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6040
6041 fi
6042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6043   cat >>confdefs.h <<_ACEOF
6044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 _ACEOF
6046
6047 fi
6048
6049 done
6050
6051          echo "$as_me:$LINENO: checking for term.h" >&5
6052 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_term_h+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #if HAVE_CURSES_H
6063 #include <curses.h>
6064 #endif
6065
6066
6067 #include <term.h>
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } &&
6078          { ac_try='test -z "$ac_c_werror_flag"
6079                          || test ! -s conftest.err'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; } &&
6085          { ac_try='test -s conftest.$ac_objext'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   ac_cv_header_term_h=yes
6092 else
6093   echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ac_cv_header_term_h=no
6097 fi
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6102 if test $ac_cv_header_term_h = yes; then
6103    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6104 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6105 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lcurses  $LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116
6117 /* Override any gcc2 internal prototype to avoid an error.  */
6118 #ifdef __cplusplus
6119 extern "C"
6120 #endif
6121 /* We use char because int might match the return type of a gcc2
6122    builtin and then its argument prototype would still apply.  */
6123 char tgetent ();
6124 int
6125 main ()
6126 {
6127 tgetent ();
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134   (eval $ac_link) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } &&
6141          { ac_try='test -z "$ac_c_werror_flag"
6142                          || test ! -s conftest.err'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; } &&
6148          { ac_try='test -s conftest$ac_exeext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_cv_lib_curses_tgetent=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ac_cv_lib_curses_tgetent=no
6160 fi
6161 rm -f conftest.err conftest.$ac_objext \
6162       conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6166 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6167 if test $ac_cv_lib_curses_tgetent = yes; then
6168    CONS_LIBS="-lcurses"
6169                    CONS_OBJ="conio.o"
6170                    CONS_SRC="conio.c"
6171                    got_conio="yes"
6172                    support_readline=no
6173
6174 cat >>confdefs.h <<\_ACEOF
6175 #define HAVE_CONIO 1
6176 _ACEOF
6177
6178
6179 fi
6180
6181
6182 else
6183    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6184 fi
6185
6186
6187
6188 fi
6189
6190
6191 fi
6192
6193
6194 # ---------------------------------------------------
6195 # Check for readline support/directory (default off)
6196 # ---------------------------------------------------
6197 # this allows you to turn it completely off
6198 # Check whether --enable-readline or --disable-readline was given.
6199 if test "${enable_readline+set}" = set; then
6200   enableval="$enable_readline"
6201   if test x$enableval = xno; then
6202     support_readline=no
6203   fi
6204 fi;
6205
6206 got_readline="no"
6207 READLINE_SRC=
6208 if test x$support_readline = xyes; then
6209
6210 # Check whether --with-readline or --without-readline was given.
6211 if test "${with_readline+set}" = set; then
6212   withval="$with_readline"
6213
6214         case "$with_readline" in
6215         no) : ;;
6216         yes|*)
6217           if test "$with_readline" != "yes"; then
6218             CONS_INC="-I${with_readline}"
6219             CONS_LDFLAGS="-L$with_readline"
6220           else
6221              with_readline="/usr/include/readline"
6222           fi
6223           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6226 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 fi
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6232 else
6233   # Is the header compilable?
6234 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6235 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 $ac_includes_default
6243 #include <${with_readline}/readline.h>
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247   (eval $ac_compile) 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -z "$ac_c_werror_flag"
6255                          || test ! -s conftest.err'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; } &&
6261          { ac_try='test -s conftest.$ac_objext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_header_compiler=yes
6268 else
6269   echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_header_compiler=no
6273 fi
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6276 echo "${ECHO_T}$ac_header_compiler" >&6
6277
6278 # Is the header present?
6279 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6280 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 #include <${with_readline}/readline.h>
6288 _ACEOF
6289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
6294   cat conftest.err >&5
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } >/dev/null; then
6297   if test -s conftest.err; then
6298     ac_cpp_err=$ac_c_preproc_warn_flag
6299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6300   else
6301     ac_cpp_err=
6302   fi
6303 else
6304   ac_cpp_err=yes
6305 fi
6306 if test -z "$ac_cpp_err"; then
6307   ac_header_preproc=yes
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312   ac_header_preproc=no
6313 fi
6314 rm -f conftest.err conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6
6317
6318 # So?  What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6320   yes:no: )
6321     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6325     ac_header_preproc=yes
6326     ;;
6327   no:yes:* )
6328     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6330     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6332     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6334     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6336     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6338     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6340     (
6341       cat <<\_ASBOX
6342 ## ------------------------------------------ ##
6343 ## Report this to the AC_PACKAGE_NAME lists.  ##
6344 ## ------------------------------------------ ##
6345 _ASBOX
6346     ) |
6347       sed "s/^/$as_me: WARNING:     /" >&2
6348     ;;
6349 esac
6350 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6351 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   eval "$as_ac_Header=\$ac_header_preproc"
6356 fi
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359
6360 fi
6361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362    cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_READLINE 1
6364 _ACEOF
6365
6366                CONS_LIBS="-lreadline -ltermcap"
6367                got_readline="yes"
6368
6369 else
6370    echo " "
6371                echo "readline.h not found. readline turned off ..."
6372                echo " "
6373
6374
6375 fi
6376
6377
6378           ;;
6379         esac
6380
6381 else
6382
6383        # check for standard readline library
6384        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6385   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6386 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6387 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 fi
6390 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6391 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6392 else
6393   # Is the header compilable?
6394 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6395 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 $ac_includes_default
6403 #include </usr/include/readline/readline.h>
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407   (eval $ac_compile) 2>conftest.er1
6408   ac_status=$?
6409   grep -v '^ *+' conftest.er1 >conftest.err
6410   rm -f conftest.er1
6411   cat conftest.err >&5
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -z "$ac_c_werror_flag"
6415                          || test ! -s conftest.err'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; } &&
6421          { ac_try='test -s conftest.$ac_objext'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; }; then
6427   ac_header_compiler=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_header_compiler=no
6433 fi
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436 echo "${ECHO_T}$ac_header_compiler" >&6
6437
6438 # Is the header present?
6439 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6440 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 #include </usr/include/readline/readline.h>
6448 _ACEOF
6449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6451   ac_status=$?
6452   grep -v '^ *+' conftest.er1 >conftest.err
6453   rm -f conftest.er1
6454   cat conftest.err >&5
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } >/dev/null; then
6457   if test -s conftest.err; then
6458     ac_cpp_err=$ac_c_preproc_warn_flag
6459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6460   else
6461     ac_cpp_err=
6462   fi
6463 else
6464   ac_cpp_err=yes
6465 fi
6466 if test -z "$ac_cpp_err"; then
6467   ac_header_preproc=yes
6468 else
6469   echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472   ac_header_preproc=no
6473 fi
6474 rm -f conftest.err conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6476 echo "${ECHO_T}$ac_header_preproc" >&6
6477
6478 # So?  What about this header?
6479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6480   yes:no: )
6481     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6482 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6483     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6484 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6485     ac_header_preproc=yes
6486     ;;
6487   no:yes:* )
6488     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6489 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6490     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6491 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6492     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6493 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6494     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6495 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6496     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6497 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6499 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6500     (
6501       cat <<\_ASBOX
6502 ## ------------------------------------------ ##
6503 ## Report this to the AC_PACKAGE_NAME lists.  ##
6504 ## ------------------------------------------ ##
6505 _ASBOX
6506     ) |
6507       sed "s/^/$as_me: WARNING:     /" >&2
6508     ;;
6509 esac
6510 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6511 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6512 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6516 fi
6517 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6518 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6519
6520 fi
6521 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6522    cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_READLINE 1
6524 _ACEOF
6525
6526            got_readline="yes"
6527            CONS_INC="-I/usr/include/readline"
6528            CONS_LIBS="-lreadline -ltermcap"
6529
6530 else
6531
6532            # Did not find standard library, so try Bacula's default
6533             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6536 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 fi
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 else
6543   # Is the header compilable?
6544 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6545 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 $ac_includes_default
6553 #include <${TOP_DIR}/depkgs/readline/readline.h>
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag"
6565                          || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest.$ac_objext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_header_compiler=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_header_compiler=no
6583 fi
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6
6587
6588 # Is the header present?
6589 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6590 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597 #include <${TOP_DIR}/depkgs/readline/readline.h>
6598 _ACEOF
6599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } >/dev/null; then
6607   if test -s conftest.err; then
6608     ac_cpp_err=$ac_c_preproc_warn_flag
6609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6610   else
6611     ac_cpp_err=
6612   fi
6613 else
6614   ac_cpp_err=yes
6615 fi
6616 if test -z "$ac_cpp_err"; then
6617   ac_header_preproc=yes
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622   ac_header_preproc=no
6623 fi
6624 rm -f conftest.err conftest.$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6626 echo "${ECHO_T}$ac_header_preproc" >&6
6627
6628 # So?  What about this header?
6629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6630   yes:no: )
6631     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6632 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6633     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6634 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6635     ac_header_preproc=yes
6636     ;;
6637   no:yes:* )
6638     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6640     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6642     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6643 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6644     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6645 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6646     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6647 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6648     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6649 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6650     (
6651       cat <<\_ASBOX
6652 ## ------------------------------------------ ##
6653 ## Report this to the AC_PACKAGE_NAME lists.  ##
6654 ## ------------------------------------------ ##
6655 _ASBOX
6656     ) |
6657       sed "s/^/$as_me: WARNING:     /" >&2
6658     ;;
6659 esac
6660 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6661 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   eval "$as_ac_Header=\$ac_header_preproc"
6666 fi
6667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6669
6670 fi
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672    cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_READLINE 1
6674 _ACEOF
6675
6676                  got_readline="yes"
6677                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6678                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6679                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6680                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6681
6682 else
6683    echo " "
6684                 echo "readline.h not found. readline turned off ..."
6685                 echo " "
6686
6687
6688 fi
6689
6690
6691
6692
6693 fi
6694
6695
6696
6697
6698 fi;
6699 fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 # Minimal stuff for readline Makefile configuration
6711 MAKE_SHELL=/bin/sh
6712
6713 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6714 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6715 if test "${ac_cv_header_stat_broken+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 #include <sys/types.h>
6725 #include <sys/stat.h>
6726
6727 #if defined(S_ISBLK) && defined(S_IFDIR)
6728 # if S_ISBLK (S_IFDIR)
6729 You lose.
6730 # endif
6731 #endif
6732
6733 #if defined(S_ISBLK) && defined(S_IFCHR)
6734 # if S_ISBLK (S_IFCHR)
6735 You lose.
6736 # endif
6737 #endif
6738
6739 #if defined(S_ISLNK) && defined(S_IFREG)
6740 # if S_ISLNK (S_IFREG)
6741 You lose.
6742 # endif
6743 #endif
6744
6745 #if defined(S_ISSOCK) && defined(S_IFREG)
6746 # if S_ISSOCK (S_IFREG)
6747 You lose.
6748 # endif
6749 #endif
6750
6751 _ACEOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753   $EGREP "You lose" >/dev/null 2>&1; then
6754   ac_cv_header_stat_broken=yes
6755 else
6756   ac_cv_header_stat_broken=no
6757 fi
6758 rm -f conftest*
6759
6760 fi
6761 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6762 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6763 if test $ac_cv_header_stat_broken = yes; then
6764
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STAT_MACROS_BROKEN 1
6767 _ACEOF
6768
6769 fi
6770
6771
6772
6773
6774
6775
6776 ac_header_dirent=no
6777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6778   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790 #include <sys/types.h>
6791 #include <$ac_hdr>
6792
6793 int
6794 main ()
6795 {
6796 if ((DIR *) 0)
6797 return 0;
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804   (eval $ac_compile) 2>conftest.er1
6805   ac_status=$?
6806   grep -v '^ *+' conftest.er1 >conftest.err
6807   rm -f conftest.er1
6808   cat conftest.err >&5
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -z "$ac_c_werror_flag"
6812                          || test ! -s conftest.err'
6813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814   (eval $ac_try) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; } &&
6818          { ac_try='test -s conftest.$ac_objext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824   eval "$as_ac_Header=yes"
6825 else
6826   echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 eval "$as_ac_Header=no"
6830 fi
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836   cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6838 _ACEOF
6839
6840 ac_header_dirent=$ac_hdr; break
6841 fi
6842
6843 done
6844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6845 if test $ac_header_dirent = dirent.h; then
6846   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6848 if test "${ac_cv_search_opendir+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   ac_func_search_save_LIBS=$LIBS
6852 ac_cv_search_opendir=no
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h.  */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h.  */
6859
6860 /* Override any gcc2 internal prototype to avoid an error.  */
6861 #ifdef __cplusplus
6862 extern "C"
6863 #endif
6864 /* We use char because int might match the return type of a gcc2
6865    builtin and then its argument prototype would still apply.  */
6866 char opendir ();
6867 int
6868 main ()
6869 {
6870 opendir ();
6871   ;
6872   return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877   (eval $ac_link) 2>conftest.er1
6878   ac_status=$?
6879   grep -v '^ *+' conftest.er1 >conftest.err
6880   rm -f conftest.er1
6881   cat conftest.err >&5
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } &&
6884          { ac_try='test -z "$ac_c_werror_flag"
6885                          || test ! -s conftest.err'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; } &&
6891          { ac_try='test -s conftest$ac_exeext'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   ac_cv_search_opendir="none required"
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 fi
6903 rm -f conftest.err conftest.$ac_objext \
6904       conftest$ac_exeext conftest.$ac_ext
6905 if test "$ac_cv_search_opendir" = no; then
6906   for ac_lib in dir; do
6907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6908     cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914
6915 /* Override any gcc2 internal prototype to avoid an error.  */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920    builtin and then its argument prototype would still apply.  */
6921 char opendir ();
6922 int
6923 main ()
6924 {
6925 opendir ();
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932   (eval $ac_link) 2>conftest.er1
6933   ac_status=$?
6934   grep -v '^ *+' conftest.er1 >conftest.err
6935   rm -f conftest.er1
6936   cat conftest.err >&5
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); } &&
6939          { ac_try='test -z "$ac_c_werror_flag"
6940                          || test ! -s conftest.err'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; } &&
6946          { ac_try='test -s conftest$ac_exeext'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; }; then
6952   ac_cv_search_opendir="-l$ac_lib"
6953 break
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 fi
6959 rm -f conftest.err conftest.$ac_objext \
6960       conftest$ac_exeext conftest.$ac_ext
6961   done
6962 fi
6963 LIBS=$ac_func_search_save_LIBS
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6967 if test "$ac_cv_search_opendir" != no; then
6968   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6969
6970 fi
6971
6972 else
6973   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6975 if test "${ac_cv_search_opendir+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   ac_func_search_save_LIBS=$LIBS
6979 ac_cv_search_opendir=no
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986
6987 /* Override any gcc2 internal prototype to avoid an error.  */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 /* We use char because int might match the return type of a gcc2
6992    builtin and then its argument prototype would still apply.  */
6993 char opendir ();
6994 int
6995 main ()
6996 {
6997 opendir ();
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004   (eval $ac_link) 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -z "$ac_c_werror_flag"
7012                          || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_search_opendir="none required"
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 fi
7030 rm -f conftest.err conftest.$ac_objext \
7031       conftest$ac_exeext conftest.$ac_ext
7032 if test "$ac_cv_search_opendir" = no; then
7033   for ac_lib in x; do
7034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7035     cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h.  */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h.  */
7041
7042 /* Override any gcc2 internal prototype to avoid an error.  */
7043 #ifdef __cplusplus
7044 extern "C"
7045 #endif
7046 /* We use char because int might match the return type of a gcc2
7047    builtin and then its argument prototype would still apply.  */
7048 char opendir ();
7049 int
7050 main ()
7051 {
7052 opendir ();
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059   (eval $ac_link) 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } &&
7066          { ac_try='test -z "$ac_c_werror_flag"
7067                          || test ! -s conftest.err'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; } &&
7073          { ac_try='test -s conftest$ac_exeext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   ac_cv_search_opendir="-l$ac_lib"
7080 break
7081 else
7082   echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 fi
7086 rm -f conftest.err conftest.$ac_objext \
7087       conftest$ac_exeext conftest.$ac_ext
7088   done
7089 fi
7090 LIBS=$ac_func_search_save_LIBS
7091 fi
7092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7094 if test "$ac_cv_search_opendir" != no; then
7095   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7096
7097 fi
7098
7099 fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7110 do
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114 if eval "test \"\${$as_ac_var+set}\" = set"; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7125 #define $ac_func innocuous_$ac_func
7126
7127 /* System header to define __stub macros and hopefully few prototypes,
7128     which can conflict with char $ac_func (); below.
7129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130     <limits.h> exists even on freestanding compilers.  */
7131
7132 #ifdef __STDC__
7133 # include <limits.h>
7134 #else
7135 # include <assert.h>
7136 #endif
7137
7138 #undef $ac_func
7139
7140 /* Override any gcc2 internal prototype to avoid an error.  */
7141 #ifdef __cplusplus
7142 extern "C"
7143 {
7144 #endif
7145 /* We use char because int might match the return type of a gcc2
7146    builtin and then its argument prototype would still apply.  */
7147 char $ac_func ();
7148 /* The GNU C library defines this for functions which it implements
7149     to always fail with ENOSYS.  Some functions are actually named
7150     something starting with __ and the normal name is an alias.  */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 choke me
7153 #else
7154 char (*f) () = $ac_func;
7155 #endif
7156 #ifdef __cplusplus
7157 }
7158 #endif
7159
7160 int
7161 main ()
7162 {
7163 return f != $ac_func;
7164   ;
7165   return 0;
7166 }
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170   (eval $ac_link) 2>conftest.er1
7171   ac_status=$?
7172   grep -v '^ *+' conftest.er1 >conftest.err
7173   rm -f conftest.er1
7174   cat conftest.err >&5
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } &&
7177          { ac_try='test -z "$ac_c_werror_flag"
7178                          || test ! -s conftest.err'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; } &&
7184          { ac_try='test -s conftest$ac_exeext'
7185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186   (eval $ac_try) 2>&5
7187   ac_status=$?
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); }; }; then
7190   eval "$as_ac_var=yes"
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195 eval "$as_ac_var=no"
7196 fi
7197 rm -f conftest.err conftest.$ac_objext \
7198       conftest$ac_exeext conftest.$ac_ext
7199 fi
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203   cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205 _ACEOF
7206
7207 fi
7208 done
7209
7210
7211
7212 for ac_func in nanosleep nl_langinfo
7213 do
7214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7215 echo "$as_me:$LINENO: checking for $ac_func" >&5
7216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7217 if eval "test \"\${$as_ac_var+set}\" = set"; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7228 #define $ac_func innocuous_$ac_func
7229
7230 /* System header to define __stub macros and hopefully few prototypes,
7231     which can conflict with char $ac_func (); below.
7232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233     <limits.h> exists even on freestanding compilers.  */
7234
7235 #ifdef __STDC__
7236 # include <limits.h>
7237 #else
7238 # include <assert.h>
7239 #endif
7240
7241 #undef $ac_func
7242
7243 /* Override any gcc2 internal prototype to avoid an error.  */
7244 #ifdef __cplusplus
7245 extern "C"
7246 {
7247 #endif
7248 /* We use char because int might match the return type of a gcc2
7249    builtin and then its argument prototype would still apply.  */
7250 char $ac_func ();
7251 /* The GNU C library defines this for functions which it implements
7252     to always fail with ENOSYS.  Some functions are actually named
7253     something starting with __ and the normal name is an alias.  */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7255 choke me
7256 #else
7257 char (*f) () = $ac_func;
7258 #endif
7259 #ifdef __cplusplus
7260 }
7261 #endif
7262
7263 int
7264 main ()
7265 {
7266 return f != $ac_func;
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273   (eval $ac_link) 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -z "$ac_c_werror_flag"
7281                          || test ! -s conftest.err'
7282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283   (eval $ac_try) 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; } &&
7287          { ac_try='test -s conftest$ac_exeext'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; }; then
7293   eval "$as_ac_var=yes"
7294 else
7295   echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 eval "$as_ac_var=no"
7299 fi
7300 rm -f conftest.err conftest.$ac_objext \
7301       conftest$ac_exeext conftest.$ac_ext
7302 fi
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7305 if test `eval echo '${'$as_ac_var'}'` = yes; then
7306   cat >>confdefs.h <<_ACEOF
7307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7308 _ACEOF
7309
7310 fi
7311 done
7312
7313
7314 for ac_header in varargs.h
7315 do
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318   echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325 else
7326   # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336 #include <$ac_header>
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340   (eval $ac_compile) 2>conftest.er1
7341   ac_status=$?
7342   grep -v '^ *+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } &&
7347          { ac_try='test -z "$ac_c_werror_flag"
7348                          || test ! -s conftest.err'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; } &&
7354          { ac_try='test -s conftest.$ac_objext'
7355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356   (eval $ac_try) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }; }; then
7360   ac_header_compiler=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ac_header_compiler=no
7366 fi
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7369 echo "${ECHO_T}$ac_header_compiler" >&6
7370
7371 # Is the header present?
7372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 #include <$ac_header>
7381 _ACEOF
7382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384   ac_status=$?
7385   grep -v '^ *+' conftest.er1 >conftest.err
7386   rm -f conftest.er1
7387   cat conftest.err >&5
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } >/dev/null; then
7390   if test -s conftest.err; then
7391     ac_cpp_err=$ac_c_preproc_warn_flag
7392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7393   else
7394     ac_cpp_err=
7395   fi
7396 else
7397   ac_cpp_err=yes
7398 fi
7399 if test -z "$ac_cpp_err"; then
7400   ac_header_preproc=yes
7401 else
7402   echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405   ac_header_preproc=no
7406 fi
7407 rm -f conftest.err conftest.$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7409 echo "${ECHO_T}$ac_header_preproc" >&6
7410
7411 # So?  What about this header?
7412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7413   yes:no: )
7414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7418     ac_header_preproc=yes
7419     ;;
7420   no:yes:* )
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7433     (
7434       cat <<\_ASBOX
7435 ## ------------------------------------------ ##
7436 ## Report this to the AC_PACKAGE_NAME lists.  ##
7437 ## ------------------------------------------ ##
7438 _ASBOX
7439     ) |
7440       sed "s/^/$as_me: WARNING:     /" >&2
7441     ;;
7442 esac
7443 echo "$as_me:$LINENO: checking for $ac_header" >&5
7444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   eval "$as_ac_Header=\$ac_header_preproc"
7449 fi
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7452
7453 fi
7454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7455   cat >>confdefs.h <<_ACEOF
7456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 _ACEOF
7458
7459 fi
7460
7461 done
7462
7463
7464 # End of readline/conio stuff
7465 # -----------------------------------------------------------------------
7466
7467 # -----------------------------------------------------------------------
7468 #  Check for Python support
7469 #
7470 echo "$as_me:$LINENO: checking for Python support" >&5
7471 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7472
7473 # Check whether --with-python or --without-python was given.
7474 if test "${with_python+set}" = set; then
7475   withval="$with_python"
7476
7477   PYTHON_INCDIR=
7478   PYTHON_LIBS=
7479   if test "$withval" != "no"; then
7480      if test "$withval" = "yes"; then
7481         if test -f /usr/include/python2.2/Python.h; then
7482            PYTHON_INCDIR=-I/usr/include/python2.2
7483            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7484         elif test -f /usr/include/python2.3/Python.h; then
7485            PYTHON_INCDIR=-I/usr/include/python2.3
7486            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7487         elif test -f /usr/include/python2.4/Python.h; then
7488            PYTHON_INCDIR=-I/usr/include/python2.4
7489            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7490         elif test -f $prefix/include/Python.h; then
7491            PYTHON_INCDIR=-I$prefix/include
7492            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7493         else
7494            echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7498    { (exit 1); exit 1; }; }
7499         fi
7500      else
7501         if test -f $withval/Python.h; then
7502            PYTHON_INCDIR=-I$withval
7503            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7504         elif test -f $withval/include/Python.h; then
7505            PYTHON_INCDIR=-I$withval/include
7506            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7507         else
7508            echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7511 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7512    { (exit 1); exit 1; }; }
7513         fi
7514      fi
7515      cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_PYTHON 1
7517 _ACEOF
7518
7519      echo "$as_me:$LINENO: result: yes" >&5
7520 echo "${ECHO_T}yes" >&6
7521      support_python=yes
7522
7523   else
7524      echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7526   fi
7527
7528 else
7529
7530   echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532
7533 fi;
7534
7535
7536
7537
7538 # -------------------------------------------
7539 # check for cdrecord writer location
7540 # get scsibus,target,lun
7541 # -------------------------------------------
7542 CDSTL="3,0,0"
7543 if test ! x$CDRECORD = x ; then
7544    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7545    if test x${CDSTL} = x ; then
7546       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7547    fi
7548    if test x${CDSTL} = x ; then
7549       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD+RW | ${AWK} '{print $1}'`
7550    fi
7551    if test x${CDSTL} = x ; then
7552       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD-RW | ${AWK} '{print $1}'`
7553    fi
7554    if test x${CDSTL} = x ; then
7555       CDSTL="3,0,0"
7556    fi
7557 fi
7558
7559
7560
7561 # ---------------------------------------------------
7562 # Check for GMP support/directory
7563 # ---------------------------------------------------
7564 #GMP_SRC=
7565 #local_gmp="no"
7566 #AC_ARG_WITH(gmp,
7567 #  [  --with-gmp[=DIR]   Specify gmp library directory],
7568 #  [
7569 #     case "$with_gmp" in
7570 #     no) : ;;
7571 #     yes|*)
7572 #       if test "$with_gmp" != "yes"; then
7573 #         GMP_INC="-I$with_gmp"
7574 #         GMP_LIBS="-lgmp"
7575 #         GMP_LDFLAGS="-L$with_gmp"
7576 #       else
7577 #          with_gmp="/usr/include"
7578 #       fi
7579 #       AC_CHECK_HEADER($with_gmp/gmp.h,
7580 #          [ AC_MSG_RESULT(yes)
7581 #            AC_DEFINE(HAVE_GMP)
7582 #            GMP_LIBS="-lgmp"
7583 #            got_gmp="yes"
7584 #          ],
7585 #          [ AC_MSG_ERROR([*** gmp library missing])
7586 #          ]
7587 #       )
7588 #       ;;
7589 #     esac
7590 #  ],[
7591 #    # check for standard gmp library
7592 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7593 #    [ AC_MSG_RESULT(yes)
7594 #      AC_DEFINE(HAVE_GMP)
7595 #      got_gmp="yes"
7596 #      GMP_INC=
7597 #      GMP_LIBS="-lgmp"
7598 #    ], [
7599 #      # Did not find standard library, so use our own
7600 #      AC_MSG_RESULT(yes)
7601 #      AC_DEFINE(HAVE_GMP)
7602 #      got_gmp="yes"
7603 #      local_gmp="yes"
7604 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7605 #      GMP_LIBS="-lgmp"
7606 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7607 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7608 #    ])
7609 #  ]
7610 #)
7611 #AC_SUBST(GMP_INC)
7612 #AC_SUBST(GMP_LIBS)
7613 #AC_SUBST(GMP_LDFLAGS)
7614 #AC_SUBST(GMP_SRC)
7615
7616 # End of GMP stuff
7617 # -----------------------------------------------------------------------
7618
7619
7620 # ---------------------------------------------------
7621 # Check for CWEB support/directory
7622 # ---------------------------------------------------
7623 #CWEB_SRC=
7624 #CWEB=/bin
7625 #local_cweb="no"
7626 #AC_ARG_WITH(cweb,
7627 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7628 #  [
7629 #     case "$with_cweb" in
7630 #     no) : ;;
7631 #     yes|*)
7632 #       if test "$with_cweb" != "yes"; then
7633 #         CWEB_INC="-I$with_cweb"
7634 #         CWEB_LIBS="-lcweb"
7635 #         CWEB_LDFLAGS="-L$with_cweb"
7636 #       else
7637 #          with_cweb="/usr/include"
7638 #       fi
7639 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7640 #          [ AC_MSG_RESULT(yes)
7641 #            AC_DEFINE(HAVE_CWEB)
7642 #            CWEB_LIBS="-lcweb"
7643 #            got_cweb="yes"
7644 #          ],
7645 #          [ AC_MSG_ERROR([*** cweb library missing])
7646 #          ]
7647 #       )
7648 #       ;;
7649 #     esac
7650 #  ],[
7651 #    # check for standard cweb library
7652 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7653 #    [ AC_MSG_RESULT(yes)
7654 #      AC_DEFINE(HAVE_CWEB)
7655 #      got_cweb="yes"
7656 #      CWEB_INC=
7657 #      CWEB_LIBS="-lcweb"
7658 #    ], [
7659 #      # Did not find starndard library, so use our own
7660 #      AC_MSG_RESULT(yes)
7661 #      AC_DEFINE(HAVE_CWEB)
7662 #      got_cweb="yes"
7663 #      local_cweb="yes"
7664 #      CWEB=${TOP_DIR}/depkgs/cweb
7665 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7666 #      CWEB_LIBS="-lcweb"
7667 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7668 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7669 #    ])
7670 #  ]
7671 #)
7672 #AC_SUBST(CWEB)
7673 #AC_SUBST(CWEB_INC)
7674 #AC_SUBST(CWEB_LIBS)
7675 #AC_SUBST(CWEB_LDFLAGS)
7676 #AC_SUBST(CWEB_SRC)
7677
7678 # End of CWEB stuff
7679 # -----------------------------------------------------------------------
7680
7681 #
7682 # Find where sockets are (especially for Solaris)
7683 # Do this before the TCP Wrappers test since tcp wrappers
7684 # uses the socket library and some linkers are stupid.
7685 #
7686 echo "$as_me:$LINENO: checking for socket" >&5
7687 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7688 if test "${ac_cv_func_socket+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7699 #define socket innocuous_socket
7700
7701 /* System header to define __stub macros and hopefully few prototypes,
7702     which can conflict with char socket (); below.
7703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7704     <limits.h> exists even on freestanding compilers.  */
7705
7706 #ifdef __STDC__
7707 # include <limits.h>
7708 #else
7709 # include <assert.h>
7710 #endif
7711
7712 #undef socket
7713
7714 /* Override any gcc2 internal prototype to avoid an error.  */
7715 #ifdef __cplusplus
7716 extern "C"
7717 {
7718 #endif
7719 /* We use char because int might match the return type of a gcc2
7720    builtin and then its argument prototype would still apply.  */
7721 char socket ();
7722 /* The GNU C library defines this for functions which it implements
7723     to always fail with ENOSYS.  Some functions are actually named
7724     something starting with __ and the normal name is an alias.  */
7725 #if defined (__stub_socket) || defined (__stub___socket)
7726 choke me
7727 #else
7728 char (*f) () = socket;
7729 #endif
7730 #ifdef __cplusplus
7731 }
7732 #endif
7733
7734 int
7735 main ()
7736 {
7737 return f != socket;
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744   (eval $ac_link) 2>conftest.er1
7745   ac_status=$?
7746   grep -v '^ *+' conftest.er1 >conftest.err
7747   rm -f conftest.er1
7748   cat conftest.err >&5
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } &&
7751          { ac_try='test -z "$ac_c_werror_flag"
7752                          || test ! -s conftest.err'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; } &&
7758          { ac_try='test -s conftest$ac_exeext'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; }; then
7764   ac_cv_func_socket=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769 ac_cv_func_socket=no
7770 fi
7771 rm -f conftest.err conftest.$ac_objext \
7772       conftest$ac_exeext conftest.$ac_ext
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7775 echo "${ECHO_T}$ac_cv_func_socket" >&6
7776 if test $ac_cv_func_socket = yes; then
7777   echo "$as_me:$LINENO: result: using libc's socket" >&5
7778 echo "${ECHO_T}using libc's socket" >&6
7779 else
7780
7781 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7782 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7783 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lxnet  $LIBS"
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794
7795 /* Override any gcc2 internal prototype to avoid an error.  */
7796 #ifdef __cplusplus
7797 extern "C"
7798 #endif
7799 /* We use char because int might match the return type of a gcc2
7800    builtin and then its argument prototype would still apply.  */
7801 char socket ();
7802 int
7803 main ()
7804 {
7805 socket ();
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812   (eval $ac_link) 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -z "$ac_c_werror_flag"
7820                          || test ! -s conftest.err'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; } &&
7826          { ac_try='test -s conftest$ac_exeext'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_cv_lib_xnet_socket=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ac_cv_lib_xnet_socket=no
7838 fi
7839 rm -f conftest.err conftest.$ac_objext \
7840       conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7842 fi
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7844 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7845 if test $ac_cv_lib_xnet_socket = yes; then
7846   cat >>confdefs.h <<_ACEOF
7847 #define HAVE_LIBXNET 1
7848 _ACEOF
7849
7850   LIBS="-lxnet $LIBS"
7851
7852 fi
7853
7854
7855 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7856 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7857 if test "${ac_cv_lib_socket_socket+set}" = set; then
7858   echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860   ac_check_lib_save_LIBS=$LIBS
7861 LIBS="-lsocket  $LIBS"
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h.  */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h.  */
7868
7869 /* Override any gcc2 internal prototype to avoid an error.  */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 /* We use char because int might match the return type of a gcc2
7874    builtin and then its argument prototype would still apply.  */
7875 char socket ();
7876 int
7877 main ()
7878 {
7879 socket ();
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886   (eval $ac_link) 2>conftest.er1
7887   ac_status=$?
7888   grep -v '^ *+' conftest.er1 >conftest.err
7889   rm -f conftest.er1
7890   cat conftest.err >&5
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); } &&
7893          { ac_try='test -z "$ac_c_werror_flag"
7894                          || test ! -s conftest.err'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; } &&
7900          { ac_try='test -s conftest$ac_exeext'
7901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; }; then
7906   ac_cv_lib_socket_socket=yes
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 ac_cv_lib_socket_socket=no
7912 fi
7913 rm -f conftest.err conftest.$ac_objext \
7914       conftest$ac_exeext conftest.$ac_ext
7915 LIBS=$ac_check_lib_save_LIBS
7916 fi
7917 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7918 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7919 if test $ac_cv_lib_socket_socket = yes; then
7920   cat >>confdefs.h <<_ACEOF
7921 #define HAVE_LIBSOCKET 1
7922 _ACEOF
7923
7924   LIBS="-lsocket $LIBS"
7925
7926 fi
7927
7928
7929 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7930 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7931 if test "${ac_cv_lib_inet_socket+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   ac_check_lib_save_LIBS=$LIBS
7935 LIBS="-linet  $LIBS"
7936 cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h.  */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h.  */
7942
7943 /* Override any gcc2 internal prototype to avoid an error.  */
7944 #ifdef __cplusplus
7945 extern "C"
7946 #endif
7947 /* We use char because int might match the return type of a gcc2
7948    builtin and then its argument prototype would still apply.  */
7949 char socket ();
7950 int
7951 main ()
7952 {
7953 socket ();
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960   (eval $ac_link) 2>conftest.er1
7961   ac_status=$?
7962   grep -v '^ *+' conftest.er1 >conftest.err
7963   rm -f conftest.er1
7964   cat conftest.err >&5
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } &&
7967          { ac_try='test -z "$ac_c_werror_flag"
7968                          || test ! -s conftest.err'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; } &&
7974          { ac_try='test -s conftest$ac_exeext'
7975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976   (eval $ac_try) 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   ac_cv_lib_inet_socket=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_cv_lib_inet_socket=no
7986 fi
7987 rm -f conftest.err conftest.$ac_objext \
7988       conftest$ac_exeext conftest.$ac_ext
7989 LIBS=$ac_check_lib_save_LIBS
7990 fi
7991 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7992 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7993 if test $ac_cv_lib_inet_socket = yes; then
7994   cat >>confdefs.h <<_ACEOF
7995 #define HAVE_LIBINET 1
7996 _ACEOF
7997
7998   LIBS="-linet $LIBS"
7999
8000 fi
8001
8002 fi
8003
8004
8005
8006 # -----------------------------------------------------------
8007 # Check whether user wants TCP wrappers support (default off)
8008 # -----------------------------------------------------------
8009 TCPW_MSG="no"
8010
8011 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
8012 if test "${with_tcp_wrappers+set}" = set; then
8013   withval="$with_tcp_wrappers"
8014
8015     if test "x$withval" != "xno" ; then
8016        saved_LIBS="$LIBS"
8017        LIBS="$saved_LIBS -lwrap"
8018        echo "$as_me:$LINENO: checking for libwrap" >&5
8019 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
8020        cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026  #include <tcpd.h>
8027              int deny_severity = 0;
8028              int allow_severity = 0;
8029              struct request_info *req;
8030 int
8031 main ()
8032 {
8033  hosts_access(req);
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040   (eval $ac_link) 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } &&
8047          { ac_try='test -z "$ac_c_werror_flag"
8048                          || test ! -s conftest.err'
8049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050   (eval $ac_try) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; } &&
8054          { ac_try='test -s conftest$ac_exeext'
8055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056   (eval $ac_try) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060
8061             echo "$as_me:$LINENO: result: yes" >&5
8062 echo "${ECHO_T}yes" >&6
8063             cat >>confdefs.h <<\_ACEOF
8064 #define HAVE_LIBWRAP 1
8065 _ACEOF
8066
8067             TCPW_MSG="yes"
8068
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073
8074             LIBS="$saved_LIBS -lwrap -lnsl"
8075             cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081  #include <tcpd.h>
8082                  int deny_severity = 0;
8083                  int allow_severity = 0;
8084                  struct request_info *req;
8085 int
8086 main ()
8087 {
8088  hosts_access(req);
8089   ;
8090   return 0;
8091 }
8092 _ACEOF
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095   (eval $ac_link) 2>conftest.er1
8096   ac_status=$?
8097   grep -v '^ *+' conftest.er1 >conftest.err
8098   rm -f conftest.er1
8099   cat conftest.err >&5
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); } &&
8102          { ac_try='test -z "$ac_c_werror_flag"
8103                          || test ! -s conftest.err'
8104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105   (eval $ac_try) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); }; } &&
8109          { ac_try='test -s conftest$ac_exeext'
8110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111   (eval $ac_try) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; }; then
8115
8116                  echo "$as_me:$LINENO: result: yes" >&5
8117 echo "${ECHO_T}yes" >&6
8118                  cat >>confdefs.h <<\_ACEOF
8119 #define HAVE_LIBWRAP 1
8120 _ACEOF
8121
8122                  TCPW_MSG="yes"
8123
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8129 echo "$as_me: error: *** libwrap missing" >&2;}
8130    { (exit 1); exit 1; }; }
8131
8132 fi
8133 rm -f conftest.err conftest.$ac_objext \
8134       conftest$ac_exeext conftest.$ac_ext
8135
8136 fi
8137 rm -f conftest.err conftest.$ac_objext \
8138       conftest$ac_exeext conftest.$ac_ext
8139     fi
8140
8141
8142 fi;
8143
8144 # ------------------------------------------
8145 # Where to place working dir
8146 # ------------------------------------------
8147 working_dir=`eval echo ${prefix}/var/bacula/working`
8148
8149 # Check whether --with-working-dir or --without-working-dir was given.
8150 if test "${with_working_dir+set}" = set; then
8151   withval="$with_working_dir"
8152
8153        if test "x$withval" != "xno" ; then
8154               working_dir=$withval
8155        fi
8156
8157
8158 fi;
8159
8160
8161
8162
8163 # ------------------------------------------
8164 # Where to place scriptdir (script files)
8165 # ------------------------------------------
8166 scriptdir=`eval echo ${sysconfdir}`
8167
8168 # Check whether --with-scriptdir or --without-scriptdir was given.
8169 if test "${with_scriptdir+set}" = set; then
8170   withval="$with_scriptdir"
8171
8172        if test "x$withval" != "xno" ; then
8173               scriptdir=$withval
8174        fi
8175
8176
8177 fi;
8178
8179
8180
8181
8182 # ------------------------------------------
8183 # Where to send dump email
8184 # ------------------------------------------
8185 dump_email=root@localhost
8186
8187 # Check whether --with-dump-email or --without-dump-email was given.
8188 if test "${with_dump_email+set}" = set; then
8189   withval="$with_dump_email"
8190
8191        if test "x$withval" != "xno" ; then
8192               dump_email=$withval
8193        fi
8194
8195
8196 fi;
8197
8198
8199
8200 # ------------------------------------------
8201 # Where to send job email
8202 # ------------------------------------------
8203 job_email=root@localhost
8204
8205 # Check whether --with-job-email or --without-job-email was given.
8206 if test "${with_job_email+set}" = set; then
8207   withval="$with_job_email"
8208
8209        if test "x$withval" != "xno" ; then
8210               job_email=$withval
8211        fi
8212
8213
8214 fi;
8215
8216
8217
8218 # ------------------------------------------
8219 # Where to find smtp host
8220 # ------------------------------------------
8221 smtp_host=localhost
8222
8223 # Check whether --with-smtp_host or --without-smtp_host was given.
8224 if test "${with_smtp_host+set}" = set; then
8225   withval="$with_smtp_host"
8226
8227        if test "x$withval" != "xno" ; then
8228               smtp_host=$withval
8229        fi
8230
8231
8232 fi;
8233
8234
8235
8236
8237 # ------------------------------------
8238 # Where to place pid files
8239 # ------------------------------------
8240 piddir=/var/run
8241
8242 # Check whether --with-pid-dir or --without-pid-dir was given.
8243 if test "${with_pid_dir+set}" = set; then
8244   withval="$with_pid_dir"
8245
8246         if test "x$withval" != "xno" ; then
8247             piddir=$withval
8248         fi
8249
8250
8251 fi;
8252
8253 cat >>confdefs.h <<_ACEOF
8254 #define _PATH_BACULA_PIDDIR "$piddir"
8255 _ACEOF
8256
8257
8258
8259
8260 # ------------------------------------
8261 # Where to place subsys "lock file"
8262 # ------------------------------------
8263 subsysdir=/var/run/subsys
8264
8265 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8266 if test "${with_subsys_dir+set}" = set; then
8267   withval="$with_subsys_dir"
8268
8269         if test "x$withval" != "xno" ; then
8270             subsysdir=$withval
8271         fi
8272
8273
8274 fi;
8275
8276
8277
8278
8279
8280 # ------------------------------------
8281 # Where to start assigning ports
8282 # ------------------------------------
8283 baseport=9101
8284
8285 # Check whether --with-baseport or --without-baseport was given.
8286 if test "${with_baseport+set}" = set; then
8287   withval="$with_baseport"
8288
8289         if test "x$withval" != "xno" ; then
8290              baseport=$withval
8291         fi
8292
8293
8294 fi;
8295
8296
8297 dir_port=`expr $baseport`
8298 fd_port=`expr $baseport + 1`
8299 sd_port=`expr $fd_port + 1`
8300
8301
8302
8303
8304
8305
8306 # ------------------------------------------
8307 # Generate passwords
8308 # ------------------------------------------
8309 dir_password=
8310
8311 # Check whether --with-dir-password or --without-dir-password was given.
8312 if test "${with_dir_password+set}" = set; then
8313   withval="$with_dir_password"
8314
8315        if test "x$withval" != "xno" ; then
8316            dir_password=$withval
8317        fi
8318
8319
8320 fi;
8321
8322 if test "x$dir_password" = "x" ; then
8323    if test "x$OPENSSL" = "xnone" ; then
8324 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8325       key=`autoconf/randpass 33`
8326    else
8327       key=`openssl rand -base64 33`
8328    fi
8329    dir_password=$key
8330 fi
8331
8332 fd_password=
8333
8334 # Check whether --with-fd-password or --without-fd-password was given.
8335 if test "${with_fd_password+set}" = set; then
8336   withval="$with_fd_password"
8337
8338        if test "x$withval" != "xno" ; then
8339            fd_password=$withval
8340        fi
8341
8342
8343 fi;
8344
8345 if test "x$fd_password" = "x" ; then
8346    if test "x$OPENSSL" = "xnone" ; then
8347 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8348       key=`autoconf/randpass 37`
8349    else
8350       key=`openssl rand -base64 33`
8351    fi
8352    fd_password=$key
8353 fi
8354
8355 sd_password=
8356
8357 # Check whether --with-sd-password or --without-sd-password was given.
8358 if test "${with_sd_password+set}" = set; then
8359   withval="$with_sd_password"
8360
8361        if test "x$withval" != "xno" ; then
8362            sd_password=$withval
8363        fi
8364
8365
8366 fi;
8367
8368 if test "x$sd_password" = "x" ; then
8369    if test "x$OPENSSL" = "xnone" ; then
8370 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8371       key=`autoconf/randpass 41`
8372    else
8373       key=`openssl rand -base64 33`
8374    fi
8375    sd_password=$key
8376 fi
8377
8378 mon_dir_password=
8379
8380 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8381 if test "${with_mon_dir_password+set}" = set; then
8382   withval="$with_mon_dir_password"
8383
8384        if test "x$withval" != "xno" ; then
8385            mon_dir_password=$withval
8386        fi
8387
8388
8389 fi;
8390
8391 if test "x$mon_dir_password" = "x" ; then
8392    if test "x$OPENSSL" = "xnone" ; then
8393 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8394       key=`autoconf/randpass 33`
8395    else
8396       key=`openssl rand -base64 33`
8397    fi
8398    mon_dir_password=$key
8399 fi
8400
8401 mon_fd_password=
8402
8403 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8404 if test "${with_mon_fd_password+set}" = set; then
8405   withval="$with_mon_fd_password"
8406
8407        if test "x$withval" != "xno" ; then
8408            mon_fd_password=$withval
8409        fi
8410
8411
8412 fi;
8413
8414 if test "x$mon_fd_password" = "x" ; then
8415    if test "x$OPENSSL" = "xnone" ; then
8416 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8417       key=`autoconf/randpass 37`
8418    else
8419       key=`openssl rand -base64 33`
8420    fi
8421    mon_fd_password=$key
8422 fi
8423
8424 mon_sd_password=
8425
8426 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8427 if test "${with_mon_sd_password+set}" = set; then
8428   withval="$with_mon_sd_password"
8429
8430        if test "x$withval" != "xno" ; then
8431            mon_sd_password=$withval
8432        fi
8433
8434
8435 fi;
8436
8437 if test "x$mon_sd_password" = "x" ; then
8438    if test "x$OPENSSL" = "xnone" ; then
8439 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8440       key=`autoconf/randpass 41`
8441    else
8442       key=`openssl rand -base64 33`
8443    fi
8444    mon_sd_password=$key
8445 fi
8446
8447
8448
8449
8450
8451
8452
8453
8454 # -------------------------------------------------------------------------
8455 #  Set variables for bimagemgr installation
8456 # -------------------------------------------------------------------------
8457 bimagemgr_cgidir=/var/www/cgi-bin
8458
8459 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8460 if test "${with_bimagemgr_cgidir+set}" = set; then
8461   withval="$with_bimagemgr_cgidir"
8462
8463        if test "x$withval" != "xno" ; then
8464            bimagemgr_cgidir=$withval
8465        fi
8466
8467
8468 fi;
8469
8470 bimagemgr_docdir=/var/www/html
8471
8472 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8473 if test "${with_bimagemgr_docdir+set}" = set; then
8474   withval="$with_bimagemgr_docdir"
8475
8476        if test "x$withval" != "xno" ; then
8477            bimagemgr_docdir=$withval
8478        fi
8479
8480
8481 fi;
8482
8483 bimagemgr_binowner=root
8484
8485 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8486 if test "${with_bimagemgr_binowner+set}" = set; then
8487   withval="$with_bimagemgr_binowner"
8488
8489        if test "x$withval" != "xno" ; then
8490            bimagemgr_binowner=$withval
8491        fi
8492
8493
8494 fi;
8495
8496 bimagemgr_bingroup=root
8497
8498 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8499 if test "${with_bimagemgr_bingroup+set}" = set; then
8500   withval="$with_bimagemgr_bingroup"
8501
8502        if test "x$withval" != "xno" ; then
8503            bimagemgr_bingroup=$withval
8504        fi
8505
8506
8507 fi;
8508
8509 bimagemgr_dataowner=apache
8510
8511 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8512 if test "${with_bimagemgr_dataowner+set}" = set; then
8513   withval="$with_bimagemgr_dataowner"
8514
8515        if test "x$withval" != "xno" ; then
8516            bimagemgr_dataowner=$withval
8517        fi
8518
8519
8520 fi;
8521
8522 bimagemgr_datagroup=apache
8523
8524 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8525 if test "${with_bimagemgr_datagroup+set}" = set; then
8526   withval="$with_bimagemgr_datagroup"
8527
8528        if test "x$withval" != "xno" ; then
8529            bimagemgr_datagroup=$withval
8530        fi
8531
8532
8533 fi;
8534
8535
8536
8537
8538
8539
8540
8541
8542 #
8543 # Handle users and groups for each daemon
8544 #
8545 dir_user=
8546
8547 # Check whether --with-dir_user or --without-dir_user was given.
8548 if test "${with_dir_user+set}" = set; then
8549   withval="$with_dir_user"
8550
8551         if test "x$withval" != "x" ; then
8552              dir_user=$withval
8553         fi
8554
8555
8556 fi;
8557
8558 dir_group=
8559
8560 # Check whether --with-dir_group or --without-dir_group was given.
8561 if test "${with_dir_group+set}" = set; then
8562   withval="$with_dir_group"
8563
8564         if test "x$withval" != "x" ; then
8565              dir_group=$withval
8566         fi
8567
8568
8569 fi;
8570
8571 sd_user=
8572
8573 # Check whether --with-sd_user or --without-sd_user was given.
8574 if test "${with_sd_user+set}" = set; then
8575   withval="$with_sd_user"
8576
8577         if test "x$withval" != "x" ; then
8578              sd_user=$withval
8579         fi
8580
8581
8582 fi;
8583
8584 sd_group=
8585
8586 # Check whether --with-sd_group or --without-sd_group was given.
8587 if test "${with_sd_group+set}" = set; then
8588   withval="$with_sd_group"
8589
8590         if test "x$withval" != "x" ; then
8591              sd_group=$withval
8592         fi
8593
8594
8595 fi;
8596
8597 fd_user=
8598
8599 # Check whether --with-fd_user or --without-fd_user was given.
8600 if test "${with_fd_user+set}" = set; then
8601   withval="$with_fd_user"
8602
8603         if test "x$withval" != "x" ; then
8604              fd_user=$withval
8605         fi
8606
8607
8608 fi;
8609
8610 fd_group=
8611
8612 # Check whether --with-fd_group or --without-fd_group was given.
8613 if test "${with_fd_group+set}" = set; then
8614   withval="$with_fd_group"
8615
8616         if test "x$withval" != "x" ; then
8617              fd_group=$withval
8618         fi
8619
8620
8621 fi;
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633 #
8634 # allow setting default executable permissions
8635 #
8636 SBINPERM=0754
8637
8638 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8639 if test "${with_sbin_perm+set}" = set; then
8640   withval="$with_sbin_perm"
8641
8642         if test "x$withval" != "x" ; then
8643             SBINPERM=$withval
8644         fi
8645
8646
8647 fi;
8648
8649
8650
8651 # ------------------------------------------------
8652 # Bacula check for various SQL database engines
8653 # ------------------------------------------------
8654
8655 db_found=no
8656 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8657 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8658
8659 # Check whether --with-postgresql or --without-postgresql was given.
8660 if test "${with_postgresql+set}" = set; then
8661   withval="$with_postgresql"
8662
8663   if test "$withval" != "no"; then
8664       if test "$db_found" = "yes"; then
8665           echo "$as_me:$LINENO: result: error" >&5
8666 echo "${ECHO_T}error" >&6
8667           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8668 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8669    { (exit 1); exit 1; }; };
8670       fi
8671       if test "$withval" = "yes"; then
8672           if test -f /usr/local/include/libpq-fe.h; then
8673               POSTGRESQL_INCDIR=/usr/local/include
8674               POSTGRESQL_LIBDIR=/usr/local/lib
8675               POSTGRESQL_BINDIR=/usr/local/bin
8676           elif test -f /usr/include/libpq-fe.h; then
8677               POSTGRESQL_INCDIR=/usr/include
8678               POSTGRESQL_LIBDIR=/usr/lib
8679               POSTGRESQL_BINDIR=/usr/bin
8680           elif test -f /usr/include/pgsql/libpq-fe.h; then
8681               POSTGRESQL_INCDIR=/usr/include/pgsql
8682               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8683               POSTGRESQL_BINDIR=/usr/bin
8684           elif test -f /usr/include/postgresql/libpq-fe.h; then
8685               POSTGRESQL_INCDIR=/usr/include/postgresql
8686               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8687               POSTGRESQL_BINDIR=/usr/bin
8688           else
8689               echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8691               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8692 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8693    { (exit 1); exit 1; }; }
8694           fi
8695       elif test -f $withval/include/libpq-fe.h; then
8696           POSTGRESQL_INCDIR=$withval/include
8697           POSTGRESQL_LIBDIR=$withval/lib
8698           POSTGRESQL_BINDIR=$withval/bin
8699       elif test -f $withval/include/postgresql/libpq-fe.h; then
8700           POSTGRESQL_INCDIR=$withval/include/postgresql
8701           POSTGRESQL_LIBDIR=$withval/lib
8702           POSTGRESQL_BINDIR=$withval/bin
8703       else
8704           echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6
8706           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8707 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8708    { (exit 1); exit 1; }; }
8709       fi
8710       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8711       echo "$as_me:$LINENO: checking for crypt" >&5
8712 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8713 if test "${ac_cv_func_crypt+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716   cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8724 #define crypt innocuous_crypt
8725
8726 /* System header to define __stub macros and hopefully few prototypes,
8727     which can conflict with char crypt (); below.
8728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729     <limits.h> exists even on freestanding compilers.  */
8730
8731 #ifdef __STDC__
8732 # include <limits.h>
8733 #else
8734 # include <assert.h>
8735 #endif
8736
8737 #undef crypt
8738
8739 /* Override any gcc2 internal prototype to avoid an error.  */
8740 #ifdef __cplusplus
8741 extern "C"
8742 {
8743 #endif
8744 /* We use char because int might match the return type of a gcc2
8745    builtin and then its argument prototype would still apply.  */
8746 char crypt ();
8747 /* The GNU C library defines this for functions which it implements
8748     to always fail with ENOSYS.  Some functions are actually named
8749     something starting with __ and the normal name is an alias.  */
8750 #if defined (__stub_crypt) || defined (__stub___crypt)
8751 choke me
8752 #else
8753 char (*f) () = crypt;
8754 #endif
8755 #ifdef __cplusplus
8756 }
8757 #endif
8758
8759 int
8760 main ()
8761 {
8762 return f != crypt;
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769   (eval $ac_link) 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -z "$ac_c_werror_flag"
8777                          || test ! -s conftest.err'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; } &&
8783          { ac_try='test -s conftest$ac_exeext'
8784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785   (eval $ac_try) 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; }; then
8789   ac_cv_func_crypt=yes
8790 else
8791   echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 ac_cv_func_crypt=no
8795 fi
8796 rm -f conftest.err conftest.$ac_objext \
8797       conftest$ac_exeext conftest.$ac_ext
8798 fi
8799 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8800 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8801 if test $ac_cv_func_crypt = yes; then
8802   :
8803 else
8804   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8805 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8806 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   ac_check_lib_save_LIBS=$LIBS
8810 LIBS="-lcrypt  $LIBS"
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h.  */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h.  */
8817
8818 /* Override any gcc2 internal prototype to avoid an error.  */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 /* We use char because int might match the return type of a gcc2
8823    builtin and then its argument prototype would still apply.  */
8824 char crypt ();
8825 int
8826 main ()
8827 {
8828 crypt ();
8829   ;
8830   return 0;
8831 }
8832 _ACEOF
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835   (eval $ac_link) 2>conftest.er1
8836   ac_status=$?
8837   grep -v '^ *+' conftest.er1 >conftest.err
8838   rm -f conftest.er1
8839   cat conftest.err >&5
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); } &&
8842          { ac_try='test -z "$ac_c_werror_flag"
8843                          || test ! -s conftest.err'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; } &&
8849          { ac_try='test -s conftest$ac_exeext'
8850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851   (eval $ac_try) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   ac_cv_lib_crypt_crypt=yes
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 ac_cv_lib_crypt_crypt=no
8861 fi
8862 rm -f conftest.err conftest.$ac_objext \
8863       conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8865 fi
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8867 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8868 if test $ac_cv_lib_crypt_crypt = yes; then
8869   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8870 fi
8871
8872 fi
8873
8874       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8875       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8876       SQL_BINDIR=$POSTGRESQL_BINDIR
8877       cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_POSTGRESQL 1
8879 _ACEOF
8880
8881       echo "$as_me:$LINENO: result: yes" >&5
8882 echo "${ECHO_T}yes" >&6
8883       db_found=yes
8884       support_postgresql=yes
8885       db_name=PostgreSQL
8886       DB_NAME=postgresql
8887   else
8888       echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8890   fi
8891
8892 else
8893
8894   echo "$as_me:$LINENO: result: no" >&5
8895 echo "${ECHO_T}no" >&6
8896
8897 fi;
8898
8899
8900
8901
8902
8903
8904
8905 db_found=no
8906 echo "$as_me:$LINENO: checking for MySQL support" >&5
8907 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8908
8909 # Check whether --with-mysql or --without-mysql was given.
8910 if test "${with_mysql+set}" = set; then
8911   withval="$with_mysql"
8912
8913   if test "$withval" != "no"; then
8914         if test "$withval" = "yes"; then
8915                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8916                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8917                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8918                         MYSQL_BINDIR=/usr/local/mysql/bin
8919                 elif test -f /usr/include/mysql/mysql.h; then
8920                         MYSQL_INCDIR=/usr/include/mysql
8921                         MYSQL_LIBDIR=/usr/lib/mysql
8922                         MYSQL_BINDIR=/usr/bin
8923                 elif test -f /usr/include/mysql.h; then
8924                         MYSQL_INCDIR=/usr/include
8925                         MYSQL_LIBDIR=/usr/lib
8926                         MYSQL_BINDIR=/usr/bin
8927                 elif test -f /usr/local/include/mysql/mysql.h; then
8928                         MYSQL_INCDIR=/usr/local/include/mysql
8929                         MYSQL_LIBDIR=/usr/local/lib/mysql
8930                         MYSQL_BINDIR=/usr/local/bin
8931                 elif test -f /usr/local/include/mysql.h; then
8932                         MYSQL_INCDIR=/usr/local/include
8933                         MYSQL_LIBDIR=/usr/local/lib
8934                         MYSQL_BINDIR=/usr/local/bin
8935                 else
8936                    echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8938                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8939 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8940    { (exit 1); exit 1; }; }
8941                 fi
8942         else
8943                 if test -f $withval/include/mysql/mysql.h; then
8944                         MYSQL_INCDIR=$withval/include/mysql
8945                         MYSQL_LIBDIR=$withval/lib/mysql
8946                         MYSQL_BINDIR=$withval/bin
8947                 elif test -f $withval/include/mysql.h; then
8948                         MYSQL_INCDIR=$withval/include
8949                         MYSQL_LIBDIR=$withval/lib
8950                         MYSQL_BINDIR=$withval/bin
8951                 else
8952                    echo "$as_me:$LINENO: result: no" >&5
8953 echo "${ECHO_T}no" >&6
8954                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8955 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8956    { (exit 1); exit 1; }; }
8957                 fi
8958         fi
8959     SQL_INCLUDE=-I$MYSQL_INCDIR
8960     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8961        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8962        cat >>confdefs.h <<\_ACEOF
8963 #define HAVE_THREAD_SAFE_MYSQL 1
8964 _ACEOF
8965
8966     else
8967        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8968     fi
8969     SQL_BINDIR=$MYSQL_BINDIR
8970
8971     cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_MYSQL 1
8973 _ACEOF
8974
8975     echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8977     db_found=yes
8978     support_mysql=yes
8979     db_name=MySQL
8980     DB_NAME=mysql
8981
8982   else
8983         echo "$as_me:$LINENO: result: no" >&5
8984 echo "${ECHO_T}no" >&6
8985   fi
8986
8987
8988 fi;
8989
8990
8991 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8992 if test "${with_embedded_mysql+set}" = set; then
8993   withval="$with_embedded_mysql"
8994
8995   if test "$withval" != "no"; then
8996         if test "$withval" = "yes"; then
8997                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8998                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8999                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
9000                         MYSQL_BINDIR=/usr/local/mysql/bin
9001                 elif test -f /usr/include/mysql/mysql.h; then
9002                         MYSQL_INCDIR=/usr/include/mysql
9003                         MYSQL_LIBDIR=/usr/lib/mysql
9004                         MYSQL_BINDIR=/usr/bin
9005                 elif test -f /usr/include/mysql.h; then
9006                         MYSQL_INCDIR=/usr/include
9007                         MYSQL_LIBDIR=/usr/lib
9008                         MYSQL_BINDIR=/usr/bin
9009                 elif test -f /usr/local/include/mysql/mysql.h; then
9010                         MYSQL_INCDIR=/usr/local/include/mysql
9011                         MYSQL_LIBDIR=/usr/local/lib/mysql
9012                         MYSQL_BINDIR=/usr/local/bin
9013                 elif test -f /usr/local/include/mysql.h; then
9014                         MYSQL_INCDIR=/usr/local/include
9015                         MYSQL_LIBDIR=/usr/local/lib
9016                         MYSQL_BINDIR=/usr/local/bin
9017                 else
9018                    echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9021 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9022    { (exit 1); exit 1; }; }
9023                 fi
9024         else
9025                 if test -f $withval/include/mysql/mysql.h; then
9026                         MYSQL_INCDIR=$withval/include/mysql
9027                         MYSQL_LIBDIR=$withval/lib/mysql
9028                         MYSQL_BINDIR=$withval/bin
9029                 elif test -f $withval/include/mysql.h; then
9030                         MYSQL_INCDIR=$withval/include
9031                         MYSQL_LIBDIR=$withval/lib
9032                         MYSQL_BINDIR=$withval/bin
9033                 else
9034                    echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6
9036                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9037 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9038    { (exit 1); exit 1; }; }
9039                 fi
9040         fi
9041     SQL_INCLUDE=-I$MYSQL_INCDIR
9042     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9043     SQL_BINDIR=$MYSQL_BINDIR
9044
9045     cat >>confdefs.h <<\_ACEOF
9046 #define HAVE_MYSQL 1
9047 _ACEOF
9048
9049     cat >>confdefs.h <<\_ACEOF
9050 #define HAVE_EMBEDDED_MYSQL 1
9051 _ACEOF
9052
9053     echo "$as_me:$LINENO: result: yes" >&5
9054 echo "${ECHO_T}yes" >&6
9055     db_found=yes
9056     support_mysql=yes
9057     db_name=MySQL
9058     DB_NAME=mysql
9059
9060   else
9061         echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9063   fi
9064
9065
9066 fi;
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 db_found=no
9077 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9078 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9079
9080 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9081 if test "${with_sqlite3+set}" = set; then
9082   withval="$with_sqlite3"
9083
9084   if test "$withval" != "no"; then
9085      if test "$withval" = "yes"; then
9086         if test -f /usr/local/include/sqlite3.h; then
9087            SQLITE_INCDIR=/usr/local/include
9088            SQLITE_LIBDIR=/usr/local/lib
9089            SQLITE_BINDIR=/usr/local/bin
9090         elif test -f /usr/include/sqlite3.h; then
9091            SQLITE_INCDIR=/usr/include
9092            SQLITE_LIBDIR=/usr/lib
9093            SQLITE_BINDIR=/usr/bin
9094         elif test -f $prefix/include/sqlite3.h; then
9095            SQLITE_INCDIR=$prefix/include
9096            SQLITE_LIBDIR=$prefix/lib
9097            SQLITE_BINDIR=$prefix/bin
9098         else
9099            echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6
9101            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9102 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9103    { (exit 1); exit 1; }; }
9104         fi
9105      else
9106         if test -f $withval/sqlite3.h; then
9107            SQLITE_INCDIR=$withval
9108            SQLITE_LIBDIR=$withval
9109            SQLITE_BINDIR=$withval
9110         elif test -f $withval/include/sqlite3.h; then
9111            SQLITE_INCDIR=$withval/include
9112            SQLITE_LIBDIR=$withval/lib
9113            SQLITE_BINDIR=$withval/bin
9114         else
9115            echo "$as_me:$LINENO: result: no" >&5
9116 echo "${ECHO_T}no" >&6
9117            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9118 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9119    { (exit 1); exit 1; }; }
9120         fi
9121      fi
9122      SQL_INCLUDE=-I$SQLITE_INCDIR
9123      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9124      SQL_BINDIR=$SQLITE_BINDIR
9125
9126      cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_SQLITE3 1
9128 _ACEOF
9129
9130      echo "$as_me:$LINENO: result: yes" >&5
9131 echo "${ECHO_T}yes" >&6
9132      db_found=yes
9133      support_sqlite3=yes
9134      db_name=SQLite3
9135      DB_NAME=sqlite3
9136
9137   else
9138      echo "$as_me:$LINENO: result: no" >&5
9139 echo "${ECHO_T}no" >&6
9140   fi
9141
9142 else
9143
9144   echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6
9146
9147 fi;
9148
9149
9150
9151
9152
9153
9154
9155 db_found=no
9156 echo "$as_me:$LINENO: checking for SQLite support" >&5
9157 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9158
9159 # Check whether --with-sqlite or --without-sqlite was given.
9160 if test "${with_sqlite+set}" = set; then
9161   withval="$with_sqlite"
9162
9163   if test "$withval" != "no"; then
9164      if test "$withval" = "yes"; then
9165         if test -f /usr/local/include/sqlite.h; then
9166            SQLITE_INCDIR=/usr/local/include
9167            SQLITE_LIBDIR=/usr/local/lib
9168            SQLITE_BINDIR=/usr/local/bin
9169         elif test -f /usr/include/sqlite.h; then
9170            SQLITE_INCDIR=/usr/include
9171            SQLITE_LIBDIR=/usr/lib
9172            SQLITE_BINDIR=/usr/bin
9173         elif test -f $prefix/include/sqlite.h; then
9174            SQLITE_INCDIR=$prefix/include
9175            SQLITE_LIBDIR=$prefix/lib
9176            SQLITE_BINDIR=$prefix/bin
9177         else
9178            echo "$as_me:$LINENO: result: no" >&5
9179 echo "${ECHO_T}no" >&6
9180            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9181 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9182    { (exit 1); exit 1; }; }
9183         fi
9184      else
9185         if test -f $withval/sqlite.h; then
9186            SQLITE_INCDIR=$withval
9187            SQLITE_LIBDIR=$withval
9188            SQLITE_BINDIR=$withval
9189         elif test -f $withval/include/sqlite.h; then
9190            SQLITE_INCDIR=$withval/include
9191            SQLITE_LIBDIR=$withval/lib
9192            SQLITE_BINDIR=$withval/bin
9193         else
9194            echo "$as_me:$LINENO: result: no" >&5
9195 echo "${ECHO_T}no" >&6
9196            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9197 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9198    { (exit 1); exit 1; }; }
9199         fi
9200      fi
9201      SQL_INCLUDE=-I$SQLITE_INCDIR
9202      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9203      SQL_BINDIR=$SQLITE_BINDIR
9204
9205      cat >>confdefs.h <<\_ACEOF
9206 #define HAVE_SQLITE 1
9207 _ACEOF
9208
9209      echo "$as_me:$LINENO: result: yes" >&5
9210 echo "${ECHO_T}yes" >&6
9211      db_found=yes
9212      support_sqlite=yes
9213      db_name=SQLite
9214      DB_NAME=sqlite
9215
9216   else
9217      echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6
9219   fi
9220
9221 else
9222
9223   echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6
9225
9226 fi;
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 cat >>confdefs.h <<\_ACEOF
9237 #define PROTOTYPES 1
9238 _ACEOF
9239
9240
9241 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9242     if test -z "$CCOPTS"; then
9243         CCOPTS='-g -O2 -Wall'
9244     fi
9245     CFLAGS="$CCOPTS"
9246 fi
9247
9248
9249
9250
9251 largefile_support="no"
9252
9253    # Check whether --enable-largefile or --disable-largefile was given.
9254 if test "${enable_largefile+set}" = set; then
9255   enableval="$enable_largefile"
9256
9257 fi;
9258    if test "$enable_largefile" != no; then
9259      if test -n "$ac_tool_prefix"; then
9260   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9261 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9262 echo "$as_me:$LINENO: checking for $ac_word" >&5
9263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9264 if test "${ac_cv_prog_GETCONF+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   if test -n "$GETCONF"; then
9268   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273   IFS=$as_save_IFS
9274   test -z "$as_dir" && as_dir=.
9275   for ac_exec_ext in '' $ac_executable_extensions; do
9276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279     break 2
9280   fi
9281 done
9282 done
9283
9284 fi
9285 fi
9286 GETCONF=$ac_cv_prog_GETCONF
9287 if test -n "$GETCONF"; then
9288   echo "$as_me:$LINENO: result: $GETCONF" >&5
9289 echo "${ECHO_T}$GETCONF" >&6
9290 else
9291   echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6
9293 fi
9294
9295 fi
9296 if test -z "$ac_cv_prog_GETCONF"; then
9297   ac_ct_GETCONF=$GETCONF
9298   # Extract the first word of "getconf", so it can be a program name with args.
9299 set dummy getconf; ac_word=$2
9300 echo "$as_me:$LINENO: checking for $ac_word" >&5
9301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9302 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9303   echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305   if test -n "$ac_ct_GETCONF"; then
9306   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9307 else
9308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 for as_dir in $PATH
9310 do
9311   IFS=$as_save_IFS
9312   test -z "$as_dir" && as_dir=.
9313   for ac_exec_ext in '' $ac_executable_extensions; do
9314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9315     ac_cv_prog_ac_ct_GETCONF="getconf"
9316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9317     break 2
9318   fi
9319 done
9320 done
9321
9322 fi
9323 fi
9324 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9325 if test -n "$ac_ct_GETCONF"; then
9326   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9327 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9328 else
9329   echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6
9331 fi
9332
9333   GETCONF=$ac_ct_GETCONF
9334 else
9335   GETCONF="$ac_cv_prog_GETCONF"
9336 fi
9337
9338      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9339 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9340 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9341   echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9344         ac_cv_sys_largefile_CFLAGS=no
9345         case "$host_os" in
9346            # IRIX 6.2 and later require cc -n32.
9347            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9348              if test "$GCC" != yes; then
9349                ac_cv_sys_largefile_CFLAGS=-n32
9350              fi
9351              ac_save_CC="$CC"
9352              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9353              cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359
9360 int
9361 main ()
9362 {
9363
9364   ;
9365   return 0;
9366 }
9367 _ACEOF
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370   (eval $ac_link) 2>conftest.er1
9371   ac_status=$?
9372   grep -v '^ *+' conftest.er1 >conftest.err
9373   rm -f conftest.er1
9374   cat conftest.err >&5
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); } &&
9377          { ac_try='test -z "$ac_c_werror_flag"
9378                          || test ! -s conftest.err'
9379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380   (eval $ac_try) 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); }; } &&
9384          { ac_try='test -s conftest$ac_exeext'
9385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386   (eval $ac_try) 2>&5
9387   ac_status=$?
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); }; }; then
9390   :
9391 else
9392   echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 ac_cv_sys_largefile_CFLAGS=no
9396 fi
9397 rm -f conftest.err conftest.$ac_objext \
9398       conftest$ac_exeext conftest.$ac_ext
9399              CC="$ac_save_CC"
9400            esac
9401       }
9402 fi
9403 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9404 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9405      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9406 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9407 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9408   echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9411         ac_cv_sys_largefile_LDFLAGS=no
9412
9413       }
9414 fi
9415 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9416 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9417      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9418 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9419 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9423         ac_cv_sys_largefile_LIBS=no
9424
9425       }
9426 fi
9427 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9428 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9429
9430      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9431        case "$ac_flag" in
9432        no) ;;
9433        -D_FILE_OFFSET_BITS=*) ;;
9434        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9435        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9436        -D?* | -I?*)
9437          case "$ac_flag" in
9438    no) ;;
9439    ?*)
9440      case "$CPPFLAGS" in
9441      '') CPPFLAGS="$ac_flag" ;;
9442      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9443      esac ;;
9444    esac ;;
9445        *)
9446          case "$ac_flag" in
9447    no) ;;
9448    ?*)
9449      case "$CFLAGS" in
9450      '') CFLAGS="$ac_flag" ;;
9451      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9452      esac ;;
9453    esac ;;
9454        esac
9455      done
9456      case "$ac_cv_sys_largefile_LDFLAGS" in
9457    no) ;;
9458    ?*)
9459      case "$LDFLAGS" in
9460      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9461      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9462      esac ;;
9463    esac
9464      case "$ac_cv_sys_largefile_LIBS" in
9465    no) ;;
9466    ?*)
9467      case "$LIBS" in
9468      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9469      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9470      esac ;;
9471    esac
9472      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9473 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9474 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   ac_cv_sys_file_offset_bits=no
9478       ac_cv_sys_file_offset_bits=64
9479       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9480         case "$ac_flag" in
9481         -D_FILE_OFFSET_BITS)
9482           ac_cv_sys_file_offset_bits=1 ;;
9483         -D_FILE_OFFSET_BITS=*)
9484           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9485         esac
9486       done
9487
9488 fi
9489 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9490 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9491    if test "$ac_cv_sys_file_offset_bits" != no; then
9492
9493 cat >>confdefs.h <<_ACEOF
9494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9495 _ACEOF
9496
9497    fi
9498      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9499 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9500 if test "${ac_cv_sys_largefile_source+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503   ac_cv_sys_largefile_source=no
9504       ac_cv_sys_largefile_source=1
9505       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9506         case "$ac_flag" in
9507         -D_LARGEFILE_SOURCE)
9508           ac_cv_sys_largefile_source=1 ;;
9509         -D_LARGEFILE_SOURCE=*)
9510           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9511         esac
9512       done
9513
9514 fi
9515 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9516 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9517    if test "$ac_cv_sys_largefile_source" != no; then
9518
9519 cat >>confdefs.h <<_ACEOF
9520 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9521 _ACEOF
9522
9523    fi
9524      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9525 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9526 if test "${ac_cv_sys_large_files+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529   ac_cv_sys_large_files=no
9530       ac_cv_sys_large_files=1
9531       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9532         case "$ac_flag" in
9533         -D_LARGE_FILES)
9534           ac_cv_sys_large_files=1 ;;
9535         -D_LARGE_FILES=*)
9536           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9537         esac
9538       done
9539
9540 fi
9541 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9542 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9543    if test "$ac_cv_sys_large_files" != no; then
9544
9545 cat >>confdefs.h <<_ACEOF
9546 #define _LARGE_FILES $ac_cv_sys_large_files
9547 _ACEOF
9548
9549    fi
9550    fi
9551
9552
9553
9554 echo "$as_me:$LINENO: checking for X" >&5
9555 echo $ECHO_N "checking for X... $ECHO_C" >&6
9556
9557
9558 # Check whether --with-x or --without-x was given.
9559 if test "${with_x+set}" = set; then
9560   withval="$with_x"
9561
9562 fi;
9563 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9564 if test "x$with_x" = xno; then
9565   # The user explicitly disabled X.
9566   have_x=disabled
9567 else
9568   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9569     # Both variables are already set.
9570     have_x=yes
9571   else
9572     if test "${ac_cv_have_x+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   # One or both of the vars are not set, and there is no cached value.
9576 ac_x_includes=no ac_x_libraries=no
9577 rm -fr conftest.dir
9578 if mkdir conftest.dir; then
9579   cd conftest.dir
9580   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9581   cat >Imakefile <<'_ACEOF'
9582 acfindx:
9583         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9584 _ACEOF
9585   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9586     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9587     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9588     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9589     for ac_extension in a so sl; do
9590       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9591          test -f $ac_im_libdir/libX11.$ac_extension; then
9592         ac_im_usrlibdir=$ac_im_libdir; break
9593       fi
9594     done
9595     # Screen out bogus values from the imake configuration.  They are
9596     # bogus both because they are the default anyway, and because
9597     # using them would break gcc on systems where it needs fixed includes.
9598     case $ac_im_incroot in
9599         /usr/include) ;;
9600         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9601     esac
9602     case $ac_im_usrlibdir in
9603         /usr/lib | /lib) ;;
9604         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9605     esac
9606   fi
9607   cd ..
9608   rm -fr conftest.dir
9609 fi
9610
9611 # Standard set of common directories for X headers.
9612 # Check X11 before X11Rn because it is often a symlink to the current release.
9613 ac_x_header_dirs='
9614 /usr/X11/include
9615 /usr/X11R6/include
9616 /usr/X11R5/include
9617 /usr/X11R4/include
9618
9619 /usr/include/X11
9620 /usr/include/X11R6
9621 /usr/include/X11R5
9622 /usr/include/X11R4
9623
9624 /usr/local/X11/include
9625 /usr/local/X11R6/include
9626 /usr/local/X11R5/include
9627 /usr/local/X11R4/include
9628
9629 /usr/local/include/X11
9630 /usr/local/include/X11R6
9631 /usr/local/include/X11R5
9632 /usr/local/include/X11R4
9633
9634 /usr/X386/include
9635 /usr/x386/include
9636 /usr/XFree86/include/X11
9637
9638 /usr/include
9639 /usr/local/include
9640 /usr/unsupported/include
9641 /usr/athena/include
9642 /usr/local/x11r5/include
9643 /usr/lpp/Xamples/include
9644
9645 /usr/openwin/include
9646 /usr/openwin/share/include'
9647
9648 if test "$ac_x_includes" = no; then
9649   # Guess where to find include files, by looking for Intrinsic.h.
9650   # First, try using that file with no special directory specified.
9651   cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657 #include <X11/Intrinsic.h>
9658 _ACEOF
9659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } >/dev/null; then
9667   if test -s conftest.err; then
9668     ac_cpp_err=$ac_c_preproc_warn_flag
9669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9670   else
9671     ac_cpp_err=
9672   fi
9673 else
9674   ac_cpp_err=yes
9675 fi
9676 if test -z "$ac_cpp_err"; then
9677   # We can compile using X headers with no special include directory.
9678 ac_x_includes=
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683   for ac_dir in $ac_x_header_dirs; do
9684   if test -r "$ac_dir/X11/Intrinsic.h"; then
9685     ac_x_includes=$ac_dir
9686     break
9687   fi
9688 done
9689 fi
9690 rm -f conftest.err conftest.$ac_ext
9691 fi # $ac_x_includes = no
9692
9693 if test "$ac_x_libraries" = no; then
9694   # Check for the libraries.
9695   # See if we find them without any special options.
9696   # Don't add to $LIBS permanently.
9697   ac_save_LIBS=$LIBS
9698   LIBS="-lXt $LIBS"
9699   cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 #include <X11/Intrinsic.h>
9706 int
9707 main ()
9708 {
9709 XtMalloc (0)
9710   ;
9711   return 0;
9712 }
9713 _ACEOF
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716   (eval $ac_link) 2>conftest.er1
9717   ac_status=$?
9718   grep -v '^ *+' conftest.er1 >conftest.err
9719   rm -f conftest.er1
9720   cat conftest.err >&5
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } &&
9723          { ac_try='test -z "$ac_c_werror_flag"
9724                          || test ! -s conftest.err'
9725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726   (eval $ac_try) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); }; } &&
9730          { ac_try='test -s conftest$ac_exeext'
9731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732   (eval $ac_try) 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); }; }; then
9736   LIBS=$ac_save_LIBS
9737 # We can link X programs with no special library path.
9738 ac_x_libraries=
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 LIBS=$ac_save_LIBS
9744 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9745 do
9746   # Don't even attempt the hair of trying to link an X program!
9747   for ac_extension in a so sl; do
9748     if test -r $ac_dir/libXt.$ac_extension; then
9749       ac_x_libraries=$ac_dir
9750       break 2
9751     fi
9752   done
9753 done
9754 fi
9755 rm -f conftest.err conftest.$ac_objext \
9756       conftest$ac_exeext conftest.$ac_ext
9757 fi # $ac_x_libraries = no
9758
9759 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9760   # Didn't find X anywhere.  Cache the known absence of X.
9761   ac_cv_have_x="have_x=no"
9762 else
9763   # Record where we found X for the cache.
9764   ac_cv_have_x="have_x=yes \
9765                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9766 fi
9767 fi
9768
9769   fi
9770   eval "$ac_cv_have_x"
9771 fi # $with_x != no
9772
9773 if test "$have_x" != yes; then
9774   echo "$as_me:$LINENO: result: $have_x" >&5
9775 echo "${ECHO_T}$have_x" >&6
9776   no_x=yes
9777 else
9778   # If each of the values was on the command line, it overrides each guess.
9779   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9780   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9781   # Update the cache value to reflect the command line values.
9782   ac_cv_have_x="have_x=yes \
9783                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9784   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9785 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9786 fi
9787
9788 if test "$no_x" = yes; then
9789   # Not all programs may use this symbol, but it does not hurt to define it.
9790
9791 cat >>confdefs.h <<\_ACEOF
9792 #define X_DISPLAY_MISSING 1
9793 _ACEOF
9794
9795   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9796 else
9797   if test -n "$x_includes"; then
9798     X_CFLAGS="$X_CFLAGS -I$x_includes"
9799   fi
9800
9801   # It would also be nice to do this for all -L options, not just this one.
9802   if test -n "$x_libraries"; then
9803     X_LIBS="$X_LIBS -L$x_libraries"
9804     # For Solaris; some versions of Sun CC require a space after -R and
9805     # others require no space.  Words are not sufficient . . . .
9806     case `(uname -sr) 2>/dev/null` in
9807     "SunOS 5"*)
9808       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9809 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9810       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9811       cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817
9818 int
9819 main ()
9820 {
9821
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828   (eval $ac_link) 2>conftest.er1
9829   ac_status=$?
9830   grep -v '^ *+' conftest.er1 >conftest.err
9831   rm -f conftest.er1
9832   cat conftest.err >&5
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } &&
9835          { ac_try='test -z "$ac_c_werror_flag"
9836                          || test ! -s conftest.err'
9837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838   (eval $ac_try) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; } &&
9842          { ac_try='test -s conftest$ac_exeext'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; }; then
9848   ac_R_nospace=yes
9849 else
9850   echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ac_R_nospace=no
9854 fi
9855 rm -f conftest.err conftest.$ac_objext \
9856       conftest$ac_exeext conftest.$ac_ext
9857       if test $ac_R_nospace = yes; then
9858         echo "$as_me:$LINENO: result: no" >&5
9859 echo "${ECHO_T}no" >&6
9860         X_LIBS="$X_LIBS -R$x_libraries"
9861       else
9862         LIBS="$ac_xsave_LIBS -R $x_libraries"
9863         cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869
9870 int
9871 main ()
9872 {
9873
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880   (eval $ac_link) 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } &&
9887          { ac_try='test -z "$ac_c_werror_flag"
9888                          || test ! -s conftest.err'
9889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890   (eval $ac_try) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; } &&
9894          { ac_try='test -s conftest$ac_exeext'
9895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896   (eval $ac_try) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; }; then
9900   ac_R_space=yes
9901 else
9902   echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9904
9905 ac_R_space=no
9906 fi
9907 rm -f conftest.err conftest.$ac_objext \
9908       conftest$ac_exeext conftest.$ac_ext
9909         if test $ac_R_space = yes; then
9910           echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6
9912           X_LIBS="$X_LIBS -R $x_libraries"
9913         else
9914           echo "$as_me:$LINENO: result: neither works" >&5
9915 echo "${ECHO_T}neither works" >&6
9916         fi
9917       fi
9918       LIBS=$ac_xsave_LIBS
9919     esac
9920   fi
9921
9922   # Check for system-dependent libraries X programs must link with.
9923   # Do this before checking for the system-independent R6 libraries
9924   # (-lICE), since we may need -lsocket or whatever for X linking.
9925
9926   if test "$ISC" = yes; then
9927     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9928   else
9929     # Martyn Johnson says this is needed for Ultrix, if the X
9930     # libraries were built with DECnet support.  And Karl Berry says
9931     # the Alpha needs dnet_stub (dnet does not exist).
9932     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9933     cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939
9940 /* Override any gcc2 internal prototype to avoid an error.  */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 /* We use char because int might match the return type of a gcc2
9945    builtin and then its argument prototype would still apply.  */
9946 char XOpenDisplay ();
9947 int
9948 main ()
9949 {
9950 XOpenDisplay ();
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957   (eval $ac_link) 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } &&
9964          { ac_try='test -z "$ac_c_werror_flag"
9965                          || test ! -s conftest.err'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; } &&
9971          { ac_try='test -s conftest$ac_exeext'
9972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973   (eval $ac_try) 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); }; }; then
9977   :
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9983 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9984 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9985   echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987   ac_check_lib_save_LIBS=$LIBS
9988 LIBS="-ldnet  $LIBS"
9989 cat >conftest.$ac_ext <<_ACEOF
9990 /* confdefs.h.  */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h.  */
9995
9996 /* Override any gcc2 internal prototype to avoid an error.  */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 /* We use char because int might match the return type of a gcc2
10001    builtin and then its argument prototype would still apply.  */
10002 char dnet_ntoa ();
10003 int
10004 main ()
10005 {
10006 dnet_ntoa ();
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013   (eval $ac_link) 2>conftest.er1
10014   ac_status=$?
10015   grep -v '^ *+' conftest.er1 >conftest.err
10016   rm -f conftest.er1
10017   cat conftest.err >&5
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -z "$ac_c_werror_flag"
10021                          || test ! -s conftest.err'
10022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023   (eval $ac_try) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_cv_lib_dnet_dnet_ntoa=yes
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_cv_lib_dnet_dnet_ntoa=no
10039 fi
10040 rm -f conftest.err conftest.$ac_objext \
10041       conftest$ac_exeext conftest.$ac_ext
10042 LIBS=$ac_check_lib_save_LIBS
10043 fi
10044 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10045 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10046 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10047   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10048 fi
10049
10050     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10051       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10052 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10053 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-ldnet_stub  $LIBS"
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064
10065 /* Override any gcc2 internal prototype to avoid an error.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 /* We use char because int might match the return type of a gcc2
10070    builtin and then its argument prototype would still apply.  */
10071 char dnet_ntoa ();
10072 int
10073 main ()
10074 {
10075 dnet_ntoa ();
10076   ;
10077   return 0;
10078 }
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082   (eval $ac_link) 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag"
10090                          || test ! -s conftest.err'
10091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092   (eval $ac_try) 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; } &&
10096          { ac_try='test -s conftest$ac_exeext'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; }; then
10102   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10103 else
10104   echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_cv_lib_dnet_stub_dnet_ntoa=no
10108 fi
10109 rm -f conftest.err conftest.$ac_objext \
10110       conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10112 fi
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10114 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10115 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10116   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10117 fi
10118
10119     fi
10120 fi
10121 rm -f conftest.err conftest.$ac_objext \
10122       conftest$ac_exeext conftest.$ac_ext
10123     LIBS="$ac_xsave_LIBS"
10124
10125     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10126     # to get the SysV transport functions.
10127     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10128     # needs -lnsl.
10129     # The nsl library prevents programs from opening the X display
10130     # on Irix 5.2, according to T.E. Dickey.
10131     # The functions gethostbyname, getservbyname, and inet_addr are
10132     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10133     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10135 if test "${ac_cv_func_gethostbyname+set}" = set; then
10136   echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138   cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10146 #define gethostbyname innocuous_gethostbyname
10147
10148 /* System header to define __stub macros and hopefully few prototypes,
10149     which can conflict with char gethostbyname (); below.
10150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10151     <limits.h> exists even on freestanding compilers.  */
10152
10153 #ifdef __STDC__
10154 # include <limits.h>
10155 #else
10156 # include <assert.h>
10157 #endif
10158
10159 #undef gethostbyname
10160
10161 /* Override any gcc2 internal prototype to avoid an error.  */
10162 #ifdef __cplusplus
10163 extern "C"
10164 {
10165 #endif
10166 /* We use char because int might match the return type of a gcc2
10167    builtin and then its argument prototype would still apply.  */
10168 char gethostbyname ();
10169 /* The GNU C library defines this for functions which it implements
10170     to always fail with ENOSYS.  Some functions are actually named
10171     something starting with __ and the normal name is an alias.  */
10172 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10173 choke me
10174 #else
10175 char (*f) () = gethostbyname;
10176 #endif
10177 #ifdef __cplusplus
10178 }
10179 #endif
10180
10181 int
10182 main ()
10183 {
10184 return f != gethostbyname;
10185   ;
10186   return 0;
10187 }
10188 _ACEOF
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191   (eval $ac_link) 2>conftest.er1
10192   ac_status=$?
10193   grep -v '^ *+' conftest.er1 >conftest.err
10194   rm -f conftest.er1
10195   cat conftest.err >&5
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } &&
10198          { ac_try='test -z "$ac_c_werror_flag"
10199                          || test ! -s conftest.err'
10200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201   (eval $ac_try) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; } &&
10205          { ac_try='test -s conftest$ac_exeext'
10206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207   (eval $ac_try) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; }; then
10211   ac_cv_func_gethostbyname=yes
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 ac_cv_func_gethostbyname=no
10217 fi
10218 rm -f conftest.err conftest.$ac_objext \
10219       conftest$ac_exeext conftest.$ac_ext
10220 fi
10221 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10222 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10223
10224     if test $ac_cv_func_gethostbyname = no; then
10225       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10226 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10227 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-lnsl  $LIBS"
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238
10239 /* Override any gcc2 internal prototype to avoid an error.  */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 /* We use char because int might match the return type of a gcc2
10244    builtin and then its argument prototype would still apply.  */
10245 char gethostbyname ();
10246 int
10247 main ()
10248 {
10249 gethostbyname ();
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext conftest$ac_exeext
10255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256   (eval $ac_link) 2>conftest.er1
10257   ac_status=$?
10258   grep -v '^ *+' conftest.er1 >conftest.err
10259   rm -f conftest.er1
10260   cat conftest.err >&5
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } &&
10263          { ac_try='test -z "$ac_c_werror_flag"
10264                          || test ! -s conftest.err'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; } &&
10270          { ac_try='test -s conftest$ac_exeext'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; }; then
10276   ac_cv_lib_nsl_gethostbyname=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_lib_nsl_gethostbyname=no
10282 fi
10283 rm -f conftest.err conftest.$ac_objext \
10284       conftest$ac_exeext conftest.$ac_ext
10285 LIBS=$ac_check_lib_save_LIBS
10286 fi
10287 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10288 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10289 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10290   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10291 fi
10292
10293       if test $ac_cv_lib_nsl_gethostbyname = no; then
10294         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10295 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10296 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299   ac_check_lib_save_LIBS=$LIBS
10300 LIBS="-lbsd  $LIBS"
10301 cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h.  */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h.  */
10307
10308 /* Override any gcc2 internal prototype to avoid an error.  */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 /* We use char because int might match the return type of a gcc2
10313    builtin and then its argument prototype would still apply.  */
10314 char gethostbyname ();
10315 int
10316 main ()
10317 {
10318 gethostbyname ();
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325   (eval $ac_link) 2>conftest.er1
10326   ac_status=$?
10327   grep -v '^ *+' conftest.er1 >conftest.err
10328   rm -f conftest.er1
10329   cat conftest.err >&5
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } &&
10332          { ac_try='test -z "$ac_c_werror_flag"
10333                          || test ! -s conftest.err'
10334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335   (eval $ac_try) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; } &&
10339          { ac_try='test -s conftest$ac_exeext'
10340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341   (eval $ac_try) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; }; then
10345   ac_cv_lib_bsd_gethostbyname=yes
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 ac_cv_lib_bsd_gethostbyname=no
10351 fi
10352 rm -f conftest.err conftest.$ac_objext \
10353       conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10355 fi
10356 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10357 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10358 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10359   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10360 fi
10361
10362       fi
10363     fi
10364
10365     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10366     # socket/setsockopt and other routines are undefined under SCO ODT
10367     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10368     # on later versions), says Simon Leinen: it contains gethostby*
10369     # variants that don't use the name server (or something).  -lsocket
10370     # must be given before -lnsl if both are needed.  We assume that
10371     # if connect needs -lnsl, so does gethostbyname.
10372     echo "$as_me:$LINENO: checking for connect" >&5
10373 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10374 if test "${ac_cv_func_connect+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h.  */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h.  */
10383 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10385 #define connect innocuous_connect
10386
10387 /* System header to define __stub macros and hopefully few prototypes,
10388     which can conflict with char connect (); below.
10389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390     <limits.h> exists even on freestanding compilers.  */
10391
10392 #ifdef __STDC__
10393 # include <limits.h>
10394 #else
10395 # include <assert.h>
10396 #endif
10397
10398 #undef connect
10399
10400 /* Override any gcc2 internal prototype to avoid an error.  */
10401 #ifdef __cplusplus
10402 extern "C"
10403 {
10404 #endif
10405 /* We use char because int might match the return type of a gcc2
10406    builtin and then its argument prototype would still apply.  */
10407 char connect ();
10408 /* The GNU C library defines this for functions which it implements
10409     to always fail with ENOSYS.  Some functions are actually named
10410     something starting with __ and the normal name is an alias.  */
10411 #if defined (__stub_connect) || defined (__stub___connect)
10412 choke me
10413 #else
10414 char (*f) () = connect;
10415 #endif
10416 #ifdef __cplusplus
10417 }
10418 #endif
10419
10420 int
10421 main ()
10422 {
10423 return f != connect;
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430   (eval $ac_link) 2>conftest.er1
10431   ac_status=$?
10432   grep -v '^ *+' conftest.er1 >conftest.err
10433   rm -f conftest.er1
10434   cat conftest.err >&5
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); } &&
10437          { ac_try='test -z "$ac_c_werror_flag"
10438                          || test ! -s conftest.err'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; } &&
10444          { ac_try='test -s conftest$ac_exeext'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   ac_cv_func_connect=yes
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455 ac_cv_func_connect=no
10456 fi
10457 rm -f conftest.err conftest.$ac_objext \
10458       conftest$ac_exeext conftest.$ac_ext
10459 fi
10460 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10461 echo "${ECHO_T}$ac_cv_func_connect" >&6
10462
10463     if test $ac_cv_func_connect = no; then
10464       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10465 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10466 if test "${ac_cv_lib_socket_connect+set}" = set; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   ac_check_lib_save_LIBS=$LIBS
10470 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477
10478 /* Override any gcc2 internal prototype to avoid an error.  */
10479 #ifdef __cplusplus
10480 extern "C"
10481 #endif
10482 /* We use char because int might match the return type of a gcc2
10483    builtin and then its argument prototype would still apply.  */
10484 char connect ();
10485 int
10486 main ()
10487 {
10488 connect ();
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495   (eval $ac_link) 2>conftest.er1
10496   ac_status=$?
10497   grep -v '^ *+' conftest.er1 >conftest.err
10498   rm -f conftest.er1
10499   cat conftest.err >&5
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); } &&
10502          { ac_try='test -z "$ac_c_werror_flag"
10503                          || test ! -s conftest.err'
10504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505   (eval $ac_try) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); }; } &&
10509          { ac_try='test -s conftest$ac_exeext'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; }; then
10515   ac_cv_lib_socket_connect=yes
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_lib_socket_connect=no
10521 fi
10522 rm -f conftest.err conftest.$ac_objext \
10523       conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10525 fi
10526 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10527 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10528 if test $ac_cv_lib_socket_connect = yes; then
10529   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10530 fi
10531
10532     fi
10533
10534     # Guillermo Gomez says -lposix is necessary on A/UX.
10535     echo "$as_me:$LINENO: checking for remove" >&5
10536 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10537 if test "${ac_cv_func_remove+set}" = set; then
10538   echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540   cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10548 #define remove innocuous_remove
10549
10550 /* System header to define __stub macros and hopefully few prototypes,
10551     which can conflict with char remove (); below.
10552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10553     <limits.h> exists even on freestanding compilers.  */
10554
10555 #ifdef __STDC__
10556 # include <limits.h>
10557 #else
10558 # include <assert.h>
10559 #endif
10560
10561 #undef remove
10562
10563 /* Override any gcc2 internal prototype to avoid an error.  */
10564 #ifdef __cplusplus
10565 extern "C"
10566 {
10567 #endif
10568 /* We use char because int might match the return type of a gcc2
10569    builtin and then its argument prototype would still apply.  */
10570 char remove ();
10571 /* The GNU C library defines this for functions which it implements
10572     to always fail with ENOSYS.  Some functions are actually named
10573     something starting with __ and the normal name is an alias.  */
10574 #if defined (__stub_remove) || defined (__stub___remove)
10575 choke me
10576 #else
10577 char (*f) () = remove;
10578 #endif
10579 #ifdef __cplusplus
10580 }
10581 #endif
10582
10583 int
10584 main ()
10585 {
10586 return f != remove;
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593   (eval $ac_link) 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } &&
10600          { ac_try='test -z "$ac_c_werror_flag"
10601                          || test ! -s conftest.err'
10602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603   (eval $ac_try) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); }; } &&
10607          { ac_try='test -s conftest$ac_exeext'
10608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609   (eval $ac_try) 2>&5
10610   ac_status=$?
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); }; }; then
10613   ac_cv_func_remove=yes
10614 else
10615   echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10617
10618 ac_cv_func_remove=no
10619 fi
10620 rm -f conftest.err conftest.$ac_objext \
10621       conftest$ac_exeext conftest.$ac_ext
10622 fi
10623 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10624 echo "${ECHO_T}$ac_cv_func_remove" >&6
10625
10626     if test $ac_cv_func_remove = no; then
10627       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10628 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10629 if test "${ac_cv_lib_posix_remove+set}" = set; then
10630   echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632   ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lposix  $LIBS"
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h.  */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h.  */
10640
10641 /* Override any gcc2 internal prototype to avoid an error.  */
10642 #ifdef __cplusplus
10643 extern "C"
10644 #endif
10645 /* We use char because int might match the return type of a gcc2
10646    builtin and then its argument prototype would still apply.  */
10647 char remove ();
10648 int
10649 main ()
10650 {
10651 remove ();
10652   ;
10653   return 0;
10654 }
10655 _ACEOF
10656 rm -f conftest.$ac_objext conftest$ac_exeext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10658   (eval $ac_link) 2>conftest.er1
10659   ac_status=$?
10660   grep -v '^ *+' conftest.er1 >conftest.err
10661   rm -f conftest.er1
10662   cat conftest.err >&5
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } &&
10665          { ac_try='test -z "$ac_c_werror_flag"
10666                          || test ! -s conftest.err'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; } &&
10672          { ac_try='test -s conftest$ac_exeext'
10673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674   (eval $ac_try) 2>&5
10675   ac_status=$?
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); }; }; then
10678   ac_cv_lib_posix_remove=yes
10679 else
10680   echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10682
10683 ac_cv_lib_posix_remove=no
10684 fi
10685 rm -f conftest.err conftest.$ac_objext \
10686       conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10690 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10691 if test $ac_cv_lib_posix_remove = yes; then
10692   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10693 fi
10694
10695     fi
10696
10697     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10698     echo "$as_me:$LINENO: checking for shmat" >&5
10699 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10700 if test "${ac_cv_func_shmat+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10711 #define shmat innocuous_shmat
10712
10713 /* System header to define __stub macros and hopefully few prototypes,
10714     which can conflict with char shmat (); below.
10715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716     <limits.h> exists even on freestanding compilers.  */
10717
10718 #ifdef __STDC__
10719 # include <limits.h>
10720 #else
10721 # include <assert.h>
10722 #endif
10723
10724 #undef shmat
10725
10726 /* Override any gcc2 internal prototype to avoid an error.  */
10727 #ifdef __cplusplus
10728 extern "C"
10729 {
10730 #endif
10731 /* We use char because int might match the return type of a gcc2
10732    builtin and then its argument prototype would still apply.  */
10733 char shmat ();
10734 /* The GNU C library defines this for functions which it implements
10735     to always fail with ENOSYS.  Some functions are actually named
10736     something starting with __ and the normal name is an alias.  */
10737 #if defined (__stub_shmat) || defined (__stub___shmat)
10738 choke me
10739 #else
10740 char (*f) () = shmat;
10741 #endif
10742 #ifdef __cplusplus
10743 }
10744 #endif
10745
10746 int
10747 main ()
10748 {
10749 return f != shmat;
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756   (eval $ac_link) 2>conftest.er1
10757   ac_status=$?
10758   grep -v '^ *+' conftest.er1 >conftest.err
10759   rm -f conftest.er1
10760   cat conftest.err >&5
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } &&
10763          { ac_try='test -z "$ac_c_werror_flag"
10764                          || test ! -s conftest.err'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; } &&
10770          { ac_try='test -s conftest$ac_exeext'
10771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772   (eval $ac_try) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; }; then
10776   ac_cv_func_shmat=yes
10777 else
10778   echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 ac_cv_func_shmat=no
10782 fi
10783 rm -f conftest.err conftest.$ac_objext \
10784       conftest$ac_exeext conftest.$ac_ext
10785 fi
10786 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10787 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10788
10789     if test $ac_cv_func_shmat = no; then
10790       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10791 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10792 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lipc  $LIBS"
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803
10804 /* Override any gcc2 internal prototype to avoid an error.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 /* We use char because int might match the return type of a gcc2
10809    builtin and then its argument prototype would still apply.  */
10810 char shmat ();
10811 int
10812 main ()
10813 {
10814 shmat ();
10815   ;
10816   return 0;
10817 }
10818 _ACEOF
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821   (eval $ac_link) 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -z "$ac_c_werror_flag"
10829                          || test ! -s conftest.err'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; } &&
10835          { ac_try='test -s conftest$ac_exeext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   ac_cv_lib_ipc_shmat=yes
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 ac_cv_lib_ipc_shmat=no
10847 fi
10848 rm -f conftest.err conftest.$ac_objext \
10849       conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10853 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10854 if test $ac_cv_lib_ipc_shmat = yes; then
10855   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10856 fi
10857
10858     fi
10859   fi
10860
10861   # Check for libraries that X11R6 Xt/Xaw programs need.
10862   ac_save_LDFLAGS=$LDFLAGS
10863   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10864   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10865   # check for ICE first), but we must link in the order -lSM -lICE or
10866   # we get undefined symbols.  So assume we have SM if we have ICE.
10867   # These have to be linked with before -lX11, unlike the other
10868   # libraries we check for below, so use a different variable.
10869   # John Interrante, Karl Berry
10870   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10871 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10872 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   ac_check_lib_save_LIBS=$LIBS
10876 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883
10884 /* Override any gcc2 internal prototype to avoid an error.  */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889    builtin and then its argument prototype would still apply.  */
10890 char IceConnectionNumber ();
10891 int
10892 main ()
10893 {
10894 IceConnectionNumber ();
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10901   (eval $ac_link) 2>conftest.er1
10902   ac_status=$?
10903   grep -v '^ *+' conftest.er1 >conftest.err
10904   rm -f conftest.er1
10905   cat conftest.err >&5
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); } &&
10908          { ac_try='test -z "$ac_c_werror_flag"
10909                          || test ! -s conftest.err'
10910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911   (eval $ac_try) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; } &&
10915          { ac_try='test -s conftest$ac_exeext'
10916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917   (eval $ac_try) 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   ac_cv_lib_ICE_IceConnectionNumber=yes
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926 ac_cv_lib_ICE_IceConnectionNumber=no
10927 fi
10928 rm -f conftest.err conftest.$ac_objext \
10929       conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10933 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10934 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10935   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10936 fi
10937
10938   LDFLAGS=$ac_save_LDFLAGS
10939
10940 fi
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970 for ac_header in \
10971         assert.h \
10972         fcntl.h \
10973         grp.h \
10974         pwd.h \
10975         libc.h \
10976         limits.h \
10977         stdarg.h \
10978         stdlib.h \
10979         stdint.h \
10980         string.h \
10981         termios.h \
10982         termcap.h \
10983         term.h \
10984         unistd.h \
10985         sys/bitypes.h \
10986         sys/byteorder.h \
10987         sys/ioctl.h \
10988         sys/select.h \
10989         sys/sockio.h \
10990         sys/time.h \
10991         sys/socket.h \
10992         arpa/nameser.h \
10993         resolv.h \
10994         mtio.h \
10995         sys/mtio.h \
10996         sys/tape.h \
10997         regex.h \
10998
10999 do
11000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11002   echo "$as_me:$LINENO: checking for $ac_header" >&5
11003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 fi
11007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11009 else
11010   # Is the header compilable?
11011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019 $ac_includes_default
11020 #include <$ac_header>
11021 _ACEOF
11022 rm -f conftest.$ac_objext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11024   (eval $ac_compile) 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } &&
11031          { ac_try='test -z "$ac_c_werror_flag"
11032                          || test ! -s conftest.err'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; } &&
11038          { ac_try='test -s conftest.$ac_objext'
11039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040   (eval $ac_try) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; }; then
11044   ac_header_compiler=yes
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049 ac_header_compiler=no
11050 fi
11051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11053 echo "${ECHO_T}$ac_header_compiler" >&6
11054
11055 # Is the header present?
11056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h.  */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h.  */
11064 #include <$ac_header>
11065 _ACEOF
11066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } >/dev/null; then
11074   if test -s conftest.err; then
11075     ac_cpp_err=$ac_c_preproc_warn_flag
11076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11077   else
11078     ac_cpp_err=
11079   fi
11080 else
11081   ac_cpp_err=yes
11082 fi
11083 if test -z "$ac_cpp_err"; then
11084   ac_header_preproc=yes
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089   ac_header_preproc=no
11090 fi
11091 rm -f conftest.err conftest.$ac_ext
11092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11093 echo "${ECHO_T}$ac_header_preproc" >&6
11094
11095 # So?  What about this header?
11096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11097   yes:no: )
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11102     ac_header_preproc=yes
11103     ;;
11104   no:yes:* )
11105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11117     (
11118       cat <<\_ASBOX
11119 ## ------------------------------------------ ##
11120 ## Report this to the AC_PACKAGE_NAME lists.  ##
11121 ## ------------------------------------------ ##
11122 _ASBOX
11123     ) |
11124       sed "s/^/$as_me: WARNING:     /" >&2
11125     ;;
11126 esac
11127 echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   eval "$as_ac_Header=\$ac_header_preproc"
11133 fi
11134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11136
11137 fi
11138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11139   cat >>confdefs.h <<_ACEOF
11140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11141 _ACEOF
11142
11143 fi
11144
11145 done
11146
11147 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11149 if test "${ac_cv_header_stdc+set}" = set; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h.  */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h.  */
11158 #include <stdlib.h>
11159 #include <stdarg.h>
11160 #include <string.h>
11161 #include <float.h>
11162
11163 int
11164 main ()
11165 {
11166
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11173   (eval $ac_compile) 2>conftest.er1
11174   ac_status=$?
11175   grep -v '^ *+' conftest.er1 >conftest.err
11176   rm -f conftest.er1
11177   cat conftest.err >&5
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } &&
11180          { ac_try='test -z "$ac_c_werror_flag"
11181                          || test ! -s conftest.err'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; } &&
11187          { ac_try='test -s conftest.$ac_objext'
11188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189   (eval $ac_try) 2>&5
11190   ac_status=$?
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); }; }; then
11193   ac_cv_header_stdc=yes
11194 else
11195   echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11197
11198 ac_cv_header_stdc=no
11199 fi
11200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11201
11202 if test $ac_cv_header_stdc = yes; then
11203   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11204   cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 #include <string.h>
11211
11212 _ACEOF
11213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11214   $EGREP "memchr" >/dev/null 2>&1; then
11215   :
11216 else
11217   ac_cv_header_stdc=no
11218 fi
11219 rm -f conftest*
11220
11221 fi
11222
11223 if test $ac_cv_header_stdc = yes; then
11224   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11225   cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h.  */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h.  */
11231 #include <stdlib.h>
11232
11233 _ACEOF
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235   $EGREP "free" >/dev/null 2>&1; then
11236   :
11237 else
11238   ac_cv_header_stdc=no
11239 fi
11240 rm -f conftest*
11241
11242 fi
11243
11244 if test $ac_cv_header_stdc = yes; then
11245   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11246   if test "$cross_compiling" = yes; then
11247   :
11248 else
11249   cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 #include <ctype.h>
11256 #if ((' ' & 0x0FF) == 0x020)
11257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11259 #else
11260 # define ISLOWER(c) \
11261                    (('a' <= (c) && (c) <= 'i') \
11262                      || ('j' <= (c) && (c) <= 'r') \
11263                      || ('s' <= (c) && (c) <= 'z'))
11264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11265 #endif
11266
11267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11268 int
11269 main ()
11270 {
11271   int i;
11272   for (i = 0; i < 256; i++)
11273     if (XOR (islower (i), ISLOWER (i))
11274         || toupper (i) != TOUPPER (i))
11275       exit(2);
11276   exit (0);
11277 }
11278 _ACEOF
11279 rm -f conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281   (eval $ac_link) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   :
11291 else
11292   echo "$as_me: program exited with status $ac_status" >&5
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ( exit $ac_status )
11297 ac_cv_header_stdc=no
11298 fi
11299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11300 fi
11301 fi
11302 fi
11303 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11304 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11305 if test $ac_cv_header_stdc = yes; then
11306
11307 cat >>confdefs.h <<\_ACEOF
11308 #define STDC_HEADERS 1
11309 _ACEOF
11310
11311 fi
11312
11313 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11314 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11315 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 #include <sys/types.h>
11325 int
11326 main ()
11327 {
11328 return makedev(0, 0);
11329   ;
11330   return 0;
11331 }
11332 _ACEOF
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335   (eval $ac_link) 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -z "$ac_c_werror_flag"
11343                          || test ! -s conftest.err'
11344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345   (eval $ac_try) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; } &&
11349          { ac_try='test -s conftest$ac_exeext'
11350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351   (eval $ac_try) 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; }; then
11355   ac_cv_header_sys_types_h_makedev=yes
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360 ac_cv_header_sys_types_h_makedev=no
11361 fi
11362 rm -f conftest.err conftest.$ac_objext \
11363       conftest$ac_exeext conftest.$ac_ext
11364
11365 fi
11366 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11367 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11368
11369 if test $ac_cv_header_sys_types_h_makedev = no; then
11370 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11371   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11372 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11373 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 fi
11376 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11377 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11378 else
11379   # Is the header compilable?
11380 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11381 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388 $ac_includes_default
11389 #include <sys/mkdev.h>
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393   (eval $ac_compile) 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_c_werror_flag"
11401                          || test ! -s conftest.err'
11402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403   (eval $ac_try) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   ac_header_compiler=yes
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 ac_header_compiler=no
11419 fi
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422 echo "${ECHO_T}$ac_header_compiler" >&6
11423
11424 # Is the header present?
11425 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11426 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <sys/mkdev.h>
11434 _ACEOF
11435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11437   ac_status=$?
11438   grep -v '^ *+' conftest.er1 >conftest.err
11439   rm -f conftest.er1
11440   cat conftest.err >&5
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); } >/dev/null; then
11443   if test -s conftest.err; then
11444     ac_cpp_err=$ac_c_preproc_warn_flag
11445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11446   else
11447     ac_cpp_err=
11448   fi
11449 else
11450   ac_cpp_err=yes
11451 fi
11452 if test -z "$ac_cpp_err"; then
11453   ac_header_preproc=yes
11454 else
11455   echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458   ac_header_preproc=no
11459 fi
11460 rm -f conftest.err conftest.$ac_ext
11461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11462 echo "${ECHO_T}$ac_header_preproc" >&6
11463
11464 # So?  What about this header?
11465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11466   yes:no: )
11467     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11468 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11469     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11470 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11471     ac_header_preproc=yes
11472     ;;
11473   no:yes:* )
11474     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11475 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11476     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11477 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11478     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11479 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11481 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11482     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11483 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11484     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11485 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11486     (
11487       cat <<\_ASBOX
11488 ## ------------------------------------------ ##
11489 ## Report this to the AC_PACKAGE_NAME lists.  ##
11490 ## ------------------------------------------ ##
11491 _ASBOX
11492     ) |
11493       sed "s/^/$as_me: WARNING:     /" >&2
11494     ;;
11495 esac
11496 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11497 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11498 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11502 fi
11503 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11504 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11505
11506 fi
11507 if test $ac_cv_header_sys_mkdev_h = yes; then
11508
11509 cat >>confdefs.h <<\_ACEOF
11510 #define MAJOR_IN_MKDEV 1
11511 _ACEOF
11512
11513 fi
11514
11515
11516
11517   if test $ac_cv_header_sys_mkdev_h = no; then
11518     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11519   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11520 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11521 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 fi
11524 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11525 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11526 else
11527   # Is the header compilable?
11528 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11529 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536 $ac_includes_default
11537 #include <sys/sysmacros.h>
11538 _ACEOF
11539 rm -f conftest.$ac_objext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11541   (eval $ac_compile) 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -z "$ac_c_werror_flag"
11549                          || test ! -s conftest.err'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; } &&
11555          { ac_try='test -s conftest.$ac_objext'
11556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   ac_header_compiler=yes
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566 ac_header_compiler=no
11567 fi
11568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570 echo "${ECHO_T}$ac_header_compiler" >&6
11571
11572 # Is the header present?
11573 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11574 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581 #include <sys/sysmacros.h>
11582 _ACEOF
11583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11585   ac_status=$?
11586   grep -v '^ *+' conftest.er1 >conftest.err
11587   rm -f conftest.er1
11588   cat conftest.err >&5
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); } >/dev/null; then
11591   if test -s conftest.err; then
11592     ac_cpp_err=$ac_c_preproc_warn_flag
11593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11594   else
11595     ac_cpp_err=
11596   fi
11597 else
11598   ac_cpp_err=yes
11599 fi
11600 if test -z "$ac_cpp_err"; then
11601   ac_header_preproc=yes
11602 else
11603   echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11605
11606   ac_header_preproc=no
11607 fi
11608 rm -f conftest.err conftest.$ac_ext
11609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11610 echo "${ECHO_T}$ac_header_preproc" >&6
11611
11612 # So?  What about this header?
11613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11614   yes:no: )
11615     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11616 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11618 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11619     ac_header_preproc=yes
11620     ;;
11621   no:yes:* )
11622     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11623 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11624     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11625 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11626     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11627 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11628     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11629 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11630     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11631 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11632     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11633 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11634     (
11635       cat <<\_ASBOX
11636 ## ------------------------------------------ ##
11637 ## Report this to the AC_PACKAGE_NAME lists.  ##
11638 ## ------------------------------------------ ##
11639 _ASBOX
11640     ) |
11641       sed "s/^/$as_me: WARNING:     /" >&2
11642     ;;
11643 esac
11644 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11645 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11646 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11647   echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11650 fi
11651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11652 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11653
11654 fi
11655 if test $ac_cv_header_sys_sysmacros_h = yes; then
11656
11657 cat >>confdefs.h <<\_ACEOF
11658 #define MAJOR_IN_SYSMACROS 1
11659 _ACEOF
11660
11661 fi
11662
11663
11664   fi
11665 fi
11666
11667
11668
11669
11670
11671
11672 ac_header_dirent=no
11673 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11674   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11675 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11676 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 #include <sys/types.h>
11687 #include <$ac_hdr>
11688
11689 int
11690 main ()
11691 {
11692 if ((DIR *) 0)
11693 return 0;
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700   (eval $ac_compile) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -z "$ac_c_werror_flag"
11708                          || test ! -s conftest.err'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; } &&
11714          { ac_try='test -s conftest.$ac_objext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   eval "$as_ac_Header=yes"
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 eval "$as_ac_Header=no"
11726 fi
11727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11728 fi
11729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732   cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11734 _ACEOF
11735
11736 ac_header_dirent=$ac_hdr; break
11737 fi
11738
11739 done
11740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11741 if test $ac_header_dirent = dirent.h; then
11742   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11744 if test "${ac_cv_search_opendir+set}" = set; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   ac_func_search_save_LIBS=$LIBS
11748 ac_cv_search_opendir=no
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755
11756 /* Override any gcc2 internal prototype to avoid an error.  */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 /* We use char because int might match the return type of a gcc2
11761    builtin and then its argument prototype would still apply.  */
11762 char opendir ();
11763 int
11764 main ()
11765 {
11766 opendir ();
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773   (eval $ac_link) 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -z "$ac_c_werror_flag"
11781                          || test ! -s conftest.err'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; } &&
11787          { ac_try='test -s conftest$ac_exeext'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; }; then
11793   ac_cv_search_opendir="none required"
11794 else
11795   echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 fi
11799 rm -f conftest.err conftest.$ac_objext \
11800       conftest$ac_exeext conftest.$ac_ext
11801 if test "$ac_cv_search_opendir" = no; then
11802   for ac_lib in dir; do
11803     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11804     cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810
11811 /* Override any gcc2 internal prototype to avoid an error.  */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 /* We use char because int might match the return type of a gcc2
11816    builtin and then its argument prototype would still apply.  */
11817 char opendir ();
11818 int
11819 main ()
11820 {
11821 opendir ();
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828   (eval $ac_link) 2>conftest.er1
11829   ac_status=$?
11830   grep -v '^ *+' conftest.er1 >conftest.err
11831   rm -f conftest.er1
11832   cat conftest.err >&5
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -z "$ac_c_werror_flag"
11836                          || test ! -s conftest.err'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; } &&
11842          { ac_try='test -s conftest$ac_exeext'
11843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844   (eval $ac_try) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; }; then
11848   ac_cv_search_opendir="-l$ac_lib"
11849 break
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 fi
11855 rm -f conftest.err conftest.$ac_objext \
11856       conftest$ac_exeext conftest.$ac_ext
11857   done
11858 fi
11859 LIBS=$ac_func_search_save_LIBS
11860 fi
11861 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11862 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11863 if test "$ac_cv_search_opendir" != no; then
11864   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11865
11866 fi
11867
11868 else
11869   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11871 if test "${ac_cv_search_opendir+set}" = set; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   ac_func_search_save_LIBS=$LIBS
11875 ac_cv_search_opendir=no
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882
11883 /* Override any gcc2 internal prototype to avoid an error.  */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 /* We use char because int might match the return type of a gcc2
11888    builtin and then its argument prototype would still apply.  */
11889 char opendir ();
11890 int
11891 main ()
11892 {
11893 opendir ();
11894   ;
11895   return 0;
11896 }
11897 _ACEOF
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900   (eval $ac_link) 2>conftest.er1
11901   ac_status=$?
11902   grep -v '^ *+' conftest.er1 >conftest.err
11903   rm -f conftest.er1
11904   cat conftest.err >&5
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } &&
11907          { ac_try='test -z "$ac_c_werror_flag"
11908                          || test ! -s conftest.err'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; } &&
11914          { ac_try='test -s conftest$ac_exeext'
11915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916   (eval $ac_try) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); }; }; then
11920   ac_cv_search_opendir="none required"
11921 else
11922   echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 fi
11926 rm -f conftest.err conftest.$ac_objext \
11927       conftest$ac_exeext conftest.$ac_ext
11928 if test "$ac_cv_search_opendir" = no; then
11929   for ac_lib in x; do
11930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11931     cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h.  */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h.  */
11937
11938 /* Override any gcc2 internal prototype to avoid an error.  */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 /* We use char because int might match the return type of a gcc2
11943    builtin and then its argument prototype would still apply.  */
11944 char opendir ();
11945 int
11946 main ()
11947 {
11948 opendir ();
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955   (eval $ac_link) 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -z "$ac_c_werror_flag"
11963                          || test ! -s conftest.err'
11964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965   (eval $ac_try) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); }; } &&
11969          { ac_try='test -s conftest$ac_exeext'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   ac_cv_search_opendir="-l$ac_lib"
11976 break
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 fi
11982 rm -f conftest.err conftest.$ac_objext \
11983       conftest$ac_exeext conftest.$ac_ext
11984   done
11985 fi
11986 LIBS=$ac_func_search_save_LIBS
11987 fi
11988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11990 if test "$ac_cv_search_opendir" != no; then
11991   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11992
11993 fi
11994
11995 fi
11996
11997 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11998 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11999 if test "${ac_cv_header_stat_broken+set}" = set; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 #include <sys/types.h>
12009 #include <sys/stat.h>
12010
12011 #if defined(S_ISBLK) && defined(S_IFDIR)
12012 # if S_ISBLK (S_IFDIR)
12013 You lose.
12014 # endif
12015 #endif
12016
12017 #if defined(S_ISBLK) && defined(S_IFCHR)
12018 # if S_ISBLK (S_IFCHR)
12019 You lose.
12020 # endif
12021 #endif
12022
12023 #if defined(S_ISLNK) && defined(S_IFREG)
12024 # if S_ISLNK (S_IFREG)
12025 You lose.
12026 # endif
12027 #endif
12028
12029 #if defined(S_ISSOCK) && defined(S_IFREG)
12030 # if S_ISSOCK (S_IFREG)
12031 You lose.
12032 # endif
12033 #endif
12034
12035 _ACEOF
12036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12037   $EGREP "You lose" >/dev/null 2>&1; then
12038   ac_cv_header_stat_broken=yes
12039 else
12040   ac_cv_header_stat_broken=no
12041 fi
12042 rm -f conftest*
12043
12044 fi
12045 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12046 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12047 if test $ac_cv_header_stat_broken = yes; then
12048
12049 cat >>confdefs.h <<\_ACEOF
12050 #define STAT_MACROS_BROKEN 1
12051 _ACEOF
12052
12053 fi
12054
12055 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12056 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12057 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12058   echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060   cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h.  */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h.  */
12066 #include <sys/types.h>
12067 #include <sys/wait.h>
12068 #ifndef WEXITSTATUS
12069 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12070 #endif
12071 #ifndef WIFEXITED
12072 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12073 #endif
12074
12075 int
12076 main ()
12077 {
12078   int s;
12079   wait (&s);
12080   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12087   (eval $ac_compile) 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -z "$ac_c_werror_flag"
12095                          || test ! -s conftest.err'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest.$ac_objext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   ac_cv_header_sys_wait_h=yes
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 ac_cv_header_sys_wait_h=no
12113 fi
12114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12115 fi
12116 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12117 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12118 if test $ac_cv_header_sys_wait_h = yes; then
12119
12120 cat >>confdefs.h <<\_ACEOF
12121 #define HAVE_SYS_WAIT_H 1
12122 _ACEOF
12123
12124 fi
12125
12126 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12127 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12128 if test "${ac_cv_header_time+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131   cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h.  */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h.  */
12137 #include <sys/types.h>
12138 #include <sys/time.h>
12139 #include <time.h>
12140
12141 int
12142 main ()
12143 {
12144 if ((struct tm *) 0)
12145 return 0;
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12152   (eval $ac_compile) 2>conftest.er1
12153   ac_status=$?
12154   grep -v '^ *+' conftest.er1 >conftest.err
12155   rm -f conftest.er1
12156   cat conftest.err >&5
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); } &&
12159          { ac_try='test -z "$ac_c_werror_flag"
12160                          || test ! -s conftest.err'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; } &&
12166          { ac_try='test -s conftest.$ac_objext'
12167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168   (eval $ac_try) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); }; }; then
12172   ac_cv_header_time=yes
12173 else
12174   echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177 ac_cv_header_time=no
12178 fi
12179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12180 fi
12181 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12182 echo "${ECHO_T}$ac_cv_header_time" >&6
12183 if test $ac_cv_header_time = yes; then
12184
12185 cat >>confdefs.h <<\_ACEOF
12186 #define TIME_WITH_SYS_TIME 1
12187 _ACEOF
12188
12189 fi
12190
12191
12192 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12193 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12194 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 $ac_includes_default
12204 int
12205 main ()
12206 {
12207 static struct stat ac_aggr;
12208 if (ac_aggr.st_blksize)
12209 return 0;
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216   (eval $ac_compile) 2>conftest.er1
12217   ac_status=$?
12218   grep -v '^ *+' conftest.er1 >conftest.err
12219   rm -f conftest.er1
12220   cat conftest.err >&5
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } &&
12223          { ac_try='test -z "$ac_c_werror_flag"
12224                          || test ! -s conftest.err'
12225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226   (eval $ac_try) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; } &&
12230          { ac_try='test -s conftest.$ac_objext'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; }; then
12236   ac_cv_member_struct_stat_st_blksize=yes
12237 else
12238   echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 $ac_includes_default
12248 int
12249 main ()
12250 {
12251 static struct stat ac_aggr;
12252 if (sizeof ac_aggr.st_blksize)
12253 return 0;
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260   (eval $ac_compile) 2>conftest.er1
12261   ac_status=$?
12262   grep -v '^ *+' conftest.er1 >conftest.err
12263   rm -f conftest.er1
12264   cat conftest.err >&5
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); } &&
12267          { ac_try='test -z "$ac_c_werror_flag"
12268                          || test ! -s conftest.err'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; } &&
12274          { ac_try='test -s conftest.$ac_objext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   ac_cv_member_struct_stat_st_blksize=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 ac_cv_member_struct_stat_st_blksize=no
12286 fi
12287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12288 fi
12289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290 fi
12291 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12292 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12293 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12294
12295 cat >>confdefs.h <<_ACEOF
12296 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12297 _ACEOF
12298
12299
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_ST_BLKSIZE 1
12302 _ACEOF
12303
12304 fi
12305
12306
12307 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12308 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12309 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h.  */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h.  */
12318 $ac_includes_default
12319 int
12320 main ()
12321 {
12322 static struct stat ac_aggr;
12323 if (ac_aggr.st_blocks)
12324 return 0;
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331   (eval $ac_compile) 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -z "$ac_c_werror_flag"
12339                          || test ! -s conftest.err'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; } &&
12345          { ac_try='test -s conftest.$ac_objext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   ac_cv_member_struct_stat_st_blocks=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362 $ac_includes_default
12363 int
12364 main ()
12365 {
12366 static struct stat ac_aggr;
12367 if (sizeof ac_aggr.st_blocks)
12368 return 0;
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375   (eval $ac_compile) 2>conftest.er1
12376   ac_status=$?
12377   grep -v '^ *+' conftest.er1 >conftest.err
12378   rm -f conftest.er1
12379   cat conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); } &&
12382          { ac_try='test -z "$ac_c_werror_flag"
12383                          || test ! -s conftest.err'
12384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385   (eval $ac_try) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; } &&
12389          { ac_try='test -s conftest.$ac_objext'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   ac_cv_member_struct_stat_st_blocks=yes
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ac_cv_member_struct_stat_st_blocks=no
12401 fi
12402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12403 fi
12404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12405 fi
12406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12407 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12408 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12409
12410 cat >>confdefs.h <<_ACEOF
12411 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12412 _ACEOF
12413
12414
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_ST_BLOCKS 1
12417 _ACEOF
12418
12419 else
12420   case $LIBOBJS in
12421     "fileblocks.$ac_objext"   | \
12422   *" fileblocks.$ac_objext"   | \
12423     "fileblocks.$ac_objext "* | \
12424   *" fileblocks.$ac_objext "* ) ;;
12425   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12426 esac
12427
12428 fi
12429
12430
12431 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12433 if test "${ac_cv_struct_tm+set}" = set; then
12434   echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436   cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442 #include <sys/types.h>
12443 #include <time.h>
12444
12445 int
12446 main ()
12447 {
12448 struct tm *tp; tp->tm_sec;
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455   (eval $ac_compile) 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } &&
12462          { ac_try='test -z "$ac_c_werror_flag"
12463                          || test ! -s conftest.err'
12464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465   (eval $ac_try) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; } &&
12469          { ac_try='test -s conftest.$ac_objext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   ac_cv_struct_tm=time.h
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480 ac_cv_struct_tm=sys/time.h
12481 fi
12482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12483 fi
12484 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12485 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12486 if test $ac_cv_struct_tm = sys/time.h; then
12487
12488 cat >>confdefs.h <<\_ACEOF
12489 #define TM_IN_SYS_TIME 1
12490 _ACEOF
12491
12492 fi
12493
12494 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12495 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12496 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499   cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 #include <sys/types.h>
12506 #include <$ac_cv_struct_tm>
12507
12508
12509 int
12510 main ()
12511 {
12512 static struct tm ac_aggr;
12513 if (ac_aggr.tm_zone)
12514 return 0;
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521   (eval $ac_compile) 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag"
12529                          || test ! -s conftest.err'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; } &&
12535          { ac_try='test -s conftest.$ac_objext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   ac_cv_member_struct_tm_tm_zone=yes
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 cat >conftest.$ac_ext <<_ACEOF
12547 /* confdefs.h.  */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h.  */
12552 #include <sys/types.h>
12553 #include <$ac_cv_struct_tm>
12554
12555
12556 int
12557 main ()
12558 {
12559 static struct tm ac_aggr;
12560 if (sizeof ac_aggr.tm_zone)
12561 return 0;
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568   (eval $ac_compile) 2>conftest.er1
12569   ac_status=$?
12570   grep -v '^ *+' conftest.er1 >conftest.err
12571   rm -f conftest.er1
12572   cat conftest.err >&5
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); } &&
12575          { ac_try='test -z "$ac_c_werror_flag"
12576                          || test ! -s conftest.err'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; } &&
12582          { ac_try='test -s conftest.$ac_objext'
12583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584   (eval $ac_try) 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; }; then
12588   ac_cv_member_struct_tm_tm_zone=yes
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 ac_cv_member_struct_tm_tm_zone=no
12594 fi
12595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12596 fi
12597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12598 fi
12599 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12600 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12601 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12602
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_STRUCT_TM_TM_ZONE 1
12605 _ACEOF
12606
12607
12608 fi
12609
12610 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12611
12612 cat >>confdefs.h <<\_ACEOF
12613 #define HAVE_TM_ZONE 1
12614 _ACEOF
12615
12616 else
12617   echo "$as_me:$LINENO: checking for tzname" >&5
12618 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12619 if test "${ac_cv_var_tzname+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628 #include <time.h>
12629 #ifndef tzname /* For SGI.  */
12630 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12631 #endif
12632
12633 int
12634 main ()
12635 {
12636 atoi(*tzname);
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12643   (eval $ac_link) 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } &&
12650          { ac_try='test -z "$ac_c_werror_flag"
12651                          || test ! -s conftest.err'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; } &&
12657          { ac_try='test -s conftest$ac_exeext'
12658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659   (eval $ac_try) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; }; then
12663   ac_cv_var_tzname=yes
12664 else
12665   echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 ac_cv_var_tzname=no
12669 fi
12670 rm -f conftest.err conftest.$ac_objext \
12671       conftest$ac_exeext conftest.$ac_ext
12672 fi
12673 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12674 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12675   if test $ac_cv_var_tzname = yes; then
12676
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_TZNAME 1
12679 _ACEOF
12680
12681   fi
12682 fi
12683
12684
12685 echo "$as_me:$LINENO: checking for utime.h" >&5
12686 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12687 if test "${ba_cv_header_utime_h+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 #include <sys/types.h>
12698 #include <utime.h>
12699 int
12700 main ()
12701 {
12702 struct utimbuf foo
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709   (eval $ac_compile) 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -z "$ac_c_werror_flag"
12717                          || test ! -s conftest.err'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; } &&
12723          { ac_try='test -s conftest.$ac_objext'
12724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725   (eval $ac_try) 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; }; then
12729   ba_cv_header_utime_h=yes
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 ba_cv_header_utime_h=no
12735 fi
12736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12739 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12740 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12741 #define HAVE_UTIME_H 1
12742 _ACEOF
12743
12744
12745 echo "$as_me:$LINENO: checking for socklen_t" >&5
12746 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12747 if test "${ba_cv_header_socklen_t+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756
12757 #include <sys/types.h>
12758 #include <sys/socket.h>
12759 int
12760 main ()
12761 {
12762 socklen_t x
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769   (eval $ac_compile) 2>conftest.er1
12770   ac_status=$?
12771   grep -v '^ *+' conftest.er1 >conftest.err
12772   rm -f conftest.er1
12773   cat conftest.err >&5
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } &&
12776          { ac_try='test -z "$ac_c_werror_flag"
12777                          || test ! -s conftest.err'
12778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779   (eval $ac_try) 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; } &&
12783          { ac_try='test -s conftest.$ac_objext'
12784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785   (eval $ac_try) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; }; then
12789   ba_cv_header_socklen_t=yes
12790 else
12791   echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 ba_cv_header_socklen_t=no
12795 fi
12796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797 fi
12798 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12799 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12800 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12801 #define HAVE_SOCKLEN_T 1
12802 _ACEOF
12803
12804
12805 echo "$as_me:$LINENO: checking for bigendian" >&5
12806 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12807 if test "${ba_cv_bigendian+set}" = set; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810   if test "$cross_compiling" = yes; then
12811   ba_cv_bigendian=no
12812 else
12813   cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h.  */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h.  */
12819 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12820 _ACEOF
12821 rm -f conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823   (eval $ac_link) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828   (eval $ac_try) 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; }; then
12832   ba_cv_bigendian=yes
12833 else
12834   echo "$as_me: program exited with status $ac_status" >&5
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ( exit $ac_status )
12839 ba_cv_bigendian=no
12840 fi
12841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12842 fi
12843 fi
12844 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12845 echo "${ECHO_T}$ba_cv_bigendian" >&6
12846 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_BIGENDIAN 1
12848 _ACEOF
12849
12850
12851
12852 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12853 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12854 if test "${ac_cv_c_const+set}" = set; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857   cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863
12864 int
12865 main ()
12866 {
12867 /* FIXME: Include the comments suggested by Paul. */
12868 #ifndef __cplusplus
12869   /* Ultrix mips cc rejects this.  */
12870   typedef int charset[2];
12871   const charset x;
12872   /* SunOS 4.1.1 cc rejects this.  */
12873   char const *const *ccp;
12874   char **p;
12875   /* NEC SVR4.0.2 mips cc rejects this.  */
12876   struct point {int x, y;};
12877   static struct point const zero = {0,0};
12878   /* AIX XL C 1.02.0.0 rejects this.
12879      It does not let you subtract one const X* pointer from another in
12880      an arm of an if-expression whose if-part is not a constant
12881      expression */
12882   const char *g = "string";
12883   ccp = &g + (g ? g-g : 0);
12884   /* HPUX 7.0 cc rejects these. */
12885   ++ccp;
12886   p = (char**) ccp;
12887   ccp = (char const *const *) p;
12888   { /* SCO 3.2v4 cc rejects this.  */
12889     char *t;
12890     char const *s = 0 ? (char *) 0 : (char const *) 0;
12891
12892     *t++ = 0;
12893   }
12894   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12895     int x[] = {25, 17};
12896     const int *foo = &x[0];
12897     ++foo;
12898   }
12899   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12900     typedef const int *iptr;
12901     iptr p = 0;
12902     ++p;
12903   }
12904   { /* AIX XL C 1.02.0.0 rejects this saying
12905        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12906     struct s { int j; const int *ap[3]; };
12907     struct s *b; b->j = 5;
12908   }
12909   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12910     const int foo = 10;
12911   }
12912 #endif
12913
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 rm -f conftest.$ac_objext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12920   (eval $ac_compile) 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } &&
12927          { ac_try='test -z "$ac_c_werror_flag"
12928                          || test ! -s conftest.err'
12929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930   (eval $ac_try) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; } &&
12934          { ac_try='test -s conftest.$ac_objext'
12935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936   (eval $ac_try) 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; }; then
12940   ac_cv_c_const=yes
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_cv_c_const=no
12946 fi
12947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12948 fi
12949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12950 echo "${ECHO_T}$ac_cv_c_const" >&6
12951 if test $ac_cv_c_const = no; then
12952
12953 cat >>confdefs.h <<\_ACEOF
12954 #define const
12955 _ACEOF
12956
12957 fi
12958
12959
12960
12961 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12962 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12963 fstype=no
12964 # The order of these tests is important.
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h.  */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h.  */
12971 #include <sys/statvfs.h>
12972 #include <sys/fstyp.h>
12973 _ACEOF
12974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12976   ac_status=$?
12977   grep -v '^ *+' conftest.er1 >conftest.err
12978   rm -f conftest.er1
12979   cat conftest.err >&5
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); } >/dev/null; then
12982   if test -s conftest.err; then
12983     ac_cpp_err=$ac_c_preproc_warn_flag
12984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12985   else
12986     ac_cpp_err=
12987   fi
12988 else
12989   ac_cpp_err=yes
12990 fi
12991 if test -z "$ac_cpp_err"; then
12992   cat >>confdefs.h <<\_ACEOF
12993 #define FSTYPE_STATVFS 1
12994 _ACEOF
12995  fstype=SVR4
12996 else
12997   echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000
13001 fi
13002 rm -f conftest.err conftest.$ac_ext
13003 if test $fstype = no; then
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h.  */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h.  */
13010 #include <sys/statfs.h>
13011 #include <sys/fstyp.h>
13012 _ACEOF
13013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } >/dev/null; then
13021   if test -s conftest.err; then
13022     ac_cpp_err=$ac_c_preproc_warn_flag
13023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13024   else
13025     ac_cpp_err=
13026   fi
13027 else
13028   ac_cpp_err=yes
13029 fi
13030 if test -z "$ac_cpp_err"; then
13031   cat >>confdefs.h <<\_ACEOF
13032 #define FSTYPE_USG_STATFS 1
13033 _ACEOF
13034  fstype=SVR3
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039
13040 fi
13041 rm -f conftest.err conftest.$ac_ext
13042 fi
13043 if test $fstype = no; then
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050 #include <sys/statfs.h>
13051 #include <sys/vmount.h>
13052 _ACEOF
13053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } >/dev/null; then
13061   if test -s conftest.err; then
13062     ac_cpp_err=$ac_c_preproc_warn_flag
13063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13064   else
13065     ac_cpp_err=
13066   fi
13067 else
13068   ac_cpp_err=yes
13069 fi
13070 if test -z "$ac_cpp_err"; then
13071   cat >>confdefs.h <<\_ACEOF
13072 #define FSTYPE_AIX_STATFS 1
13073 _ACEOF
13074  fstype=AIX
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079
13080 fi
13081 rm -f conftest.err conftest.$ac_ext
13082 fi
13083 if test $fstype = no; then
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h.  */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h.  */
13090 #include <mntent.h>
13091 _ACEOF
13092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13094   ac_status=$?
13095   grep -v '^ *+' conftest.er1 >conftest.err
13096   rm -f conftest.er1
13097   cat conftest.err >&5
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); } >/dev/null; then
13100   if test -s conftest.err; then
13101     ac_cpp_err=$ac_c_preproc_warn_flag
13102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13103   else
13104     ac_cpp_err=
13105   fi
13106 else
13107   ac_cpp_err=yes
13108 fi
13109 if test -z "$ac_cpp_err"; then
13110   cat >>confdefs.h <<\_ACEOF
13111 #define FSTYPE_MNTENT 1
13112 _ACEOF
13113  fstype=4.3BSD
13114 else
13115   echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118
13119 fi
13120 rm -f conftest.err conftest.$ac_ext
13121 fi
13122 if test $fstype = no; then
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h.  */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h.  */
13129 #include <sys/mount.h>
13130
13131 _ACEOF
13132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13133   $EGREP "f_type;" >/dev/null 2>&1; then
13134   cat >>confdefs.h <<\_ACEOF
13135 #define FSTYPE_STATFS 1
13136 _ACEOF
13137  fstype=4.4BSD/OSF1
13138 fi
13139 rm -f conftest*
13140
13141 fi
13142 if test $fstype = no; then
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149 #include <sys/mount.h>
13150 #include <sys/fs_types.h>
13151 _ACEOF
13152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13154   ac_status=$?
13155   grep -v '^ *+' conftest.er1 >conftest.err
13156   rm -f conftest.er1
13157   cat conftest.err >&5
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); } >/dev/null; then
13160   if test -s conftest.err; then
13161     ac_cpp_err=$ac_c_preproc_warn_flag
13162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13163   else
13164     ac_cpp_err=
13165   fi
13166 else
13167   ac_cpp_err=yes
13168 fi
13169 if test -z "$ac_cpp_err"; then
13170   cat >>confdefs.h <<\_ACEOF
13171 #define FSTYPE_GETMNT 1
13172 _ACEOF
13173  fstype=Ultrix
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178
13179 fi
13180 rm -f conftest.err conftest.$ac_ext
13181 fi
13182 echo "$as_me:$LINENO: result: $fstype" >&5
13183 echo "${ECHO_T}$fstype" >&6
13184
13185 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13186 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13187 if test "${ac_cv_type_signal+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190   cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h.  */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h.  */
13196 #include <sys/types.h>
13197 #include <signal.h>
13198 #ifdef signal
13199 # undef signal
13200 #endif
13201 #ifdef __cplusplus
13202 extern "C" void (*signal (int, void (*)(int)))(int);
13203 #else
13204 void (*signal ()) ();
13205 #endif
13206
13207 int
13208 main ()
13209 {
13210 int i;
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217   (eval $ac_compile) 2>conftest.er1
13218   ac_status=$?
13219   grep -v '^ *+' conftest.er1 >conftest.err
13220   rm -f conftest.er1
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } &&
13224          { ac_try='test -z "$ac_c_werror_flag"
13225                          || test ! -s conftest.err'
13226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227   (eval $ac_try) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; } &&
13231          { ac_try='test -s conftest.$ac_objext'
13232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233   (eval $ac_try) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; }; then
13237   ac_cv_type_signal=void
13238 else
13239   echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13241
13242 ac_cv_type_signal=int
13243 fi
13244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13245 fi
13246 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13247 echo "${ECHO_T}$ac_cv_type_signal" >&6
13248
13249 cat >>confdefs.h <<_ACEOF
13250 #define RETSIGTYPE $ac_cv_type_signal
13251 _ACEOF
13252
13253
13254
13255 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13256 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13257 if test "${bash_cv_signal_vintage+set}" = set; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260
13261   cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h.  */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h.  */
13267 #include <signal.h>
13268 int
13269 main ()
13270 {
13271
13272     sigset_t ss;
13273     struct sigaction sa;
13274     sigemptyset(&ss); sigsuspend(&ss);
13275     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13276     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13277
13278   ;
13279   return 0;
13280 }
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284   (eval $ac_link) 2>conftest.er1
13285   ac_status=$?
13286   grep -v '^ *+' conftest.er1 >conftest.err
13287   rm -f conftest.er1
13288   cat conftest.err >&5
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); } &&
13291          { ac_try='test -z "$ac_c_werror_flag"
13292                          || test ! -s conftest.err'
13293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294   (eval $ac_try) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; } &&
13298          { ac_try='test -s conftest$ac_exeext'
13299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300   (eval $ac_try) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; }; then
13304   bash_cv_signal_vintage=posix
13305 else
13306   echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309
13310     cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316 #include <signal.h>
13317 int
13318 main ()
13319 {
13320
13321         int mask = sigmask(SIGINT);
13322         sigsetmask(mask); sigblock(mask); sigpause(mask);
13323
13324   ;
13325   return 0;
13326 }
13327 _ACEOF
13328 rm -f conftest.$ac_objext conftest$ac_exeext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330   (eval $ac_link) 2>conftest.er1
13331   ac_status=$?
13332   grep -v '^ *+' conftest.er1 >conftest.err
13333   rm -f conftest.er1
13334   cat conftest.err >&5
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); } &&
13337          { ac_try='test -z "$ac_c_werror_flag"
13338                          || test ! -s conftest.err'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; } &&
13344          { ac_try='test -s conftest$ac_exeext'
13345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346   (eval $ac_try) 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); }; }; then
13350   bash_cv_signal_vintage=4.2bsd
13351 else
13352   echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355
13356       cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362
13363         #include <signal.h>
13364         RETSIGTYPE foo() { }
13365 int
13366 main ()
13367 {
13368
13369                 int mask = sigmask(SIGINT);
13370                 sigset(SIGINT, foo); sigrelse(SIGINT);
13371                 sighold(SIGINT); sigpause(SIGINT);
13372
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 rm -f conftest.$ac_objext conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379   (eval $ac_link) 2>conftest.er1
13380   ac_status=$?
13381   grep -v '^ *+' conftest.er1 >conftest.err
13382   rm -f conftest.er1
13383   cat conftest.err >&5
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); } &&
13386          { ac_try='test -z "$ac_c_werror_flag"
13387                          || test ! -s conftest.err'
13388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; } &&
13393          { ac_try='test -s conftest$ac_exeext'
13394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395   (eval $ac_try) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   bash_cv_signal_vintage=svr3
13400 else
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 bash_cv_signal_vintage=v7
13405
13406 fi
13407 rm -f conftest.err conftest.$ac_objext \
13408       conftest$ac_exeext conftest.$ac_ext
13409
13410 fi
13411 rm -f conftest.err conftest.$ac_objext \
13412       conftest$ac_exeext conftest.$ac_ext
13413
13414 fi
13415 rm -f conftest.err conftest.$ac_objext \
13416       conftest$ac_exeext conftest.$ac_ext
13417
13418 fi
13419
13420 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13421 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13422 if test "$bash_cv_signal_vintage" = posix; then
13423 cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_POSIX_SIGNALS 1
13425 _ACEOF
13426
13427 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13428 cat >>confdefs.h <<\_ACEOF
13429 #define HAVE_BSD_SIGNALS 1
13430 _ACEOF
13431
13432 elif test "$bash_cv_signal_vintage" = svr3; then
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_USG_SIGHOLD 1
13435 _ACEOF
13436
13437 fi
13438
13439 echo "$as_me:$LINENO: checking for mode_t" >&5
13440 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13441 if test "${ac_cv_type_mode_t+set}" = set; then
13442   echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444   cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h.  */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h.  */
13450 $ac_includes_default
13451 int
13452 main ()
13453 {
13454 if ((mode_t *) 0)
13455   return 0;
13456 if (sizeof (mode_t))
13457   return 0;
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464   (eval $ac_compile) 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -z "$ac_c_werror_flag"
13472                          || test ! -s conftest.err'
13473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474   (eval $ac_try) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); }; } &&
13478          { ac_try='test -s conftest.$ac_objext'
13479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480   (eval $ac_try) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; }; then
13484   ac_cv_type_mode_t=yes
13485 else
13486   echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ac_cv_type_mode_t=no
13490 fi
13491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13492 fi
13493 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13494 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13495 if test $ac_cv_type_mode_t = yes; then
13496   :
13497 else
13498
13499 cat >>confdefs.h <<_ACEOF
13500 #define mode_t int
13501 _ACEOF
13502
13503 fi
13504
13505 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13506 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13507 if test "${ac_cv_type_uid_t+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516 #include <sys/types.h>
13517
13518 _ACEOF
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520   $EGREP "uid_t" >/dev/null 2>&1; then
13521   ac_cv_type_uid_t=yes
13522 else
13523   ac_cv_type_uid_t=no
13524 fi
13525 rm -f conftest*
13526
13527 fi
13528 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13529 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13530 if test $ac_cv_type_uid_t = no; then
13531
13532 cat >>confdefs.h <<\_ACEOF
13533 #define uid_t int
13534 _ACEOF
13535
13536
13537 cat >>confdefs.h <<\_ACEOF
13538 #define gid_t int
13539 _ACEOF
13540
13541 fi
13542
13543 echo "$as_me:$LINENO: checking for size_t" >&5
13544 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13545 if test "${ac_cv_type_size_t+set}" = set; then
13546   echo $ECHO_N "(cached) $ECHO_C" >&6
13547 else
13548   cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554 $ac_includes_default
13555 int
13556 main ()
13557 {
13558 if ((size_t *) 0)
13559   return 0;
13560 if (sizeof (size_t))
13561   return 0;
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568   (eval $ac_compile) 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } &&
13575          { ac_try='test -z "$ac_c_werror_flag"
13576                          || test ! -s conftest.err'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; } &&
13582          { ac_try='test -s conftest.$ac_objext'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   ac_cv_type_size_t=yes
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_type_size_t=no
13594 fi
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596 fi
13597 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13598 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13599 if test $ac_cv_type_size_t = yes; then
13600   :
13601 else
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define size_t unsigned
13605 _ACEOF
13606
13607 fi
13608
13609 echo "$as_me:$LINENO: checking for pid_t" >&5
13610 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13611 if test "${ac_cv_type_pid_t+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h.  */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h.  */
13620 $ac_includes_default
13621 int
13622 main ()
13623 {
13624 if ((pid_t *) 0)
13625   return 0;
13626 if (sizeof (pid_t))
13627   return 0;
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634   (eval $ac_compile) 2>conftest.er1
13635   ac_status=$?
13636   grep -v '^ *+' conftest.er1 >conftest.err
13637   rm -f conftest.er1
13638   cat conftest.err >&5
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } &&
13641          { ac_try='test -z "$ac_c_werror_flag"
13642                          || test ! -s conftest.err'
13643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644   (eval $ac_try) 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; } &&
13648          { ac_try='test -s conftest.$ac_objext'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_cv_type_pid_t=yes
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 ac_cv_type_pid_t=no
13660 fi
13661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13662 fi
13663 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13664 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13665 if test $ac_cv_type_pid_t = yes; then
13666   :
13667 else
13668
13669 cat >>confdefs.h <<_ACEOF
13670 #define pid_t int
13671 _ACEOF
13672
13673 fi
13674
13675 echo "$as_me:$LINENO: checking for off_t" >&5
13676 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13677 if test "${ac_cv_type_off_t+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 $ac_includes_default
13687 int
13688 main ()
13689 {
13690 if ((off_t *) 0)
13691   return 0;
13692 if (sizeof (off_t))
13693   return 0;
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 rm -f conftest.$ac_objext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700   (eval $ac_compile) 2>conftest.er1
13701   ac_status=$?
13702   grep -v '^ *+' conftest.er1 >conftest.err
13703   rm -f conftest.er1
13704   cat conftest.err >&5
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } &&
13707          { ac_try='test -z "$ac_c_werror_flag"
13708                          || test ! -s conftest.err'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; } &&
13714          { ac_try='test -s conftest.$ac_objext'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; }; then
13720   ac_cv_type_off_t=yes
13721 else
13722   echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725 ac_cv_type_off_t=no
13726 fi
13727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13728 fi
13729 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13730 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13731 if test $ac_cv_type_off_t = yes; then
13732   :
13733 else
13734
13735 cat >>confdefs.h <<_ACEOF
13736 #define off_t long
13737 _ACEOF
13738
13739 fi
13740
13741 echo "$as_me:$LINENO: checking for ino_t" >&5
13742 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13743 if test "${ac_cv_type_ino_t+set}" = set; then
13744   echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746   cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h.  */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h.  */
13752 $ac_includes_default
13753 int
13754 main ()
13755 {
13756 if ((ino_t *) 0)
13757   return 0;
13758 if (sizeof (ino_t))
13759   return 0;
13760   ;
13761   return 0;
13762 }
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766   (eval $ac_compile) 2>conftest.er1
13767   ac_status=$?
13768   grep -v '^ *+' conftest.er1 >conftest.err
13769   rm -f conftest.er1
13770   cat conftest.err >&5
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } &&
13773          { ac_try='test -z "$ac_c_werror_flag"
13774                          || test ! -s conftest.err'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; } &&
13780          { ac_try='test -s conftest.$ac_objext'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; }; then
13786   ac_cv_type_ino_t=yes
13787 else
13788   echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13790
13791 ac_cv_type_ino_t=no
13792 fi
13793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794 fi
13795 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13796 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13797 if test $ac_cv_type_ino_t = yes; then
13798   :
13799 else
13800
13801 cat >>confdefs.h <<_ACEOF
13802 #define ino_t unsigned long
13803 _ACEOF
13804
13805 fi
13806
13807 echo "$as_me:$LINENO: checking for dev_t" >&5
13808 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13809 if test "${ac_cv_type_dev_t+set}" = set; then
13810   echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812   cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818 $ac_includes_default
13819 int
13820 main ()
13821 {
13822 if ((dev_t *) 0)
13823   return 0;
13824 if (sizeof (dev_t))
13825   return 0;
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832   (eval $ac_compile) 2>conftest.er1
13833   ac_status=$?
13834   grep -v '^ *+' conftest.er1 >conftest.err
13835   rm -f conftest.er1
13836   cat conftest.err >&5
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -z "$ac_c_werror_flag"
13840                          || test ! -s conftest.err'
13841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842   (eval $ac_try) 2>&5
13843   ac_status=$?
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); }; } &&
13846          { ac_try='test -s conftest.$ac_objext'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; }; then
13852   ac_cv_type_dev_t=yes
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 ac_cv_type_dev_t=no
13858 fi
13859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13860 fi
13861 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13862 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13863 if test $ac_cv_type_dev_t = yes; then
13864   :
13865 else
13866
13867 cat >>confdefs.h <<_ACEOF
13868 #define dev_t unsigned long
13869 _ACEOF
13870
13871 fi
13872
13873 echo "$as_me:$LINENO: checking for daddr_t" >&5
13874 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13875 if test "${ac_cv_type_daddr_t+set}" = set; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884 $ac_includes_default
13885 int
13886 main ()
13887 {
13888 if ((daddr_t *) 0)
13889   return 0;
13890 if (sizeof (daddr_t))
13891   return 0;
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898   (eval $ac_compile) 2>conftest.er1
13899   ac_status=$?
13900   grep -v '^ *+' conftest.er1 >conftest.err
13901   rm -f conftest.er1
13902   cat conftest.err >&5
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } &&
13905          { ac_try='test -z "$ac_c_werror_flag"
13906                          || test ! -s conftest.err'
13907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908   (eval $ac_try) 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; } &&
13912          { ac_try='test -s conftest.$ac_objext'
13913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914   (eval $ac_try) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; }; then
13918   ac_cv_type_daddr_t=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923 ac_cv_type_daddr_t=no
13924 fi
13925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13926 fi
13927 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13929 if test $ac_cv_type_daddr_t = yes; then
13930   :
13931 else
13932
13933 cat >>confdefs.h <<_ACEOF
13934 #define daddr_t long
13935 _ACEOF
13936
13937 fi
13938
13939 echo "$as_me:$LINENO: checking for major_t" >&5
13940 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13941 if test "${ac_cv_type_major_t+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944   cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950 $ac_includes_default
13951 int
13952 main ()
13953 {
13954 if ((major_t *) 0)
13955   return 0;
13956 if (sizeof (major_t))
13957   return 0;
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -z "$ac_c_werror_flag"
13972                          || test ! -s conftest.err'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_cv_type_major_t=yes
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_cv_type_major_t=no
13990 fi
13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13992 fi
13993 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13994 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13995 if test $ac_cv_type_major_t = yes; then
13996   :
13997 else
13998
13999 cat >>confdefs.h <<_ACEOF
14000 #define major_t int
14001 _ACEOF
14002
14003 fi
14004
14005 echo "$as_me:$LINENO: checking for minor_t" >&5
14006 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
14007 if test "${ac_cv_type_minor_t+set}" = set; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016 $ac_includes_default
14017 int
14018 main ()
14019 {
14020 if ((minor_t *) 0)
14021   return 0;
14022 if (sizeof (minor_t))
14023   return 0;
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030   (eval $ac_compile) 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } &&
14037          { ac_try='test -z "$ac_c_werror_flag"
14038                          || test ! -s conftest.err'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; } &&
14044          { ac_try='test -s conftest.$ac_objext'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   ac_cv_type_minor_t=yes
14051 else
14052   echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055 ac_cv_type_minor_t=no
14056 fi
14057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14058 fi
14059 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14060 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14061 if test $ac_cv_type_minor_t = yes; then
14062   :
14063 else
14064
14065 cat >>confdefs.h <<_ACEOF
14066 #define minor_t int
14067 _ACEOF
14068
14069 fi
14070
14071 echo "$as_me:$LINENO: checking for ssize_t" >&5
14072 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14073 if test "${ac_cv_type_ssize_t+set}" = set; then
14074   echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076   cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h.  */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h.  */
14082 $ac_includes_default
14083 int
14084 main ()
14085 {
14086 if ((ssize_t *) 0)
14087   return 0;
14088 if (sizeof (ssize_t))
14089   return 0;
14090   ;
14091   return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096   (eval $ac_compile) 2>conftest.er1
14097   ac_status=$?
14098   grep -v '^ *+' conftest.er1 >conftest.err
14099   rm -f conftest.er1
14100   cat conftest.err >&5
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } &&
14103          { ac_try='test -z "$ac_c_werror_flag"
14104                          || test ! -s conftest.err'
14105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106   (eval $ac_try) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; } &&
14110          { ac_try='test -s conftest.$ac_objext'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; }; then
14116   ac_cv_type_ssize_t=yes
14117 else
14118   echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14120
14121 ac_cv_type_ssize_t=no
14122 fi
14123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14124 fi
14125 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14126 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14127 if test $ac_cv_type_ssize_t = yes; then
14128   :
14129 else
14130
14131 cat >>confdefs.h <<_ACEOF
14132 #define ssize_t int
14133 _ACEOF
14134
14135 fi
14136
14137 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14138 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14139 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 $ac_includes_default
14149 int
14150 main ()
14151 {
14152 static struct stat ac_aggr;
14153 if (ac_aggr.st_blocks)
14154 return 0;
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161   (eval $ac_compile) 2>conftest.er1
14162   ac_status=$?
14163   grep -v '^ *+' conftest.er1 >conftest.err
14164   rm -f conftest.er1
14165   cat conftest.err >&5
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } &&
14168          { ac_try='test -z "$ac_c_werror_flag"
14169                          || test ! -s conftest.err'
14170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171   (eval $ac_try) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; } &&
14175          { ac_try='test -s conftest.$ac_objext'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; }; then
14181   ac_cv_member_struct_stat_st_blocks=yes
14182 else
14183   echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14185
14186 cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h.  */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h.  */
14192 $ac_includes_default
14193 int
14194 main ()
14195 {
14196 static struct stat ac_aggr;
14197 if (sizeof ac_aggr.st_blocks)
14198 return 0;
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 rm -f conftest.$ac_objext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205   (eval $ac_compile) 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } &&
14212          { ac_try='test -z "$ac_c_werror_flag"
14213                          || test ! -s conftest.err'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; } &&
14219          { ac_try='test -s conftest.$ac_objext'
14220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221   (eval $ac_try) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; }; then
14225   ac_cv_member_struct_stat_st_blocks=yes
14226 else
14227   echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230 ac_cv_member_struct_stat_st_blocks=no
14231 fi
14232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14233 fi
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14237 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14238 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14239
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14242 _ACEOF
14243
14244
14245 cat >>confdefs.h <<\_ACEOF
14246 #define HAVE_ST_BLOCKS 1
14247 _ACEOF
14248
14249 else
14250   case $LIBOBJS in
14251     "fileblocks.$ac_objext"   | \
14252   *" fileblocks.$ac_objext"   | \
14253     "fileblocks.$ac_objext "* | \
14254   *" fileblocks.$ac_objext "* ) ;;
14255   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14256 esac
14257
14258 fi
14259
14260
14261
14262 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14263 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14264 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14265   echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267   cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h.  */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h.  */
14273 $ac_includes_default
14274 int
14275 main ()
14276 {
14277 static struct stat ac_aggr;
14278 if (ac_aggr.st_rdev)
14279 return 0;
14280   ;
14281   return 0;
14282 }
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286   (eval $ac_compile) 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag"
14294                          || test ! -s conftest.err'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_cv_member_struct_stat_st_rdev=yes
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h.  */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h.  */
14317 $ac_includes_default
14318 int
14319 main ()
14320 {
14321 static struct stat ac_aggr;
14322 if (sizeof ac_aggr.st_rdev)
14323 return 0;
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330   (eval $ac_compile) 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } &&
14337          { ac_try='test -z "$ac_c_werror_flag"
14338                          || test ! -s conftest.err'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; } &&
14344          { ac_try='test -s conftest.$ac_objext'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; }; then
14350   ac_cv_member_struct_stat_st_rdev=yes
14351 else
14352   echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 ac_cv_member_struct_stat_st_rdev=no
14356 fi
14357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14358 fi
14359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14360 fi
14361 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14362 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14363 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14364
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_STRUCT_STAT_ST_RDEV 1
14367 _ACEOF
14368
14369
14370 cat >>confdefs.h <<\_ACEOF
14371 #define HAVE_ST_RDEV 1
14372 _ACEOF
14373
14374 fi
14375
14376
14377 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14378 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14379 if test "${ac_cv_struct_tm+set}" = set; then
14380   echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382   cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388 #include <sys/types.h>
14389 #include <time.h>
14390
14391 int
14392 main ()
14393 {
14394 struct tm *tp; tp->tm_sec;
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401   (eval $ac_compile) 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } &&
14408          { ac_try='test -z "$ac_c_werror_flag"
14409                          || test ! -s conftest.err'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; } &&
14415          { ac_try='test -s conftest.$ac_objext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_cv_struct_tm=time.h
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 ac_cv_struct_tm=sys/time.h
14427 fi
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14431 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14432 if test $ac_cv_struct_tm = sys/time.h; then
14433
14434 cat >>confdefs.h <<\_ACEOF
14435 #define TM_IN_SYS_TIME 1
14436 _ACEOF
14437
14438 fi
14439
14440 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14441 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14442 if test "${ac_cv_c_const+set}" = set; then
14443   echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445   cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h.  */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h.  */
14451
14452 int
14453 main ()
14454 {
14455 /* FIXME: Include the comments suggested by Paul. */
14456 #ifndef __cplusplus
14457   /* Ultrix mips cc rejects this.  */
14458   typedef int charset[2];
14459   const charset x;
14460   /* SunOS 4.1.1 cc rejects this.  */
14461   char const *const *ccp;
14462   char **p;
14463   /* NEC SVR4.0.2 mips cc rejects this.  */
14464   struct point {int x, y;};
14465   static struct point const zero = {0,0};
14466   /* AIX XL C 1.02.0.0 rejects this.
14467      It does not let you subtract one const X* pointer from another in
14468      an arm of an if-expression whose if-part is not a constant
14469      expression */
14470   const char *g = "string";
14471   ccp = &g + (g ? g-g : 0);
14472   /* HPUX 7.0 cc rejects these. */
14473   ++ccp;
14474   p = (char**) ccp;
14475   ccp = (char const *const *) p;
14476   { /* SCO 3.2v4 cc rejects this.  */
14477     char *t;
14478     char const *s = 0 ? (char *) 0 : (char const *) 0;
14479
14480     *t++ = 0;
14481   }
14482   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14483     int x[] = {25, 17};
14484     const int *foo = &x[0];
14485     ++foo;
14486   }
14487   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14488     typedef const int *iptr;
14489     iptr p = 0;
14490     ++p;
14491   }
14492   { /* AIX XL C 1.02.0.0 rejects this saying
14493        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14494     struct s { int j; const int *ap[3]; };
14495     struct s *b; b->j = 5;
14496   }
14497   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14498     const int foo = 10;
14499   }
14500 #endif
14501
14502   ;
14503   return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508   (eval $ac_compile) 2>conftest.er1
14509   ac_status=$?
14510   grep -v '^ *+' conftest.er1 >conftest.err
14511   rm -f conftest.er1
14512   cat conftest.err >&5
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } &&
14515          { ac_try='test -z "$ac_c_werror_flag"
14516                          || test ! -s conftest.err'
14517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518   (eval $ac_try) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); }; } &&
14522          { ac_try='test -s conftest.$ac_objext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   ac_cv_c_const=yes
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 ac_cv_c_const=no
14534 fi
14535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14536 fi
14537 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14538 echo "${ECHO_T}$ac_cv_c_const" >&6
14539 if test $ac_cv_c_const = no; then
14540
14541 cat >>confdefs.h <<\_ACEOF
14542 #define const
14543 _ACEOF
14544
14545 fi
14546
14547
14548
14549 echo "$as_me:$LINENO: checking for char" >&5
14550 echo $ECHO_N "checking for char... $ECHO_C" >&6
14551 if test "${ac_cv_type_char+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560 $ac_includes_default
14561 int
14562 main ()
14563 {
14564 if ((char *) 0)
14565   return 0;
14566 if (sizeof (char))
14567   return 0;
14568   ;
14569   return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574   (eval $ac_compile) 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } &&
14581          { ac_try='test -z "$ac_c_werror_flag"
14582                          || test ! -s conftest.err'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; } &&
14588          { ac_try='test -s conftest.$ac_objext'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; }; then
14594   ac_cv_type_char=yes
14595 else
14596   echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599 ac_cv_type_char=no
14600 fi
14601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14602 fi
14603 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14604 echo "${ECHO_T}$ac_cv_type_char" >&6
14605
14606 echo "$as_me:$LINENO: checking size of char" >&5
14607 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14608 if test "${ac_cv_sizeof_char+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   if test "$ac_cv_type_char" = yes; then
14612   # The cast to unsigned long works around a bug in the HP C Compiler
14613   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14614   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14615   # This bug is HP SR number 8606223364.
14616   if test "$cross_compiling" = yes; then
14617   # Depending upon the size, compute the lo and hi bounds.
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h.  */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h.  */
14624 $ac_includes_default
14625 int
14626 main ()
14627 {
14628 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14629 test_array [0] = 0
14630
14631   ;
14632   return 0;
14633 }
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637   (eval $ac_compile) 2>conftest.er1
14638   ac_status=$?
14639   grep -v '^ *+' conftest.er1 >conftest.err
14640   rm -f conftest.er1
14641   cat conftest.err >&5
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); } &&
14644          { ac_try='test -z "$ac_c_werror_flag"
14645                          || test ! -s conftest.err'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; } &&
14651          { ac_try='test -s conftest.$ac_objext'
14652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653   (eval $ac_try) 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; }; then
14657   ac_lo=0 ac_mid=0
14658   while :; do
14659     cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 $ac_includes_default
14666 int
14667 main ()
14668 {
14669 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14670 test_array [0] = 0
14671
14672   ;
14673   return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678   (eval $ac_compile) 2>conftest.er1
14679   ac_status=$?
14680   grep -v '^ *+' conftest.er1 >conftest.err
14681   rm -f conftest.er1
14682   cat conftest.err >&5
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); } &&
14685          { ac_try='test -z "$ac_c_werror_flag"
14686                          || test ! -s conftest.err'
14687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688   (eval $ac_try) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; } &&
14692          { ac_try='test -s conftest.$ac_objext'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; }; then
14698   ac_hi=$ac_mid; break
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ac_lo=`expr $ac_mid + 1`
14704                     if test $ac_lo -le $ac_mid; then
14705                       ac_lo= ac_hi=
14706                       break
14707                     fi
14708                     ac_mid=`expr 2 '*' $ac_mid + 1`
14709 fi
14710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14711   done
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h.  */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h.  */
14722 $ac_includes_default
14723 int
14724 main ()
14725 {
14726 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14727 test_array [0] = 0
14728
14729   ;
14730   return 0;
14731 }
14732 _ACEOF
14733 rm -f conftest.$ac_objext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14735   (eval $ac_compile) 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } &&
14742          { ac_try='test -z "$ac_c_werror_flag"
14743                          || test ! -s conftest.err'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; } &&
14749          { ac_try='test -s conftest.$ac_objext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   ac_hi=-1 ac_mid=-1
14756   while :; do
14757     cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763 $ac_includes_default
14764 int
14765 main ()
14766 {
14767 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14768 test_array [0] = 0
14769
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776   (eval $ac_compile) 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -z "$ac_c_werror_flag"
14784                          || test ! -s conftest.err'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; } &&
14790          { ac_try='test -s conftest.$ac_objext'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; }; then
14796   ac_lo=$ac_mid; break
14797 else
14798   echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_hi=`expr '(' $ac_mid ')' - 1`
14802                        if test $ac_mid -le $ac_hi; then
14803                          ac_lo= ac_hi=
14804                          break
14805                        fi
14806                        ac_mid=`expr 2 '*' $ac_mid`
14807 fi
14808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14809   done
14810 else
14811   echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14813
14814 ac_lo= ac_hi=
14815 fi
14816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819 # Binary search between lo and hi bounds.
14820 while test "x$ac_lo" != "x$ac_hi"; do
14821   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14822   cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h.  */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h.  */
14828 $ac_includes_default
14829 int
14830 main ()
14831 {
14832 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14833 test_array [0] = 0
14834
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841   (eval $ac_compile) 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } &&
14848          { ac_try='test -z "$ac_c_werror_flag"
14849                          || test ! -s conftest.err'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; } &&
14855          { ac_try='test -s conftest.$ac_objext'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; }; then
14861   ac_hi=$ac_mid
14862 else
14863   echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866 ac_lo=`expr '(' $ac_mid ')' + 1`
14867 fi
14868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869 done
14870 case $ac_lo in
14871 ?*) ac_cv_sizeof_char=$ac_lo;;
14872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14873 See \`config.log' for more details." >&5
14874 echo "$as_me: error: cannot compute sizeof (char), 77
14875 See \`config.log' for more details." >&2;}
14876    { (exit 1); exit 1; }; } ;;
14877 esac
14878 else
14879   if test "$cross_compiling" = yes; then
14880   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14881 See \`config.log' for more details." >&5
14882 echo "$as_me: error: cannot run test program while cross compiling
14883 See \`config.log' for more details." >&2;}
14884    { (exit 1); exit 1; }; }
14885 else
14886   cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h.  */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h.  */
14892 $ac_includes_default
14893 long longval () { return (long) (sizeof (char)); }
14894 unsigned long ulongval () { return (long) (sizeof (char)); }
14895 #include <stdio.h>
14896 #include <stdlib.h>
14897 int
14898 main ()
14899 {
14900
14901   FILE *f = fopen ("conftest.val", "w");
14902   if (! f)
14903     exit (1);
14904   if (((long) (sizeof (char))) < 0)
14905     {
14906       long i = longval ();
14907       if (i != ((long) (sizeof (char))))
14908         exit (1);
14909       fprintf (f, "%ld\n", i);
14910     }
14911   else
14912     {
14913       unsigned long i = ulongval ();
14914       if (i != ((long) (sizeof (char))))
14915         exit (1);
14916       fprintf (f, "%lu\n", i);
14917     }
14918   exit (ferror (f) || fclose (f) != 0);
14919
14920   ;
14921   return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926   (eval $ac_link) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_cv_sizeof_char=`cat conftest.val`
14936 else
14937   echo "$as_me: program exited with status $ac_status" >&5
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14940
14941 ( exit $ac_status )
14942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14943 See \`config.log' for more details." >&5
14944 echo "$as_me: error: cannot compute sizeof (char), 77
14945 See \`config.log' for more details." >&2;}
14946    { (exit 1); exit 1; }; }
14947 fi
14948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14949 fi
14950 fi
14951 rm -f conftest.val
14952 else
14953   ac_cv_sizeof_char=0
14954 fi
14955 fi
14956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14957 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14958 cat >>confdefs.h <<_ACEOF
14959 #define SIZEOF_CHAR $ac_cv_sizeof_char
14960 _ACEOF
14961
14962
14963 echo "$as_me:$LINENO: checking for short int" >&5
14964 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14965 if test "${ac_cv_type_short_int+set}" = set; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968   cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974 $ac_includes_default
14975 int
14976 main ()
14977 {
14978 if ((short int *) 0)
14979   return 0;
14980 if (sizeof (short int))
14981   return 0;
14982   ;
14983   return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988   (eval $ac_compile) 2>conftest.er1
14989   ac_status=$?
14990   grep -v '^ *+' conftest.er1 >conftest.err
14991   rm -f conftest.er1
14992   cat conftest.err >&5
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); } &&
14995          { ac_try='test -z "$ac_c_werror_flag"
14996                          || test ! -s conftest.err'
14997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998   (eval $ac_try) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; } &&
15002          { ac_try='test -s conftest.$ac_objext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_cv_type_short_int=yes
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_cv_type_short_int=no
15014 fi
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016 fi
15017 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15018 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15019
15020 echo "$as_me:$LINENO: checking size of short int" >&5
15021 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15022 if test "${ac_cv_sizeof_short_int+set}" = set; then
15023   echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025   if test "$ac_cv_type_short_int" = yes; then
15026   # The cast to unsigned long works around a bug in the HP C Compiler
15027   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15028   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15029   # This bug is HP SR number 8606223364.
15030   if test "$cross_compiling" = yes; then
15031   # Depending upon the size, compute the lo and hi bounds.
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038 $ac_includes_default
15039 int
15040 main ()
15041 {
15042 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15043 test_array [0] = 0
15044
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051   (eval $ac_compile) 2>conftest.er1
15052   ac_status=$?
15053   grep -v '^ *+' conftest.er1 >conftest.err
15054   rm -f conftest.er1
15055   cat conftest.err >&5
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); } &&
15058          { ac_try='test -z "$ac_c_werror_flag"
15059                          || test ! -s conftest.err'
15060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061   (eval $ac_try) 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; } &&
15065          { ac_try='test -s conftest.$ac_objext'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; }; then
15071   ac_lo=0 ac_mid=0
15072   while :; do
15073     cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079 $ac_includes_default
15080 int
15081 main ()
15082 {
15083 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15084 test_array [0] = 0
15085
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092   (eval $ac_compile) 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } &&
15099          { ac_try='test -z "$ac_c_werror_flag"
15100                          || test ! -s conftest.err'
15101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102   (eval $ac_try) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; } &&
15106          { ac_try='test -s conftest.$ac_objext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_hi=$ac_mid; break
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_lo=`expr $ac_mid + 1`
15118                     if test $ac_lo -le $ac_mid; then
15119                       ac_lo= ac_hi=
15120                       break
15121                     fi
15122                     ac_mid=`expr 2 '*' $ac_mid + 1`
15123 fi
15124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15125   done
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136 $ac_includes_default
15137 int
15138 main ()
15139 {
15140 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15141 test_array [0] = 0
15142
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 rm -f conftest.$ac_objext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149   (eval $ac_compile) 2>conftest.er1
15150   ac_status=$?
15151   grep -v '^ *+' conftest.er1 >conftest.err
15152   rm -f conftest.er1
15153   cat conftest.err >&5
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); } &&
15156          { ac_try='test -z "$ac_c_werror_flag"
15157                          || test ! -s conftest.err'
15158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159   (eval $ac_try) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); }; } &&
15163          { ac_try='test -s conftest.$ac_objext'
15164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165   (eval $ac_try) 2>&5
15166   ac_status=$?
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); }; }; then
15169   ac_hi=-1 ac_mid=-1
15170   while :; do
15171     cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h.  */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h.  */
15177 $ac_includes_default
15178 int
15179 main ()
15180 {
15181 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15182 test_array [0] = 0
15183
15184   ;
15185   return 0;
15186 }
15187 _ACEOF
15188 rm -f conftest.$ac_objext
15189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15190   (eval $ac_compile) 2>conftest.er1
15191   ac_status=$?
15192   grep -v '^ *+' conftest.er1 >conftest.err
15193   rm -f conftest.er1
15194   cat conftest.err >&5
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); } &&
15197          { ac_try='test -z "$ac_c_werror_flag"
15198                          || test ! -s conftest.err'
15199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200   (eval $ac_try) 2>&5
15201   ac_status=$?
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); }; } &&
15204          { ac_try='test -s conftest.$ac_objext'
15205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206   (eval $ac_try) 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_lo=$ac_mid; break
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_hi=`expr '(' $ac_mid ')' - 1`
15216                        if test $ac_mid -le $ac_hi; then
15217                          ac_lo= ac_hi=
15218                          break
15219                        fi
15220                        ac_mid=`expr 2 '*' $ac_mid`
15221 fi
15222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15223   done
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228 ac_lo= ac_hi=
15229 fi
15230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15231 fi
15232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15233 # Binary search between lo and hi bounds.
15234 while test "x$ac_lo" != "x$ac_hi"; do
15235   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15236   cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h.  */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h.  */
15242 $ac_includes_default
15243 int
15244 main ()
15245 {
15246 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15247 test_array [0] = 0
15248
15249   ;
15250   return 0;
15251 }
15252 _ACEOF
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15255   (eval $ac_compile) 2>conftest.er1
15256   ac_status=$?
15257   grep -v '^ *+' conftest.er1 >conftest.err
15258   rm -f conftest.er1
15259   cat conftest.err >&5
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } &&
15262          { ac_try='test -z "$ac_c_werror_flag"
15263                          || test ! -s conftest.err'
15264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265   (eval $ac_try) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; } &&
15269          { ac_try='test -s conftest.$ac_objext'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; }; then
15275   ac_hi=$ac_mid
15276 else
15277   echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ac_lo=`expr '(' $ac_mid ')' + 1`
15281 fi
15282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15283 done
15284 case $ac_lo in
15285 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15287 See \`config.log' for more details." >&5
15288 echo "$as_me: error: cannot compute sizeof (short int), 77
15289 See \`config.log' for more details." >&2;}
15290    { (exit 1); exit 1; }; } ;;
15291 esac
15292 else
15293   if test "$cross_compiling" = yes; then
15294   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15295 See \`config.log' for more details." >&5
15296 echo "$as_me: error: cannot run test program while cross compiling
15297 See \`config.log' for more details." >&2;}
15298    { (exit 1); exit 1; }; }
15299 else
15300   cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h.  */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h.  */
15306 $ac_includes_default
15307 long longval () { return (long) (sizeof (short int)); }
15308 unsigned long ulongval () { return (long) (sizeof (short int)); }
15309 #include <stdio.h>
15310 #include <stdlib.h>
15311 int
15312 main ()
15313 {
15314
15315   FILE *f = fopen ("conftest.val", "w");
15316   if (! f)
15317     exit (1);
15318   if (((long) (sizeof (short int))) < 0)
15319     {
15320       long i = longval ();
15321       if (i != ((long) (sizeof (short int))))
15322         exit (1);
15323       fprintf (f, "%ld\n", i);
15324     }
15325   else
15326     {
15327       unsigned long i = ulongval ();
15328       if (i != ((long) (sizeof (short int))))
15329         exit (1);
15330       fprintf (f, "%lu\n", i);
15331     }
15332   exit (ferror (f) || fclose (f) != 0);
15333
15334   ;
15335   return 0;
15336 }
15337 _ACEOF
15338 rm -f conftest$ac_exeext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15340   (eval $ac_link) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345   (eval $ac_try) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   ac_cv_sizeof_short_int=`cat conftest.val`
15350 else
15351   echo "$as_me: program exited with status $ac_status" >&5
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15354
15355 ( exit $ac_status )
15356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15357 See \`config.log' for more details." >&5
15358 echo "$as_me: error: cannot compute sizeof (short int), 77
15359 See \`config.log' for more details." >&2;}
15360    { (exit 1); exit 1; }; }
15361 fi
15362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15363 fi
15364 fi
15365 rm -f conftest.val
15366 else
15367   ac_cv_sizeof_short_int=0
15368 fi
15369 fi
15370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15371 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15372 cat >>confdefs.h <<_ACEOF
15373 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15374 _ACEOF
15375
15376
15377 echo "$as_me:$LINENO: checking for int" >&5
15378 echo $ECHO_N "checking for int... $ECHO_C" >&6
15379 if test "${ac_cv_type_int+set}" = set; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382   cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h.  */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h.  */
15388 $ac_includes_default
15389 int
15390 main ()
15391 {
15392 if ((int *) 0)
15393   return 0;
15394 if (sizeof (int))
15395   return 0;
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15402   (eval $ac_compile) 2>conftest.er1
15403   ac_status=$?
15404   grep -v '^ *+' conftest.er1 >conftest.err
15405   rm -f conftest.er1
15406   cat conftest.err >&5
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); } &&
15409          { ac_try='test -z "$ac_c_werror_flag"
15410                          || test ! -s conftest.err'
15411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412   (eval $ac_try) 2>&5
15413   ac_status=$?
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); }; } &&
15416          { ac_try='test -s conftest.$ac_objext'
15417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418   (eval $ac_try) 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; }; then
15422   ac_cv_type_int=yes
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427 ac_cv_type_int=no
15428 fi
15429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15430 fi
15431 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15432 echo "${ECHO_T}$ac_cv_type_int" >&6
15433
15434 echo "$as_me:$LINENO: checking size of int" >&5
15435 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15436 if test "${ac_cv_sizeof_int+set}" = set; then
15437   echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439   if test "$ac_cv_type_int" = yes; then
15440   # The cast to unsigned long works around a bug in the HP C Compiler
15441   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15442   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15443   # This bug is HP SR number 8606223364.
15444   if test "$cross_compiling" = yes; then
15445   # Depending upon the size, compute the lo and hi bounds.
15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452 $ac_includes_default
15453 int
15454 main ()
15455 {
15456 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15457 test_array [0] = 0
15458
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 rm -f conftest.$ac_objext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465   (eval $ac_compile) 2>conftest.er1
15466   ac_status=$?
15467   grep -v '^ *+' conftest.er1 >conftest.err
15468   rm -f conftest.er1
15469   cat conftest.err >&5
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); } &&
15472          { ac_try='test -z "$ac_c_werror_flag"
15473                          || test ! -s conftest.err'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; } &&
15479          { ac_try='test -s conftest.$ac_objext'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; }; then
15485   ac_lo=0 ac_mid=0
15486   while :; do
15487     cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h.  */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h.  */
15493 $ac_includes_default
15494 int
15495 main ()
15496 {
15497 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15498 test_array [0] = 0
15499
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506   (eval $ac_compile) 2>conftest.er1
15507   ac_status=$?
15508   grep -v '^ *+' conftest.er1 >conftest.err
15509   rm -f conftest.er1
15510   cat conftest.err >&5
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } &&
15513          { ac_try='test -z "$ac_c_werror_flag"
15514                          || test ! -s conftest.err'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; } &&
15520          { ac_try='test -s conftest.$ac_objext'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526   ac_hi=$ac_mid; break
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 ac_lo=`expr $ac_mid + 1`
15532                     if test $ac_lo -le $ac_mid; then
15533                       ac_lo= ac_hi=
15534                       break
15535                     fi
15536                     ac_mid=`expr 2 '*' $ac_mid + 1`
15537 fi
15538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15539   done
15540 else
15541   echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550 $ac_includes_default
15551 int
15552 main ()
15553 {
15554 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15555 test_array [0] = 0
15556
15557   ;
15558   return 0;
15559 }
15560 _ACEOF
15561 rm -f conftest.$ac_objext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563   (eval $ac_compile) 2>conftest.er1
15564   ac_status=$?
15565   grep -v '^ *+' conftest.er1 >conftest.err
15566   rm -f conftest.er1
15567   cat conftest.err >&5
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); } &&
15570          { ac_try='test -z "$ac_c_werror_flag"
15571                          || test ! -s conftest.err'
15572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573   (eval $ac_try) 2>&5
15574   ac_status=$?
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); }; } &&
15577          { ac_try='test -s conftest.$ac_objext'
15578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579   (eval $ac_try) 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); }; }; then
15583   ac_hi=-1 ac_mid=-1
15584   while :; do
15585     cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591 $ac_includes_default
15592 int
15593 main ()
15594 {
15595 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15596 test_array [0] = 0
15597
15598   ;
15599   return 0;
15600 }
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604   (eval $ac_compile) 2>conftest.er1
15605   ac_status=$?
15606   grep -v '^ *+' conftest.er1 >conftest.err
15607   rm -f conftest.er1
15608   cat conftest.err >&5
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); } &&
15611          { ac_try='test -z "$ac_c_werror_flag"
15612                          || test ! -s conftest.err'
15613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614   (eval $ac_try) 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; } &&
15618          { ac_try='test -s conftest.$ac_objext'
15619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620   (eval $ac_try) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; }; then
15624   ac_lo=$ac_mid; break
15625 else
15626   echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15628
15629 ac_hi=`expr '(' $ac_mid ')' - 1`
15630                        if test $ac_mid -le $ac_hi; then
15631                          ac_lo= ac_hi=
15632                          break
15633                        fi
15634                        ac_mid=`expr 2 '*' $ac_mid`
15635 fi
15636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15637   done
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642 ac_lo= ac_hi=
15643 fi
15644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15645 fi
15646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15647 # Binary search between lo and hi bounds.
15648 while test "x$ac_lo" != "x$ac_hi"; do
15649   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15650   cat >conftest.$ac_ext <<_ACEOF
15651 /* confdefs.h.  */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h.  */
15656 $ac_includes_default
15657 int
15658 main ()
15659 {
15660 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15661 test_array [0] = 0
15662
15663   ;
15664   return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15669   (eval $ac_compile) 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } &&
15676          { ac_try='test -z "$ac_c_werror_flag"
15677                          || test ! -s conftest.err'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; } &&
15683          { ac_try='test -s conftest.$ac_objext'
15684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685   (eval $ac_try) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; }; then
15689   ac_hi=$ac_mid
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 ac_lo=`expr '(' $ac_mid ')' + 1`
15695 fi
15696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15697 done
15698 case $ac_lo in
15699 ?*) ac_cv_sizeof_int=$ac_lo;;
15700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15701 See \`config.log' for more details." >&5
15702 echo "$as_me: error: cannot compute sizeof (int), 77
15703 See \`config.log' for more details." >&2;}
15704    { (exit 1); exit 1; }; } ;;
15705 esac
15706 else
15707   if test "$cross_compiling" = yes; then
15708   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15709 See \`config.log' for more details." >&5
15710 echo "$as_me: error: cannot run test program while cross compiling
15711 See \`config.log' for more details." >&2;}
15712    { (exit 1); exit 1; }; }
15713 else
15714   cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720 $ac_includes_default
15721 long longval () { return (long) (sizeof (int)); }
15722 unsigned long ulongval () { return (long) (sizeof (int)); }
15723 #include <stdio.h>
15724 #include <stdlib.h>
15725 int
15726 main ()
15727 {
15728
15729   FILE *f = fopen ("conftest.val", "w");
15730   if (! f)
15731     exit (1);
15732   if (((long) (sizeof (int))) < 0)
15733     {
15734       long i = longval ();
15735       if (i != ((long) (sizeof (int))))
15736         exit (1);
15737       fprintf (f, "%ld\n", i);
15738     }
15739   else
15740     {
15741       unsigned long i = ulongval ();
15742       if (i != ((long) (sizeof (int))))
15743         exit (1);
15744       fprintf (f, "%lu\n", i);
15745     }
15746   exit (ferror (f) || fclose (f) != 0);
15747
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest$ac_exeext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754   (eval $ac_link) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_cv_sizeof_int=`cat conftest.val`
15764 else
15765   echo "$as_me: program exited with status $ac_status" >&5
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 ( exit $ac_status )
15770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15771 See \`config.log' for more details." >&5
15772 echo "$as_me: error: cannot compute sizeof (int), 77
15773 See \`config.log' for more details." >&2;}
15774    { (exit 1); exit 1; }; }
15775 fi
15776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15777 fi
15778 fi
15779 rm -f conftest.val
15780 else
15781   ac_cv_sizeof_int=0
15782 fi
15783 fi
15784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15785 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15786 cat >>confdefs.h <<_ACEOF
15787 #define SIZEOF_INT $ac_cv_sizeof_int
15788 _ACEOF
15789
15790
15791 echo "$as_me:$LINENO: checking for long int" >&5
15792 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15793 if test "${ac_cv_type_long_int+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802 $ac_includes_default
15803 int
15804 main ()
15805 {
15806 if ((long int *) 0)
15807   return 0;
15808 if (sizeof (long int))
15809   return 0;
15810   ;
15811   return 0;
15812 }
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816   (eval $ac_compile) 2>conftest.er1
15817   ac_status=$?
15818   grep -v '^ *+' conftest.er1 >conftest.err
15819   rm -f conftest.er1
15820   cat conftest.err >&5
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); } &&
15823          { ac_try='test -z "$ac_c_werror_flag"
15824                          || test ! -s conftest.err'
15825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826   (eval $ac_try) 2>&5
15827   ac_status=$?
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); }; } &&
15830          { ac_try='test -s conftest.$ac_objext'
15831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832   (eval $ac_try) 2>&5
15833   ac_status=$?
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); }; }; then
15836   ac_cv_type_long_int=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_cv_type_long_int=no
15842 fi
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15844 fi
15845 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15846 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15847
15848 echo "$as_me:$LINENO: checking size of long int" >&5
15849 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15850 if test "${ac_cv_sizeof_long_int+set}" = set; then
15851   echo $ECHO_N "(cached) $ECHO_C" >&6
15852 else
15853   if test "$ac_cv_type_long_int" = yes; then
15854   # The cast to unsigned long works around a bug in the HP C Compiler
15855   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15856   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15857   # This bug is HP SR number 8606223364.
15858   if test "$cross_compiling" = yes; then
15859   # Depending upon the size, compute the lo and hi bounds.
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866 $ac_includes_default
15867 int
15868 main ()
15869 {
15870 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15871 test_array [0] = 0
15872
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879   (eval $ac_compile) 2>conftest.er1
15880   ac_status=$?
15881   grep -v '^ *+' conftest.er1 >conftest.err
15882   rm -f conftest.er1
15883   cat conftest.err >&5
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } &&
15886          { ac_try='test -z "$ac_c_werror_flag"
15887                          || test ! -s conftest.err'
15888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889   (eval $ac_try) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; } &&
15893          { ac_try='test -s conftest.$ac_objext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_lo=0 ac_mid=0
15900   while :; do
15901     cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 $ac_includes_default
15908 int
15909 main ()
15910 {
15911 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15912 test_array [0] = 0
15913
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920   (eval $ac_compile) 2>conftest.er1
15921   ac_status=$?
15922   grep -v '^ *+' conftest.er1 >conftest.err
15923   rm -f conftest.er1
15924   cat conftest.err >&5
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); } &&
15927          { ac_try='test -z "$ac_c_werror_flag"
15928                          || test ! -s conftest.err'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; } &&
15934          { ac_try='test -s conftest.$ac_objext'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   ac_hi=$ac_mid; break
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ac_lo=`expr $ac_mid + 1`
15946                     if test $ac_lo -le $ac_mid; then
15947                       ac_lo= ac_hi=
15948                       break
15949                     fi
15950                     ac_mid=`expr 2 '*' $ac_mid + 1`
15951 fi
15952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953   done
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h.  */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h.  */
15964 $ac_includes_default
15965 int
15966 main ()
15967 {
15968 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15969 test_array [0] = 0
15970
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977   (eval $ac_compile) 2>conftest.er1
15978   ac_status=$?
15979   grep -v '^ *+' conftest.er1 >conftest.err
15980   rm -f conftest.er1
15981   cat conftest.err >&5
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } &&
15984          { ac_try='test -z "$ac_c_werror_flag"
15985                          || test ! -s conftest.err'
15986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987   (eval $ac_try) 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); }; } &&
15991          { ac_try='test -s conftest.$ac_objext'
15992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993   (eval $ac_try) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; }; then
15997   ac_hi=-1 ac_mid=-1
15998   while :; do
15999     cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h.  */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h.  */
16005 $ac_includes_default
16006 int
16007 main ()
16008 {
16009 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
16010 test_array [0] = 0
16011
16012   ;
16013   return 0;
16014 }
16015 _ACEOF
16016 rm -f conftest.$ac_objext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018   (eval $ac_compile) 2>conftest.er1
16019   ac_status=$?
16020   grep -v '^ *+' conftest.er1 >conftest.err
16021   rm -f conftest.er1
16022   cat conftest.err >&5
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); } &&
16025          { ac_try='test -z "$ac_c_werror_flag"
16026                          || test ! -s conftest.err'
16027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028   (eval $ac_try) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; } &&
16032          { ac_try='test -s conftest.$ac_objext'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   ac_lo=$ac_mid; break
16039 else
16040   echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 ac_hi=`expr '(' $ac_mid ')' - 1`
16044                        if test $ac_mid -le $ac_hi; then
16045                          ac_lo= ac_hi=
16046                          break
16047                        fi
16048                        ac_mid=`expr 2 '*' $ac_mid`
16049 fi
16050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16051   done
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_lo= ac_hi=
16057 fi
16058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16059 fi
16060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16061 # Binary search between lo and hi bounds.
16062 while test "x$ac_lo" != "x$ac_hi"; do
16063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16064   cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 $ac_includes_default
16071 int
16072 main ()
16073 {
16074 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16075 test_array [0] = 0
16076
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083   (eval $ac_compile) 2>conftest.er1
16084   ac_status=$?
16085   grep -v '^ *+' conftest.er1 >conftest.err
16086   rm -f conftest.er1
16087   cat conftest.err >&5
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); } &&
16090          { ac_try='test -z "$ac_c_werror_flag"
16091                          || test ! -s conftest.err'
16092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093   (eval $ac_try) 2>&5
16094   ac_status=$?
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); }; } &&
16097          { ac_try='test -s conftest.$ac_objext'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; }; then
16103   ac_hi=$ac_mid
16104 else
16105   echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108 ac_lo=`expr '(' $ac_mid ')' + 1`
16109 fi
16110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16111 done
16112 case $ac_lo in
16113 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16115 See \`config.log' for more details." >&5
16116 echo "$as_me: error: cannot compute sizeof (long int), 77
16117 See \`config.log' for more details." >&2;}
16118    { (exit 1); exit 1; }; } ;;
16119 esac
16120 else
16121   if test "$cross_compiling" = yes; then
16122   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16123 See \`config.log' for more details." >&5
16124 echo "$as_me: error: cannot run test program while cross compiling
16125 See \`config.log' for more details." >&2;}
16126    { (exit 1); exit 1; }; }
16127 else
16128   cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h.  */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h.  */
16134 $ac_includes_default
16135 long longval () { return (long) (sizeof (long int)); }
16136 unsigned long ulongval () { return (long) (sizeof (long int)); }
16137 #include <stdio.h>
16138 #include <stdlib.h>
16139 int
16140 main ()
16141 {
16142
16143   FILE *f = fopen ("conftest.val", "w");
16144   if (! f)
16145     exit (1);
16146   if (((long) (sizeof (long int))) < 0)
16147     {
16148       long i = longval ();
16149       if (i != ((long) (sizeof (long int))))
16150         exit (1);
16151       fprintf (f, "%ld\n", i);
16152     }
16153   else
16154     {
16155       unsigned long i = ulongval ();
16156       if (i != ((long) (sizeof (long int))))
16157         exit (1);
16158       fprintf (f, "%lu\n", i);
16159     }
16160   exit (ferror (f) || fclose (f) != 0);
16161
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 rm -f conftest$ac_exeext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16168   (eval $ac_link) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173   (eval $ac_try) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; }; then
16177   ac_cv_sizeof_long_int=`cat conftest.val`
16178 else
16179   echo "$as_me: program exited with status $ac_status" >&5
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ( exit $ac_status )
16184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16185 See \`config.log' for more details." >&5
16186 echo "$as_me: error: cannot compute sizeof (long int), 77
16187 See \`config.log' for more details." >&2;}
16188    { (exit 1); exit 1; }; }
16189 fi
16190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16191 fi
16192 fi
16193 rm -f conftest.val
16194 else
16195   ac_cv_sizeof_long_int=0
16196 fi
16197 fi
16198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16199 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16200 cat >>confdefs.h <<_ACEOF
16201 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16202 _ACEOF
16203
16204
16205 echo "$as_me:$LINENO: checking for long long int" >&5
16206 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16207 if test "${ac_cv_type_long_long_int+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216 $ac_includes_default
16217 int
16218 main ()
16219 {
16220 if ((long long int *) 0)
16221   return 0;
16222 if (sizeof (long long int))
16223   return 0;
16224   ;
16225   return 0;
16226 }
16227 _ACEOF
16228 rm -f conftest.$ac_objext
16229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16230   (eval $ac_compile) 2>conftest.er1
16231   ac_status=$?
16232   grep -v '^ *+' conftest.er1 >conftest.err
16233   rm -f conftest.er1
16234   cat conftest.err >&5
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); } &&
16237          { ac_try='test -z "$ac_c_werror_flag"
16238                          || test ! -s conftest.err'
16239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240   (eval $ac_try) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); }; } &&
16244          { ac_try='test -s conftest.$ac_objext'
16245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246   (eval $ac_try) 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }; }; then
16250   ac_cv_type_long_long_int=yes
16251 else
16252   echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255 ac_cv_type_long_long_int=no
16256 fi
16257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16258 fi
16259 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16260 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16261
16262 echo "$as_me:$LINENO: checking size of long long int" >&5
16263 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16264 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16265   echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267   if test "$ac_cv_type_long_long_int" = yes; then
16268   # The cast to unsigned long works around a bug in the HP C Compiler
16269   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16270   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16271   # This bug is HP SR number 8606223364.
16272   if test "$cross_compiling" = yes; then
16273   # Depending upon the size, compute the lo and hi bounds.
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h.  */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h.  */
16280 $ac_includes_default
16281 int
16282 main ()
16283 {
16284 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16285 test_array [0] = 0
16286
16287   ;
16288   return 0;
16289 }
16290 _ACEOF
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293   (eval $ac_compile) 2>conftest.er1
16294   ac_status=$?
16295   grep -v '^ *+' conftest.er1 >conftest.err
16296   rm -f conftest.er1
16297   cat conftest.err >&5
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); } &&
16300          { ac_try='test -z "$ac_c_werror_flag"
16301                          || test ! -s conftest.err'
16302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303   (eval $ac_try) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; } &&
16307          { ac_try='test -s conftest.$ac_objext'
16308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309   (eval $ac_try) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; }; then
16313   ac_lo=0 ac_mid=0
16314   while :; do
16315     cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321 $ac_includes_default
16322 int
16323 main ()
16324 {
16325 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16326 test_array [0] = 0
16327
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 rm -f conftest.$ac_objext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16334   (eval $ac_compile) 2>conftest.er1
16335   ac_status=$?
16336   grep -v '^ *+' conftest.er1 >conftest.err
16337   rm -f conftest.er1
16338   cat conftest.err >&5
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); } &&
16341          { ac_try='test -z "$ac_c_werror_flag"
16342                          || test ! -s conftest.err'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; } &&
16348          { ac_try='test -s conftest.$ac_objext'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; }; then
16354   ac_hi=$ac_mid; break
16355 else
16356   echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ac_lo=`expr $ac_mid + 1`
16360                     if test $ac_lo -le $ac_mid; then
16361                       ac_lo= ac_hi=
16362                       break
16363                     fi
16364                     ac_mid=`expr 2 '*' $ac_mid + 1`
16365 fi
16366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16367   done
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372 cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 $ac_includes_default
16379 int
16380 main ()
16381 {
16382 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16383 test_array [0] = 0
16384
16385   ;
16386   return 0;
16387 }
16388 _ACEOF
16389 rm -f conftest.$ac_objext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391   (eval $ac_compile) 2>conftest.er1
16392   ac_status=$?
16393   grep -v '^ *+' conftest.er1 >conftest.err
16394   rm -f conftest.er1
16395   cat conftest.err >&5
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } &&
16398          { ac_try='test -z "$ac_c_werror_flag"
16399                          || test ! -s conftest.err'
16400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401   (eval $ac_try) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; } &&
16405          { ac_try='test -s conftest.$ac_objext'
16406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407   (eval $ac_try) 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); }; }; then
16411   ac_hi=-1 ac_mid=-1
16412   while :; do
16413     cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419 $ac_includes_default
16420 int
16421 main ()
16422 {
16423 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16424 test_array [0] = 0
16425
16426   ;
16427   return 0;
16428 }
16429 _ACEOF
16430 rm -f conftest.$ac_objext
16431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432   (eval $ac_compile) 2>conftest.er1
16433   ac_status=$?
16434   grep -v '^ *+' conftest.er1 >conftest.err
16435   rm -f conftest.er1
16436   cat conftest.err >&5
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } &&
16439          { ac_try='test -z "$ac_c_werror_flag"
16440                          || test ! -s conftest.err'
16441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442   (eval $ac_try) 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; } &&
16446          { ac_try='test -s conftest.$ac_objext'
16447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448   (eval $ac_try) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; }; then
16452   ac_lo=$ac_mid; break
16453 else
16454   echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16456
16457 ac_hi=`expr '(' $ac_mid ')' - 1`
16458                        if test $ac_mid -le $ac_hi; then
16459                          ac_lo= ac_hi=
16460                          break
16461                        fi
16462                        ac_mid=`expr 2 '*' $ac_mid`
16463 fi
16464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16465   done
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470 ac_lo= ac_hi=
16471 fi
16472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16473 fi
16474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16475 # Binary search between lo and hi bounds.
16476 while test "x$ac_lo" != "x$ac_hi"; do
16477   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16478   cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484 $ac_includes_default
16485 int
16486 main ()
16487 {
16488 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16489 test_array [0] = 0
16490
16491   ;
16492   return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest.$ac_objext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16497   (eval $ac_compile) 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } &&
16504          { ac_try='test -z "$ac_c_werror_flag"
16505                          || test ! -s conftest.err'
16506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507   (eval $ac_try) 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); }; } &&
16511          { ac_try='test -s conftest.$ac_objext'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; }; then
16517   ac_hi=$ac_mid
16518 else
16519   echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 ac_lo=`expr '(' $ac_mid ')' + 1`
16523 fi
16524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16525 done
16526 case $ac_lo in
16527 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16528 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16529 See \`config.log' for more details." >&5
16530 echo "$as_me: error: cannot compute sizeof (long long int), 77
16531 See \`config.log' for more details." >&2;}
16532    { (exit 1); exit 1; }; } ;;
16533 esac
16534 else
16535   if test "$cross_compiling" = yes; then
16536   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16537 See \`config.log' for more details." >&5
16538 echo "$as_me: error: cannot run test program while cross compiling
16539 See \`config.log' for more details." >&2;}
16540    { (exit 1); exit 1; }; }
16541 else
16542   cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h.  */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h.  */
16548 $ac_includes_default
16549 long longval () { return (long) (sizeof (long long int)); }
16550 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16551 #include <stdio.h>
16552 #include <stdlib.h>
16553 int
16554 main ()
16555 {
16556
16557   FILE *f = fopen ("conftest.val", "w");
16558   if (! f)
16559     exit (1);
16560   if (((long) (sizeof (long long int))) < 0)
16561     {
16562       long i = longval ();
16563       if (i != ((long) (sizeof (long long int))))
16564         exit (1);
16565       fprintf (f, "%ld\n", i);
16566     }
16567   else
16568     {
16569       unsigned long i = ulongval ();
16570       if (i != ((long) (sizeof (long long int))))
16571         exit (1);
16572       fprintf (f, "%lu\n", i);
16573     }
16574   exit (ferror (f) || fclose (f) != 0);
16575
16576   ;
16577   return 0;
16578 }
16579 _ACEOF
16580 rm -f conftest$ac_exeext
16581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16582   (eval $ac_link) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   ac_cv_sizeof_long_long_int=`cat conftest.val`
16592 else
16593   echo "$as_me: program exited with status $ac_status" >&5
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16596
16597 ( exit $ac_status )
16598 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16599 See \`config.log' for more details." >&5
16600 echo "$as_me: error: cannot compute sizeof (long long int), 77
16601 See \`config.log' for more details." >&2;}
16602    { (exit 1); exit 1; }; }
16603 fi
16604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16605 fi
16606 fi
16607 rm -f conftest.val
16608 else
16609   ac_cv_sizeof_long_long_int=0
16610 fi
16611 fi
16612 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16613 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16614 cat >>confdefs.h <<_ACEOF
16615 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16616 _ACEOF
16617
16618
16619 echo "$as_me:$LINENO: checking for int *" >&5
16620 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16621 if test "${ac_cv_type_int_p+set}" = set; then
16622   echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624   cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h.  */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h.  */
16630 $ac_includes_default
16631 int
16632 main ()
16633 {
16634 if ((int * *) 0)
16635   return 0;
16636 if (sizeof (int *))
16637   return 0;
16638   ;
16639   return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644   (eval $ac_compile) 2>conftest.er1
16645   ac_status=$?
16646   grep -v '^ *+' conftest.er1 >conftest.err
16647   rm -f conftest.er1
16648   cat conftest.err >&5
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } &&
16651          { ac_try='test -z "$ac_c_werror_flag"
16652                          || test ! -s conftest.err'
16653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; } &&
16658          { ac_try='test -s conftest.$ac_objext'
16659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660   (eval $ac_try) 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); }; }; then
16664   ac_cv_type_int_p=yes
16665 else
16666   echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16668
16669 ac_cv_type_int_p=no
16670 fi
16671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16674 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16675
16676 echo "$as_me:$LINENO: checking size of int *" >&5
16677 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16678 if test "${ac_cv_sizeof_int_p+set}" = set; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   if test "$ac_cv_type_int_p" = yes; then
16682   # The cast to unsigned long works around a bug in the HP C Compiler
16683   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16684   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16685   # This bug is HP SR number 8606223364.
16686   if test "$cross_compiling" = yes; then
16687   # Depending upon the size, compute the lo and hi bounds.
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694 $ac_includes_default
16695 int
16696 main ()
16697 {
16698 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16699 test_array [0] = 0
16700
16701   ;
16702   return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707   (eval $ac_compile) 2>conftest.er1
16708   ac_status=$?
16709   grep -v '^ *+' conftest.er1 >conftest.err
16710   rm -f conftest.er1
16711   cat conftest.err >&5
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } &&
16714          { ac_try='test -z "$ac_c_werror_flag"
16715                          || test ! -s conftest.err'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; } &&
16721          { ac_try='test -s conftest.$ac_objext'
16722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723   (eval $ac_try) 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); }; }; then
16727   ac_lo=0 ac_mid=0
16728   while :; do
16729     cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 $ac_includes_default
16736 int
16737 main ()
16738 {
16739 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16740 test_array [0] = 0
16741
16742   ;
16743   return 0;
16744 }
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748   (eval $ac_compile) 2>conftest.er1
16749   ac_status=$?
16750   grep -v '^ *+' conftest.er1 >conftest.err
16751   rm -f conftest.er1
16752   cat conftest.err >&5
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } &&
16755          { ac_try='test -z "$ac_c_werror_flag"
16756                          || test ! -s conftest.err'
16757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758   (eval $ac_try) 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; } &&
16762          { ac_try='test -s conftest.$ac_objext'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; }; then
16768   ac_hi=$ac_mid; break
16769 else
16770   echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16772
16773 ac_lo=`expr $ac_mid + 1`
16774                     if test $ac_lo -le $ac_mid; then
16775                       ac_lo= ac_hi=
16776                       break
16777                     fi
16778                     ac_mid=`expr 2 '*' $ac_mid + 1`
16779 fi
16780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16781   done
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 $ac_includes_default
16793 int
16794 main ()
16795 {
16796 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16797 test_array [0] = 0
16798
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805   (eval $ac_compile) 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } &&
16812          { ac_try='test -z "$ac_c_werror_flag"
16813                          || test ! -s conftest.err'
16814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815   (eval $ac_try) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; } &&
16819          { ac_try='test -s conftest.$ac_objext'
16820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821   (eval $ac_try) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); }; }; then
16825   ac_hi=-1 ac_mid=-1
16826   while :; do
16827     cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 $ac_includes_default
16834 int
16835 main ()
16836 {
16837 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16838 test_array [0] = 0
16839
16840   ;
16841   return 0;
16842 }
16843 _ACEOF
16844 rm -f conftest.$ac_objext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16846   (eval $ac_compile) 2>conftest.er1
16847   ac_status=$?
16848   grep -v '^ *+' conftest.er1 >conftest.err
16849   rm -f conftest.er1
16850   cat conftest.err >&5
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } &&
16853          { ac_try='test -z "$ac_c_werror_flag"
16854                          || test ! -s conftest.err'
16855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856   (eval $ac_try) 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; } &&
16860          { ac_try='test -s conftest.$ac_objext'
16861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862   (eval $ac_try) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; }; then
16866   ac_lo=$ac_mid; break
16867 else
16868   echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871 ac_hi=`expr '(' $ac_mid ')' - 1`
16872                        if test $ac_mid -le $ac_hi; then
16873                          ac_lo= ac_hi=
16874                          break
16875                        fi
16876                        ac_mid=`expr 2 '*' $ac_mid`
16877 fi
16878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16879   done
16880 else
16881   echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 ac_lo= ac_hi=
16885 fi
16886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16887 fi
16888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16889 # Binary search between lo and hi bounds.
16890 while test "x$ac_lo" != "x$ac_hi"; do
16891   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16892   cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h.  */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h.  */
16898 $ac_includes_default
16899 int
16900 main ()
16901 {
16902 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16903 test_array [0] = 0
16904
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911   (eval $ac_compile) 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag"
16919                          || test ! -s conftest.err'
16920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921   (eval $ac_try) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; } &&
16925          { ac_try='test -s conftest.$ac_objext'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931   ac_hi=$ac_mid
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ac_lo=`expr '(' $ac_mid ')' + 1`
16937 fi
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939 done
16940 case $ac_lo in
16941 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16942 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16943 See \`config.log' for more details." >&5
16944 echo "$as_me: error: cannot compute sizeof (int *), 77
16945 See \`config.log' for more details." >&2;}
16946    { (exit 1); exit 1; }; } ;;
16947 esac
16948 else
16949   if test "$cross_compiling" = yes; then
16950   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16951 See \`config.log' for more details." >&5
16952 echo "$as_me: error: cannot run test program while cross compiling
16953 See \`config.log' for more details." >&2;}
16954    { (exit 1); exit 1; }; }
16955 else
16956   cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962 $ac_includes_default
16963 long longval () { return (long) (sizeof (int *)); }
16964 unsigned long ulongval () { return (long) (sizeof (int *)); }
16965 #include <stdio.h>
16966 #include <stdlib.h>
16967 int
16968 main ()
16969 {
16970
16971   FILE *f = fopen ("conftest.val", "w");
16972   if (! f)
16973     exit (1);
16974   if (((long) (sizeof (int *))) < 0)
16975     {
16976       long i = longval ();
16977       if (i != ((long) (sizeof (int *))))
16978         exit (1);
16979       fprintf (f, "%ld\n", i);
16980     }
16981   else
16982     {
16983       unsigned long i = ulongval ();
16984       if (i != ((long) (sizeof (int *))))
16985         exit (1);
16986       fprintf (f, "%lu\n", i);
16987     }
16988   exit (ferror (f) || fclose (f) != 0);
16989
16990   ;
16991   return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest$ac_exeext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996   (eval $ac_link) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; }; then
17005   ac_cv_sizeof_int_p=`cat conftest.val`
17006 else
17007   echo "$as_me: program exited with status $ac_status" >&5
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ( exit $ac_status )
17012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
17013 See \`config.log' for more details." >&5
17014 echo "$as_me: error: cannot compute sizeof (int *), 77
17015 See \`config.log' for more details." >&2;}
17016    { (exit 1); exit 1; }; }
17017 fi
17018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17019 fi
17020 fi
17021 rm -f conftest.val
17022 else
17023   ac_cv_sizeof_int_p=0
17024 fi
17025 fi
17026 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17027 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17028 cat >>confdefs.h <<_ACEOF
17029 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17030 _ACEOF
17031
17032
17033
17034 # Check for sys/types.h types
17035 echo "$as_me:$LINENO: checking for u_int type" >&5
17036 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17037 if test "${ac_cv_have_u_int+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040
17041     cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047  #include <sys/types.h>
17048 int
17049 main ()
17050 {
17051  u_int a; a = 1;
17052   ;
17053   return 0;
17054 }
17055 _ACEOF
17056 rm -f conftest.$ac_objext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17058   (eval $ac_compile) 2>conftest.er1
17059   ac_status=$?
17060   grep -v '^ *+' conftest.er1 >conftest.err
17061   rm -f conftest.er1
17062   cat conftest.err >&5
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } &&
17065          { ac_try='test -z "$ac_c_werror_flag"
17066                          || test ! -s conftest.err'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; } &&
17072          { ac_try='test -s conftest.$ac_objext'
17073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074   (eval $ac_try) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }; }; then
17078    ac_cv_have_u_int="yes"
17079 else
17080   echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17082
17083  ac_cv_have_u_int="no"
17084
17085 fi
17086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17087
17088 fi
17089 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17090 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17091 if test "x$ac_cv_have_u_int" = "xyes" ; then
17092    cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_U_INT 1
17094 _ACEOF
17095
17096    have_u_int=1
17097 fi
17098
17099 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17100 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17101 if test "${ac_cv_have_intmax_t+set}" = set; then
17102   echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104
17105    cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111  #include <sys/types.h>
17112 int
17113 main ()
17114 {
17115  intmax_t a; a = 1;
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17122   (eval $ac_compile) 2>conftest.er1
17123   ac_status=$?
17124   grep -v '^ *+' conftest.er1 >conftest.err
17125   rm -f conftest.er1
17126   cat conftest.err >&5
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); } &&
17129          { ac_try='test -z "$ac_c_werror_flag"
17130                          || test ! -s conftest.err'
17131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132   (eval $ac_try) 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; } &&
17136          { ac_try='test -s conftest.$ac_objext'
17137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138   (eval $ac_try) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); }; }; then
17142    ac_cv_have_intmax_t="yes"
17143 else
17144   echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147
17148          cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h.  */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h.  */
17154  #include <stdint.h>
17155 int
17156 main ()
17157 {
17158  intmax_t a; a = 1;
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165   (eval $ac_compile) 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -z "$ac_c_werror_flag"
17173                          || test ! -s conftest.err'
17174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175   (eval $ac_try) 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); }; } &&
17179          { ac_try='test -s conftest.$ac_objext'
17180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181   (eval $ac_try) 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; }; then
17185    ac_cv_have_intmax_t="yes"
17186 else
17187   echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17189
17190  ac_cv_have_intmax_t="no"
17191
17192 fi
17193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17194
17195
17196 fi
17197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17198
17199
17200 fi
17201 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17202 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17203 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17204    cat >>confdefs.h <<\_ACEOF
17205 #define HAVE_INTMAX_T 1
17206 _ACEOF
17207
17208    have_intmax_t=1
17209 fi
17210
17211
17212 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17213 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17214 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17215   echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217
17218    cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224  #include <sys/types.h>
17225 int
17226 main ()
17227 {
17228  u_intmax_t a; a = 1;
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235   (eval $ac_compile) 2>conftest.er1
17236   ac_status=$?
17237   grep -v '^ *+' conftest.er1 >conftest.err
17238   rm -f conftest.er1
17239   cat conftest.err >&5
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); } &&
17242          { ac_try='test -z "$ac_c_werror_flag"
17243                          || test ! -s conftest.err'
17244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245   (eval $ac_try) 2>&5
17246   ac_status=$?
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); }; } &&
17249          { ac_try='test -s conftest.$ac_objext'
17250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251   (eval $ac_try) 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; }; then
17255    ac_cv_have_u_intmax_t="yes"
17256 else
17257   echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260
17261          cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h.  */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h.  */
17267  #include <stdint.h>
17268 int
17269 main ()
17270 {
17271  u_intmax_t a; a = 1;
17272   ;
17273   return 0;
17274 }
17275 _ACEOF
17276 rm -f conftest.$ac_objext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17278   (eval $ac_compile) 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } &&
17285          { ac_try='test -z "$ac_c_werror_flag"
17286                          || test ! -s conftest.err'
17287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288   (eval $ac_try) 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; } &&
17292          { ac_try='test -s conftest.$ac_objext'
17293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294   (eval $ac_try) 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; }; then
17298    ac_cv_have_u_intmax_t="yes"
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303  ac_cv_have_u_intmax_t="no"
17304
17305 fi
17306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17307
17308
17309 fi
17310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17311
17312 fi
17313 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17314 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17315 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17316    cat >>confdefs.h <<\_ACEOF
17317 #define HAVE_U_INTMAX_T 1
17318 _ACEOF
17319
17320    have_u_intmax_t=1
17321 fi
17322
17323
17324 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17325 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17326 if test "${ac_cv_have_intxx_t+set}" = set; then
17327   echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329
17330    cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h.  */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h.  */
17336  #include <sys/types.h>
17337 int
17338 main ()
17339 {
17340  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347   (eval $ac_compile) 2>conftest.er1
17348   ac_status=$?
17349   grep -v '^ *+' conftest.er1 >conftest.err
17350   rm -f conftest.er1
17351   cat conftest.err >&5
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); } &&
17354          { ac_try='test -z "$ac_c_werror_flag"
17355                          || test ! -s conftest.err'
17356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357   (eval $ac_try) 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); }; } &&
17361          { ac_try='test -s conftest.$ac_objext'
17362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363   (eval $ac_try) 2>&5
17364   ac_status=$?
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); }; }; then
17367    ac_cv_have_intxx_t="yes"
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372  ac_cv_have_intxx_t="no"
17373
17374 fi
17375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17376
17377 fi
17378 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17379 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17380 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17381    cat >>confdefs.h <<\_ACEOF
17382 #define HAVE_INTXX_T 1
17383 _ACEOF
17384
17385    have_intxx_t=1
17386 fi
17387
17388 echo "$as_me:$LINENO: checking for int64_t type" >&5
17389 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17390 if test "${ac_cv_have_int64_t+set}" = set; then
17391   echo $ECHO_N "(cached) $ECHO_C" >&6
17392 else
17393
17394    cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h.  */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h.  */
17400  #include <sys/types.h>
17401 int
17402 main ()
17403 {
17404  int64_t a; a = 1;
17405   ;
17406   return 0;
17407 }
17408 _ACEOF
17409 rm -f conftest.$ac_objext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17411   (eval $ac_compile) 2>conftest.er1
17412   ac_status=$?
17413   grep -v '^ *+' conftest.er1 >conftest.err
17414   rm -f conftest.er1
17415   cat conftest.err >&5
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); } &&
17418          { ac_try='test -z "$ac_c_werror_flag"
17419                          || test ! -s conftest.err'
17420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421   (eval $ac_try) 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; } &&
17425          { ac_try='test -s conftest.$ac_objext'
17426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427   (eval $ac_try) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; }; then
17431    ac_cv_have_int64_t="yes"
17432 else
17433   echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17435
17436  ac_cv_have_int64_t="no"
17437
17438 fi
17439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17440
17441 fi
17442 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17443 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17444 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17445    cat >>confdefs.h <<\_ACEOF
17446 #define HAVE_INT64_T 1
17447 _ACEOF
17448
17449    have_int64_t=1
17450 fi
17451
17452 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17453 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17454 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17455   echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457
17458    cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h.  */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h.  */
17464  #include <sys/types.h>
17465 int
17466 main ()
17467 {
17468  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17469   ;
17470   return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17475   (eval $ac_compile) 2>conftest.er1
17476   ac_status=$?
17477   grep -v '^ *+' conftest.er1 >conftest.err
17478   rm -f conftest.er1
17479   cat conftest.err >&5
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); } &&
17482          { ac_try='test -z "$ac_c_werror_flag"
17483                          || test ! -s conftest.err'
17484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485   (eval $ac_try) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; } &&
17489          { ac_try='test -s conftest.$ac_objext'
17490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491   (eval $ac_try) 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); }; }; then
17495    ac_cv_have_u_intxx_t="yes"
17496 else
17497   echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17499
17500  ac_cv_have_u_intxx_t="no"
17501
17502 fi
17503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17504
17505 fi
17506 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17507 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17508 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17509    cat >>confdefs.h <<\_ACEOF
17510 #define HAVE_U_INTXX_T 1
17511 _ACEOF
17512
17513    have_u_intxx_t=1
17514 fi
17515
17516 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17517 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17518 if test "${ac_cv_have_u_int64_t+set}" = set; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521
17522    cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528  #include <sys/types.h>
17529 int
17530 main ()
17531 {
17532  u_int64_t a; a = 1;
17533   ;
17534   return 0;
17535 }
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17539   (eval $ac_compile) 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -z "$ac_c_werror_flag"
17547                          || test ! -s conftest.err'
17548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549   (eval $ac_try) 2>&5
17550   ac_status=$?
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); }; } &&
17553          { ac_try='test -s conftest.$ac_objext'
17554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555   (eval $ac_try) 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); }; }; then
17559    ac_cv_have_u_int64_t="yes"
17560 else
17561   echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564  ac_cv_have_u_int64_t="no"
17565
17566 fi
17567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17568
17569 fi
17570 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17571 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17572 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17573    cat >>confdefs.h <<\_ACEOF
17574 #define HAVE_U_INT64_T 1
17575 _ACEOF
17576
17577    have_u_int64_t=1
17578 fi
17579
17580 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17581            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17582 then
17583    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17584 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17585    cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591  #include <sys/bitypes.h>
17592 int
17593 main ()
17594 {
17595  int8_t a; int16_t b; int32_t c;
17596         u_int8_t e; u_int16_t f; u_int32_t g;
17597         a = b = c = e = f = g = 1;
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604   (eval $ac_compile) 2>conftest.er1
17605   ac_status=$?
17606   grep -v '^ *+' conftest.er1 >conftest.err
17607   rm -f conftest.er1
17608   cat conftest.err >&5
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); } &&
17611          { ac_try='test -z "$ac_c_werror_flag"
17612                          || test ! -s conftest.err'
17613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614   (eval $ac_try) 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; } &&
17618          { ac_try='test -s conftest.$ac_objext'
17619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620   (eval $ac_try) 2>&5
17621   ac_status=$?
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); }; }; then
17624    cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_U_INTXX_T 1
17626 _ACEOF
17627
17628         cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_INTXX_T 1
17630 _ACEOF
17631
17632         cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_SYS_BITYPES_H 1
17634 _ACEOF
17635
17636         echo "$as_me:$LINENO: result: yes" >&5
17637 echo "${ECHO_T}yes" >&6
17638 else
17639   echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17641
17642  echo "$as_me:$LINENO: result: no" >&5
17643 echo "${ECHO_T}no" >&6
17644
17645 fi
17646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17647 fi
17648
17649 if test -z "$have_u_intxx_t" ; then
17650    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17651 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17652 if test "${ac_cv_have_uintxx_t+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655
17656       cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662  #include <sys/types.h>
17663 int
17664 main ()
17665 {
17666  uint8_t a; uint16_t b;
17667            uint32_t c; a = b = c = 1;
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 rm -f conftest.$ac_objext
17673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17674   (eval $ac_compile) 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } &&
17681          { ac_try='test -z "$ac_c_werror_flag"
17682                          || test ! -s conftest.err'
17683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684   (eval $ac_try) 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); }; } &&
17688          { ac_try='test -s conftest.$ac_objext'
17689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690   (eval $ac_try) 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); }; }; then
17694    ac_cv_have_uintxx_t="yes"
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699  ac_cv_have_uintxx_t="no"
17700
17701 fi
17702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17703
17704 fi
17705 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17706 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17707    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17708       cat >>confdefs.h <<\_ACEOF
17709 #define HAVE_UINTXX_T 1
17710 _ACEOF
17711
17712    fi
17713 fi
17714
17715 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17716           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17717 then
17718    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17719 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17720    cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726  #include <sys/bitypes.h>
17727 int
17728 main ()
17729 {
17730  int64_t a; u_int64_t b;
17731        a = b = 1;
17732   ;
17733   return 0;
17734 }
17735 _ACEOF
17736 rm -f conftest.$ac_objext
17737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17738   (eval $ac_compile) 2>conftest.er1
17739   ac_status=$?
17740   grep -v '^ *+' conftest.er1 >conftest.err
17741   rm -f conftest.er1
17742   cat conftest.err >&5
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } &&
17745          { ac_try='test -z "$ac_c_werror_flag"
17746                          || test ! -s conftest.err'
17747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748   (eval $ac_try) 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; } &&
17752          { ac_try='test -s conftest.$ac_objext'
17753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754   (eval $ac_try) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; }; then
17758    cat >>confdefs.h <<\_ACEOF
17759 #define HAVE_U_INT64_T 1
17760 _ACEOF
17761
17762        cat >>confdefs.h <<\_ACEOF
17763 #define HAVE_INT64_T 1
17764 _ACEOF
17765
17766        echo "$as_me:$LINENO: result: yes" >&5
17767 echo "${ECHO_T}yes" >&6
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772  echo "$as_me:$LINENO: result: no" >&5
17773 echo "${ECHO_T}no" >&6
17774
17775 fi
17776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17777 fi
17778
17779 if (test -z "$have_uintxx_t" && \
17780           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17781 then
17782    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17783 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17784    cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h.  */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h.  */
17790  #include <sys/bitypes.h>
17791 int
17792 main ()
17793 {
17794  uint8_t a; uint16_t b;
17795           uint32_t c; a = b = c = 1;
17796   ;
17797   return 0;
17798 }
17799 _ACEOF
17800 rm -f conftest.$ac_objext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17802   (eval $ac_compile) 2>conftest.er1
17803   ac_status=$?
17804   grep -v '^ *+' conftest.er1 >conftest.err
17805   rm -f conftest.er1
17806   cat conftest.err >&5
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); } &&
17809          { ac_try='test -z "$ac_c_werror_flag"
17810                          || test ! -s conftest.err'
17811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812   (eval $ac_try) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; } &&
17816          { ac_try='test -s conftest.$ac_objext'
17817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818   (eval $ac_try) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822    cat >>confdefs.h <<\_ACEOF
17823 #define HAVE_UINTXX_T 1
17824 _ACEOF
17825
17826        echo "$as_me:$LINENO: result: yes" >&5
17827 echo "${ECHO_T}yes" >&6
17828 else
17829   echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832  echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6
17834
17835 fi
17836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17837
17838 fi
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856 for ac_func in \
17857         fork \
17858         getcwd \
17859         gethostname \
17860         getpid \
17861         gettimeofday \
17862         setpgid \
17863         setpgrp \
17864         setsid \
17865         signal \
17866         strerror \
17867         strncmp \
17868         strncpy \
17869         vfprintf \
17870
17871 do
17872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17873 echo "$as_me:$LINENO: checking for $ac_func" >&5
17874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17875 if eval "test \"\${$as_ac_var+set}\" = set"; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h.  */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h.  */
17884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17886 #define $ac_func innocuous_$ac_func
17887
17888 /* System header to define __stub macros and hopefully few prototypes,
17889     which can conflict with char $ac_func (); below.
17890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17891     <limits.h> exists even on freestanding compilers.  */
17892
17893 #ifdef __STDC__
17894 # include <limits.h>
17895 #else
17896 # include <assert.h>
17897 #endif
17898
17899 #undef $ac_func
17900
17901 /* Override any gcc2 internal prototype to avoid an error.  */
17902 #ifdef __cplusplus
17903 extern "C"
17904 {
17905 #endif
17906 /* We use char because int might match the return type of a gcc2
17907    builtin and then its argument prototype would still apply.  */
17908 char $ac_func ();
17909 /* The GNU C library defines this for functions which it implements
17910     to always fail with ENOSYS.  Some functions are actually named
17911     something starting with __ and the normal name is an alias.  */
17912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17913 choke me
17914 #else
17915 char (*f) () = $ac_func;
17916 #endif
17917 #ifdef __cplusplus
17918 }
17919 #endif
17920
17921 int
17922 main ()
17923 {
17924 return f != $ac_func;
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931   (eval $ac_link) 2>conftest.er1
17932   ac_status=$?
17933   grep -v '^ *+' conftest.er1 >conftest.err
17934   rm -f conftest.er1
17935   cat conftest.err >&5
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); } &&
17938          { ac_try='test -z "$ac_c_werror_flag"
17939                          || test ! -s conftest.err'
17940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941   (eval $ac_try) 2>&5
17942   ac_status=$?
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); }; } &&
17945          { ac_try='test -s conftest$ac_exeext'
17946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947   (eval $ac_try) 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; }; then
17951   eval "$as_ac_var=yes"
17952 else
17953   echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 eval "$as_ac_var=no"
17957 fi
17958 rm -f conftest.err conftest.$ac_objext \
17959       conftest$ac_exeext conftest.$ac_ext
17960 fi
17961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17963 if test `eval echo '${'$as_ac_var'}'` = yes; then
17964   cat >>confdefs.h <<_ACEOF
17965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17966 _ACEOF
17967
17968 else
17969   echo 'configure: cannot find needed function.'; exit 1
17970
17971 fi
17972 done
17973
17974
17975
17976 for ac_func in fchdir
17977 do
17978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17979 echo "$as_me:$LINENO: checking for $ac_func" >&5
17980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17981 if eval "test \"\${$as_ac_var+set}\" = set"; then
17982   echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984   cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17992 #define $ac_func innocuous_$ac_func
17993
17994 /* System header to define __stub macros and hopefully few prototypes,
17995     which can conflict with char $ac_func (); below.
17996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17997     <limits.h> exists even on freestanding compilers.  */
17998
17999 #ifdef __STDC__
18000 # include <limits.h>
18001 #else
18002 # include <assert.h>
18003 #endif
18004
18005 #undef $ac_func
18006
18007 /* Override any gcc2 internal prototype to avoid an error.  */
18008 #ifdef __cplusplus
18009 extern "C"
18010 {
18011 #endif
18012 /* We use char because int might match the return type of a gcc2
18013    builtin and then its argument prototype would still apply.  */
18014 char $ac_func ();
18015 /* The GNU C library defines this for functions which it implements
18016     to always fail with ENOSYS.  Some functions are actually named
18017     something starting with __ and the normal name is an alias.  */
18018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18019 choke me
18020 #else
18021 char (*f) () = $ac_func;
18022 #endif
18023 #ifdef __cplusplus
18024 }
18025 #endif
18026
18027 int
18028 main ()
18029 {
18030 return f != $ac_func;
18031   ;
18032   return 0;
18033 }
18034 _ACEOF
18035 rm -f conftest.$ac_objext conftest$ac_exeext
18036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18037   (eval $ac_link) 2>conftest.er1
18038   ac_status=$?
18039   grep -v '^ *+' conftest.er1 >conftest.err
18040   rm -f conftest.er1
18041   cat conftest.err >&5
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); } &&
18044          { ac_try='test -z "$ac_c_werror_flag"
18045                          || test ! -s conftest.err'
18046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047   (eval $ac_try) 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); }; } &&
18051          { ac_try='test -s conftest$ac_exeext'
18052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053   (eval $ac_try) 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; }; then
18057   eval "$as_ac_var=yes"
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 eval "$as_ac_var=no"
18063 fi
18064 rm -f conftest.err conftest.$ac_objext \
18065       conftest$ac_exeext conftest.$ac_ext
18066 fi
18067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18069 if test `eval echo '${'$as_ac_var'}'` = yes; then
18070   cat >>confdefs.h <<_ACEOF
18071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18072 _ACEOF
18073  cat >>confdefs.h <<\_ACEOF
18074 #define HAVE_FCHDIR 1
18075 _ACEOF
18076
18077 fi
18078 done
18079
18080
18081 for ac_func in strtoll
18082 do
18083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18084 echo "$as_me:$LINENO: checking for $ac_func" >&5
18085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18086 if eval "test \"\${$as_ac_var+set}\" = set"; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089   cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18097 #define $ac_func innocuous_$ac_func
18098
18099 /* System header to define __stub macros and hopefully few prototypes,
18100     which can conflict with char $ac_func (); below.
18101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102     <limits.h> exists even on freestanding compilers.  */
18103
18104 #ifdef __STDC__
18105 # include <limits.h>
18106 #else
18107 # include <assert.h>
18108 #endif
18109
18110 #undef $ac_func
18111
18112 /* Override any gcc2 internal prototype to avoid an error.  */
18113 #ifdef __cplusplus
18114 extern "C"
18115 {
18116 #endif
18117 /* We use char because int might match the return type of a gcc2
18118    builtin and then its argument prototype would still apply.  */
18119 char $ac_func ();
18120 /* The GNU C library defines this for functions which it implements
18121     to always fail with ENOSYS.  Some functions are actually named
18122     something starting with __ and the normal name is an alias.  */
18123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18124 choke me
18125 #else
18126 char (*f) () = $ac_func;
18127 #endif
18128 #ifdef __cplusplus
18129 }
18130 #endif
18131
18132 int
18133 main ()
18134 {
18135 return f != $ac_func;
18136   ;
18137   return 0;
18138 }
18139 _ACEOF
18140 rm -f conftest.$ac_objext conftest$ac_exeext
18141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142   (eval $ac_link) 2>conftest.er1
18143   ac_status=$?
18144   grep -v '^ *+' conftest.er1 >conftest.err
18145   rm -f conftest.er1
18146   cat conftest.err >&5
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } &&
18149          { ac_try='test -z "$ac_c_werror_flag"
18150                          || test ! -s conftest.err'
18151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152   (eval $ac_try) 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; } &&
18156          { ac_try='test -s conftest$ac_exeext'
18157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158   (eval $ac_try) 2>&5
18159   ac_status=$?
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); }; }; then
18162   eval "$as_ac_var=yes"
18163 else
18164   echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18166
18167 eval "$as_ac_var=no"
18168 fi
18169 rm -f conftest.err conftest.$ac_objext \
18170       conftest$ac_exeext conftest.$ac_ext
18171 fi
18172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18174 if test `eval echo '${'$as_ac_var'}'` = yes; then
18175   cat >>confdefs.h <<_ACEOF
18176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18177 _ACEOF
18178  cat >>confdefs.h <<\_ACEOF
18179 #define HAVE_STRTOLL 1
18180 _ACEOF
18181
18182 fi
18183 done
18184
18185
18186
18187 for ac_func in chflags
18188 do
18189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18190 echo "$as_me:$LINENO: checking for $ac_func" >&5
18191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18192 if eval "test \"\${$as_ac_var+set}\" = set"; then
18193   echo $ECHO_N "(cached) $ECHO_C" >&6
18194 else
18195   cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18203 #define $ac_func innocuous_$ac_func
18204
18205 /* System header to define __stub macros and hopefully few prototypes,
18206     which can conflict with char $ac_func (); below.
18207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18208     <limits.h> exists even on freestanding compilers.  */
18209
18210 #ifdef __STDC__
18211 # include <limits.h>
18212 #else
18213 # include <assert.h>
18214 #endif
18215
18216 #undef $ac_func
18217
18218 /* Override any gcc2 internal prototype to avoid an error.  */
18219 #ifdef __cplusplus
18220 extern "C"
18221 {
18222 #endif
18223 /* We use char because int might match the return type of a gcc2
18224    builtin and then its argument prototype would still apply.  */
18225 char $ac_func ();
18226 /* The GNU C library defines this for functions which it implements
18227     to always fail with ENOSYS.  Some functions are actually named
18228     something starting with __ and the normal name is an alias.  */
18229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18230 choke me
18231 #else
18232 char (*f) () = $ac_func;
18233 #endif
18234 #ifdef __cplusplus
18235 }
18236 #endif
18237
18238 int
18239 main ()
18240 {
18241 return f != $ac_func;
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248   (eval $ac_link) 2>conftest.er1
18249   ac_status=$?
18250   grep -v '^ *+' conftest.er1 >conftest.err
18251   rm -f conftest.er1
18252   cat conftest.err >&5
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); } &&
18255          { ac_try='test -z "$ac_c_werror_flag"
18256                          || test ! -s conftest.err'
18257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258   (eval $ac_try) 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; } &&
18262          { ac_try='test -s conftest$ac_exeext'
18263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264   (eval $ac_try) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; }; then
18268   eval "$as_ac_var=yes"
18269 else
18270   echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 eval "$as_ac_var=no"
18274 fi
18275 rm -f conftest.err conftest.$ac_objext \
18276       conftest$ac_exeext conftest.$ac_ext
18277 fi
18278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281   cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283 _ACEOF
18284
18285 fi
18286 done
18287
18288
18289
18290
18291
18292 for ac_func in snprintf vsnprintf gethostid
18293 do
18294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18295 echo "$as_me:$LINENO: checking for $ac_func" >&5
18296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18297 if eval "test \"\${$as_ac_var+set}\" = set"; then
18298   echo $ECHO_N "(cached) $ECHO_C" >&6
18299 else
18300   cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h.  */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h.  */
18306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18308 #define $ac_func innocuous_$ac_func
18309
18310 /* System header to define __stub macros and hopefully few prototypes,
18311     which can conflict with char $ac_func (); below.
18312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18313     <limits.h> exists even on freestanding compilers.  */
18314
18315 #ifdef __STDC__
18316 # include <limits.h>
18317 #else
18318 # include <assert.h>
18319 #endif
18320
18321 #undef $ac_func
18322
18323 /* Override any gcc2 internal prototype to avoid an error.  */
18324 #ifdef __cplusplus
18325 extern "C"
18326 {
18327 #endif
18328 /* We use char because int might match the return type of a gcc2
18329    builtin and then its argument prototype would still apply.  */
18330 char $ac_func ();
18331 /* The GNU C library defines this for functions which it implements
18332     to always fail with ENOSYS.  Some functions are actually named
18333     something starting with __ and the normal name is an alias.  */
18334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18335 choke me
18336 #else
18337 char (*f) () = $ac_func;
18338 #endif
18339 #ifdef __cplusplus
18340 }
18341 #endif
18342
18343 int
18344 main ()
18345 {
18346 return f != $ac_func;
18347   ;
18348   return 0;
18349 }
18350 _ACEOF
18351 rm -f conftest.$ac_objext conftest$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353   (eval $ac_link) 2>conftest.er1
18354   ac_status=$?
18355   grep -v '^ *+' conftest.er1 >conftest.err
18356   rm -f conftest.er1
18357   cat conftest.err >&5
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } &&
18360          { ac_try='test -z "$ac_c_werror_flag"
18361                          || test ! -s conftest.err'
18362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363   (eval $ac_try) 2>&5
18364   ac_status=$?
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); }; } &&
18367          { ac_try='test -s conftest$ac_exeext'
18368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369   (eval $ac_try) 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); }; }; then
18373   eval "$as_ac_var=yes"
18374 else
18375   echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 eval "$as_ac_var=no"
18379 fi
18380 rm -f conftest.err conftest.$ac_objext \
18381       conftest$ac_exeext conftest.$ac_ext
18382 fi
18383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18385 if test `eval echo '${'$as_ac_var'}'` = yes; then
18386   cat >>confdefs.h <<_ACEOF
18387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18388 _ACEOF
18389
18390 fi
18391 done
18392
18393 if test "$DISTNAME" = "hpux" ; then
18394        echo "*** getdomainname check is disabled for hpux"
18395 else
18396
18397 for ac_func in getdomainname
18398 do
18399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18400 echo "$as_me:$LINENO: checking for $ac_func" >&5
18401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18402 if eval "test \"\${$as_ac_var+set}\" = set"; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18413 #define $ac_func innocuous_$ac_func
18414
18415 /* System header to define __stub macros and hopefully few prototypes,
18416     which can conflict with char $ac_func (); below.
18417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18418     <limits.h> exists even on freestanding compilers.  */
18419
18420 #ifdef __STDC__
18421 # include <limits.h>
18422 #else
18423 # include <assert.h>
18424 #endif
18425
18426 #undef $ac_func
18427
18428 /* Override any gcc2 internal prototype to avoid an error.  */
18429 #ifdef __cplusplus
18430 extern "C"
18431 {
18432 #endif
18433 /* We use char because int might match the return type of a gcc2
18434    builtin and then its argument prototype would still apply.  */
18435 char $ac_func ();
18436 /* The GNU C library defines this for functions which it implements
18437     to always fail with ENOSYS.  Some functions are actually named
18438     something starting with __ and the normal name is an alias.  */
18439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18440 choke me
18441 #else
18442 char (*f) () = $ac_func;
18443 #endif
18444 #ifdef __cplusplus
18445 }
18446 #endif
18447
18448 int
18449 main ()
18450 {
18451 return f != $ac_func;
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext conftest$ac_exeext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458   (eval $ac_link) 2>conftest.er1
18459   ac_status=$?
18460   grep -v '^ *+' conftest.er1 >conftest.err
18461   rm -f conftest.er1
18462   cat conftest.err >&5
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); } &&
18465          { ac_try='test -z "$ac_c_werror_flag"
18466                          || test ! -s conftest.err'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; } &&
18472          { ac_try='test -s conftest$ac_exeext'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; }; then
18478   eval "$as_ac_var=yes"
18479 else
18480   echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483 eval "$as_ac_var=no"
18484 fi
18485 rm -f conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 fi
18488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18490 if test `eval echo '${'$as_ac_var'}'` = yes; then
18491   cat >>confdefs.h <<_ACEOF
18492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18493 _ACEOF
18494
18495 fi
18496 done
18497
18498 fi
18499
18500
18501
18502
18503
18504 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18505 do
18506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18507 echo "$as_me:$LINENO: checking for $ac_func" >&5
18508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18509 if eval "test \"\${$as_ac_var+set}\" = set"; then
18510   echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512   cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h.  */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h.  */
18518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18520 #define $ac_func innocuous_$ac_func
18521
18522 /* System header to define __stub macros and hopefully few prototypes,
18523     which can conflict with char $ac_func (); below.
18524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18525     <limits.h> exists even on freestanding compilers.  */
18526
18527 #ifdef __STDC__
18528 # include <limits.h>
18529 #else
18530 # include <assert.h>
18531 #endif
18532
18533 #undef $ac_func
18534
18535 /* Override any gcc2 internal prototype to avoid an error.  */
18536 #ifdef __cplusplus
18537 extern "C"
18538 {
18539 #endif
18540 /* We use char because int might match the return type of a gcc2
18541    builtin and then its argument prototype would still apply.  */
18542 char $ac_func ();
18543 /* The GNU C library defines this for functions which it implements
18544     to always fail with ENOSYS.  Some functions are actually named
18545     something starting with __ and the normal name is an alias.  */
18546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18547 choke me
18548 #else
18549 char (*f) () = $ac_func;
18550 #endif
18551 #ifdef __cplusplus
18552 }
18553 #endif
18554
18555 int
18556 main ()
18557 {
18558 return f != $ac_func;
18559   ;
18560   return 0;
18561 }
18562 _ACEOF
18563 rm -f conftest.$ac_objext conftest$ac_exeext
18564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18565   (eval $ac_link) 2>conftest.er1
18566   ac_status=$?
18567   grep -v '^ *+' conftest.er1 >conftest.err
18568   rm -f conftest.er1
18569   cat conftest.err >&5
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); } &&
18572          { ac_try='test -z "$ac_c_werror_flag"
18573                          || test ! -s conftest.err'
18574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575   (eval $ac_try) 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; } &&
18579          { ac_try='test -s conftest$ac_exeext'
18580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581   (eval $ac_try) 2>&5
18582   ac_status=$?
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); }; }; then
18585   eval "$as_ac_var=yes"
18586 else
18587   echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18589
18590 eval "$as_ac_var=no"
18591 fi
18592 rm -f conftest.err conftest.$ac_objext \
18593       conftest$ac_exeext conftest.$ac_ext
18594 fi
18595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18597 if test `eval echo '${'$as_ac_var'}'` = yes; then
18598   cat >>confdefs.h <<_ACEOF
18599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18600 _ACEOF
18601
18602 fi
18603 done
18604
18605
18606 # If resolver functions are not in libc check for -lnsl or -lresolv.
18607 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18608 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18609 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18610   echo $ECHO_N "(cached) $ECHO_C" >&6
18611 else
18612   cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18620 #define gethostbyname_r innocuous_gethostbyname_r
18621
18622 /* System header to define __stub macros and hopefully few prototypes,
18623     which can conflict with char gethostbyname_r (); below.
18624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18625     <limits.h> exists even on freestanding compilers.  */
18626
18627 #ifdef __STDC__
18628 # include <limits.h>
18629 #else
18630 # include <assert.h>
18631 #endif
18632
18633 #undef gethostbyname_r
18634
18635 /* Override any gcc2 internal prototype to avoid an error.  */
18636 #ifdef __cplusplus
18637 extern "C"
18638 {
18639 #endif
18640 /* We use char because int might match the return type of a gcc2
18641    builtin and then its argument prototype would still apply.  */
18642 char gethostbyname_r ();
18643 /* The GNU C library defines this for functions which it implements
18644     to always fail with ENOSYS.  Some functions are actually named
18645     something starting with __ and the normal name is an alias.  */
18646 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18647 choke me
18648 #else
18649 char (*f) () = gethostbyname_r;
18650 #endif
18651 #ifdef __cplusplus
18652 }
18653 #endif
18654
18655 int
18656 main ()
18657 {
18658 return f != gethostbyname_r;
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18665   (eval $ac_link) 2>conftest.er1
18666   ac_status=$?
18667   grep -v '^ *+' conftest.er1 >conftest.err
18668   rm -f conftest.er1
18669   cat conftest.err >&5
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); } &&
18672          { ac_try='test -z "$ac_c_werror_flag"
18673                          || test ! -s conftest.err'
18674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675   (eval $ac_try) 2>&5
18676   ac_status=$?
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); }; } &&
18679          { ac_try='test -s conftest$ac_exeext'
18680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681   (eval $ac_try) 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; }; then
18685   ac_cv_func_gethostbyname_r=yes
18686 else
18687   echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18689
18690 ac_cv_func_gethostbyname_r=no
18691 fi
18692 rm -f conftest.err conftest.$ac_objext \
18693       conftest$ac_exeext conftest.$ac_ext
18694 fi
18695 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18696 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18697 if test $ac_cv_func_gethostbyname_r = yes; then
18698   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18699 echo "${ECHO_T}using libc's resolver" >&6
18700 else
18701
18702 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18703 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18704 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   ac_check_lib_save_LIBS=$LIBS
18708 LIBS="-lnsl  $LIBS"
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715
18716 /* Override any gcc2 internal prototype to avoid an error.  */
18717 #ifdef __cplusplus
18718 extern "C"
18719 #endif
18720 /* We use char because int might match the return type of a gcc2
18721    builtin and then its argument prototype would still apply.  */
18722 char gethostbyname_r ();
18723 int
18724 main ()
18725 {
18726 gethostbyname_r ();
18727   ;
18728   return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext conftest$ac_exeext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18733   (eval $ac_link) 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } &&
18740          { ac_try='test -z "$ac_c_werror_flag"
18741                          || test ! -s conftest.err'
18742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743   (eval $ac_try) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; } &&
18747          { ac_try='test -s conftest$ac_exeext'
18748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749   (eval $ac_try) 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   ac_cv_lib_nsl_gethostbyname_r=yes
18754 else
18755   echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ac_cv_lib_nsl_gethostbyname_r=no
18759 fi
18760 rm -f conftest.err conftest.$ac_objext \
18761       conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS
18763 fi
18764 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18765 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18766 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18767   cat >>confdefs.h <<_ACEOF
18768 #define HAVE_LIBNSL 1
18769 _ACEOF
18770
18771   LIBS="-lnsl $LIBS"
18772
18773 fi
18774
18775
18776 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18777 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18778 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   ac_check_lib_save_LIBS=$LIBS
18782 LIBS="-lresolv  $LIBS"
18783 cat >conftest.$ac_ext <<_ACEOF
18784 /* confdefs.h.  */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h.  */
18789
18790 /* Override any gcc2 internal prototype to avoid an error.  */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 /* We use char because int might match the return type of a gcc2
18795    builtin and then its argument prototype would still apply.  */
18796 char gethostbyname_r ();
18797 int
18798 main ()
18799 {
18800 gethostbyname_r ();
18801   ;
18802   return 0;
18803 }
18804 _ACEOF
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807   (eval $ac_link) 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -z "$ac_c_werror_flag"
18815                          || test ! -s conftest.err'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; } &&
18821          { ac_try='test -s conftest$ac_exeext'
18822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823   (eval $ac_try) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; }; then
18827   ac_cv_lib_resolv_gethostbyname_r=yes
18828 else
18829   echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18831
18832 ac_cv_lib_resolv_gethostbyname_r=no
18833 fi
18834 rm -f conftest.err conftest.$ac_objext \
18835       conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18837 fi
18838 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18839 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18840 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18841   cat >>confdefs.h <<_ACEOF
18842 #define HAVE_LIBRESOLV 1
18843 _ACEOF
18844
18845   LIBS="-lresolv $LIBS"
18846
18847 fi
18848
18849 fi
18850
18851
18852
18853
18854
18855 for ac_func in inet_pton
18856 do
18857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18858 echo "$as_me:$LINENO: checking for $ac_func" >&5
18859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18860 if eval "test \"\${$as_ac_var+set}\" = set"; then
18861   echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863   cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h.  */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h.  */
18869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18871 #define $ac_func innocuous_$ac_func
18872
18873 /* System header to define __stub macros and hopefully few prototypes,
18874     which can conflict with char $ac_func (); below.
18875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18876     <limits.h> exists even on freestanding compilers.  */
18877
18878 #ifdef __STDC__
18879 # include <limits.h>
18880 #else
18881 # include <assert.h>
18882 #endif
18883
18884 #undef $ac_func
18885
18886 /* Override any gcc2 internal prototype to avoid an error.  */
18887 #ifdef __cplusplus
18888 extern "C"
18889 {
18890 #endif
18891 /* We use char because int might match the return type of a gcc2
18892    builtin and then its argument prototype would still apply.  */
18893 char $ac_func ();
18894 /* The GNU C library defines this for functions which it implements
18895     to always fail with ENOSYS.  Some functions are actually named
18896     something starting with __ and the normal name is an alias.  */
18897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18898 choke me
18899 #else
18900 char (*f) () = $ac_func;
18901 #endif
18902 #ifdef __cplusplus
18903 }
18904 #endif
18905
18906 int
18907 main ()
18908 {
18909 return f != $ac_func;
18910   ;
18911   return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916   (eval $ac_link) 2>conftest.er1
18917   ac_status=$?
18918   grep -v '^ *+' conftest.er1 >conftest.err
18919   rm -f conftest.er1
18920   cat conftest.err >&5
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); } &&
18923          { ac_try='test -z "$ac_c_werror_flag"
18924                          || test ! -s conftest.err'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; } &&
18930          { ac_try='test -s conftest$ac_exeext'
18931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932   (eval $ac_try) 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; }; then
18936   eval "$as_ac_var=yes"
18937 else
18938   echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 eval "$as_ac_var=no"
18942 fi
18943 rm -f conftest.err conftest.$ac_objext \
18944       conftest$ac_exeext conftest.$ac_ext
18945 fi
18946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18948 if test `eval echo '${'$as_ac_var'}'` = yes; then
18949   cat >>confdefs.h <<_ACEOF
18950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18951 _ACEOF
18952  cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_INET_PTON 1
18954 _ACEOF
18955
18956 fi
18957 done
18958
18959
18960 for ac_func in inet_ntop
18961 do
18962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18965 if eval "test \"\${$as_ac_var+set}\" = set"; then
18966   echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968   cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18976 #define $ac_func innocuous_$ac_func
18977
18978 /* System header to define __stub macros and hopefully few prototypes,
18979     which can conflict with char $ac_func (); below.
18980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981     <limits.h> exists even on freestanding compilers.  */
18982
18983 #ifdef __STDC__
18984 # include <limits.h>
18985 #else
18986 # include <assert.h>
18987 #endif
18988
18989 #undef $ac_func
18990
18991 /* Override any gcc2 internal prototype to avoid an error.  */
18992 #ifdef __cplusplus
18993 extern "C"
18994 {
18995 #endif
18996 /* We use char because int might match the return type of a gcc2
18997    builtin and then its argument prototype would still apply.  */
18998 char $ac_func ();
18999 /* The GNU C library defines this for functions which it implements
19000     to always fail with ENOSYS.  Some functions are actually named
19001     something starting with __ and the normal name is an alias.  */
19002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19003 choke me
19004 #else
19005 char (*f) () = $ac_func;
19006 #endif
19007 #ifdef __cplusplus
19008 }
19009 #endif
19010
19011 int
19012 main ()
19013 {
19014 return f != $ac_func;
19015   ;
19016   return 0;
19017 }
19018 _ACEOF
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021   (eval $ac_link) 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } &&
19028          { ac_try='test -z "$ac_c_werror_flag"
19029                          || test ! -s conftest.err'
19030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031   (eval $ac_try) 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; } &&
19035          { ac_try='test -s conftest$ac_exeext'
19036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037   (eval $ac_try) 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; }; then
19041   eval "$as_ac_var=yes"
19042 else
19043   echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 eval "$as_ac_var=no"
19047 fi
19048 rm -f conftest.err conftest.$ac_objext \
19049       conftest$ac_exeext conftest.$ac_ext
19050 fi
19051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19053 if test `eval echo '${'$as_ac_var'}'` = yes; then
19054   cat >>confdefs.h <<_ACEOF
19055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19056 _ACEOF
19057  cat >>confdefs.h <<\_ACEOF
19058 #define HAVE_INET_NTOP 1
19059 _ACEOF
19060
19061 fi
19062 done
19063
19064
19065 for ac_func in gethostbyname2
19066 do
19067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19068 echo "$as_me:$LINENO: checking for $ac_func" >&5
19069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19070 if eval "test \"\${$as_ac_var+set}\" = set"; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h.  */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h.  */
19079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19081 #define $ac_func innocuous_$ac_func
19082
19083 /* System header to define __stub macros and hopefully few prototypes,
19084     which can conflict with char $ac_func (); below.
19085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19086     <limits.h> exists even on freestanding compilers.  */
19087
19088 #ifdef __STDC__
19089 # include <limits.h>
19090 #else
19091 # include <assert.h>
19092 #endif
19093
19094 #undef $ac_func
19095
19096 /* Override any gcc2 internal prototype to avoid an error.  */
19097 #ifdef __cplusplus
19098 extern "C"
19099 {
19100 #endif
19101 /* We use char because int might match the return type of a gcc2
19102    builtin and then its argument prototype would still apply.  */
19103 char $ac_func ();
19104 /* The GNU C library defines this for functions which it implements
19105     to always fail with ENOSYS.  Some functions are actually named
19106     something starting with __ and the normal name is an alias.  */
19107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19108 choke me
19109 #else
19110 char (*f) () = $ac_func;
19111 #endif
19112 #ifdef __cplusplus
19113 }
19114 #endif
19115
19116 int
19117 main ()
19118 {
19119 return f != $ac_func;
19120   ;
19121   return 0;
19122 }
19123 _ACEOF
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126   (eval $ac_link) 2>conftest.er1
19127   ac_status=$?
19128   grep -v '^ *+' conftest.er1 >conftest.err
19129   rm -f conftest.er1
19130   cat conftest.err >&5
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); } &&
19133          { ac_try='test -z "$ac_c_werror_flag"
19134                          || test ! -s conftest.err'
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); }; } &&
19140          { ac_try='test -s conftest$ac_exeext'
19141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142   (eval $ac_try) 2>&5
19143   ac_status=$?
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); }; }; then
19146   eval "$as_ac_var=yes"
19147 else
19148   echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 eval "$as_ac_var=no"
19152 fi
19153 rm -f conftest.err conftest.$ac_objext \
19154       conftest$ac_exeext conftest.$ac_ext
19155 fi
19156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19158 if test `eval echo '${'$as_ac_var'}'` = yes; then
19159   cat >>confdefs.h <<_ACEOF
19160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19161 _ACEOF
19162  cat >>confdefs.h <<\_ACEOF
19163 #define HAVE_GETHOSTBYNAME2 1
19164 _ACEOF
19165
19166 fi
19167 done
19168
19169
19170 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19171 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19172 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 #include <sys/socket.h>
19182 int
19183 main ()
19184 {
19185 struct sockaddr s; s.sa_len;
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192   (eval $ac_compile) 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } &&
19199          { ac_try='test -z "$ac_c_werror_flag"
19200                          || test ! -s conftest.err'
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); }; } &&
19206          { ac_try='test -s conftest.$ac_objext'
19207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208   (eval $ac_try) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; }; then
19212   ac_cv_struct_sockaddr_sa_len=yes
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ac_cv_struct_sockaddr_sa_len=no
19218 fi
19219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220 fi
19221 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19222 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19223
19224  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19225
19226 cat >>confdefs.h <<\_ACEOF
19227 #define HAVE_SA_LEN 1
19228 _ACEOF
19229
19230  fi
19231
19232
19233 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19234 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19235 if test "${ac_cv_ipv6_support+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  #include <sys/types.h>
19245 #include <sys/socket.h>
19246 #include <netinet/in.h>
19247 int
19248 main ()
19249 {
19250 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19251  0;
19252   ;
19253   return 0;
19254 }
19255 _ACEOF
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258   (eval $ac_link) 2>conftest.er1
19259   ac_status=$?
19260   grep -v '^ *+' conftest.er1 >conftest.err
19261   rm -f conftest.er1
19262   cat conftest.err >&5
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); } &&
19265          { ac_try='test -z "$ac_c_werror_flag"
19266                          || test ! -s conftest.err'
19267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268   (eval $ac_try) 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; } &&
19272          { ac_try='test -s conftest$ac_exeext'
19273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274   (eval $ac_try) 2>&5
19275   ac_status=$?
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); }; }; then
19278   ac_cv_ipv6_support=yes
19279 else
19280   echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283 ac_cv_ipv6_support=no
19284 fi
19285 rm -f conftest.err conftest.$ac_objext \
19286       conftest$ac_exeext conftest.$ac_ext
19287 fi
19288 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19289 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19290
19291 if test "$ac_cv_ipv6_support" = yes; then
19292
19293 cat >>confdefs.h <<\_ACEOF
19294 #define HAVE_IPV6 1
19295 _ACEOF
19296
19297 fi
19298
19299
19300
19301
19302 for ac_func in strftime
19303 do
19304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19305 echo "$as_me:$LINENO: checking for $ac_func" >&5
19306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19307 if eval "test \"\${$as_ac_var+set}\" = set"; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19318 #define $ac_func innocuous_$ac_func
19319
19320 /* System header to define __stub macros and hopefully few prototypes,
19321     which can conflict with char $ac_func (); below.
19322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19323     <limits.h> exists even on freestanding compilers.  */
19324
19325 #ifdef __STDC__
19326 # include <limits.h>
19327 #else
19328 # include <assert.h>
19329 #endif
19330
19331 #undef $ac_func
19332
19333 /* Override any gcc2 internal prototype to avoid an error.  */
19334 #ifdef __cplusplus
19335 extern "C"
19336 {
19337 #endif
19338 /* We use char because int might match the return type of a gcc2
19339    builtin and then its argument prototype would still apply.  */
19340 char $ac_func ();
19341 /* The GNU C library defines this for functions which it implements
19342     to always fail with ENOSYS.  Some functions are actually named
19343     something starting with __ and the normal name is an alias.  */
19344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19345 choke me
19346 #else
19347 char (*f) () = $ac_func;
19348 #endif
19349 #ifdef __cplusplus
19350 }
19351 #endif
19352
19353 int
19354 main ()
19355 {
19356 return f != $ac_func;
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19363   (eval $ac_link) 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } &&
19370          { ac_try='test -z "$ac_c_werror_flag"
19371                          || test ! -s conftest.err'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest$ac_exeext'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; }; then
19383   eval "$as_ac_var=yes"
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 eval "$as_ac_var=no"
19389 fi
19390 rm -f conftest.err conftest.$ac_objext \
19391       conftest$ac_exeext conftest.$ac_ext
19392 fi
19393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19395 if test `eval echo '${'$as_ac_var'}'` = yes; then
19396   cat >>confdefs.h <<_ACEOF
19397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19398 _ACEOF
19399
19400 else
19401   # strftime is in -lintl on SCO UNIX.
19402 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19403 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19404 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lintl  $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416 /* Override any gcc2 internal prototype to avoid an error.  */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 /* We use char because int might match the return type of a gcc2
19421    builtin and then its argument prototype would still apply.  */
19422 char strftime ();
19423 int
19424 main ()
19425 {
19426 strftime ();
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433   (eval $ac_link) 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } &&
19440          { ac_try='test -z "$ac_c_werror_flag"
19441                          || test ! -s conftest.err'
19442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443   (eval $ac_try) 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; } &&
19447          { ac_try='test -s conftest$ac_exeext'
19448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449   (eval $ac_try) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; }; then
19453   ac_cv_lib_intl_strftime=yes
19454 else
19455   echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19457
19458 ac_cv_lib_intl_strftime=no
19459 fi
19460 rm -f conftest.err conftest.$ac_objext \
19461       conftest$ac_exeext conftest.$ac_ext
19462 LIBS=$ac_check_lib_save_LIBS
19463 fi
19464 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19465 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19466 if test $ac_cv_lib_intl_strftime = yes; then
19467   cat >>confdefs.h <<\_ACEOF
19468 #define HAVE_STRFTIME 1
19469 _ACEOF
19470
19471 LIBS="-lintl $LIBS"
19472 fi
19473
19474 fi
19475 done
19476
19477
19478 for ac_func in vprintf
19479 do
19480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19481 echo "$as_me:$LINENO: checking for $ac_func" >&5
19482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19483 if eval "test \"\${$as_ac_var+set}\" = set"; then
19484   echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486   cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h.  */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h.  */
19492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19494 #define $ac_func innocuous_$ac_func
19495
19496 /* System header to define __stub macros and hopefully few prototypes,
19497     which can conflict with char $ac_func (); below.
19498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19499     <limits.h> exists even on freestanding compilers.  */
19500
19501 #ifdef __STDC__
19502 # include <limits.h>
19503 #else
19504 # include <assert.h>
19505 #endif
19506
19507 #undef $ac_func
19508
19509 /* Override any gcc2 internal prototype to avoid an error.  */
19510 #ifdef __cplusplus
19511 extern "C"
19512 {
19513 #endif
19514 /* We use char because int might match the return type of a gcc2
19515    builtin and then its argument prototype would still apply.  */
19516 char $ac_func ();
19517 /* The GNU C library defines this for functions which it implements
19518     to always fail with ENOSYS.  Some functions are actually named
19519     something starting with __ and the normal name is an alias.  */
19520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19521 choke me
19522 #else
19523 char (*f) () = $ac_func;
19524 #endif
19525 #ifdef __cplusplus
19526 }
19527 #endif
19528
19529 int
19530 main ()
19531 {
19532 return f != $ac_func;
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19539   (eval $ac_link) 2>conftest.er1
19540   ac_status=$?
19541   grep -v '^ *+' conftest.er1 >conftest.err
19542   rm -f conftest.er1
19543   cat conftest.err >&5
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); } &&
19546          { ac_try='test -z "$ac_c_werror_flag"
19547                          || test ! -s conftest.err'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest$ac_exeext'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; }; then
19559   eval "$as_ac_var=yes"
19560 else
19561   echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564 eval "$as_ac_var=no"
19565 fi
19566 rm -f conftest.err conftest.$ac_objext \
19567       conftest$ac_exeext conftest.$ac_ext
19568 fi
19569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19571 if test `eval echo '${'$as_ac_var'}'` = yes; then
19572   cat >>confdefs.h <<_ACEOF
19573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19574 _ACEOF
19575
19576 echo "$as_me:$LINENO: checking for _doprnt" >&5
19577 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19578 if test "${ac_cv_func__doprnt+set}" = set; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19589 #define _doprnt innocuous__doprnt
19590
19591 /* System header to define __stub macros and hopefully few prototypes,
19592     which can conflict with char _doprnt (); below.
19593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19594     <limits.h> exists even on freestanding compilers.  */
19595
19596 #ifdef __STDC__
19597 # include <limits.h>
19598 #else
19599 # include <assert.h>
19600 #endif
19601
19602 #undef _doprnt
19603
19604 /* Override any gcc2 internal prototype to avoid an error.  */
19605 #ifdef __cplusplus
19606 extern "C"
19607 {
19608 #endif
19609 /* We use char because int might match the return type of a gcc2
19610    builtin and then its argument prototype would still apply.  */
19611 char _doprnt ();
19612 /* The GNU C library defines this for functions which it implements
19613     to always fail with ENOSYS.  Some functions are actually named
19614     something starting with __ and the normal name is an alias.  */
19615 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19616 choke me
19617 #else
19618 char (*f) () = _doprnt;
19619 #endif
19620 #ifdef __cplusplus
19621 }
19622 #endif
19623
19624 int
19625 main ()
19626 {
19627 return f != _doprnt;
19628   ;
19629   return 0;
19630 }
19631 _ACEOF
19632 rm -f conftest.$ac_objext conftest$ac_exeext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19634   (eval $ac_link) 2>conftest.er1
19635   ac_status=$?
19636   grep -v '^ *+' conftest.er1 >conftest.err
19637   rm -f conftest.er1
19638   cat conftest.err >&5
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); } &&
19641          { ac_try='test -z "$ac_c_werror_flag"
19642                          || test ! -s conftest.err'
19643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644   (eval $ac_try) 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; } &&
19648          { ac_try='test -s conftest$ac_exeext'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; }; then
19654   ac_cv_func__doprnt=yes
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 ac_cv_func__doprnt=no
19660 fi
19661 rm -f conftest.err conftest.$ac_objext \
19662       conftest$ac_exeext conftest.$ac_ext
19663 fi
19664 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19665 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19666 if test $ac_cv_func__doprnt = yes; then
19667
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_DOPRNT 1
19670 _ACEOF
19671
19672 fi
19673
19674 fi
19675 done
19676
19677
19678 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19679 # for constant arguments.  Useless!
19680 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19681 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19682 if test "${ac_cv_working_alloca_h+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 #include <alloca.h>
19692 int
19693 main ()
19694 {
19695 char *p = (char *) alloca (2 * sizeof (int));
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 rm -f conftest.$ac_objext conftest$ac_exeext
19701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19702   (eval $ac_link) 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } &&
19709          { ac_try='test -z "$ac_c_werror_flag"
19710                          || test ! -s conftest.err'
19711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712   (eval $ac_try) 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; } &&
19716          { ac_try='test -s conftest$ac_exeext'
19717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718   (eval $ac_try) 2>&5
19719   ac_status=$?
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); }; }; then
19722   ac_cv_working_alloca_h=yes
19723 else
19724   echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19726
19727 ac_cv_working_alloca_h=no
19728 fi
19729 rm -f conftest.err conftest.$ac_objext \
19730       conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19733 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19734 if test $ac_cv_working_alloca_h = yes; then
19735
19736 cat >>confdefs.h <<\_ACEOF
19737 #define HAVE_ALLOCA_H 1
19738 _ACEOF
19739
19740 fi
19741
19742 echo "$as_me:$LINENO: checking for alloca" >&5
19743 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19744 if test "${ac_cv_func_alloca_works+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753 #ifdef __GNUC__
19754 # define alloca __builtin_alloca
19755 #else
19756 # ifdef _MSC_VER
19757 #  include <malloc.h>
19758 #  define alloca _alloca
19759 # else
19760 #  if HAVE_ALLOCA_H
19761 #   include <alloca.h>
19762 #  else
19763 #   ifdef _AIX
19764  #pragma alloca
19765 #   else
19766 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19767 char *alloca ();
19768 #    endif
19769 #   endif
19770 #  endif
19771 # endif
19772 #endif
19773
19774 int
19775 main ()
19776 {
19777 char *p = (char *) alloca (1);
19778   ;
19779   return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext conftest$ac_exeext
19783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19784   (eval $ac_link) 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } &&
19791          { ac_try='test -z "$ac_c_werror_flag"
19792                          || test ! -s conftest.err'
19793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794   (eval $ac_try) 2>&5
19795   ac_status=$?
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); }; } &&
19798          { ac_try='test -s conftest$ac_exeext'
19799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800   (eval $ac_try) 2>&5
19801   ac_status=$?
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); }; }; then
19804   ac_cv_func_alloca_works=yes
19805 else
19806   echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 ac_cv_func_alloca_works=no
19810 fi
19811 rm -f conftest.err conftest.$ac_objext \
19812       conftest$ac_exeext conftest.$ac_ext
19813 fi
19814 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19815 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19816
19817 if test $ac_cv_func_alloca_works = yes; then
19818
19819 cat >>confdefs.h <<\_ACEOF
19820 #define HAVE_ALLOCA 1
19821 _ACEOF
19822
19823 else
19824   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19825 # that cause trouble.  Some versions do not even contain alloca or
19826 # contain a buggy version.  If you still want to use their alloca,
19827 # use ar to extract alloca.o from them instead of compiling alloca.c.
19828
19829 ALLOCA=alloca.$ac_objext
19830
19831 cat >>confdefs.h <<\_ACEOF
19832 #define C_ALLOCA 1
19833 _ACEOF
19834
19835
19836 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19837 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19838 if test "${ac_cv_os_cray+set}" = set; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841   cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h.  */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h.  */
19847 #if defined(CRAY) && ! defined(CRAY2)
19848 webecray
19849 #else
19850 wenotbecray
19851 #endif
19852
19853 _ACEOF
19854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19855   $EGREP "webecray" >/dev/null 2>&1; then
19856   ac_cv_os_cray=yes
19857 else
19858   ac_cv_os_cray=no
19859 fi
19860 rm -f conftest*
19861
19862 fi
19863 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19864 echo "${ECHO_T}$ac_cv_os_cray" >&6
19865 if test $ac_cv_os_cray = yes; then
19866   for ac_func in _getb67 GETB67 getb67; do
19867     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19868 echo "$as_me:$LINENO: checking for $ac_func" >&5
19869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19870 if eval "test \"\${$as_ac_var+set}\" = set"; then
19871   echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873   cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19881 #define $ac_func innocuous_$ac_func
19882
19883 /* System header to define __stub macros and hopefully few prototypes,
19884     which can conflict with char $ac_func (); below.
19885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19886     <limits.h> exists even on freestanding compilers.  */
19887
19888 #ifdef __STDC__
19889 # include <limits.h>
19890 #else
19891 # include <assert.h>
19892 #endif
19893
19894 #undef $ac_func
19895
19896 /* Override any gcc2 internal prototype to avoid an error.  */
19897 #ifdef __cplusplus
19898 extern "C"
19899 {
19900 #endif
19901 /* We use char because int might match the return type of a gcc2
19902    builtin and then its argument prototype would still apply.  */
19903 char $ac_func ();
19904 /* The GNU C library defines this for functions which it implements
19905     to always fail with ENOSYS.  Some functions are actually named
19906     something starting with __ and the normal name is an alias.  */
19907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19908 choke me
19909 #else
19910 char (*f) () = $ac_func;
19911 #endif
19912 #ifdef __cplusplus
19913 }
19914 #endif
19915
19916 int
19917 main ()
19918 {
19919 return f != $ac_func;
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926   (eval $ac_link) 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_c_werror_flag"
19934                          || test ! -s conftest.err'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; } &&
19940          { ac_try='test -s conftest$ac_exeext'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   eval "$as_ac_var=yes"
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951 eval "$as_ac_var=no"
19952 fi
19953 rm -f conftest.err conftest.$ac_objext \
19954       conftest$ac_exeext conftest.$ac_ext
19955 fi
19956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19958 if test `eval echo '${'$as_ac_var'}'` = yes; then
19959
19960 cat >>confdefs.h <<_ACEOF
19961 #define CRAY_STACKSEG_END $ac_func
19962 _ACEOF
19963
19964     break
19965 fi
19966
19967   done
19968 fi
19969
19970 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19971 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19972 if test "${ac_cv_c_stack_direction+set}" = set; then
19973   echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975   if test "$cross_compiling" = yes; then
19976   ac_cv_c_stack_direction=0
19977 else
19978   cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h.  */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h.  */
19984 int
19985 find_stack_direction ()
19986 {
19987   static char *addr = 0;
19988   auto char dummy;
19989   if (addr == 0)
19990     {
19991       addr = &dummy;
19992       return find_stack_direction ();
19993     }
19994   else
19995     return (&dummy > addr) ? 1 : -1;
19996 }
19997
19998 int
19999 main ()
20000 {
20001   exit (find_stack_direction () < 0);
20002 }
20003 _ACEOF
20004 rm -f conftest$ac_exeext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006   (eval $ac_link) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011   (eval $ac_try) 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); }; }; then
20015   ac_cv_c_stack_direction=1
20016 else
20017   echo "$as_me: program exited with status $ac_status" >&5
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 ( exit $ac_status )
20022 ac_cv_c_stack_direction=-1
20023 fi
20024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20025 fi
20026 fi
20027 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20028 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20029
20030 cat >>confdefs.h <<_ACEOF
20031 #define STACK_DIRECTION $ac_cv_c_stack_direction
20032 _ACEOF
20033
20034
20035 fi
20036
20037 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
20038 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
20039 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
20040 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043   ac_check_lib_save_LIBS=$LIBS
20044 LIBS="-lsun  $LIBS"
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051
20052 /* Override any gcc2 internal prototype to avoid an error.  */
20053 #ifdef __cplusplus
20054 extern "C"
20055 #endif
20056 /* We use char because int might match the return type of a gcc2
20057    builtin and then its argument prototype would still apply.  */
20058 char getmntent ();
20059 int
20060 main ()
20061 {
20062 getmntent ();
20063   ;
20064   return 0;
20065 }
20066 _ACEOF
20067 rm -f conftest.$ac_objext conftest$ac_exeext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20069   (eval $ac_link) 2>conftest.er1
20070   ac_status=$?
20071   grep -v '^ *+' conftest.er1 >conftest.err
20072   rm -f conftest.er1
20073   cat conftest.err >&5
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); } &&
20076          { ac_try='test -z "$ac_c_werror_flag"
20077                          || test ! -s conftest.err'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; } &&
20083          { ac_try='test -s conftest$ac_exeext'
20084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085   (eval $ac_try) 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_cv_lib_sun_getmntent=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094 ac_cv_lib_sun_getmntent=no
20095 fi
20096 rm -f conftest.err conftest.$ac_objext \
20097       conftest$ac_exeext conftest.$ac_ext
20098 LIBS=$ac_check_lib_save_LIBS
20099 fi
20100 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
20101 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
20102 if test $ac_cv_lib_sun_getmntent = yes; then
20103   LIBS="-lsun $LIBS"
20104 else
20105   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
20106 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
20107 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
20108   echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110   ac_check_lib_save_LIBS=$LIBS
20111 LIBS="-lseq  $LIBS"
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118
20119 /* Override any gcc2 internal prototype to avoid an error.  */
20120 #ifdef __cplusplus
20121 extern "C"
20122 #endif
20123 /* We use char because int might match the return type of a gcc2
20124    builtin and then its argument prototype would still apply.  */
20125 char getmntent ();
20126 int
20127 main ()
20128 {
20129 getmntent ();
20130   ;
20131   return 0;
20132 }
20133 _ACEOF
20134 rm -f conftest.$ac_objext conftest$ac_exeext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20136   (eval $ac_link) 2>conftest.er1
20137   ac_status=$?
20138   grep -v '^ *+' conftest.er1 >conftest.err
20139   rm -f conftest.er1
20140   cat conftest.err >&5
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } &&
20143          { ac_try='test -z "$ac_c_werror_flag"
20144                          || test ! -s conftest.err'
20145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146   (eval $ac_try) 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); }; } &&
20150          { ac_try='test -s conftest$ac_exeext'
20151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152   (eval $ac_try) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; }; then
20156   ac_cv_lib_seq_getmntent=yes
20157 else
20158   echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161 ac_cv_lib_seq_getmntent=no
20162 fi
20163 rm -f conftest.err conftest.$ac_objext \
20164       conftest$ac_exeext conftest.$ac_ext
20165 LIBS=$ac_check_lib_save_LIBS
20166 fi
20167 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20168 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20169 if test $ac_cv_lib_seq_getmntent = yes; then
20170   LIBS="-lseq $LIBS"
20171 else
20172   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20173 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20174 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lgen  $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185
20186 /* Override any gcc2 internal prototype to avoid an error.  */
20187 #ifdef __cplusplus
20188 extern "C"
20189 #endif
20190 /* We use char because int might match the return type of a gcc2
20191    builtin and then its argument prototype would still apply.  */
20192 char getmntent ();
20193 int
20194 main ()
20195 {
20196 getmntent ();
20197   ;
20198   return 0;
20199 }
20200 _ACEOF
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203   (eval $ac_link) 2>conftest.er1
20204   ac_status=$?
20205   grep -v '^ *+' conftest.er1 >conftest.err
20206   rm -f conftest.er1
20207   cat conftest.err >&5
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } &&
20210          { ac_try='test -z "$ac_c_werror_flag"
20211                          || test ! -s conftest.err'
20212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213   (eval $ac_try) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; } &&
20217          { ac_try='test -s conftest$ac_exeext'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; }; then
20223   ac_cv_lib_gen_getmntent=yes
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ac_cv_lib_gen_getmntent=no
20229 fi
20230 rm -f conftest.err conftest.$ac_objext \
20231       conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20233 fi
20234 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20235 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20236 if test $ac_cv_lib_gen_getmntent = yes; then
20237   LIBS="-lgen $LIBS"
20238 fi
20239
20240 fi
20241
20242 fi
20243
20244
20245 for ac_func in getmntent
20246 do
20247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20248 echo "$as_me:$LINENO: checking for $ac_func" >&5
20249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20250 if eval "test \"\${$as_ac_var+set}\" = set"; then
20251   echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253   cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h.  */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h.  */
20259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20261 #define $ac_func innocuous_$ac_func
20262
20263 /* System header to define __stub macros and hopefully few prototypes,
20264     which can conflict with char $ac_func (); below.
20265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20266     <limits.h> exists even on freestanding compilers.  */
20267
20268 #ifdef __STDC__
20269 # include <limits.h>
20270 #else
20271 # include <assert.h>
20272 #endif
20273
20274 #undef $ac_func
20275
20276 /* Override any gcc2 internal prototype to avoid an error.  */
20277 #ifdef __cplusplus
20278 extern "C"
20279 {
20280 #endif
20281 /* We use char because int might match the return type of a gcc2
20282    builtin and then its argument prototype would still apply.  */
20283 char $ac_func ();
20284 /* The GNU C library defines this for functions which it implements
20285     to always fail with ENOSYS.  Some functions are actually named
20286     something starting with __ and the normal name is an alias.  */
20287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20288 choke me
20289 #else
20290 char (*f) () = $ac_func;
20291 #endif
20292 #ifdef __cplusplus
20293 }
20294 #endif
20295
20296 int
20297 main ()
20298 {
20299 return f != $ac_func;
20300   ;
20301   return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest.$ac_objext conftest$ac_exeext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306   (eval $ac_link) 2>conftest.er1
20307   ac_status=$?
20308   grep -v '^ *+' conftest.er1 >conftest.err
20309   rm -f conftest.er1
20310   cat conftest.err >&5
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } &&
20313          { ac_try='test -z "$ac_c_werror_flag"
20314                          || test ! -s conftest.err'
20315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316   (eval $ac_try) 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; } &&
20320          { ac_try='test -s conftest$ac_exeext'
20321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322   (eval $ac_try) 2>&5
20323   ac_status=$?
20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325   (exit $ac_status); }; }; then
20326   eval "$as_ac_var=yes"
20327 else
20328   echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20330
20331 eval "$as_ac_var=no"
20332 fi
20333 rm -f conftest.err conftest.$ac_objext \
20334       conftest$ac_exeext conftest.$ac_ext
20335 fi
20336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20338 if test `eval echo '${'$as_ac_var'}'` = yes; then
20339   cat >>confdefs.h <<_ACEOF
20340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20341 _ACEOF
20342
20343 fi
20344 done
20345
20346
20347 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20348 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20349 if test "${ac_cv_func_closedir_void+set}" = set; then
20350   echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352   if test "$cross_compiling" = yes; then
20353   ac_cv_func_closedir_void=yes
20354 else
20355   cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 $ac_includes_default
20362 #include <$ac_header_dirent>
20363 #ifndef __cplusplus
20364 int closedir ();
20365 #endif
20366
20367 int
20368 main ()
20369 {
20370 exit (closedir (opendir (".")) != 0);
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 rm -f conftest$ac_exeext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20377   (eval $ac_link) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   ac_cv_func_closedir_void=no
20387 else
20388   echo "$as_me: program exited with status $ac_status" >&5
20389 echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20391
20392 ( exit $ac_status )
20393 ac_cv_func_closedir_void=yes
20394 fi
20395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20396 fi
20397 fi
20398 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20399 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20400 if test $ac_cv_func_closedir_void = yes; then
20401
20402 cat >>confdefs.h <<\_ACEOF
20403 #define CLOSEDIR_VOID 1
20404 _ACEOF
20405
20406 fi
20407
20408 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20409 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20410 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   if test "$cross_compiling" = yes; then
20414   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20415 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20416    { (exit 1); exit 1; }; }
20417 else
20418   cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424 #if HAVE_UNISTD_H
20425 # include <unistd.h>
20426 #endif
20427
20428 int
20429 main ()
20430 {
20431 /* If this system has a BSD-style setpgrp which takes arguments,
20432   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20433   exit successfully. */
20434   exit (setpgrp (1,1) == -1 ? 0 : 1);
20435   ;
20436   return 0;
20437 }
20438 _ACEOF
20439 rm -f conftest$ac_exeext
20440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20441   (eval $ac_link) 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_cv_func_setpgrp_void=no
20451 else
20452   echo "$as_me: program exited with status $ac_status" >&5
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456 ( exit $ac_status )
20457 ac_cv_func_setpgrp_void=yes
20458 fi
20459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20460 fi
20461 fi
20462 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20463 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20464 if test $ac_cv_func_setpgrp_void = yes; then
20465
20466 cat >>confdefs.h <<\_ACEOF
20467 #define SETPGRP_VOID 1
20468 _ACEOF
20469
20470 fi
20471                       # AC_FUNC_FNMATCH    dnl use local version
20472
20473
20474 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20475 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20476 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20477   echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479   ac_check_lib_save_LIBS=$LIBS
20480 LIBS="-lxpg4  $LIBS"
20481 cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487
20488 /* Override any gcc2 internal prototype to avoid an error.  */
20489 #ifdef __cplusplus
20490 extern "C"
20491 #endif
20492 /* We use char because int might match the return type of a gcc2
20493    builtin and then its argument prototype would still apply.  */
20494 char setlocale ();
20495 int
20496 main ()
20497 {
20498 setlocale ();
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20505   (eval $ac_link) 2>conftest.er1
20506   ac_status=$?
20507   grep -v '^ *+' conftest.er1 >conftest.err
20508   rm -f conftest.er1
20509   cat conftest.err >&5
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } &&
20512          { ac_try='test -z "$ac_c_werror_flag"
20513                          || test ! -s conftest.err'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; } &&
20519          { ac_try='test -s conftest$ac_exeext'
20520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521   (eval $ac_try) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; }; then
20525   ac_cv_lib_xpg4_setlocale=yes
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ac_cv_lib_xpg4_setlocale=no
20531 fi
20532 rm -f conftest.err conftest.$ac_objext \
20533       conftest$ac_exeext conftest.$ac_ext
20534 LIBS=$ac_check_lib_save_LIBS
20535 fi
20536 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20537 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20538 if test $ac_cv_lib_xpg4_setlocale = yes; then
20539   LIBS="$LIBS -lxpg4"
20540 fi
20541
20542
20543
20544
20545 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20546 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20547 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20548   echo $ECHO_N "(cached) $ECHO_C" >&6
20549 else
20550   ac_check_lib_save_LIBS=$LIBS
20551 LIBS="-lsun  $LIBS"
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558
20559 /* Override any gcc2 internal prototype to avoid an error.  */
20560 #ifdef __cplusplus
20561 extern "C"
20562 #endif
20563 /* We use char because int might match the return type of a gcc2
20564    builtin and then its argument prototype would still apply.  */
20565 char getpwnam ();
20566 int
20567 main ()
20568 {
20569 getpwnam ();
20570   ;
20571   return 0;
20572 }
20573 _ACEOF
20574 rm -f conftest.$ac_objext conftest$ac_exeext
20575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20576   (eval $ac_link) 2>conftest.er1
20577   ac_status=$?
20578   grep -v '^ *+' conftest.er1 >conftest.err
20579   rm -f conftest.er1
20580   cat conftest.err >&5
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } &&
20583          { ac_try='test -z "$ac_c_werror_flag"
20584                          || test ! -s conftest.err'
20585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586   (eval $ac_try) 2>&5
20587   ac_status=$?
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); }; } &&
20590          { ac_try='test -s conftest$ac_exeext'
20591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592   (eval $ac_try) 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); }; }; then
20596   ac_cv_lib_sun_getpwnam=yes
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601 ac_cv_lib_sun_getpwnam=no
20602 fi
20603 rm -f conftest.err conftest.$ac_objext \
20604       conftest$ac_exeext conftest.$ac_ext
20605 LIBS=$ac_check_lib_save_LIBS
20606 fi
20607 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20608 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20609 if test $ac_cv_lib_sun_getpwnam = yes; then
20610   cat >>confdefs.h <<_ACEOF
20611 #define HAVE_LIBSUN 1
20612 _ACEOF
20613
20614   LIBS="-lsun $LIBS"
20615
20616 fi
20617
20618
20619
20620 for ac_header in zlib.h
20621 do
20622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20624   echo "$as_me:$LINENO: checking for $ac_header" >&5
20625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 fi
20629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20631 else
20632   # Is the header compilable?
20633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20635 cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641 $ac_includes_default
20642 #include <$ac_header>
20643 _ACEOF
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646   (eval $ac_compile) 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_c_werror_flag"
20654                          || test ! -s conftest.err'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest.$ac_objext'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_header_compiler=yes
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_header_compiler=no
20672 fi
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20675 echo "${ECHO_T}$ac_header_compiler" >&6
20676
20677 # Is the header present?
20678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20680 cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 #include <$ac_header>
20687 _ACEOF
20688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } >/dev/null; then
20696   if test -s conftest.err; then
20697     ac_cpp_err=$ac_c_preproc_warn_flag
20698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20699   else
20700     ac_cpp_err=
20701   fi
20702 else
20703   ac_cpp_err=yes
20704 fi
20705 if test -z "$ac_cpp_err"; then
20706   ac_header_preproc=yes
20707 else
20708   echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20710
20711   ac_header_preproc=no
20712 fi
20713 rm -f conftest.err conftest.$ac_ext
20714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20715 echo "${ECHO_T}$ac_header_preproc" >&6
20716
20717 # So?  What about this header?
20718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20719   yes:no: )
20720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20724     ac_header_preproc=yes
20725     ;;
20726   no:yes:* )
20727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20739     (
20740       cat <<\_ASBOX
20741 ## ------------------------------------------ ##
20742 ## Report this to the AC_PACKAGE_NAME lists.  ##
20743 ## ------------------------------------------ ##
20744 _ASBOX
20745     ) |
20746       sed "s/^/$as_me: WARNING:     /" >&2
20747     ;;
20748 esac
20749 echo "$as_me:$LINENO: checking for $ac_header" >&5
20750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20752   echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754   eval "$as_ac_Header=\$ac_header_preproc"
20755 fi
20756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20758
20759 fi
20760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20761   cat >>confdefs.h <<_ACEOF
20762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20763 _ACEOF
20764
20765 fi
20766
20767 done
20768
20769 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20770 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20771 if test "${ac_cv_lib_z_deflate+set}" = set; then
20772   echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774   ac_check_lib_save_LIBS=$LIBS
20775 LIBS="-lz  $LIBS"
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h.  */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h.  */
20782
20783 /* Override any gcc2 internal prototype to avoid an error.  */
20784 #ifdef __cplusplus
20785 extern "C"
20786 #endif
20787 /* We use char because int might match the return type of a gcc2
20788    builtin and then its argument prototype would still apply.  */
20789 char deflate ();
20790 int
20791 main ()
20792 {
20793 deflate ();
20794   ;
20795   return 0;
20796 }
20797 _ACEOF
20798 rm -f conftest.$ac_objext conftest$ac_exeext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20800   (eval $ac_link) 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } &&
20807          { ac_try='test -z "$ac_c_werror_flag"
20808                          || test ! -s conftest.err'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; } &&
20814          { ac_try='test -s conftest$ac_exeext'
20815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816   (eval $ac_try) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   ac_cv_lib_z_deflate=yes
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 ac_cv_lib_z_deflate=no
20826 fi
20827 rm -f conftest.err conftest.$ac_objext \
20828       conftest$ac_exeext conftest.$ac_ext
20829 LIBS=$ac_check_lib_save_LIBS
20830 fi
20831 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20832 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20833 if test $ac_cv_lib_z_deflate = yes; then
20834   FDLIBS="-lz"
20835 fi
20836
20837 have_zlib=no
20838 if test x$FDLIBS = x-lz; then
20839   cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_LIBZ 1
20841 _ACEOF
20842
20843   have_zlib=yes
20844 fi
20845
20846 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20847   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20848 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20849 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 fi
20852 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20853 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20854 else
20855   # Is the header compilable?
20856 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20857 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20858 cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 $ac_includes_default
20865 #include <sys/acl.h>
20866 _ACEOF
20867 rm -f conftest.$ac_objext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20869   (eval $ac_compile) 2>conftest.er1
20870   ac_status=$?
20871   grep -v '^ *+' conftest.er1 >conftest.err
20872   rm -f conftest.er1
20873   cat conftest.err >&5
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); } &&
20876          { ac_try='test -z "$ac_c_werror_flag"
20877                          || test ! -s conftest.err'
20878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879   (eval $ac_try) 2>&5
20880   ac_status=$?
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); }; } &&
20883          { ac_try='test -s conftest.$ac_objext'
20884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885   (eval $ac_try) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); }; }; then
20889   ac_header_compiler=yes
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 ac_header_compiler=no
20895 fi
20896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20898 echo "${ECHO_T}$ac_header_compiler" >&6
20899
20900 # Is the header present?
20901 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20902 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20903 cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 #include <sys/acl.h>
20910 _ACEOF
20911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } >/dev/null; then
20919   if test -s conftest.err; then
20920     ac_cpp_err=$ac_c_preproc_warn_flag
20921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20922   else
20923     ac_cpp_err=
20924   fi
20925 else
20926   ac_cpp_err=yes
20927 fi
20928 if test -z "$ac_cpp_err"; then
20929   ac_header_preproc=yes
20930 else
20931   echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934   ac_header_preproc=no
20935 fi
20936 rm -f conftest.err conftest.$ac_ext
20937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20938 echo "${ECHO_T}$ac_header_preproc" >&6
20939
20940 # So?  What about this header?
20941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20942   yes:no: )
20943     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20944 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20945     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20946 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20947     ac_header_preproc=yes
20948     ;;
20949   no:yes:* )
20950     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20951 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20952     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20953 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20954     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20955 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20956     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20957 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20958     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20959 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20960     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20961 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20962     (
20963       cat <<\_ASBOX
20964 ## ------------------------------------------ ##
20965 ## Report this to the AC_PACKAGE_NAME lists.  ##
20966 ## ------------------------------------------ ##
20967 _ASBOX
20968     ) |
20969       sed "s/^/$as_me: WARNING:     /" >&2
20970     ;;
20971 esac
20972 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20973 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20974 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977   ac_cv_header_sys_acl_h=$ac_header_preproc
20978 fi
20979 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20980 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20981
20982 fi
20983
20984
20985 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20986 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20987 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20988   echo $ECHO_N "(cached) $ECHO_C" >&6
20989 else
20990   ac_check_lib_save_LIBS=$LIBS
20991 LIBS="-lacl  $LIBS"
20992 cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998
20999 /* Override any gcc2 internal prototype to avoid an error.  */
21000 #ifdef __cplusplus
21001 extern "C"
21002 #endif
21003 /* We use char because int might match the return type of a gcc2
21004    builtin and then its argument prototype would still apply.  */
21005 char acl_get_file ();
21006 int
21007 main ()
21008 {
21009 acl_get_file ();
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21016   (eval $ac_link) 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_c_werror_flag"
21024                          || test ! -s conftest.err'
21025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026   (eval $ac_try) 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); }; } &&
21030          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21036   ac_cv_lib_acl_acl_get_file=yes
21037 else
21038   echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 ac_cv_lib_acl_acl_get_file=no
21042 fi
21043 rm -f conftest.err conftest.$ac_objext \
21044       conftest$ac_exeext conftest.$ac_ext
21045 LIBS=$ac_check_lib_save_LIBS
21046 fi
21047 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
21048 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
21049 if test $ac_cv_lib_acl_acl_get_file = yes; then
21050   FDLIBS="-lacl $FDLIBS"
21051 fi
21052
21053 have_acl=no
21054 if test $ac_cv_lib_acl_acl_get_file = yes; then
21055    cat >>confdefs.h <<\_ACEOF
21056 #define HAVE_ACL 1
21057 _ACEOF
21058
21059    have_acl=yes
21060 fi
21061
21062 PTHREAD_LIB=""
21063 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21064 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
21065 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   ac_check_lib_save_LIBS=$LIBS
21069 LIBS="-lpthread  $LIBS"
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076
21077 /* Override any gcc2 internal prototype to avoid an error.  */
21078 #ifdef __cplusplus
21079 extern "C"
21080 #endif
21081 /* We use char because int might match the return type of a gcc2
21082    builtin and then its argument prototype would still apply.  */
21083 char pthread_create ();
21084 int
21085 main ()
21086 {
21087 pthread_create ();
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext conftest$ac_exeext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21094   (eval $ac_link) 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } &&
21101          { ac_try='test -z "$ac_c_werror_flag"
21102                          || test ! -s conftest.err'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; } &&
21108          { ac_try='test -s conftest$ac_exeext'
21109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110   (eval $ac_try) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; }; then
21114   ac_cv_lib_pthread_pthread_create=yes
21115 else
21116   echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ac_cv_lib_pthread_pthread_create=no
21120 fi
21121 rm -f conftest.err conftest.$ac_objext \
21122       conftest$ac_exeext conftest.$ac_ext
21123 LIBS=$ac_check_lib_save_LIBS
21124 fi
21125 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21126 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21127 if test $ac_cv_lib_pthread_pthread_create = yes; then
21128   PTHREAD_LIB="-lpthread"
21129 else
21130   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21131 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21132 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135   ac_check_lib_save_LIBS=$LIBS
21136 LIBS="-lpthreads  $LIBS"
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143
21144 /* Override any gcc2 internal prototype to avoid an error.  */
21145 #ifdef __cplusplus
21146 extern "C"
21147 #endif
21148 /* We use char because int might match the return type of a gcc2
21149    builtin and then its argument prototype would still apply.  */
21150 char pthread_create ();
21151 int
21152 main ()
21153 {
21154 pthread_create ();
21155   ;
21156   return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext conftest$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161   (eval $ac_link) 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } &&
21168          { ac_try='test -z "$ac_c_werror_flag"
21169                          || test ! -s conftest.err'
21170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171   (eval $ac_try) 2>&5
21172   ac_status=$?
21173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174   (exit $ac_status); }; } &&
21175          { ac_try='test -s conftest$ac_exeext'
21176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177   (eval $ac_try) 2>&5
21178   ac_status=$?
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); }; }; then
21181   ac_cv_lib_pthreads_pthread_create=yes
21182 else
21183   echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186 ac_cv_lib_pthreads_pthread_create=no
21187 fi
21188 rm -f conftest.err conftest.$ac_objext \
21189       conftest$ac_exeext conftest.$ac_ext
21190 LIBS=$ac_check_lib_save_LIBS
21191 fi
21192 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21193 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21194 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21195   PTHREAD_LIB="-lpthreads"
21196 else
21197   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21198 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21199 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21200   echo $ECHO_N "(cached) $ECHO_C" >&6
21201 else
21202   ac_check_lib_save_LIBS=$LIBS
21203 LIBS="-lc_r  $LIBS"
21204 cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h.  */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h.  */
21210
21211 /* Override any gcc2 internal prototype to avoid an error.  */
21212 #ifdef __cplusplus
21213 extern "C"
21214 #endif
21215 /* We use char because int might match the return type of a gcc2
21216    builtin and then its argument prototype would still apply.  */
21217 char pthread_create ();
21218 int
21219 main ()
21220 {
21221 pthread_create ();
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21228   (eval $ac_link) 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } &&
21235          { ac_try='test -z "$ac_c_werror_flag"
21236                          || test ! -s conftest.err'
21237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238   (eval $ac_try) 2>&5
21239   ac_status=$?
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); }; } &&
21242          { ac_try='test -s conftest$ac_exeext'
21243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244   (eval $ac_try) 2>&5
21245   ac_status=$?
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); }; }; then
21248   ac_cv_lib_c_r_pthread_create=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253 ac_cv_lib_c_r_pthread_create=no
21254 fi
21255 rm -f conftest.err conftest.$ac_objext \
21256       conftest$ac_exeext conftest.$ac_ext
21257 LIBS=$ac_check_lib_save_LIBS
21258 fi
21259 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21260 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21261 if test $ac_cv_lib_c_r_pthread_create = yes; then
21262   PTHREAD_LIB="-lc_r"
21263 else
21264   echo "$as_me:$LINENO: checking for pthread_create" >&5
21265 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21266 if test "${ac_cv_func_pthread_create+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269   cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h.  */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h.  */
21275 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21277 #define pthread_create innocuous_pthread_create
21278
21279 /* System header to define __stub macros and hopefully few prototypes,
21280     which can conflict with char pthread_create (); below.
21281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21282     <limits.h> exists even on freestanding compilers.  */
21283
21284 #ifdef __STDC__
21285 # include <limits.h>
21286 #else
21287 # include <assert.h>
21288 #endif
21289
21290 #undef pthread_create
21291
21292 /* Override any gcc2 internal prototype to avoid an error.  */
21293 #ifdef __cplusplus
21294 extern "C"
21295 {
21296 #endif
21297 /* We use char because int might match the return type of a gcc2
21298    builtin and then its argument prototype would still apply.  */
21299 char pthread_create ();
21300 /* The GNU C library defines this for functions which it implements
21301     to always fail with ENOSYS.  Some functions are actually named
21302     something starting with __ and the normal name is an alias.  */
21303 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21304 choke me
21305 #else
21306 char (*f) () = pthread_create;
21307 #endif
21308 #ifdef __cplusplus
21309 }
21310 #endif
21311
21312 int
21313 main ()
21314 {
21315 return f != pthread_create;
21316   ;
21317   return 0;
21318 }
21319 _ACEOF
21320 rm -f conftest.$ac_objext conftest$ac_exeext
21321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21322   (eval $ac_link) 2>conftest.er1
21323   ac_status=$?
21324   grep -v '^ *+' conftest.er1 >conftest.err
21325   rm -f conftest.er1
21326   cat conftest.err >&5
21327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328   (exit $ac_status); } &&
21329          { ac_try='test -z "$ac_c_werror_flag"
21330                          || test ! -s conftest.err'
21331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332   (eval $ac_try) 2>&5
21333   ac_status=$?
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); }; } &&
21336          { ac_try='test -s conftest$ac_exeext'
21337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338   (eval $ac_try) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; }; then
21342   ac_cv_func_pthread_create=yes
21343 else
21344   echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21346
21347 ac_cv_func_pthread_create=no
21348 fi
21349 rm -f conftest.err conftest.$ac_objext \
21350       conftest$ac_exeext conftest.$ac_ext
21351 fi
21352 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21353 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21354
21355
21356 fi
21357
21358
21359 fi
21360
21361
21362 fi
21363
21364
21365
21366 cat >>confdefs.h <<\_ACEOF
21367 #define FDLIBS 1
21368 _ACEOF
21369
21370
21371
21372 CFLAGS=${CFLAGS--O}
21373 LDFLAGS=${LDFLAGS--O}
21374 DB_LIBS="${SQL_LFLAGS}"
21375
21376 CPPFLAGS="$CPPFLAGS"
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391 OBJLIST=
21392
21393
21394 lld="lld"
21395 llu="llu"
21396
21397 WCFLAGS=
21398 WLDFLAGS=
21399
21400 #
21401 # Finally we set appropriate distribution specific
21402 #  variables and defaults
21403 #
21404 # PFILES are platform specific files
21405 PFILES="platforms/Makefile"
21406 PSCMD="ps -e"
21407 WIN32=
21408 MACOSX=
21409 hostname=`uname -n | cut -d '.' -f 1`
21410 case "$DISTNAME" in
21411 aix)
21412         DISTVER=`uname -r`
21413         PSCMD="ps -e -o pid,comm"
21414         PFILES="${PFILES} \
21415            platforms/aix/Makefile"
21416         TAPEDRIVE="/dev/rmt0.1"
21417   ;;
21418 alpha)
21419         DISTVER=`uname -r`
21420         PTHREAD_LIB="-lpthread -lexc"
21421         if test "${CC}" = "gcc" ; then
21422            lld="lld"
21423            llu="llu"
21424         else
21425            lld="ld"
21426            llu="lu"
21427         fi
21428         TAPEDRIVE="/dev/nrmt0"
21429   ;;
21430 bsdi)
21431         DISTVER=`uname -a |awk '{print $3}'`
21432         TAPEDRIVE="/dev/nrmt0"
21433         PTHREAD_LIB="-pthread"
21434         CFLAGS="${CFLAGS} -pthread"
21435         PSCMD="ps -x -o pid,command"
21436         lld="qd"
21437         llu="qu"
21438         PFILES="${PFILES} \
21439             platforms/bsdi/Makefile \
21440             platforms/bsdi/bacula-fd \
21441             platforms/bsdi/bacula-sd \
21442             platforms/bsdi/bacula-dir"
21443         largefile_support="yes"
21444   ;;
21445 cygwin)
21446         DISTVER=`uname -a |awk '{print $3}'`
21447         TAPEDRIVE="/dev/nrst0"
21448         WIN32=win32
21449         WCFLAGS="-mwindows"
21450         WLDFLAGS="-mwindows"
21451   ;;
21452 darwin)
21453         DISTVER=`uname -r`
21454         TAPEDRIVE="/dev/nst0"
21455         PSCMD="ps -e -o pid,command"
21456         MACOSX=macosx
21457         PFILES="${PFILES} \
21458            platforms/darwin/Makefile"
21459   ;;
21460 debian)
21461         DISTVER=`cat /etc/debian_version`
21462         TAPEDRIVE="/dev/nrst0"
21463         PSCMD="ps -e -o pid,command"
21464   ;;
21465 freebsd)
21466         DISTVER=`uname -a |awk '{print $3}'`
21467         VER=`echo $DISTVER | cut -c 1`
21468         if test x$VER = x4 ; then
21469            PTHREAD_LIB="-pthread"
21470            CFLAGS="${CFLAGS} -pthread"
21471         fi
21472         lld="qd"
21473         llu="qu"
21474         TAPEDRIVE="/dev/nrsa0"
21475         PSCMD="ps -x -o pid,command"
21476         PFILES="${PFILES} \
21477             platforms/freebsd/Makefile \
21478             platforms/freebsd/bacula-fd \
21479             platforms/freebsd/bacula-sd \
21480             platforms/freebsd/bacula-dir"
21481         largefile_support="yes"
21482   ;;
21483 hpux)
21484         PSCMD="UNIX95=1 ps -e -o pid,comm"
21485         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21486         DISTVER=`uname -r`
21487         TAPEDRIVE="/dev/rmt/0hnb"
21488         PTHREAD_LIB="-lpthread"
21489         cat >>confdefs.h <<\_ACEOF
21490 #define _INCLUDE_LONGLONG 1
21491 _ACEOF
21492
21493   ;;
21494 irix)
21495         DISTVER=`uname -r`
21496         TAPEDRIVE="/dev/rmt/0cbn"
21497         PSCMD="ps -e -o pid,comm"
21498         PFILES="${PFILES} \
21499             platforms/irix/Makefile \
21500             platforms/irix/bacula-fd \
21501             platforms/irix/bacula-sd \
21502             platforms/irix/bacula-dir"
21503   ;;
21504 netbsd)
21505         DISTVER=`uname -a |awk '{print $3}'`
21506         lld="qd"
21507         llu="qu"
21508         TAPEDRIVE="/dev/nrst0"
21509         PSCMD="ps -a -o pid,command"
21510         PTHREAD_LIB="-pthread"
21511         CFLAGS="${CFLAGS} -pthread"
21512   ;;
21513 openbsd)
21514         DISTVER=`uname -a |awk '{print $3}'`
21515         lld="qd"
21516         llu="qu"
21517         TAPEDRIVE="/dev/nrst0"
21518         PSCMD="ps -ax -o pid,command"
21519         PTHREAD_LIB="-pthread"
21520         CFLAGS="${CFLAGS} -pthread"
21521         PFILES="${PFILES} \
21522             platforms/openbsd/Makefile \
21523             platforms/openbsd/bacula-fd \
21524             platforms/openbsd/bacula-sd \
21525             platforms/openbsd/bacula-dir"
21526   ;;
21527 redhat)
21528         if test -f /etc/whitebox-release ; then
21529            f=/etc/whitebox-release
21530         else
21531            f=/etc/redhat-release
21532         fi
21533         if test `cat $f | grep release |\
21534                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21535            DISTVER="Enterprise "`cat $f | grep release |\
21536                     cut -f 6 -d ' '`
21537         else
21538             DISTVER=`cat /etc/redhat-release | grep release |\
21539                      cut -f 5 -d ' '`
21540         fi
21541         TAPEDRIVE="/dev/nst0"
21542         PSCMD="ps -e -o pid,command"
21543         PFILES="${PFILES} \
21544             platforms/redhat/Makefile \
21545             platforms/redhat/bacula-fd \
21546             platforms/redhat/bacula-sd \
21547             platforms/redhat/bacula-dir \
21548             platforms/redhat/bacula.spec \
21549             "
21550         hostname=`hostname -s`
21551   ;;
21552 mandrake)
21553         DISTVER=`cat /etc/mandrake-release | grep release |\
21554            cut -f 5 -d ' '`
21555         TAPEDRIVE="/dev/nst0"
21556         PSCMD="ps -e -o pid,command"
21557         PFILES="${PFILES} \
21558             platforms/mandrake/Makefile \
21559             platforms/mandrake/bacula-fd \
21560             platforms/mandrake/bacula-sd \
21561             platforms/mandrake/bacula-dir \
21562             platforms/mandrake/bacula.spec \
21563             "
21564   ;;
21565 gentoo)
21566         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21567         TAPEDRIVE="/dev/nst0"
21568         PSCMD="ps -e -o pid,command"
21569         PFILES="${PFILES} \
21570             platforms/gentoo/Makefile \
21571          platforms/gentoo/bacula-init \
21572             platforms/gentoo/bacula-fd \
21573             platforms/gentoo/bacula-sd \
21574             platforms/gentoo/bacula-dir"
21575   ;;
21576 slackware)
21577         DISTVER=`cat /etc/slackware-version`
21578         TAPEDRIVE="/dev/nst0"
21579         PSCMD="ps -e -o pid,command"
21580         PFILES="${PFILES} \
21581             platforms/slackware/Makefile \
21582             platforms/slackware/rc.bacula-fd \
21583             platforms/slackware/rc.bacula-sd \
21584             platforms/slackware/rc.bacula-dir\
21585             platforms/slackware/functions.bacula"
21586   ;;
21587 solaris)
21588         DISTVER=`uname -r`
21589         TAPEDRIVE="/dev/rmt/0cbn"
21590         PSCMD="ps -e -o pid,comm"
21591         PFILES="${PFILES} \
21592             platforms/solaris/Makefile \
21593             platforms/solaris/bacula-fd \
21594             platforms/solaris/bacula-sd \
21595             platforms/solaris/bacula-dir"
21596         if test x$DISTVER = x5.6 ; then
21597             cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_OLD_SOCKOPT 1
21599 _ACEOF
21600
21601         fi
21602   ;;
21603 suse)
21604         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21605             cut -f 3 -d ' '`
21606         TAPEDRIVE="/dev/nst0"
21607         PSCMD="ps -e -o pid,command"
21608         PFILES="${PFILES} \
21609             platforms/suse/Makefile \
21610             platforms/suse/bacula-fd \
21611             platforms/suse/bacula-sd \
21612             platforms/suse/bacula-dir \
21613             platforms/suse/bacula \
21614             platforms/suse/bacula.spec"
21615   ;;
21616 suse5)
21617         DISTNAME=suse
21618         DISTVER=5.x
21619         TAPEDRIVE="/dev/nst0"
21620         PSCMD="ps -e -o pid,command"
21621         PFILES="${PFILES} \
21622             platforms/suse/Makefile \
21623             platforms/suse/bacula-fd \
21624             platforms/suse/bacula-sd \
21625             platforms/suse/bacula-dir"
21626   ;;
21627 unknown)
21628         DISTVER=unknown
21629         TAPEDRIVE="/dev/nst0"
21630   ;;
21631 *)
21632   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21633   ;;
21634 esac
21635
21636
21637
21638 LIBS="$PTHREAD_LIB $LIBS"
21639
21640 cat >>confdefs.h <<_ACEOF
21641 #define lld "$lld"
21642 _ACEOF
21643
21644 cat >>confdefs.h <<_ACEOF
21645 #define llu "$llu"
21646 _ACEOF
21647
21648
21649
21650
21651
21652
21653
21654
21655 MCOMMON=./autoconf/Make.common
21656
21657
21658 if test "x${subsysdir}" = "x${sbindir}" ; then
21659    echo " "
21660    echo " "
21661    echo "You have set both --sbindir and --with-subsys-dir"
21662    echo "  equal to: ${subsysdir} "
21663    echo "This is not permitted. Please reconfigure."
21664    echo " "
21665    echo "Aborting configuration ..."
21666    echo " "
21667    echo " "
21668    exit 1
21669 fi
21670
21671                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21672           ac_config_commands="$ac_config_commands default"
21673 cat >confcache <<\_ACEOF
21674 # This file is a shell script that caches the results of configure
21675 # tests run on this system so they can be shared between configure
21676 # scripts and configure runs, see configure's option --config-cache.
21677 # It is not useful on other systems.  If it contains results you don't
21678 # want to keep, you may remove or edit it.
21679 #
21680 # config.status only pays attention to the cache file if you give it
21681 # the --recheck option to rerun configure.
21682 #
21683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21685 # following values.
21686
21687 _ACEOF
21688
21689 # The following way of writing the cache mishandles newlines in values,
21690 # but we know of no workaround that is simple, portable, and efficient.
21691 # So, don't put newlines in cache variables' values.
21692 # Ultrix sh set writes to stderr and can't be redirected directly,
21693 # and sets the high bit in the cache file unless we assign to the vars.
21694 {
21695   (set) 2>&1 |
21696     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21697     *ac_space=\ *)
21698       # `set' does not quote correctly, so add quotes (double-quote
21699       # substitution turns \\\\ into \\, and sed turns \\ into \).
21700       sed -n \
21701         "s/'/'\\\\''/g;
21702           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21703       ;;
21704     *)
21705       # `set' quotes correctly as required by POSIX, so do not add quotes.
21706       sed -n \
21707         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21708       ;;
21709     esac;
21710 } |
21711   sed '
21712      t clear
21713      : clear
21714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21715      t end
21716      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21717      : end' >>confcache
21718 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21719   if test -w $cache_file; then
21720     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21721     cat confcache >$cache_file
21722   else
21723     echo "not updating unwritable cache $cache_file"
21724   fi
21725 fi
21726 rm -f confcache
21727
21728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21729 # Let make expand exec_prefix.
21730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21731
21732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21734 # trailing colons and then remove the whole line if VPATH becomes empty
21735 # (actually we leave an empty line to preserve line numbers).
21736 if test "x$srcdir" = x.; then
21737   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21738 s/:*\$(srcdir):*/:/;
21739 s/:*\${srcdir}:*/:/;
21740 s/:*@srcdir@:*/:/;
21741 s/^\([^=]*=[     ]*\):*/\1/;
21742 s/:*$//;
21743 s/^[^=]*=[       ]*$//;
21744 }'
21745 fi
21746
21747 DEFS=-DHAVE_CONFIG_H
21748
21749 ac_libobjs=
21750 ac_ltlibobjs=
21751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21752   # 1. Remove the extension, and $U if already installed.
21753   ac_i=`echo "$ac_i" |
21754          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21755   # 2. Add them.
21756   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21757   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21758 done
21759 LIBOBJS=$ac_libobjs
21760
21761 LTLIBOBJS=$ac_ltlibobjs
21762
21763
21764
21765 : ${CONFIG_STATUS=./config.status}
21766 ac_clean_files_save=$ac_clean_files
21767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21768 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21769 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21770 cat >$CONFIG_STATUS <<_ACEOF
21771 #! $SHELL
21772 # Generated by $as_me.
21773 # Run this file to recreate the current configuration.
21774 # Compiler output produced by configure, useful for debugging
21775 # configure, is in config.log if it exists.
21776
21777 debug=false
21778 ac_cs_recheck=false
21779 ac_cs_silent=false
21780 SHELL=\${CONFIG_SHELL-$SHELL}
21781 _ACEOF
21782
21783 cat >>$CONFIG_STATUS <<\_ACEOF
21784 ## --------------------- ##
21785 ## M4sh Initialization.  ##
21786 ## --------------------- ##
21787
21788 # Be Bourne compatible
21789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21790   emulate sh
21791   NULLCMD=:
21792   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21793   # is contrary to our usage.  Disable this feature.
21794   alias -g '${1+"$@"}'='"$@"'
21795 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21796   set -o posix
21797 fi
21798 DUALCASE=1; export DUALCASE # for MKS sh
21799
21800 # Support unset when possible.
21801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21802   as_unset=unset
21803 else
21804   as_unset=false
21805 fi
21806
21807
21808 # Work around bugs in pre-3.0 UWIN ksh.
21809 $as_unset ENV MAIL MAILPATH
21810 PS1='$ '
21811 PS2='> '
21812 PS4='+ '
21813
21814 # NLS nuisances.
21815 for as_var in \
21816   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21817   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21818   LC_TELEPHONE LC_TIME
21819 do
21820   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21821     eval $as_var=C; export $as_var
21822   else
21823     $as_unset $as_var
21824   fi
21825 done
21826
21827 # Required to use basename.
21828 if expr a : '\(a\)' >/dev/null 2>&1; then
21829   as_expr=expr
21830 else
21831   as_expr=false
21832 fi
21833
21834 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21835   as_basename=basename
21836 else
21837   as_basename=false
21838 fi
21839
21840
21841 # Name of the executable.
21842 as_me=`$as_basename "$0" ||
21843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21844          X"$0" : 'X\(//\)$' \| \
21845          X"$0" : 'X\(/\)$' \| \
21846          .     : '\(.\)' 2>/dev/null ||
21847 echo X/"$0" |
21848     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21849           /^X\/\(\/\/\)$/{ s//\1/; q; }
21850           /^X\/\(\/\).*/{ s//\1/; q; }
21851           s/.*/./; q'`
21852
21853
21854 # PATH needs CR, and LINENO needs CR and PATH.
21855 # Avoid depending upon Character Ranges.
21856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21859 as_cr_digits='0123456789'
21860 as_cr_alnum=$as_cr_Letters$as_cr_digits
21861
21862 # The user is always right.
21863 if test "${PATH_SEPARATOR+set}" != set; then
21864   echo "#! /bin/sh" >conf$$.sh
21865   echo  "exit 0"   >>conf$$.sh
21866   chmod +x conf$$.sh
21867   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21868     PATH_SEPARATOR=';'
21869   else
21870     PATH_SEPARATOR=:
21871   fi
21872   rm -f conf$$.sh
21873 fi
21874
21875
21876   as_lineno_1=$LINENO
21877   as_lineno_2=$LINENO
21878   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21879   test "x$as_lineno_1" != "x$as_lineno_2" &&
21880   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21881   # Find who we are.  Look in the path if we contain no path at all
21882   # relative or not.
21883   case $0 in
21884     *[\\/]* ) as_myself=$0 ;;
21885     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21886 for as_dir in $PATH
21887 do
21888   IFS=$as_save_IFS
21889   test -z "$as_dir" && as_dir=.
21890   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21891 done
21892
21893        ;;
21894   esac
21895   # We did not find ourselves, most probably we were run as `sh COMMAND'
21896   # in which case we are not to be found in the path.
21897   if test "x$as_myself" = x; then
21898     as_myself=$0
21899   fi
21900   if test ! -f "$as_myself"; then
21901     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21902 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21903    { (exit 1); exit 1; }; }
21904   fi
21905   case $CONFIG_SHELL in
21906   '')
21907     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21908 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21909 do
21910   IFS=$as_save_IFS
21911   test -z "$as_dir" && as_dir=.
21912   for as_base in sh bash ksh sh5; do
21913          case $as_dir in
21914          /*)
21915            if ("$as_dir/$as_base" -c '
21916   as_lineno_1=$LINENO
21917   as_lineno_2=$LINENO
21918   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21919   test "x$as_lineno_1" != "x$as_lineno_2" &&
21920   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21921              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21922              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21923              CONFIG_SHELL=$as_dir/$as_base
21924              export CONFIG_SHELL
21925              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21926            fi;;
21927          esac
21928        done
21929 done
21930 ;;
21931   esac
21932
21933   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21934   # uniformly replaced by the line number.  The first 'sed' inserts a
21935   # line-number line before each line; the second 'sed' does the real
21936   # work.  The second script uses 'N' to pair each line-number line
21937   # with the numbered line, and appends trailing '-' during
21938   # substitution so that $LINENO is not a special case at line end.
21939   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21940   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21941   sed '=' <$as_myself |
21942     sed '
21943       N
21944       s,$,-,
21945       : loop
21946       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21947       t loop
21948       s,-$,,
21949       s,^['$as_cr_digits']*\n,,
21950     ' >$as_me.lineno &&
21951   chmod +x $as_me.lineno ||
21952     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21953 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21954    { (exit 1); exit 1; }; }
21955
21956   # Don't try to exec as it changes $[0], causing all sort of problems
21957   # (the dirname of $[0] is not the place where we might find the
21958   # original and so on.  Autoconf is especially sensible to this).
21959   . ./$as_me.lineno
21960   # Exit status is that of the last command.
21961   exit
21962 }
21963
21964
21965 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21966   *c*,-n*) ECHO_N= ECHO_C='
21967 ' ECHO_T='      ' ;;
21968   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21969   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21970 esac
21971
21972 if expr a : '\(a\)' >/dev/null 2>&1; then
21973   as_expr=expr
21974 else
21975   as_expr=false
21976 fi
21977
21978 rm -f conf$$ conf$$.exe conf$$.file
21979 echo >conf$$.file
21980 if ln -s conf$$.file conf$$ 2>/dev/null; then
21981   # We could just check for DJGPP; but this test a) works b) is more generic
21982   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21983   if test -f conf$$.exe; then
21984     # Don't use ln at all; we don't have any links
21985     as_ln_s='cp -p'
21986   else
21987     as_ln_s='ln -s'
21988   fi
21989 elif ln conf$$.file conf$$ 2>/dev/null; then
21990   as_ln_s=ln
21991 else
21992   as_ln_s='cp -p'
21993 fi
21994 rm -f conf$$ conf$$.exe conf$$.file
21995
21996 if mkdir -p . 2>/dev/null; then
21997   as_mkdir_p=:
21998 else
21999   test -d ./-p && rmdir ./-p
22000   as_mkdir_p=false
22001 fi
22002
22003 as_executable_p="test -f"
22004
22005 # Sed expression to map a string onto a valid CPP name.
22006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22007
22008 # Sed expression to map a string onto a valid variable name.
22009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22010
22011
22012 # IFS
22013 # We need space, tab and new line, in precisely that order.
22014 as_nl='
22015 '
22016 IFS="   $as_nl"
22017
22018 # CDPATH.
22019 $as_unset CDPATH
22020
22021 exec 6>&1
22022
22023 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22024 # report actual input values of CONFIG_FILES etc. instead of their
22025 # values after options handling.  Logging --version etc. is OK.
22026 exec 5>>config.log
22027 {
22028   echo
22029   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22030 ## Running $as_me. ##
22031 _ASBOX
22032 } >&5
22033 cat >&5 <<_CSEOF
22034
22035 This file was extended by $as_me, which was
22036 generated by GNU Autoconf 2.59.  Invocation command line was
22037
22038   CONFIG_FILES    = $CONFIG_FILES
22039   CONFIG_HEADERS  = $CONFIG_HEADERS
22040   CONFIG_LINKS    = $CONFIG_LINKS
22041   CONFIG_COMMANDS = $CONFIG_COMMANDS
22042   $ $0 $@
22043
22044 _CSEOF
22045 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22046 echo >&5
22047 _ACEOF
22048
22049 # Files that config.status was made for.
22050 if test -n "$ac_config_files"; then
22051   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22052 fi
22053
22054 if test -n "$ac_config_headers"; then
22055   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22056 fi
22057
22058 if test -n "$ac_config_links"; then
22059   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22060 fi
22061
22062 if test -n "$ac_config_commands"; then
22063   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22064 fi
22065
22066 cat >>$CONFIG_STATUS <<\_ACEOF
22067
22068 ac_cs_usage="\
22069 \`$as_me' instantiates files from templates according to the
22070 current configuration.
22071
22072 Usage: $0 [OPTIONS] [FILE]...
22073
22074   -h, --help       print this help, then exit
22075   -V, --version    print version number, then exit
22076   -q, --quiet      do not print progress messages
22077   -d, --debug      don't remove temporary files
22078       --recheck    update $as_me by reconfiguring in the same conditions
22079   --file=FILE[:TEMPLATE]
22080                    instantiate the configuration file FILE
22081   --header=FILE[:TEMPLATE]
22082                    instantiate the configuration header FILE
22083
22084 Configuration files:
22085 $config_files
22086
22087 Configuration headers:
22088 $config_headers
22089
22090 Configuration commands:
22091 $config_commands
22092
22093 Report bugs to <bug-autoconf@gnu.org>."
22094 _ACEOF
22095
22096 cat >>$CONFIG_STATUS <<_ACEOF
22097 ac_cs_version="\\
22098 config.status
22099 configured by $0, generated by GNU Autoconf 2.59,
22100   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22101
22102 Copyright (C) 2003 Free Software Foundation, Inc.
22103 This config.status script is free software; the Free Software Foundation
22104 gives unlimited permission to copy, distribute and modify it."
22105 srcdir=$srcdir
22106 INSTALL="$INSTALL"
22107 _ACEOF
22108
22109 cat >>$CONFIG_STATUS <<\_ACEOF
22110 # If no file are specified by the user, then we need to provide default
22111 # value.  By we need to know if files were specified by the user.
22112 ac_need_defaults=:
22113 while test $# != 0
22114 do
22115   case $1 in
22116   --*=*)
22117     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22118     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22119     ac_shift=:
22120     ;;
22121   -*)
22122     ac_option=$1
22123     ac_optarg=$2
22124     ac_shift=shift
22125     ;;
22126   *) # This is not an option, so the user has probably given explicit
22127      # arguments.
22128      ac_option=$1
22129      ac_need_defaults=false;;
22130   esac
22131
22132   case $ac_option in
22133   # Handling of the options.
22134 _ACEOF
22135 cat >>$CONFIG_STATUS <<\_ACEOF
22136   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22137     ac_cs_recheck=: ;;
22138   --version | --vers* | -V )
22139     echo "$ac_cs_version"; exit 0 ;;
22140   --he | --h)
22141     # Conflict between --help and --header
22142     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22143 Try \`$0 --help' for more information." >&5
22144 echo "$as_me: error: ambiguous option: $1
22145 Try \`$0 --help' for more information." >&2;}
22146    { (exit 1); exit 1; }; };;
22147   --help | --hel | -h )
22148     echo "$ac_cs_usage"; exit 0 ;;
22149   --debug | --d* | -d )
22150     debug=: ;;
22151   --file | --fil | --fi | --f )
22152     $ac_shift
22153     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22154     ac_need_defaults=false;;
22155   --header | --heade | --head | --hea )
22156     $ac_shift
22157     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22158     ac_need_defaults=false;;
22159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22160   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22161     ac_cs_silent=: ;;
22162
22163   # This is an error.
22164   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22165 Try \`$0 --help' for more information." >&5
22166 echo "$as_me: error: unrecognized option: $1
22167 Try \`$0 --help' for more information." >&2;}
22168    { (exit 1); exit 1; }; } ;;
22169
22170   *) ac_config_targets="$ac_config_targets $1" ;;
22171
22172   esac
22173   shift
22174 done
22175
22176 ac_configure_extra_args=
22177
22178 if $ac_cs_silent; then
22179   exec 6>/dev/null
22180   ac_configure_extra_args="$ac_configure_extra_args --silent"
22181 fi
22182
22183 _ACEOF
22184 cat >>$CONFIG_STATUS <<_ACEOF
22185 if \$ac_cs_recheck; then
22186   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22187   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22188 fi
22189
22190 _ACEOF
22191
22192
22193
22194
22195
22196 cat >>$CONFIG_STATUS <<\_ACEOF
22197 for ac_config_target in $ac_config_targets
22198 do
22199   case "$ac_config_target" in
22200   # Handling of arguments.
22201   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22202   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22203   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
22204   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
22205   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
22206   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
22207   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
22208   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
22209   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
22210   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22211   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22212   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22213   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22214   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22215   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22216   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22217   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22218   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22219   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22220   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22221   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22222   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22223   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22224   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22225   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22226   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22227   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22228   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22229   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22230   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22231   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22232   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22233   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22234   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22235   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22236   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22237   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22238   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22239   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22240   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22241   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22242   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22243   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22244   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22245   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22246   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22247   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22248   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22249   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22250   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22251   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22252   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22253   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22254   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22255   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22256   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22257   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22258   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22259   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22260   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22261   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22262   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22263   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22264   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22265   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22266   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22267   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22268   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22269   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22270   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22271   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22272   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22273   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22274   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22275   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22276   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22277   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22278   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22279   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22280   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22281   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22282   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22283   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22284   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22285   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22286   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22287   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22288   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22289   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22290   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22291   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22292   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22293   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22294   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22295   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22296   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22297   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22298   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22299   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22300   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22301   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22302   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22303   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22304   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22305   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22306   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22307   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22308   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22309   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22310 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22311    { (exit 1); exit 1; }; };;
22312   esac
22313 done
22314
22315 # If the user did not use the arguments to specify the items to instantiate,
22316 # then the envvar interface is used.  Set only those that are not.
22317 # We use the long form for the default assignment because of an extremely
22318 # bizarre bug on SunOS 4.1.3.
22319 if $ac_need_defaults; then
22320   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22321   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22322   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22323 fi
22324
22325 # Have a temporary directory for convenience.  Make it in the build tree
22326 # simply because there is no reason to put it here, and in addition,
22327 # creating and moving files from /tmp can sometimes cause problems.
22328 # Create a temporary directory, and hook for its removal unless debugging.
22329 $debug ||
22330 {
22331   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22332   trap '{ (exit 1); exit 1; }' 1 2 13 15
22333 }
22334
22335 # Create a (secure) tmp directory for tmp files.
22336
22337 {
22338   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22339   test -n "$tmp" && test -d "$tmp"
22340 }  ||
22341 {
22342   tmp=./confstat$$-$RANDOM
22343   (umask 077 && mkdir $tmp)
22344 } ||
22345 {
22346    echo "$me: cannot create a temporary directory in ." >&2
22347    { (exit 1); exit 1; }
22348 }
22349
22350 _ACEOF
22351
22352 cat >>$CONFIG_STATUS <<_ACEOF
22353
22354 #
22355 # CONFIG_FILES section.
22356 #
22357
22358 # No need to generate the scripts if there are no CONFIG_FILES.
22359 # This happens for instance when ./config.status config.h
22360 if test -n "\$CONFIG_FILES"; then
22361   # Protect against being on the right side of a sed subst in config.status.
22362   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22363    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22364 s,@SHELL@,$SHELL,;t t
22365 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22366 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22367 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22368 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22369 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22370 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22371 s,@exec_prefix@,$exec_prefix,;t t
22372 s,@prefix@,$prefix,;t t
22373 s,@program_transform_name@,$program_transform_name,;t t
22374 s,@bindir@,$bindir,;t t
22375 s,@sbindir@,$sbindir,;t t
22376 s,@libexecdir@,$libexecdir,;t t
22377 s,@datadir@,$datadir,;t t
22378 s,@sysconfdir@,$sysconfdir,;t t
22379 s,@sharedstatedir@,$sharedstatedir,;t t
22380 s,@localstatedir@,$localstatedir,;t t
22381 s,@libdir@,$libdir,;t t
22382 s,@includedir@,$includedir,;t t
22383 s,@oldincludedir@,$oldincludedir,;t t
22384 s,@infodir@,$infodir,;t t
22385 s,@mandir@,$mandir,;t t
22386 s,@build_alias@,$build_alias,;t t
22387 s,@host_alias@,$host_alias,;t t
22388 s,@target_alias@,$target_alias,;t t
22389 s,@DEFS@,$DEFS,;t t
22390 s,@ECHO_C@,$ECHO_C,;t t
22391 s,@ECHO_N@,$ECHO_N,;t t
22392 s,@ECHO_T@,$ECHO_T,;t t
22393 s,@LIBS@,$LIBS,;t t
22394 s,@BUILD_DIR@,$BUILD_DIR,;t t
22395 s,@TRUEPRG@,$TRUEPRG,;t t
22396 s,@FALSEPRG@,$FALSEPRG,;t t
22397 s,@VERSION@,$VERSION,;t t
22398 s,@DATE@,$DATE,;t t
22399 s,@LSMDATE@,$LSMDATE,;t t
22400 s,@CC@,$CC,;t t
22401 s,@CFLAGS@,$CFLAGS,;t t
22402 s,@LDFLAGS@,$LDFLAGS,;t t
22403 s,@CPPFLAGS@,$CPPFLAGS,;t t
22404 s,@ac_ct_CC@,$ac_ct_CC,;t t
22405 s,@EXEEXT@,$EXEEXT,;t t
22406 s,@OBJEXT@,$OBJEXT,;t t
22407 s,@CXX@,$CXX,;t t
22408 s,@CXXFLAGS@,$CXXFLAGS,;t t
22409 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22410 s,@CPP@,$CPP,;t t
22411 s,@EGREP@,$EGREP,;t t
22412 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22413 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22414 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22415 s,@RANLIB@,$RANLIB,;t t
22416 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22417 s,@MV@,$MV,;t t
22418 s,@RM@,$RM,;t t
22419 s,@CP@,$CP,;t t
22420 s,@SED@,$SED,;t t
22421 s,@ECHO@,$ECHO,;t t
22422 s,@CMP@,$CMP,;t t
22423 s,@TBL@,$TBL,;t t
22424 s,@AR@,$AR,;t t
22425 s,@OPENSSL@,$OPENSSL,;t t
22426 s,@MTX@,$MTX,;t t
22427 s,@MKISOFS@,$MKISOFS,;t t
22428 s,@PYTHON@,$PYTHON,;t t
22429 s,@GROWISOFS@,$GROWISOFS,;t t
22430 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22431 s,@PKGCONFIG@,$PKGCONFIG,;t t
22432 s,@WXCONFIG@,$WXCONFIG,;t t
22433 s,@CDRECORD@,$CDRECORD,;t t
22434 s,@PIDOF@,$PIDOF,;t t
22435 s,@AWK@,$AWK,;t t
22436 s,@ARFLAGS@,$ARFLAGS,;t t
22437 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22438 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22439 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22440 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22441 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22442 s,@build@,$build,;t t
22443 s,@build_cpu@,$build_cpu,;t t
22444 s,@build_vendor@,$build_vendor,;t t
22445 s,@build_os@,$build_os,;t t
22446 s,@host@,$host,;t t
22447 s,@host_cpu@,$host_cpu,;t t
22448 s,@host_vendor@,$host_vendor,;t t
22449 s,@host_os@,$host_os,;t t
22450 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22451 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22452 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22453 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22454 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22455 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22456 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22457 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22458 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22459 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22460 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22461 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22462 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22463 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22464 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22465 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22466 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22467 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22468 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22469 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22470 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22471 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22472 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22473 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22474 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22475 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22476 s,@MSGFMT@,$MSGFMT,;t t
22477 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22478 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22479 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22480 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22481 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22482 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22483 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22484 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22485 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22486 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22487 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22488 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22489 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22490 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22491 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22492 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22493 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22494 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22495 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22496 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22497 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22498 s,@GNOME_DIR@,$GNOME_DIR,;t t
22499 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22500 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22501 s,@WX_DIR@,$WX_DIR,;t t
22502 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22503 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22504 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22505 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22506 s,@STATIC_FD@,$STATIC_FD,;t t
22507 s,@STATIC_SD@,$STATIC_SD,;t t
22508 s,@STATIC_DIR@,$STATIC_DIR,;t t
22509 s,@STATIC_CONS@,$STATIC_CONS,;t t
22510 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22511 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22512 s,@ALL_DIRS@,$ALL_DIRS,;t t
22513 s,@CONS_INC@,$CONS_INC,;t t
22514 s,@CONS_OBJ@,$CONS_OBJ,;t t
22515 s,@CONS_SRC@,$CONS_SRC,;t t
22516 s,@CONS_LIBS@,$CONS_LIBS,;t t
22517 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22518 s,@READLINE_SRC@,$READLINE_SRC,;t t
22519 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22520 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22521 s,@CDSTL@,$CDSTL,;t t
22522 s,@working_dir@,$working_dir,;t t
22523 s,@scriptdir@,$scriptdir,;t t
22524 s,@dump_email@,$dump_email,;t t
22525 s,@job_email@,$job_email,;t t
22526 s,@smtp_host@,$smtp_host,;t t
22527 s,@piddir@,$piddir,;t t
22528 s,@subsysdir@,$subsysdir,;t t
22529 s,@baseport@,$baseport,;t t
22530 s,@dir_port@,$dir_port,;t t
22531 s,@fd_port@,$fd_port,;t t
22532 s,@sd_port@,$sd_port,;t t
22533 s,@dir_password@,$dir_password,;t t
22534 s,@fd_password@,$fd_password,;t t
22535 s,@sd_password@,$sd_password,;t t
22536 s,@mon_dir_password@,$mon_dir_password,;t t
22537 s,@mon_fd_password@,$mon_fd_password,;t t
22538 s,@mon_sd_password@,$mon_sd_password,;t t
22539 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22540 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22541 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22542 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22543 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22544 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22545 s,@dir_user@,$dir_user,;t t
22546 s,@dir_group@,$dir_group,;t t
22547 s,@sd_user@,$sd_user,;t t
22548 s,@sd_group@,$sd_group,;t t
22549 s,@fd_user@,$fd_user,;t t
22550 s,@fd_group@,$fd_group,;t t
22551 s,@SBINPERM@,$SBINPERM,;t t
22552 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22553 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22554 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22555 s,@cats@,$cats,;t t
22556 s,@DB_NAME@,$DB_NAME,;t t
22557 s,@GETCONF@,$GETCONF,;t t
22558 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22559 s,@X_CFLAGS@,$X_CFLAGS,;t t
22560 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22561 s,@X_LIBS@,$X_LIBS,;t t
22562 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22563 s,@LIBOBJS@,$LIBOBJS,;t t
22564 s,@ALLOCA@,$ALLOCA,;t t
22565 s,@FDLIBS@,$FDLIBS,;t t
22566 s,@DEBUG@,$DEBUG,;t t
22567 s,@DINCLUDE@,$DINCLUDE,;t t
22568 s,@DLIB@,$DLIB,;t t
22569 s,@DB_LIBS@,$DB_LIBS,;t t
22570 s,@WCFLAGS@,$WCFLAGS,;t t
22571 s,@WLDFLAGS@,$WLDFLAGS,;t t
22572 s,@OBJLIST@,$OBJLIST,;t t
22573 s,@hostname@,$hostname,;t t
22574 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22575 s,@PSCMD@,$PSCMD,;t t
22576 s,@WIN32@,$WIN32,;t t
22577 s,@MACOSX@,$MACOSX,;t t
22578 s,@DISTNAME@,$DISTNAME,;t t
22579 s,@DISTVER@,$DISTVER,;t t
22580 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22581 /@MCOMMON@/r $MCOMMON
22582 s,@MCOMMON@,,;t t
22583 CEOF
22584
22585 _ACEOF
22586
22587   cat >>$CONFIG_STATUS <<\_ACEOF
22588   # Split the substitutions into bite-sized pieces for seds with
22589   # small command number limits, like on Digital OSF/1 and HP-UX.
22590   ac_max_sed_lines=48
22591   ac_sed_frag=1 # Number of current file.
22592   ac_beg=1 # First line for current file.
22593   ac_end=$ac_max_sed_lines # Line after last line for current file.
22594   ac_more_lines=:
22595   ac_sed_cmds=
22596   while $ac_more_lines; do
22597     if test $ac_beg -gt 1; then
22598       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22599     else
22600       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22601     fi
22602     if test ! -s $tmp/subs.frag; then
22603       ac_more_lines=false
22604     else
22605       # The purpose of the label and of the branching condition is to
22606       # speed up the sed processing (if there are no `@' at all, there
22607       # is no need to browse any of the substitutions).
22608       # These are the two extra sed commands mentioned above.
22609       (echo ':t
22610   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22611       if test -z "$ac_sed_cmds"; then
22612         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22613       else
22614         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22615       fi
22616       ac_sed_frag=`expr $ac_sed_frag + 1`
22617       ac_beg=$ac_end
22618       ac_end=`expr $ac_end + $ac_max_sed_lines`
22619     fi
22620   done
22621   if test -z "$ac_sed_cmds"; then
22622     ac_sed_cmds=cat
22623   fi
22624 fi # test -n "$CONFIG_FILES"
22625
22626 _ACEOF
22627 cat >>$CONFIG_STATUS <<\_ACEOF
22628 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22629   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22630   case $ac_file in
22631   - | *:- | *:-:* ) # input from stdin
22632         cat >$tmp/stdin
22633         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22635   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22637   * )   ac_file_in=$ac_file.in ;;
22638   esac
22639
22640   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22641   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643          X"$ac_file" : 'X\(//\)[^/]' \| \
22644          X"$ac_file" : 'X\(//\)$' \| \
22645          X"$ac_file" : 'X\(/\)' \| \
22646          .     : '\(.\)' 2>/dev/null ||
22647 echo X"$ac_file" |
22648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650           /^X\(\/\/\)$/{ s//\1/; q; }
22651           /^X\(\/\).*/{ s//\1/; q; }
22652           s/.*/./; q'`
22653   { if $as_mkdir_p; then
22654     mkdir -p "$ac_dir"
22655   else
22656     as_dir="$ac_dir"
22657     as_dirs=
22658     while test ! -d "$as_dir"; do
22659       as_dirs="$as_dir $as_dirs"
22660       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22662          X"$as_dir" : 'X\(//\)[^/]' \| \
22663          X"$as_dir" : 'X\(//\)$' \| \
22664          X"$as_dir" : 'X\(/\)' \| \
22665          .     : '\(.\)' 2>/dev/null ||
22666 echo X"$as_dir" |
22667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22668           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22669           /^X\(\/\/\)$/{ s//\1/; q; }
22670           /^X\(\/\).*/{ s//\1/; q; }
22671           s/.*/./; q'`
22672     done
22673     test ! -n "$as_dirs" || mkdir $as_dirs
22674   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22676    { (exit 1); exit 1; }; }; }
22677
22678   ac_builddir=.
22679
22680 if test "$ac_dir" != .; then
22681   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22682   # A "../" for each directory in $ac_dir_suffix.
22683   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22684 else
22685   ac_dir_suffix= ac_top_builddir=
22686 fi
22687
22688 case $srcdir in
22689   .)  # No --srcdir option.  We are building in place.
22690     ac_srcdir=.
22691     if test -z "$ac_top_builddir"; then
22692        ac_top_srcdir=.
22693     else
22694        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22695     fi ;;
22696   [\\/]* | ?:[\\/]* )  # Absolute path.
22697     ac_srcdir=$srcdir$ac_dir_suffix;
22698     ac_top_srcdir=$srcdir ;;
22699   *) # Relative path.
22700     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22701     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22702 esac
22703
22704 # Do not use `cd foo && pwd` to compute absolute paths, because
22705 # the directories may not exist.
22706 case `pwd` in
22707 .) ac_abs_builddir="$ac_dir";;
22708 *)
22709   case "$ac_dir" in
22710   .) ac_abs_builddir=`pwd`;;
22711   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22712   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22713   esac;;
22714 esac
22715 case $ac_abs_builddir in
22716 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22717 *)
22718   case ${ac_top_builddir}. in
22719   .) ac_abs_top_builddir=$ac_abs_builddir;;
22720   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22721   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22722   esac;;
22723 esac
22724 case $ac_abs_builddir in
22725 .) ac_abs_srcdir=$ac_srcdir;;
22726 *)
22727   case $ac_srcdir in
22728   .) ac_abs_srcdir=$ac_abs_builddir;;
22729   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22730   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22731   esac;;
22732 esac
22733 case $ac_abs_builddir in
22734 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22735 *)
22736   case $ac_top_srcdir in
22737   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22738   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22739   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22740   esac;;
22741 esac
22742
22743
22744   case $INSTALL in
22745   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22746   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22747   esac
22748
22749   if test x"$ac_file" != x-; then
22750     { echo "$as_me:$LINENO: creating $ac_file" >&5
22751 echo "$as_me: creating $ac_file" >&6;}
22752     rm -f "$ac_file"
22753   fi
22754   # Let's still pretend it is `configure' which instantiates (i.e., don't
22755   # use $as_me), people would be surprised to read:
22756   #    /* config.h.  Generated by config.status.  */
22757   if test x"$ac_file" = x-; then
22758     configure_input=
22759   else
22760     configure_input="$ac_file.  "
22761   fi
22762   configure_input=$configure_input"Generated from `echo $ac_file_in |
22763                                      sed 's,.*/,,'` by configure."
22764
22765   # First look for the input files in the build tree, otherwise in the
22766   # src tree.
22767   ac_file_inputs=`IFS=:
22768     for f in $ac_file_in; do
22769       case $f in
22770       -) echo $tmp/stdin ;;
22771       [\\/$]*)
22772          # Absolute (can't be DOS-style, as IFS=:)
22773          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22774 echo "$as_me: error: cannot find input file: $f" >&2;}
22775    { (exit 1); exit 1; }; }
22776          echo "$f";;
22777       *) # Relative
22778          if test -f "$f"; then
22779            # Build tree
22780            echo "$f"
22781          elif test -f "$srcdir/$f"; then
22782            # Source tree
22783            echo "$srcdir/$f"
22784          else
22785            # /dev/null tree
22786            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22787 echo "$as_me: error: cannot find input file: $f" >&2;}
22788    { (exit 1); exit 1; }; }
22789          fi;;
22790       esac
22791     done` || { (exit 1); exit 1; }
22792 _ACEOF
22793 cat >>$CONFIG_STATUS <<_ACEOF
22794   sed "$ac_vpsub
22795 $extrasub
22796 _ACEOF
22797 cat >>$CONFIG_STATUS <<\_ACEOF
22798 :t
22799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22800 s,@configure_input@,$configure_input,;t t
22801 s,@srcdir@,$ac_srcdir,;t t
22802 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22803 s,@top_srcdir@,$ac_top_srcdir,;t t
22804 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22805 s,@builddir@,$ac_builddir,;t t
22806 s,@abs_builddir@,$ac_abs_builddir,;t t
22807 s,@top_builddir@,$ac_top_builddir,;t t
22808 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22809 s,@INSTALL@,$ac_INSTALL,;t t
22810 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22811   rm -f $tmp/stdin
22812   if test x"$ac_file" != x-; then
22813     mv $tmp/out $ac_file
22814   else
22815     cat $tmp/out
22816     rm -f $tmp/out
22817   fi
22818
22819 done
22820 _ACEOF
22821 cat >>$CONFIG_STATUS <<\_ACEOF
22822
22823 #
22824 # CONFIG_HEADER section.
22825 #
22826
22827 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22828 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22829 #
22830 # ac_d sets the value in "#define NAME VALUE" lines.
22831 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22832 ac_dB='[         ].*$,\1#\2'
22833 ac_dC=' '
22834 ac_dD=',;t'
22835 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22836 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22837 ac_uB='$,\1#\2define\3'
22838 ac_uC=' '
22839 ac_uD=',;t'
22840
22841 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22842   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22843   case $ac_file in
22844   - | *:- | *:-:* ) # input from stdin
22845         cat >$tmp/stdin
22846         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22847         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22848   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22849         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22850   * )   ac_file_in=$ac_file.in ;;
22851   esac
22852
22853   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22854 echo "$as_me: creating $ac_file" >&6;}
22855
22856   # First look for the input files in the build tree, otherwise in the
22857   # src tree.
22858   ac_file_inputs=`IFS=:
22859     for f in $ac_file_in; do
22860       case $f in
22861       -) echo $tmp/stdin ;;
22862       [\\/$]*)
22863          # Absolute (can't be DOS-style, as IFS=:)
22864          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22865 echo "$as_me: error: cannot find input file: $f" >&2;}
22866    { (exit 1); exit 1; }; }
22867          # Do quote $f, to prevent DOS paths from being IFS'd.
22868          echo "$f";;
22869       *) # Relative
22870          if test -f "$f"; then
22871            # Build tree
22872            echo "$f"
22873          elif test -f "$srcdir/$f"; then
22874            # Source tree
22875            echo "$srcdir/$f"
22876          else
22877            # /dev/null tree
22878            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22879 echo "$as_me: error: cannot find input file: $f" >&2;}
22880    { (exit 1); exit 1; }; }
22881          fi;;
22882       esac
22883     done` || { (exit 1); exit 1; }
22884   # Remove the trailing spaces.
22885   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22886
22887 _ACEOF
22888
22889 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22890 # `conftest.undefs', that substitutes the proper values into
22891 # config.h.in to produce config.h.  The first handles `#define'
22892 # templates, and the second `#undef' templates.
22893 # And first: Protect against being on the right side of a sed subst in
22894 # config.status.  Protect against being in an unquoted here document
22895 # in config.status.
22896 rm -f conftest.defines conftest.undefs
22897 # Using a here document instead of a string reduces the quoting nightmare.
22898 # Putting comments in sed scripts is not portable.
22899 #
22900 # `end' is used to avoid that the second main sed command (meant for
22901 # 0-ary CPP macros) applies to n-ary macro definitions.
22902 # See the Autoconf documentation for `clear'.
22903 cat >confdef2sed.sed <<\_ACEOF
22904 s/[\\&,]/\\&/g
22905 s,[\\$`],\\&,g
22906 t clear
22907 : clear
22908 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22909 t end
22910 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22911 : end
22912 _ACEOF
22913 # If some macros were called several times there might be several times
22914 # the same #defines, which is useless.  Nevertheless, we may not want to
22915 # sort them, since we want the *last* AC-DEFINE to be honored.
22916 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22917 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22918 rm -f confdef2sed.sed
22919
22920 # This sed command replaces #undef with comments.  This is necessary, for
22921 # example, in the case of _POSIX_SOURCE, which is predefined and required
22922 # on some systems where configure will not decide to define it.
22923 cat >>conftest.undefs <<\_ACEOF
22924 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22925 _ACEOF
22926
22927 # Break up conftest.defines because some shells have a limit on the size
22928 # of here documents, and old seds have small limits too (100 cmds).
22929 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22930 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22931 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22932 echo '  :' >>$CONFIG_STATUS
22933 rm -f conftest.tail
22934 while grep . conftest.defines >/dev/null
22935 do
22936   # Write a limited-size here document to $tmp/defines.sed.
22937   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22938   # Speed up: don't consider the non `#define' lines.
22939   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22940   # Work around the forget-to-reset-the-flag bug.
22941   echo 't clr' >>$CONFIG_STATUS
22942   echo ': clr' >>$CONFIG_STATUS
22943   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22944   echo 'CEOF
22945   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22946   rm -f $tmp/in
22947   mv $tmp/out $tmp/in
22948 ' >>$CONFIG_STATUS
22949   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22950   rm -f conftest.defines
22951   mv conftest.tail conftest.defines
22952 done
22953 rm -f conftest.defines
22954 echo '  fi # grep' >>$CONFIG_STATUS
22955 echo >>$CONFIG_STATUS
22956
22957 # Break up conftest.undefs because some shells have a limit on the size
22958 # of here documents, and old seds have small limits too (100 cmds).
22959 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22960 rm -f conftest.tail
22961 while grep . conftest.undefs >/dev/null
22962 do
22963   # Write a limited-size here document to $tmp/undefs.sed.
22964   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22965   # Speed up: don't consider the non `#undef'
22966   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22967   # Work around the forget-to-reset-the-flag bug.
22968   echo 't clr' >>$CONFIG_STATUS
22969   echo ': clr' >>$CONFIG_STATUS
22970   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22971   echo 'CEOF
22972   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22973   rm -f $tmp/in
22974   mv $tmp/out $tmp/in
22975 ' >>$CONFIG_STATUS
22976   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22977   rm -f conftest.undefs
22978   mv conftest.tail conftest.undefs
22979 done
22980 rm -f conftest.undefs
22981
22982 cat >>$CONFIG_STATUS <<\_ACEOF
22983   # Let's still pretend it is `configure' which instantiates (i.e., don't
22984   # use $as_me), people would be surprised to read:
22985   #    /* config.h.  Generated by config.status.  */
22986   if test x"$ac_file" = x-; then
22987     echo "/* Generated by configure.  */" >$tmp/config.h
22988   else
22989     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22990   fi
22991   cat $tmp/in >>$tmp/config.h
22992   rm -f $tmp/in
22993   if test x"$ac_file" != x-; then
22994     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22995       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22996 echo "$as_me: $ac_file is unchanged" >&6;}
22997     else
22998       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000          X"$ac_file" : 'X\(//\)[^/]' \| \
23001          X"$ac_file" : 'X\(//\)$' \| \
23002          X"$ac_file" : 'X\(/\)' \| \
23003          .     : '\(.\)' 2>/dev/null ||
23004 echo X"$ac_file" |
23005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23006           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23007           /^X\(\/\/\)$/{ s//\1/; q; }
23008           /^X\(\/\).*/{ s//\1/; q; }
23009           s/.*/./; q'`
23010       { if $as_mkdir_p; then
23011     mkdir -p "$ac_dir"
23012   else
23013     as_dir="$ac_dir"
23014     as_dirs=
23015     while test ! -d "$as_dir"; do
23016       as_dirs="$as_dir $as_dirs"
23017       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23019          X"$as_dir" : 'X\(//\)[^/]' \| \
23020          X"$as_dir" : 'X\(//\)$' \| \
23021          X"$as_dir" : 'X\(/\)' \| \
23022          .     : '\(.\)' 2>/dev/null ||
23023 echo X"$as_dir" |
23024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23025           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23026           /^X\(\/\/\)$/{ s//\1/; q; }
23027           /^X\(\/\).*/{ s//\1/; q; }
23028           s/.*/./; q'`
23029     done
23030     test ! -n "$as_dirs" || mkdir $as_dirs
23031   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23032 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23033    { (exit 1); exit 1; }; }; }
23034
23035       rm -f $ac_file
23036       mv $tmp/config.h $ac_file
23037     fi
23038   else
23039     cat $tmp/config.h
23040     rm -f $tmp/config.h
23041   fi
23042 done
23043 _ACEOF
23044 cat >>$CONFIG_STATUS <<\_ACEOF
23045
23046 #
23047 # CONFIG_COMMANDS section.
23048 #
23049 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23050   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23051   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23052   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23053 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23054          X"$ac_dest" : 'X\(//\)[^/]' \| \
23055          X"$ac_dest" : 'X\(//\)$' \| \
23056          X"$ac_dest" : 'X\(/\)' \| \
23057          .     : '\(.\)' 2>/dev/null ||
23058 echo X"$ac_dest" |
23059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23061           /^X\(\/\/\)$/{ s//\1/; q; }
23062           /^X\(\/\).*/{ s//\1/; q; }
23063           s/.*/./; q'`
23064   { if $as_mkdir_p; then
23065     mkdir -p "$ac_dir"
23066   else
23067     as_dir="$ac_dir"
23068     as_dirs=
23069     while test ! -d "$as_dir"; do
23070       as_dirs="$as_dir $as_dirs"
23071       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23073          X"$as_dir" : 'X\(//\)[^/]' \| \
23074          X"$as_dir" : 'X\(//\)$' \| \
23075          X"$as_dir" : 'X\(/\)' \| \
23076          .     : '\(.\)' 2>/dev/null ||
23077 echo X"$as_dir" |
23078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23080           /^X\(\/\/\)$/{ s//\1/; q; }
23081           /^X\(\/\).*/{ s//\1/; q; }
23082           s/.*/./; q'`
23083     done
23084     test ! -n "$as_dirs" || mkdir $as_dirs
23085   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23087    { (exit 1); exit 1; }; }; }
23088
23089   ac_builddir=.
23090
23091 if test "$ac_dir" != .; then
23092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23093   # A "../" for each directory in $ac_dir_suffix.
23094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23095 else
23096   ac_dir_suffix= ac_top_builddir=
23097 fi
23098
23099 case $srcdir in
23100   .)  # No --srcdir option.  We are building in place.
23101     ac_srcdir=.
23102     if test -z "$ac_top_builddir"; then
23103        ac_top_srcdir=.
23104     else
23105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23106     fi ;;
23107   [\\/]* | ?:[\\/]* )  # Absolute path.
23108     ac_srcdir=$srcdir$ac_dir_suffix;
23109     ac_top_srcdir=$srcdir ;;
23110   *) # Relative path.
23111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23113 esac
23114
23115 # Do not use `cd foo && pwd` to compute absolute paths, because
23116 # the directories may not exist.
23117 case `pwd` in
23118 .) ac_abs_builddir="$ac_dir";;
23119 *)
23120   case "$ac_dir" in
23121   .) ac_abs_builddir=`pwd`;;
23122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23124   esac;;
23125 esac
23126 case $ac_abs_builddir in
23127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23128 *)
23129   case ${ac_top_builddir}. in
23130   .) ac_abs_top_builddir=$ac_abs_builddir;;
23131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23133   esac;;
23134 esac
23135 case $ac_abs_builddir in
23136 .) ac_abs_srcdir=$ac_srcdir;;
23137 *)
23138   case $ac_srcdir in
23139   .) ac_abs_srcdir=$ac_abs_builddir;;
23140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23142   esac;;
23143 esac
23144 case $ac_abs_builddir in
23145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23146 *)
23147   case $ac_top_srcdir in
23148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23151   esac;;
23152 esac
23153
23154
23155   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23156 echo "$as_me: executing $ac_dest commands" >&6;}
23157   case $ac_dest in
23158     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23159  ;;
23160   esac
23161 done
23162 _ACEOF
23163
23164 cat >>$CONFIG_STATUS <<\_ACEOF
23165
23166 { (exit 0); exit 0; }
23167 _ACEOF
23168 chmod +x $CONFIG_STATUS
23169 ac_clean_files=$ac_clean_files_save
23170
23171
23172 # configure is writing to config.log, and then calls config.status.
23173 # config.status does its own redirection, appending to config.log.
23174 # Unfortunately, on DOS this fails, as config.log is still kept open
23175 # by configure, so config.status won't be able to write to it; its
23176 # output is simply discarded.  So we exec the FD to /dev/null,
23177 # effectively closing config.log, so it can be properly (re)opened and
23178 # appended to by config.status.  When coming back to configure, we
23179 # need to make the FD available again.
23180 if test "$no_create" != yes; then
23181   ac_cs_success=:
23182   ac_config_status_args=
23183   test "$silent" = yes &&
23184     ac_config_status_args="$ac_config_status_args --quiet"
23185   exec 5>/dev/null
23186   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23187   exec 5>>config.log
23188   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23189   # would make configure fail if this is the last instruction.
23190   $ac_cs_success || { (exit 1); exit 1; }
23191 fi
23192
23193
23194 cd scripts
23195 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23196 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23197 cd ..
23198
23199 c=src/cats
23200
23201 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23202 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23203
23204 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23205 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23206
23207 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23208 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23209
23210 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23211 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23212
23213 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23214 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23215
23216 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23217 chmod 755 $c/sqlite
23218 chmod 755 $c/mysql
23219
23220 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23221    largefile_support="yes"
23222 fi
23223
23224 #
23225 # A whole lot of hand springs to get the compiler version.
23226 #  This is because gcc changed the output in version 3.0
23227 #
23228 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23229 if test "x${CCVERSION}" = "x" ; then
23230   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23231 fi
23232 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23233 if test x"${CXXVERSION}" = x ; then
23234   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23235 fi
23236
23237 if test "x${subsysdir}" = "x${sbindir}" ; then
23238    echo " "
23239    echo " "
23240    echo "You have set --sbindir and --with-subsys-dir"
23241    echo "  both equal to: ${subsysdir} "
23242    echo "  This is not permitted. Please reconfigure."
23243    echo " "
23244    echo "Aborting configuration ..."
23245    echo " "
23246    echo " "
23247    exit 1
23248 fi
23249
23250 if test "x${db_name}" = "xInternal" ; then
23251    echo " "
23252    echo " "
23253    echo "You have not specified either --enable-client-only or one of the"
23254    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23255    echo "  This is not permitted. Please reconfigure."
23256    echo " "
23257    echo "Aborting the configuration ..."
23258    echo " "
23259    echo " "
23260    exit 1
23261 fi
23262
23263 echo "
23264 Configuration on `date`:
23265
23266   Host:                       $host -- ${DISTNAME} ${DISTVER}
23267   Bacula version:             ${VERSION} (${DATE})
23268   Source code location:       ${srcdir}
23269   Install binaries:           ${sbindir}
23270   Install config files:       ${sysconfdir}
23271   Scripts directory:          ${scriptdir}
23272   Working directory:          ${working_dir}
23273   PID directory:              ${piddir}
23274   Subsys directory:           ${subsysdir}
23275   C Compiler:                 ${CC} ${CCVERSION}
23276   C++ Compiler:               ${CXX} ${CXXVERSION}
23277   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23278   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23279   Libraries:                  ${LIBS}
23280   Statically Linked Tools:    ${support_static_tools}
23281   Statically Linked FD:       ${support_static_fd}
23282   Statically Linked SD:       ${support_static_sd}
23283   Statically Linked DIR:      ${support_static_dir}
23284   Statically Linked CONS:     ${support_static_cons}
23285   Database type:              ${db_name}
23286   Database lib:               ${DB_LIBS}
23287
23288   Job Output Email:           ${job_email}
23289   Traceback Email:            ${dump_email}
23290   SMTP Host Address:          ${smtp_host}
23291
23292   Director Port:              ${dir_port}
23293   File daemon Port:           ${fd_port}
23294   Storage daemon Port:        ${sd_port}
23295
23296   Director User:              ${dir_user}
23297   Director Group:             ${dir_group}
23298   Storage Daemon User:        ${sd_user}
23299   Storage DaemonGroup:        ${sd_group}
23300   File Daemon User:           ${fd_user}
23301   File Daemon Group:          ${fd_group}
23302
23303   SQL binaries Directory      ${SQL_BINDIR}
23304
23305   Large file support:         $largefile_support
23306   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23307   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23308   TCP Wrappers support:       ${TCPW_MSG}
23309   ZLIB support:               ${have_zlib}
23310   enable-smartalloc:          ${support_smartalloc}
23311   enable-gnome:               ${support_gnome} ${gnome_version}
23312   enable-wx-console:          ${support_wx_console}
23313   enable-tray-monitor:        ${support_tray_monitor}
23314   client-only:                ${build_client_only}
23315   ACL support:                ${have_acl}
23316   Python support:             ${support_python} ${PYTHON_LIBS}
23317
23318   " > config.out
23319
23320 cat config.out
23321
23322 # old stuff
23323 # cweb support:               ${got_cweb} ${CWEB_SRC}
23324 # gmp support:                ${got_gmp} ${GMP_SRC}