]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Add back JobId index for MySQL as default -- speeds up
[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 AWK ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF 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 "awk", so it can be a program name with args.
3522 set dummy awk; 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_AWK+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   case $AWK in
3529   [\\/]* | ?:[\\/]*)
3530   ac_cv_path_AWK="$AWK" # 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_AWK="$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_AWK" && ac_cv_path_AWK="awk"
3548   ;;
3549 esac
3550 fi
3551 AWK=$ac_cv_path_AWK
3552
3553 if test -n "$AWK"; then
3554   echo "$as_me:$LINENO: result: $AWK" >&5
3555 echo "${ECHO_T}$AWK" >&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 "echo", so it can be a program name with args.
3562 set dummy echo; 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_ECHO+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   case $ECHO in
3569   [\\/]* | ?:[\\/]*)
3570   ac_cv_path_ECHO="$ECHO" # 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_ECHO="$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_ECHO" && ac_cv_path_ECHO="echo"
3588   ;;
3589 esac
3590 fi
3591 ECHO=$ac_cv_path_ECHO
3592
3593 if test -n "$ECHO"; then
3594   echo "$as_me:$LINENO: result: $ECHO" >&5
3595 echo "${ECHO_T}$ECHO" >&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 "cmp", so it can be a program name with args.
3602 set dummy cmp; 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_CMP+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   case $CMP in
3609   [\\/]* | ?:[\\/]*)
3610   ac_cv_path_CMP="$CMP" # 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_CMP="$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_CMP" && ac_cv_path_CMP="cmp"
3628   ;;
3629 esac
3630 fi
3631 CMP=$ac_cv_path_CMP
3632
3633 if test -n "$CMP"; then
3634   echo "$as_me:$LINENO: result: $CMP" >&5
3635 echo "${ECHO_T}$CMP" >&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 "tbl", so it can be a program name with args.
3642 set dummy tbl; 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_TBL+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   case $TBL in
3649   [\\/]* | ?:[\\/]*)
3650   ac_cv_path_TBL="$TBL" # 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_TBL="$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_TBL" && ac_cv_path_TBL="tbl"
3668   ;;
3669 esac
3670 fi
3671 TBL=$ac_cv_path_TBL
3672
3673 if test -n "$TBL"; then
3674   echo "$as_me:$LINENO: result: $TBL" >&5
3675 echo "${ECHO_T}$TBL" >&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 "ar", so it can be a program name with args.
3682 set dummy ar; 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_AR+set}" = set; then
3686   echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688   case $AR in
3689   [\\/]* | ?:[\\/]*)
3690   ac_cv_path_AR="$AR" # 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_AR="$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_AR" && ac_cv_path_AR="ar"
3708   ;;
3709 esac
3710 fi
3711 AR=$ac_cv_path_AR
3712
3713 if test -n "$AR"; then
3714   echo "$as_me:$LINENO: result: $AR" >&5
3715 echo "${ECHO_T}$AR" >&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 "openssl", so it can be a program name with args.
3722 set dummy openssl; 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_OPENSSL+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   case $OPENSSL in
3729   [\\/]* | ?:[\\/]*)
3730   ac_cv_path_OPENSSL="$OPENSSL" # 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_OPENSSL="$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_OPENSSL" && ac_cv_path_OPENSSL="none"
3748   ;;
3749 esac
3750 fi
3751 OPENSSL=$ac_cv_path_OPENSSL
3752
3753 if test -n "$OPENSSL"; then
3754   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3755 echo "${ECHO_T}$OPENSSL" >&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 "mtx", so it can be a program name with args.
3762 set dummy mtx; 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_MTX+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   case $MTX in
3769   [\\/]* | ?:[\\/]*)
3770   ac_cv_path_MTX="$MTX" # 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_MTX="$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_MTX" && ac_cv_path_MTX="mtx"
3788   ;;
3789 esac
3790 fi
3791 MTX=$ac_cv_path_MTX
3792
3793 if test -n "$MTX"; then
3794   echo "$as_me:$LINENO: result: $MTX" >&5
3795 echo "${ECHO_T}$MTX" >&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 "mkisofs", so it can be a program name with args.
3802 set dummy mkisofs; 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_MKISOFS+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   case $MKISOFS in
3809   [\\/]* | ?:[\\/]*)
3810   ac_cv_path_MKISOFS="$MKISOFS" # 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_MKISOFS="$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_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3828   ;;
3829 esac
3830 fi
3831 MKISOFS=$ac_cv_path_MKISOFS
3832
3833 if test -n "$MKISOFS"; then
3834   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3835 echo "${ECHO_T}$MKISOFS" >&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 "python", so it can be a program name with args.
3842 set dummy python; 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_PYTHON+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   case $PYTHON in
3849   [\\/]* | ?:[\\/]*)
3850   ac_cv_path_PYTHON="$PYTHON" # 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_PYTHON="$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_PYTHON" && ac_cv_path_PYTHON="python"
3868   ;;
3869 esac
3870 fi
3871 PYTHON=$ac_cv_path_PYTHON
3872
3873 if test -n "$PYTHON"; then
3874   echo "$as_me:$LINENO: result: $PYTHON" >&5
3875 echo "${ECHO_T}$PYTHON" >&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 "growisofs", so it can be a program name with args.
3882 set dummy growisofs; 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_GROWISOFS+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   case $GROWISOFS in
3889   [\\/]* | ?:[\\/]*)
3890   ac_cv_path_GROWISOFS="$GROWISOFS" # 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_GROWISOFS="$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_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3908   ;;
3909 esac
3910 fi
3911 GROWISOFS=$ac_cv_path_GROWISOFS
3912
3913 if test -n "$GROWISOFS"; then
3914   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3915 echo "${ECHO_T}$GROWISOFS" >&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 "dvd+rw-mediainfo", so it can be a program name with args.
3922 set dummy dvd+rw-mediainfo; 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_DVDRWMEDIAINFO+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   case $DVDRWMEDIAINFO in
3929   [\\/]* | ?:[\\/]*)
3930   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # 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_DVDRWMEDIAINFO="$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_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3948   ;;
3949 esac
3950 fi
3951 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3952
3953 if test -n "$DVDRWMEDIAINFO"; then
3954   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3955 echo "${ECHO_T}$DVDRWMEDIAINFO" >&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 "pkg-config", so it can be a program name with args.
3962 set dummy pkg-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_PKGCONFIG+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   case $PKGCONFIG in
3969   [\\/]* | ?:[\\/]*)
3970   ac_cv_path_PKGCONFIG="$PKGCONFIG" # 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_PKGCONFIG="$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_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3988   ;;
3989 esac
3990 fi
3991 PKGCONFIG=$ac_cv_path_PKGCONFIG
3992
3993 if test -n "$PKGCONFIG"; then
3994   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3995 echo "${ECHO_T}$PKGCONFIG" >&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 "wx-config", so it can be a program name with args.
4002 set dummy wx-config; 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_WXCONFIG+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   case $WXCONFIG in
4009   [\\/]* | ?:[\\/]*)
4010   ac_cv_path_WXCONFIG="$WXCONFIG" # 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_WXCONFIG="$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_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
4028   ;;
4029 esac
4030 fi
4031 WXCONFIG=$ac_cv_path_WXCONFIG
4032
4033 if test -n "$WXCONFIG"; then
4034   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4035 echo "${ECHO_T}$WXCONFIG" >&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 "cdrecord", so it can be a program name with args.
4042 set dummy cdrecord; 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_CDRECORD+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   case $CDRECORD in
4049   [\\/]* | ?:[\\/]*)
4050   ac_cv_path_CDRECORD="$CDRECORD" # 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_CDRECORD="$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_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4068   ;;
4069 esac
4070 fi
4071 CDRECORD=$ac_cv_path_CDRECORD
4072
4073 if test -n "$CDRECORD"; then
4074   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4075 echo "${ECHO_T}$CDRECORD" >&6
4076 else
4077   echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079 fi
4080
4081 # Extract the first word of "pidof", so it can be a program name with args.
4082 set dummy pidof; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_path_PIDOF+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   case $PIDOF in
4089   [\\/]* | ?:[\\/]*)
4090   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4091   ;;
4092   *)
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_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4108   ;;
4109 esac
4110 fi
4111 PIDOF=$ac_cv_path_PIDOF
4112
4113 if test -n "$PIDOF"; then
4114   echo "$as_me:$LINENO: result: $PIDOF" >&5
4115 echo "${ECHO_T}$PIDOF" >&6
4116 else
4117   echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6
4119 fi
4120
4121
4122 test -n "$ARFLAG" || ARFLAGS="cr"
4123
4124
4125 MAKE_SHELL=/bin/sh
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135 # Make sure we can run config.sub.
4136 $ac_config_sub sun4 >/dev/null 2>&1 ||
4137   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4138 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4139    { (exit 1); exit 1; }; }
4140
4141 echo "$as_me:$LINENO: checking build system type" >&5
4142 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4143 if test "${ac_cv_build+set}" = set; then
4144   echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146   ac_cv_build_alias=$build_alias
4147 test -z "$ac_cv_build_alias" &&
4148   ac_cv_build_alias=`$ac_config_guess`
4149 test -z "$ac_cv_build_alias" &&
4150   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4152    { (exit 1); exit 1; }; }
4153 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4154   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4155 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4156    { (exit 1); exit 1; }; }
4157
4158 fi
4159 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4160 echo "${ECHO_T}$ac_cv_build" >&6
4161 build=$ac_cv_build
4162 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4163 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4164 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4165
4166
4167
4168 echo "$as_me:$LINENO: checking host system type" >&5
4169 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4170 if test "${ac_cv_host+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   ac_cv_host_alias=$host_alias
4174 test -z "$ac_cv_host_alias" &&
4175   ac_cv_host_alias=$ac_cv_build_alias
4176 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4177   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4178 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4179    { (exit 1); exit 1; }; }
4180
4181 fi
4182 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4183 echo "${ECHO_T}$ac_cv_host" >&6
4184 host=$ac_cv_host
4185 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4186 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4187 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4188
4189
4190 case $host_os in
4191   *cygwin* ) CYGWIN=yes;;
4192          * ) CYGWIN=no;;
4193 esac
4194
4195 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4196 then
4197
4198
4199 if $TRUEPRG; then
4200   HAVE_SUN_OS_TRUE=
4201   HAVE_SUN_OS_FALSE='#'
4202 else
4203   HAVE_SUN_OS_TRUE='#'
4204   HAVE_SUN_OS_FALSE=
4205 fi
4206         cat >>confdefs.h <<\_ACEOF
4207 #define HAVE_SUN_OS 1
4208 _ACEOF
4209
4210 else
4211
4212
4213 if $FALSEPRG; then
4214   HAVE_SUN_OS_TRUE=
4215   HAVE_SUN_OS_FALSE='#'
4216 else
4217   HAVE_SUN_OS_TRUE='#'
4218   HAVE_SUN_OS_FALSE=
4219 fi
4220 fi
4221
4222 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4223 then
4224
4225
4226 if $TRUEPRG; then
4227   HAVE_OSF1_OS_TRUE=
4228   HAVE_OSF1_OS_FALSE='#'
4229 else
4230   HAVE_OSF1_OS_TRUE='#'
4231   HAVE_OSF1_OS_FALSE=
4232 fi
4233         cat >>confdefs.h <<\_ACEOF
4234 #define HAVE_OSF1_OS 1
4235 _ACEOF
4236
4237 else
4238
4239
4240 if $FALSEPRG; then
4241   HAVE_OSF1_OS_TRUE=
4242   HAVE_OSF1_OS_FALSE='#'
4243 else
4244   HAVE_OSF1_OS_TRUE='#'
4245   HAVE_OSF1_OS_FALSE=
4246 fi
4247 fi
4248
4249 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4250 then
4251
4252
4253 if $TRUEPRG; then
4254   HAVE_AIX_OS_TRUE=
4255   HAVE_AIX_OS_FALSE='#'
4256 else
4257   HAVE_AIX_OS_TRUE='#'
4258   HAVE_AIX_OS_FALSE=
4259 fi
4260         cat >>confdefs.h <<\_ACEOF
4261 #define HAVE_AIX_OS 1
4262 _ACEOF
4263
4264 else
4265
4266
4267 if $FALSEPRG; then
4268   HAVE_AIX_OS_TRUE=
4269   HAVE_AIX_OS_FALSE='#'
4270 else
4271   HAVE_AIX_OS_TRUE='#'
4272   HAVE_AIX_OS_FALSE=
4273 fi
4274 fi
4275
4276 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4277 then
4278
4279
4280 if $TRUEPRG; then
4281   HAVE_HPUX_OS_TRUE=
4282   HAVE_HPUX_OS_FALSE='#'
4283 else
4284   HAVE_HPUX_OS_TRUE='#'
4285   HAVE_HPUX_OS_FALSE=
4286 fi
4287         cat >>confdefs.h <<\_ACEOF
4288 #define HAVE_HPUX_OS 1
4289 _ACEOF
4290
4291 else
4292
4293
4294 if $FALSEPRG; then
4295   HAVE_HPUX_OS_TRUE=
4296   HAVE_HPUX_OS_FALSE='#'
4297 else
4298   HAVE_HPUX_OS_TRUE='#'
4299   HAVE_HPUX_OS_FALSE=
4300 fi
4301 fi
4302
4303 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4304 then
4305
4306
4307 if $TRUEPRG; then
4308   HAVE_LINUX_OS_TRUE=
4309   HAVE_LINUX_OS_FALSE='#'
4310 else
4311   HAVE_LINUX_OS_TRUE='#'
4312   HAVE_LINUX_OS_FALSE=
4313 fi
4314         cat >>confdefs.h <<\_ACEOF
4315 #define HAVE_LINUX_OS 1
4316 _ACEOF
4317
4318 else
4319
4320
4321 if $FALSEPRG; then
4322   HAVE_LINUX_OS_TRUE=
4323   HAVE_LINUX_OS_FALSE='#'
4324 else
4325   HAVE_LINUX_OS_TRUE='#'
4326   HAVE_LINUX_OS_FALSE=
4327 fi
4328 fi
4329
4330 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4331 then
4332
4333
4334 if $TRUEPRG; then
4335   HAVE_FREEBSD_OS_TRUE=
4336   HAVE_FREEBSD_OS_FALSE='#'
4337 else
4338   HAVE_FREEBSD_OS_TRUE='#'
4339   HAVE_FREEBSD_OS_FALSE=
4340 fi
4341         cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_FREEBSD_OS 1
4343 _ACEOF
4344
4345 else
4346
4347
4348 if $FALSEPRG; then
4349   HAVE_FREEBSD_OS_TRUE=
4350   HAVE_FREEBSD_OS_FALSE='#'
4351 else
4352   HAVE_FREEBSD_OS_TRUE='#'
4353   HAVE_FREEBSD_OS_FALSE=
4354 fi
4355 fi
4356
4357 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4358 then
4359
4360
4361 if $TRUEPRG; then
4362   HAVE_NETBSD_OS_TRUE=
4363   HAVE_NETBSD_OS_FALSE='#'
4364 else
4365   HAVE_NETBSD_OS_TRUE='#'
4366   HAVE_NETBSD_OS_FALSE=
4367 fi
4368         cat >>confdefs.h <<\_ACEOF
4369 #define HAVE_NETBSD_OS 1
4370 _ACEOF
4371
4372 else
4373
4374
4375 if $FALSEPRG; then
4376   HAVE_NETBSD_OS_TRUE=
4377   HAVE_NETBSD_OS_FALSE='#'
4378 else
4379   HAVE_NETBSD_OS_TRUE='#'
4380   HAVE_NETBSD_OS_FALSE=
4381 fi
4382 fi
4383
4384 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4385 then
4386
4387
4388 if $TRUEPRG; then
4389   HAVE_OPENBSD_OS_TRUE=
4390   HAVE_OPENBSD_OS_FALSE='#'
4391 else
4392   HAVE_OPENBSD_OS_TRUE='#'
4393   HAVE_OPENBSD_OS_FALSE=
4394 fi
4395         cat >>confdefs.h <<\_ACEOF
4396 #define HAVE_OPENBSD_OS 1
4397 _ACEOF
4398
4399 else
4400
4401
4402 if $FALSEPRG; then
4403   HAVE_OPENBSD_OS_TRUE=
4404   HAVE_OPENBSD_OS_FALSE='#'
4405 else
4406   HAVE_OPENBSD_OS_TRUE='#'
4407   HAVE_OPENBSD_OS_FALSE=
4408 fi
4409 fi
4410
4411 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4412 then
4413
4414
4415 if $TRUEPRG; then
4416   HAVE_BSDI_OS_TRUE=
4417   HAVE_BSDI_OS_FALSE='#'
4418 else
4419   HAVE_BSDI_OS_TRUE='#'
4420   HAVE_BSDI_OS_FALSE=
4421 fi
4422         cat >>confdefs.h <<\_ACEOF
4423 #define HAVE_BSDI_OS 1
4424 _ACEOF
4425
4426 else
4427
4428
4429 if $FALSEPRG; then
4430   HAVE_BSDI_OS_TRUE=
4431   HAVE_BSDI_OS_FALSE='#'
4432 else
4433   HAVE_BSDI_OS_TRUE='#'
4434   HAVE_BSDI_OS_FALSE=
4435 fi
4436 fi
4437
4438 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4439 then
4440
4441
4442 if $TRUEPRG; then
4443   HAVE_SGI_OS_TRUE=
4444   HAVE_SGI_OS_FALSE='#'
4445 else
4446   HAVE_SGI_OS_TRUE='#'
4447   HAVE_SGI_OS_FALSE=
4448 fi
4449         cat >>confdefs.h <<\_ACEOF
4450 #define HAVE_SGI_OS 1
4451 _ACEOF
4452
4453 else
4454
4455
4456 if $FALSEPRG; then
4457   HAVE_SGI_OS_TRUE=
4458   HAVE_SGI_OS_FALSE='#'
4459 else
4460   HAVE_SGI_OS_TRUE='#'
4461   HAVE_SGI_OS_FALSE=
4462 fi
4463 fi
4464
4465 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4466 then
4467
4468
4469 if $TRUEPRG; then
4470   HAVE_IRIX_OS_TRUE=
4471   HAVE_IRIX_OS_FALSE='#'
4472 else
4473   HAVE_IRIX_OS_TRUE='#'
4474   HAVE_IRIX_OS_FALSE=
4475 fi
4476         cat >>confdefs.h <<\_ACEOF
4477 #define HAVE_IRIX_OS 1
4478 _ACEOF
4479
4480 else
4481
4482
4483 if $FALSEPRG; then
4484   HAVE_IRIX_OS_TRUE=
4485   HAVE_IRIX_OS_FALSE='#'
4486 else
4487   HAVE_IRIX_OS_TRUE='#'
4488   HAVE_IRIX_OS_FALSE=
4489 fi
4490 fi
4491
4492 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4493 then
4494
4495
4496 if $TRUEPRG; then
4497   HAVE_DARWIN_OS_TRUE=
4498   HAVE_DARWIN_OS_FALSE='#'
4499 else
4500   HAVE_DARWIN_OS_TRUE='#'
4501   HAVE_DARWIN_OS_FALSE=
4502 fi
4503     cat >>confdefs.h <<\_ACEOF
4504 #define HAVE_DARWIN_OS 1
4505 _ACEOF
4506
4507 else
4508
4509
4510 if $FALSEPRG; then
4511   HAVE_DARWIN_OS_TRUE=
4512   HAVE_DARWIN_OS_FALSE='#'
4513 else
4514   HAVE_DARWIN_OS_TRUE='#'
4515   HAVE_DARWIN_OS_FALSE=
4516 fi
4517 fi
4518
4519
4520 # -----------------------------------------------------------
4521 # ----------------------------------------------------------
4522 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4523 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4524 if test "x$DISTNAME" != "x"
4525 then
4526         echo "distname set to $DISTNAME"
4527 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4528 then
4529         DISTNAME=alpha
4530 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4531 then
4532         DISTNAME=aix
4533 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4534 then
4535         DISTNAME=hpux
4536 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4537 then
4538         DISTNAME=solaris
4539 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4540 then
4541         DISTNAME=freebsd
4542 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4543 then
4544         DISTNAME=netbsd
4545 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4546 then
4547         DISTNAME=openbsd
4548 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4549 then
4550         DISTNAME=irix
4551 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4552 then
4553         DISTNAME=bsdi
4554 elif test -f /etc/SuSE-release
4555 then
4556         DISTNAME=suse
4557 elif test -d /etc/SuSEconfig
4558 then
4559         DISTNAME=suse5
4560 elif test -f /etc/mandrake-release
4561 then
4562         DISTNAME=mandrake
4563 elif test -f /etc/whitebox-release
4564 then
4565        DISTNAME=redhat
4566 elif test -f /etc/redhat-release
4567 then
4568         DISTNAME=redhat
4569 elif test -f /etc/gentoo-release
4570 then
4571         DISTNAME=gentoo
4572 elif test -f /etc/debian_version
4573 then
4574         DISTNAME=debian
4575 elif test -f /etc/slackware-version
4576 then
4577         DISTNAME=slackware
4578 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4579 then
4580     DISTNAME=darwin
4581 elif test -f /etc/engarde-version
4582 then
4583         DISTNAME=engarde
4584 elif test "$CYGWIN" = yes
4585 then
4586         DISTNAME=cygwin
4587         cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_CYGWIN 1
4589 _ACEOF
4590
4591 else
4592         DISTNAME=unknown
4593 fi
4594 echo "$as_me:$LINENO: result: done" >&5
4595 echo "${ECHO_T}done" >&6
4596
4597
4598 # -----------------------------------------------------------
4599 # ----------------------------------------------------------
4600
4601
4602
4603 if false; then
4604   INSIDE_GNOME_COMMON_TRUE=
4605   INSIDE_GNOME_COMMON_FALSE='#'
4606 else
4607   INSIDE_GNOME_COMMON_TRUE='#'
4608   INSIDE_GNOME_COMMON_FALSE=
4609 fi
4610
4611         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4612
4613         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4614
4615
4616 # ------------------------------------------------------------------
4617 #  If the user has not set --prefix, we set our default to nothing.
4618 #  In this case, if the user has not set --sysconfdir, we set it
4619 #  to the package default of /etc/bacula.  If either --prefix or
4620 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4621 # ------------------------------------------------------------------
4622 if test x${prefix} = xNONE ; then
4623     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4624         sysconfdir=/etc/bacula
4625     fi
4626     prefix=
4627 fi
4628 sysconfdir=`eval echo ${sysconfdir}`
4629
4630 # -------------------------------------------------------------------------
4631 #  If the user has not set --exec-prefix, we default to ${prefix}
4632 # -------------------------------------------------------------------------
4633 if test x${exec_prefix} = xNONE ; then
4634     exec_prefix=${prefix}
4635 fi
4636
4637 # ------------------------------------------------------------------
4638 # If the user has not set --sbindir, we set our default as /sbin
4639 # ------------------------------------------------------------------
4640 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4641     sbindir=${exec_prefix}/sbin
4642 fi
4643 sbindir=`eval echo ${sbindir}`
4644
4645 # ------------------------------------------------------------------
4646 # All list of languages for which a translation exist. Each
4647 #  language is separated by a space.
4648 # ------------------------------------------------------------------
4649 ALL_LINGUAS=""
4650
4651 for ac_prog in msgfmt
4652 do
4653   # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657 if test "${ac_cv_path_MSGFMT+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   case $MSGFMT in
4661   [\\/]* | ?:[\\/]*)
4662   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4663   ;;
4664   *)
4665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678
4679   ;;
4680 esac
4681 fi
4682 MSGFMT=$ac_cv_path_MSGFMT
4683
4684 if test -n "$MSGFMT"; then
4685   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4686 echo "${ECHO_T}$MSGFMT" >&6
4687 else
4688   echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4690 fi
4691
4692   test -n "$MSGFMT" && break
4693 done
4694 test -n "$MSGFMT" || MSGFMT="no"
4695
4696 if test "$MSGFMT" = "no"
4697 then
4698    echo 'msgfmt program not found, disabling NLS !'
4699    USE_NLS=no
4700    USE_INCLUDED_LIBINTL=no
4701 #else
4702 #   AM_GNU_GETTEXT
4703 fi
4704
4705
4706 support_mysql=no
4707 support_sqlite=no
4708 support_sqlite3=no
4709 support_postgresql=no
4710 support_smartalloc=yes
4711 support_readline=yes
4712 support_conio=yes
4713 support_gnome=no
4714 support_wx_console=no
4715 gnome_version=
4716 support_static_tools=no
4717 support_static_fd=no
4718 support_static_sd=no
4719 support_static_dir=no
4720 support_static_cons=no
4721 support_python=no
4722 build_client_only=no
4723 cats=
4724 db_name=Internal
4725 DB_NAME=bdb
4726
4727
4728 # -------------------------------------------
4729 # gnome (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-gnome or --disable-gnome was given.
4732 if test "${enable_gnome+set}" = set; then
4733   enableval="$enable_gnome"
4734   if test x$enableval = xyes; then
4735     support_gnome=yes
4736   fi
4737 fi;
4738
4739 GNOME_DIR=
4740 if test x$support_gnome = xyes; then
4741   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4742   pkg=$?
4743   if test $pkg = 0; then
4744      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4745      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4746      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4747      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4748
4749
4750
4751
4752      GNOME_DIR=src/gnome2-console
4753      gnome_version="Version 2.x"
4754   else
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4767 if test "${with_gnome_includes+set}" = set; then
4768   withval="$with_gnome_includes"
4769
4770         CFLAGS="$CFLAGS -I$withval"
4771
4772 fi;
4773
4774
4775 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4776 if test "${with_gnome_libs+set}" = set; then
4777   withval="$with_gnome_libs"
4778
4779         LDFLAGS="$LDFLAGS -L$withval"
4780         gnome_prefix=$withval
4781
4782 fi;
4783
4784
4785 # Check whether --with-gnome or --without-gnome was given.
4786 if test "${with_gnome+set}" = set; then
4787   withval="$with_gnome"
4788   if test x$withval = xyes; then
4789                         want_gnome=yes
4790                                                                         :
4791                 else
4792                         if test "x$withval" = xno; then
4793                                 want_gnome=no
4794                         else
4795                                 want_gnome=yes
4796                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4797                                 CFLAGS="$CFLAGS -I$withval/include"
4798                                 gnome_prefix=$withval/lib
4799                         fi
4800                 fi
4801 else
4802   want_gnome=yes
4803 fi;
4804
4805         if test "x$want_gnome" = xyes; then
4806
4807             # Extract the first word of "gnome-config", so it can be a program name with args.
4808 set dummy gnome-config; ac_word=$2
4809 echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   case $GNOME_CONFIG in
4815   [\\/]* | ?:[\\/]*)
4816   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4817   ;;
4818   *)
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832
4833   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4834   ;;
4835 esac
4836 fi
4837 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4838
4839 if test -n "$GNOME_CONFIG"; then
4840   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4841 echo "${ECHO_T}$GNOME_CONFIG" >&6
4842 else
4843   echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6
4845 fi
4846
4847             if test "$GNOME_CONFIG" = "no"; then
4848               no_gnome_config="yes"
4849             else
4850               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4851 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4852               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4853                 echo "$as_me:$LINENO: result: yes" >&5
4854 echo "${ECHO_T}yes" >&6
4855
4856
4857         # Extract the first word of "orbit-config", so it can be a program name with args.
4858 set dummy orbit-config; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $ORBIT_CONFIG in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882
4883   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4884   ;;
4885 esac
4886 fi
4887 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4888
4889 if test -n "$ORBIT_CONFIG"; then
4890   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4891 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4892 else
4893   echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6
4895 fi
4896
4897         # Extract the first word of "orbit-idl", so it can be a program name with args.
4898 set dummy orbit-idl; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   case $ORBIT_IDL in
4905   [\\/]* | ?:[\\/]*)
4906   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4907   ;;
4908   *)
4909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921 done
4922
4923   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4924   ;;
4925 esac
4926 fi
4927 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4928
4929 if test -n "$ORBIT_IDL"; then
4930   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4931 echo "${ECHO_T}$ORBIT_IDL" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4938 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4939 if test "${gnome_cv_orbit_found+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942
4943                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4944                         gnome_cv_orbit_found=no
4945                 else
4946                         gnome_cv_orbit_found=yes
4947                 fi
4948
4949 fi
4950 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4951 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4952
4953
4954 if test x$gnome_cv_orbit_found = xyes; then
4955   HAVE_ORBIT_TRUE=
4956   HAVE_ORBIT_FALSE='#'
4957 else
4958   HAVE_ORBIT_TRUE='#'
4959   HAVE_ORBIT_FALSE=
4960 fi
4961         if test x$gnome_cv_orbit_found = xyes; then
4962
4963                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4964                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4965
4966
4967         else
4968                 if test xfail = xfailure; then
4969                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4970 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4971    { (exit 1); exit 1; }; }
4972                 fi
4973         fi
4974
4975         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4976 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4977 if test "${gnome_cv_gnorba_found+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980
4981                 gnome_cv_gnorba_found=no
4982                 if test x$gnome_cv_orbit_found = xyes; then
4983                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4984                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4985                         if test -n "$GNORBA_LIBS"; then
4986                                 gnome_cv_gnorba_found=yes
4987                         fi
4988                 fi
4989
4990 fi
4991 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4992 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4993
4994
4995 if test x$gnome_cv_gnorba_found = xyes; then
4996   HAVE_GNORBA_TRUE=
4997   HAVE_GNORBA_FALSE='#'
4998 else
4999   HAVE_GNORBA_TRUE='#'
5000   HAVE_GNORBA_FALSE=
5001 fi
5002         if test x$gnome_cv_orbit_found = xyes; then
5003
5004                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5005                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5006
5007
5008         else
5009                 if test xfail = xfailure; then
5010                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5011 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5012    { (exit 1); exit 1; }; }
5013                 fi
5014         fi
5015
5016                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5017                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5018                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5019                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5020                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5021                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5022                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5023
5024               else
5025                 echo "$as_me:$LINENO: result: no" >&5
5026 echo "${ECHO_T}no" >&6
5027                 no_gnome_config="yes"
5028               fi
5029             fi
5030
5031             if test x$exec_prefix = xNONE; then
5032                 if test x$prefix = xNONE; then
5033                     gnome_prefix=$ac_default_prefix/lib
5034                 else
5035                     gnome_prefix=$prefix/lib
5036                 fi
5037             else
5038                 gnome_prefix=`eval echo \`echo $libdir\``
5039             fi
5040
5041             if test "$no_gnome_config" = "yes"; then
5042               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5043 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5044               if test -f $gnome_prefix/gnomeConf.sh; then
5045                 echo "$as_me:$LINENO: result: found" >&5
5046 echo "${ECHO_T}found" >&6
5047                 echo "loading gnome configuration from" \
5048                      "$gnome_prefix/gnomeConf.sh"
5049                 . $gnome_prefix/gnomeConf.sh
5050
5051               else
5052                 echo "$as_me:$LINENO: result: not found" >&5
5053 echo "${ECHO_T}not found" >&6
5054                 if test xfail = xfail; then
5055                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5056 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5057    { (exit 1); exit 1; }; }
5058                 fi
5059               fi
5060             fi
5061         fi
5062
5063         if test -n ""; then
5064           n=""
5065           for i in $n; do
5066             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5067 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5068             case $i in
5069               applets)
5070
5071                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5072                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5073 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5074               docklets)
5075
5076                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5077                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5078 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5079               capplet)
5080
5081                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5082                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5083 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5084               *)
5085                 echo "$as_me:$LINENO: result: unknown library" >&5
5086 echo "${ECHO_T}unknown library" >&6
5087             esac
5088             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5089             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5090           done
5091         fi
5092
5093
5094      GNOME_DIR=src/gnome-console
5095      gnome_version="Version 1.4"
5096   fi
5097 fi
5098
5099
5100
5101 # -------------------------------------------
5102 # wx-console (default off)
5103 # -------------------------------------------
5104 # Check whether --enable-wx-console or --disable-wx-console was given.
5105 if test "${enable_wx_console+set}" = set; then
5106   enableval="$enable_wx_console"
5107   if test x$enableval = xyes; then
5108     support_wx_console=yes
5109   fi
5110 fi;
5111
5112 WX_DIR=
5113 if test x$support_wx_console = xyes; then
5114   abc=`$WXCONFIG --cppflags`
5115   pkg=$?
5116   if test $pkg = 0; then
5117      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5118      WXCONS_LDFLAGS=`$WXCONFIG --libs`
5119
5120
5121      WX_DIR=src/wx-console
5122   else
5123      echo " "
5124      echo "wx-config program not found. wx-console disabled."
5125      echo " "
5126      support_wx_console=no
5127   fi
5128 fi
5129
5130
5131
5132 # -------------------------------------------
5133 # tray-monitor (default off)
5134 # -------------------------------------------
5135 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5136 if test "${enable_tray_monitor+set}" = set; then
5137   enableval="$enable_tray_monitor"
5138   if test x$enableval = xyes; then
5139     support_tray_monitor=yes
5140   fi
5141 fi;
5142
5143 TRAY_MONITOR_DIR=
5144 if test x$support_tray_monitor = xyes; then
5145   abc=`$PKGCONFIG --exists gtk+-2.0`
5146   pkg=$?
5147   if test $pkg = 0; then
5148      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5149      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5150
5151
5152      TRAY_MONITOR_DIR=src/tray-monitor
5153      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5154      pkg=$?
5155      if test $pkg = 0; then
5156         cat >>confdefs.h <<\_ACEOF
5157 #define HAVE_GTK_2_4 1
5158 _ACEOF
5159
5160      fi
5161   fi
5162 fi
5163
5164
5165 # -------------------------------------------
5166 # smartalloc (default off)
5167 # -------------------------------------------
5168 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5169 if test "${enable_smartalloc+set}" = set; then
5170   enableval="$enable_smartalloc"
5171   if test x$enableval = xno; then
5172     support_smartalloc=no
5173   fi
5174 fi;
5175
5176 if test x$support_smartalloc = xyes; then
5177    cat >>confdefs.h <<\_ACEOF
5178 #define SMARTALLOC 1
5179 _ACEOF
5180
5181 fi
5182
5183 # -------------------------------------------
5184 # static-tools (default off)
5185 # -------------------------------------------
5186 # Check whether --enable-static-tools or --disable-static-tools was given.
5187 if test "${enable_static_tools+set}" = set; then
5188   enableval="$enable_static_tools"
5189   if test x$enableval = xyes; then
5190      support_static_tools=yes
5191    fi
5192 fi;
5193
5194 TTOOL_LDFLAGS=
5195 if test x$support_static_tools = xyes; then
5196    TTOOL_LDFLAGS="-static"
5197 fi
5198
5199
5200 # -------------------------------------------
5201 # static-fd    (default off)
5202 # -------------------------------------------
5203 # Check whether --enable-static-fd or --disable-static-fd was given.
5204 if test "${enable_static_fd+set}" = set; then
5205   enableval="$enable_static_fd"
5206   if test x$enableval = xyes; then
5207      support_static_fd=yes
5208    fi
5209 fi;
5210
5211 STATIC_FD=
5212 if test x$support_static_fd = xyes; then
5213    STATIC_FD="static-bacula-fd"
5214 fi
5215
5216
5217 # -------------------------------------------
5218 # static-sd    (default off)
5219 # -------------------------------------------
5220 # Check whether --enable-static-sd or --disable-static-sd was given.
5221 if test "${enable_static_sd+set}" = set; then
5222   enableval="$enable_static_sd"
5223   if test x$enableval = xyes; then
5224      support_static_sd=yes
5225    fi
5226 fi;
5227
5228 STATIC_SD=
5229 if test x$support_static_sd = xyes; then
5230    STATIC_SD="static-bacula-sd"
5231 fi
5232
5233
5234 # -------------------------------------------
5235 # static-dir   (default off)
5236 # -------------------------------------------
5237 # Check whether --enable-static-dir or --disable-static-dir was given.
5238 if test "${enable_static_dir+set}" = set; then
5239   enableval="$enable_static_dir"
5240   if test x$enableval = xyes; then
5241      support_static_dir=yes
5242    fi
5243 fi;
5244
5245 STATIC_DIR=
5246 if test x$support_static_dir = xyes; then
5247    STATIC_DIR="static-bacula-dir"
5248 fi
5249
5250
5251 # -------------------------------------------
5252 # static-cons  (default off)
5253 # -------------------------------------------
5254 # Check whether --enable-static-cons or --disable-static-cons was given.
5255 if test "${enable_static_cons+set}" = set; then
5256   enableval="$enable_static_cons"
5257   if test x$enableval = xyes; then
5258      support_static_cons=yes
5259    fi
5260 fi;
5261
5262 STATIC_CONS=
5263 STATIC_GNOME_CONS=
5264 STATIC_WX_CONS=
5265 if test x$support_static_cons = xyes; then
5266    STATIC_CONS="static-bconsole"
5267    STATIC_GNOME_CONS="static-gnome-console"
5268    STATIC_WX_CONS="static-wx-console"
5269 fi
5270
5271
5272
5273
5274 # -------------------------------------------
5275 # client_only  (default off)
5276 # -------------------------------------------
5277 # Check whether --enable-client-only or --disable-client-only was given.
5278 if test "${enable_client_only+set}" = set; then
5279   enableval="$enable_client_only"
5280   if test x$enableval = xyes; then
5281      build_client_only=yes
5282     db_name=None
5283     DB_NAME=none
5284    fi
5285 fi;
5286 if test x$build_client_only = xno; then
5287    ALL_DIRS="subdirs"
5288 else
5289    ALL_DIRS=""
5290 fi
5291
5292
5293 # ---------------------------------------------------
5294 # Check for conio (Bacula readline substitute)(
5295 # ---------------------------------------------------
5296 # this allows you to turn it completely off
5297 # Check whether --enable-conio or --disable-conio was given.
5298 if test "${enable_conio+set}" = set; then
5299   enableval="$enable_conio"
5300   if test x$enableval = xno; then
5301     support_conio=no
5302   fi
5303 fi;
5304
5305 got_conio="no"
5306 if test x$support_conio = xyes; then
5307    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5309 if test "${ac_cv_header_stdc+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h.  */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h.  */
5318 #include <stdlib.h>
5319 #include <stdarg.h>
5320 #include <string.h>
5321 #include <float.h>
5322
5323 int
5324 main ()
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333   (eval $ac_compile) 2>conftest.er1
5334   ac_status=$?
5335   grep -v '^ *+' conftest.er1 >conftest.err
5336   rm -f conftest.er1
5337   cat conftest.err >&5
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -z "$ac_c_werror_flag"
5341                          || test ! -s conftest.err'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; } &&
5347          { ac_try='test -s conftest.$ac_objext'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; }; then
5353   ac_cv_header_stdc=yes
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ac_cv_header_stdc=no
5359 fi
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361
5362 if test $ac_cv_header_stdc = yes; then
5363   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5364   cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <string.h>
5371
5372 _ACEOF
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374   $EGREP "memchr" >/dev/null 2>&1; then
5375   :
5376 else
5377   ac_cv_header_stdc=no
5378 fi
5379 rm -f conftest*
5380
5381 fi
5382
5383 if test $ac_cv_header_stdc = yes; then
5384   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 #include <stdlib.h>
5392
5393 _ACEOF
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395   $EGREP "free" >/dev/null 2>&1; then
5396   :
5397 else
5398   ac_cv_header_stdc=no
5399 fi
5400 rm -f conftest*
5401
5402 fi
5403
5404 if test $ac_cv_header_stdc = yes; then
5405   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5406   if test "$cross_compiling" = yes; then
5407   :
5408 else
5409   cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415 #include <ctype.h>
5416 #if ((' ' & 0x0FF) == 0x020)
5417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5419 #else
5420 # define ISLOWER(c) \
5421                    (('a' <= (c) && (c) <= 'i') \
5422                      || ('j' <= (c) && (c) <= 'r') \
5423                      || ('s' <= (c) && (c) <= 'z'))
5424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5425 #endif
5426
5427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5428 int
5429 main ()
5430 {
5431   int i;
5432   for (i = 0; i < 256; i++)
5433     if (XOR (islower (i), ISLOWER (i))
5434         || toupper (i) != TOUPPER (i))
5435       exit(2);
5436   exit (0);
5437 }
5438 _ACEOF
5439 rm -f conftest$ac_exeext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441   (eval $ac_link) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   :
5451 else
5452   echo "$as_me: program exited with status $ac_status" >&5
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 ( exit $ac_status )
5457 ac_cv_header_stdc=no
5458 fi
5459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 fi
5462 fi
5463 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5464 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5465 if test $ac_cv_header_stdc = yes; then
5466
5467 cat >>confdefs.h <<\_ACEOF
5468 #define STDC_HEADERS 1
5469 _ACEOF
5470
5471 fi
5472
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5484                   inttypes.h stdint.h unistd.h
5485 do
5486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5490   echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492   cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498 $ac_includes_default
5499
5500 #include <$ac_header>
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504   (eval $ac_compile) 2>conftest.er1
5505   ac_status=$?
5506   grep -v '^ *+' conftest.er1 >conftest.err
5507   rm -f conftest.er1
5508   cat conftest.err >&5
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } &&
5511          { ac_try='test -z "$ac_c_werror_flag"
5512                          || test ! -s conftest.err'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; } &&
5518          { ac_try='test -s conftest.$ac_objext'
5519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520   (eval $ac_try) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); }; }; then
5524   eval "$as_ac_Header=yes"
5525 else
5526   echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 eval "$as_ac_Header=no"
5530 fi
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 fi
5533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5536   cat >>confdefs.h <<_ACEOF
5537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5538 _ACEOF
5539
5540 fi
5541
5542 done
5543
5544
5545 if test "${ac_cv_header_termcap_h+set}" = set; then
5546   echo "$as_me:$LINENO: checking for termcap.h" >&5
5547 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5548 if test "${ac_cv_header_termcap_h+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 fi
5551 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5552 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5553 else
5554   # Is the header compilable?
5555 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5556 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 $ac_includes_default
5564 #include <termcap.h>
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568   (eval $ac_compile) 2>conftest.er1
5569   ac_status=$?
5570   grep -v '^ *+' conftest.er1 >conftest.err
5571   rm -f conftest.er1
5572   cat conftest.err >&5
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); } &&
5575          { ac_try='test -z "$ac_c_werror_flag"
5576                          || test ! -s conftest.err'
5577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578   (eval $ac_try) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); }; } &&
5582          { ac_try='test -s conftest.$ac_objext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   ac_header_compiler=yes
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ac_header_compiler=no
5594 fi
5595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5597 echo "${ECHO_T}$ac_header_compiler" >&6
5598
5599 # Is the header present?
5600 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5601 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608 #include <termcap.h>
5609 _ACEOF
5610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5612   ac_status=$?
5613   grep -v '^ *+' conftest.er1 >conftest.err
5614   rm -f conftest.er1
5615   cat conftest.err >&5
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } >/dev/null; then
5618   if test -s conftest.err; then
5619     ac_cpp_err=$ac_c_preproc_warn_flag
5620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5621   else
5622     ac_cpp_err=
5623   fi
5624 else
5625   ac_cpp_err=yes
5626 fi
5627 if test -z "$ac_cpp_err"; then
5628   ac_header_preproc=yes
5629 else
5630   echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633   ac_header_preproc=no
5634 fi
5635 rm -f conftest.err conftest.$ac_ext
5636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5637 echo "${ECHO_T}$ac_header_preproc" >&6
5638
5639 # So?  What about this header?
5640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5641   yes:no: )
5642     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5643 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5644     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5645 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5646     ac_header_preproc=yes
5647     ;;
5648   no:yes:* )
5649     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5650 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5651     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5652 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5653     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5654 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5655     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5656 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5657     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5658 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5659     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5660 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5661     (
5662       cat <<\_ASBOX
5663 ## ------------------------------------------ ##
5664 ## Report this to the AC_PACKAGE_NAME lists.  ##
5665 ## ------------------------------------------ ##
5666 _ASBOX
5667     ) |
5668       sed "s/^/$as_me: WARNING:     /" >&2
5669     ;;
5670 esac
5671 echo "$as_me:$LINENO: checking for termcap.h" >&5
5672 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5673 if test "${ac_cv_header_termcap_h+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   ac_cv_header_termcap_h=$ac_header_preproc
5677 fi
5678 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5679 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5680
5681 fi
5682 if test $ac_cv_header_termcap_h = yes; then
5683    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5684 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5685 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5686   echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688   ac_check_lib_save_LIBS=$LIBS
5689 LIBS="-ltermcap  $LIBS"
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696
5697 /* Override any gcc2 internal prototype to avoid an error.  */
5698 #ifdef __cplusplus
5699 extern "C"
5700 #endif
5701 /* We use char because int might match the return type of a gcc2
5702    builtin and then its argument prototype would still apply.  */
5703 char tgetent ();
5704 int
5705 main ()
5706 {
5707 tgetent ();
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext conftest$ac_exeext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714   (eval $ac_link) 2>conftest.er1
5715   ac_status=$?
5716   grep -v '^ *+' conftest.er1 >conftest.err
5717   rm -f conftest.er1
5718   cat conftest.err >&5
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } &&
5721          { ac_try='test -z "$ac_c_werror_flag"
5722                          || test ! -s conftest.err'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; } &&
5728          { ac_try='test -s conftest$ac_exeext'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; }; then
5734   ac_cv_lib_termcap_tgetent=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739 ac_cv_lib_termcap_tgetent=no
5740 fi
5741 rm -f conftest.err conftest.$ac_objext \
5742       conftest$ac_exeext conftest.$ac_ext
5743 LIBS=$ac_check_lib_save_LIBS
5744 fi
5745 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5746 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5747 if test $ac_cv_lib_termcap_tgetent = yes; then
5748    CONS_LIBS="-ltermcap"
5749          CONS_OBJ="conio.o"
5750          CONS_SRC="conio.c"
5751          got_conio="yes"
5752          support_readline=no
5753
5754 cat >>confdefs.h <<\_ACEOF
5755 #define HAVE_CONIO 1
5756 _ACEOF
5757
5758
5759 else
5760    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5761 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5762 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   ac_check_lib_save_LIBS=$LIBS
5766 LIBS="-lncurses  $LIBS"
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773
5774 /* Override any gcc2 internal prototype to avoid an error.  */
5775 #ifdef __cplusplus
5776 extern "C"
5777 #endif
5778 /* We use char because int might match the return type of a gcc2
5779    builtin and then its argument prototype would still apply.  */
5780 char tgetent ();
5781 int
5782 main ()
5783 {
5784 tgetent ();
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791   (eval $ac_link) 2>conftest.er1
5792   ac_status=$?
5793   grep -v '^ *+' conftest.er1 >conftest.err
5794   rm -f conftest.er1
5795   cat conftest.err >&5
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); } &&
5798          { ac_try='test -z "$ac_c_werror_flag"
5799                          || test ! -s conftest.err'
5800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801   (eval $ac_try) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }; } &&
5805          { ac_try='test -s conftest$ac_exeext'
5806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807   (eval $ac_try) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; }; then
5811   ac_cv_lib_ncurses_tgetent=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_cv_lib_ncurses_tgetent=no
5817 fi
5818 rm -f conftest.err conftest.$ac_objext \
5819       conftest$ac_exeext conftest.$ac_ext
5820 LIBS=$ac_check_lib_save_LIBS
5821 fi
5822 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5823 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5824 if test $ac_cv_lib_ncurses_tgetent = yes; then
5825    CONS_LIBS="-lncurses"
5826            CONS_OBJ="conio.o"
5827            CONS_SRC="conio.c"
5828            got_conio="yes"
5829            support_readline=no
5830
5831 cat >>confdefs.h <<\_ACEOF
5832 #define HAVE_CONIO 1
5833 _ACEOF
5834
5835
5836 fi
5837
5838
5839 fi
5840
5841
5842 else
5843
5844
5845 for ac_header in curses.h
5846 do
5847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5849   echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 fi
5854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5856 else
5857   # Is the header compilable?
5858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 $ac_includes_default
5867 #include <$ac_header>
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_c_werror_flag"
5879                          || test ! -s conftest.err'
5880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881   (eval $ac_try) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; } &&
5885          { ac_try='test -s conftest.$ac_objext'
5886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887   (eval $ac_try) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }; }; then
5891   ac_header_compiler=yes
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 ac_header_compiler=no
5897 fi
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5900 echo "${ECHO_T}$ac_header_compiler" >&6
5901
5902 # Is the header present?
5903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911 #include <$ac_header>
5912 _ACEOF
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5915   ac_status=$?
5916   grep -v '^ *+' conftest.er1 >conftest.err
5917   rm -f conftest.er1
5918   cat conftest.err >&5
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } >/dev/null; then
5921   if test -s conftest.err; then
5922     ac_cpp_err=$ac_c_preproc_warn_flag
5923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5924   else
5925     ac_cpp_err=
5926   fi
5927 else
5928   ac_cpp_err=yes
5929 fi
5930 if test -z "$ac_cpp_err"; then
5931   ac_header_preproc=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936   ac_header_preproc=no
5937 fi
5938 rm -f conftest.err conftest.$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6
5941
5942 # So?  What about this header?
5943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5944   yes:no: )
5945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5949     ac_header_preproc=yes
5950     ;;
5951   no:yes:* )
5952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5964     (
5965       cat <<\_ASBOX
5966 ## ------------------------------------------ ##
5967 ## Report this to the AC_PACKAGE_NAME lists.  ##
5968 ## ------------------------------------------ ##
5969 _ASBOX
5970     ) |
5971       sed "s/^/$as_me: WARNING:     /" >&2
5972     ;;
5973 esac
5974 echo "$as_me:$LINENO: checking for $ac_header" >&5
5975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   eval "$as_ac_Header=\$ac_header_preproc"
5980 fi
5981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5983
5984 fi
5985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5986   cat >>confdefs.h <<_ACEOF
5987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988 _ACEOF
5989
5990 fi
5991
5992 done
5993
5994          echo "$as_me:$LINENO: checking for term.h" >&5
5995 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5996 if test "${ac_cv_header_term_h+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 #if HAVE_CURSES_H
6006 #include <curses.h>
6007 #endif
6008
6009
6010 #include <term.h>
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014   (eval $ac_compile) 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -z "$ac_c_werror_flag"
6022                          || test ! -s conftest.err'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; } &&
6028          { ac_try='test -s conftest.$ac_objext'
6029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030   (eval $ac_try) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; }; then
6034   ac_cv_header_term_h=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_cv_header_term_h=no
6040 fi
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 fi
6043 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6045 if test $ac_cv_header_term_h = yes; then
6046    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6047 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6048 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-lcurses  $LIBS"
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h.  */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h.  */
6059
6060 /* Override any gcc2 internal prototype to avoid an error.  */
6061 #ifdef __cplusplus
6062 extern "C"
6063 #endif
6064 /* We use char because int might match the return type of a gcc2
6065    builtin and then its argument prototype would still apply.  */
6066 char tgetent ();
6067 int
6068 main ()
6069 {
6070 tgetent ();
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077   (eval $ac_link) 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -z "$ac_c_werror_flag"
6085                          || test ! -s conftest.err'
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); }; } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_lib_curses_tgetent=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_lib_curses_tgetent=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext \
6105       conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6107 fi
6108 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6109 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6110 if test $ac_cv_lib_curses_tgetent = yes; then
6111    CONS_LIBS="-lcurses"
6112                    CONS_OBJ="conio.o"
6113                    CONS_SRC="conio.c"
6114                    got_conio="yes"
6115                    support_readline=no
6116
6117 cat >>confdefs.h <<\_ACEOF
6118 #define HAVE_CONIO 1
6119 _ACEOF
6120
6121
6122 fi
6123
6124
6125 else
6126    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6127 fi
6128
6129
6130
6131 fi
6132
6133
6134 fi
6135
6136
6137 # ---------------------------------------------------
6138 # Check for readline support/directory (default off)
6139 # ---------------------------------------------------
6140 # this allows you to turn it completely off
6141 # Check whether --enable-readline or --disable-readline was given.
6142 if test "${enable_readline+set}" = set; then
6143   enableval="$enable_readline"
6144   if test x$enableval = xno; then
6145     support_readline=no
6146   fi
6147 fi;
6148
6149 got_readline="no"
6150 READLINE_SRC=
6151 if test x$support_readline = xyes; then
6152
6153 # Check whether --with-readline or --without-readline was given.
6154 if test "${with_readline+set}" = set; then
6155   withval="$with_readline"
6156
6157         case "$with_readline" in
6158         no) : ;;
6159         yes|*)
6160           if test "$with_readline" != "yes"; then
6161             CONS_INC="-I${with_readline}"
6162             CONS_LDFLAGS="-L$with_readline"
6163           else
6164              with_readline="/usr/include/readline"
6165           fi
6166           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6169 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 fi
6173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6175 else
6176   # Is the header compilable?
6177 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6178 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 $ac_includes_default
6186 #include <${with_readline}/readline.h>
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190   (eval $ac_compile) 2>conftest.er1
6191   ac_status=$?
6192   grep -v '^ *+' conftest.er1 >conftest.err
6193   rm -f conftest.er1
6194   cat conftest.err >&5
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } &&
6197          { ac_try='test -z "$ac_c_werror_flag"
6198                          || test ! -s conftest.err'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; } &&
6204          { ac_try='test -s conftest.$ac_objext'
6205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; }; then
6210   ac_header_compiler=yes
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 ac_header_compiler=no
6216 fi
6217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6219 echo "${ECHO_T}$ac_header_compiler" >&6
6220
6221 # Is the header present?
6222 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6223 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h.  */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h.  */
6230 #include <${with_readline}/readline.h>
6231 _ACEOF
6232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6234   ac_status=$?
6235   grep -v '^ *+' conftest.er1 >conftest.err
6236   rm -f conftest.er1
6237   cat conftest.err >&5
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); } >/dev/null; then
6240   if test -s conftest.err; then
6241     ac_cpp_err=$ac_c_preproc_warn_flag
6242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6243   else
6244     ac_cpp_err=
6245   fi
6246 else
6247   ac_cpp_err=yes
6248 fi
6249 if test -z "$ac_cpp_err"; then
6250   ac_header_preproc=yes
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255   ac_header_preproc=no
6256 fi
6257 rm -f conftest.err conftest.$ac_ext
6258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6259 echo "${ECHO_T}$ac_header_preproc" >&6
6260
6261 # So?  What about this header?
6262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6263   yes:no: )
6264     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6265 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6266     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6267 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6268     ac_header_preproc=yes
6269     ;;
6270   no:yes:* )
6271     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6272 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6273     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6274 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6275     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6276 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6277     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6278 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6279     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6280 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6281     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6282 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6283     (
6284       cat <<\_ASBOX
6285 ## ------------------------------------------ ##
6286 ## Report this to the AC_PACKAGE_NAME lists.  ##
6287 ## ------------------------------------------ ##
6288 _ASBOX
6289     ) |
6290       sed "s/^/$as_me: WARNING:     /" >&2
6291     ;;
6292 esac
6293 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6294 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   eval "$as_ac_Header=\$ac_header_preproc"
6299 fi
6300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6302
6303 fi
6304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6305    cat >>confdefs.h <<\_ACEOF
6306 #define HAVE_READLINE 1
6307 _ACEOF
6308
6309                CONS_LIBS="-lreadline -ltermcap"
6310                got_readline="yes"
6311
6312 else
6313    echo " "
6314                echo "readline.h not found. readline turned off ..."
6315                echo " "
6316
6317
6318 fi
6319
6320
6321           ;;
6322         esac
6323
6324 else
6325
6326        # check for standard readline library
6327        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6328   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6329 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6330 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 fi
6333 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6334 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6335 else
6336   # Is the header compilable?
6337 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6338 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h.  */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h.  */
6345 $ac_includes_default
6346 #include </usr/include/readline/readline.h>
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350   (eval $ac_compile) 2>conftest.er1
6351   ac_status=$?
6352   grep -v '^ *+' conftest.er1 >conftest.err
6353   rm -f conftest.er1
6354   cat conftest.err >&5
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } &&
6357          { ac_try='test -z "$ac_c_werror_flag"
6358                          || test ! -s conftest.err'
6359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360   (eval $ac_try) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; } &&
6364          { ac_try='test -s conftest.$ac_objext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   ac_header_compiler=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ac_header_compiler=no
6376 fi
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6379 echo "${ECHO_T}$ac_header_compiler" >&6
6380
6381 # Is the header present?
6382 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6383 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 #include </usr/include/readline/readline.h>
6391 _ACEOF
6392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6394   ac_status=$?
6395   grep -v '^ *+' conftest.er1 >conftest.err
6396   rm -f conftest.er1
6397   cat conftest.err >&5
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); } >/dev/null; then
6400   if test -s conftest.err; then
6401     ac_cpp_err=$ac_c_preproc_warn_flag
6402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6403   else
6404     ac_cpp_err=
6405   fi
6406 else
6407   ac_cpp_err=yes
6408 fi
6409 if test -z "$ac_cpp_err"; then
6410   ac_header_preproc=yes
6411 else
6412   echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415   ac_header_preproc=no
6416 fi
6417 rm -f conftest.err conftest.$ac_ext
6418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6419 echo "${ECHO_T}$ac_header_preproc" >&6
6420
6421 # So?  What about this header?
6422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6423   yes:no: )
6424     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6425 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6426     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6427 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6428     ac_header_preproc=yes
6429     ;;
6430   no:yes:* )
6431     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6432 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6433     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6434 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6435     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6436 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6437     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6438 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6439     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6440 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6441     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6442 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6443     (
6444       cat <<\_ASBOX
6445 ## ------------------------------------------ ##
6446 ## Report this to the AC_PACKAGE_NAME lists.  ##
6447 ## ------------------------------------------ ##
6448 _ASBOX
6449     ) |
6450       sed "s/^/$as_me: WARNING:     /" >&2
6451     ;;
6452 esac
6453 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6454 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6455 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6459 fi
6460 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6461 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6462
6463 fi
6464 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6465    cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_READLINE 1
6467 _ACEOF
6468
6469            got_readline="yes"
6470            CONS_INC="-I/usr/include/readline"
6471            CONS_LIBS="-lreadline -ltermcap"
6472
6473 else
6474
6475            # Did not find standard library, so try Bacula's default
6476             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6479 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 fi
6483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6485 else
6486   # Is the header compilable?
6487 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6488 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 $ac_includes_default
6496 #include <${TOP_DIR}/depkgs/readline/readline.h>
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } &&
6507          { ac_try='test -z "$ac_c_werror_flag"
6508                          || test ! -s conftest.err'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; } &&
6514          { ac_try='test -s conftest.$ac_objext'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; }; then
6520   ac_header_compiler=yes
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_header_compiler=no
6526 fi
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6529 echo "${ECHO_T}$ac_header_compiler" >&6
6530
6531 # Is the header present?
6532 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6533 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540 #include <${TOP_DIR}/depkgs/readline/readline.h>
6541 _ACEOF
6542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } >/dev/null; then
6550   if test -s conftest.err; then
6551     ac_cpp_err=$ac_c_preproc_warn_flag
6552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6553   else
6554     ac_cpp_err=
6555   fi
6556 else
6557   ac_cpp_err=yes
6558 fi
6559 if test -z "$ac_cpp_err"; then
6560   ac_header_preproc=yes
6561 else
6562   echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565   ac_header_preproc=no
6566 fi
6567 rm -f conftest.err conftest.$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6569 echo "${ECHO_T}$ac_header_preproc" >&6
6570
6571 # So?  What about this header?
6572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6573   yes:no: )
6574     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6575 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6576     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6577 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6578     ac_header_preproc=yes
6579     ;;
6580   no:yes:* )
6581     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6582 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6583     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6584 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6585     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6586 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6587     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6588 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6589     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6590 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6591     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6592 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6593     (
6594       cat <<\_ASBOX
6595 ## ------------------------------------------ ##
6596 ## Report this to the AC_PACKAGE_NAME lists.  ##
6597 ## ------------------------------------------ ##
6598 _ASBOX
6599     ) |
6600       sed "s/^/$as_me: WARNING:     /" >&2
6601     ;;
6602 esac
6603 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6604 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   eval "$as_ac_Header=\$ac_header_preproc"
6609 fi
6610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6612
6613 fi
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615    cat >>confdefs.h <<\_ACEOF
6616 #define HAVE_READLINE 1
6617 _ACEOF
6618
6619                  got_readline="yes"
6620                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6621                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6622                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6623                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6624
6625 else
6626    echo " "
6627                 echo "readline.h not found. readline turned off ..."
6628                 echo " "
6629
6630
6631 fi
6632
6633
6634
6635
6636 fi
6637
6638
6639
6640
6641 fi;
6642 fi
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653 # Minimal stuff for readline Makefile configuration
6654 MAKE_SHELL=/bin/sh
6655
6656 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6657 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6658 if test "${ac_cv_header_stat_broken+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h.  */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h.  */
6667 #include <sys/types.h>
6668 #include <sys/stat.h>
6669
6670 #if defined(S_ISBLK) && defined(S_IFDIR)
6671 # if S_ISBLK (S_IFDIR)
6672 You lose.
6673 # endif
6674 #endif
6675
6676 #if defined(S_ISBLK) && defined(S_IFCHR)
6677 # if S_ISBLK (S_IFCHR)
6678 You lose.
6679 # endif
6680 #endif
6681
6682 #if defined(S_ISLNK) && defined(S_IFREG)
6683 # if S_ISLNK (S_IFREG)
6684 You lose.
6685 # endif
6686 #endif
6687
6688 #if defined(S_ISSOCK) && defined(S_IFREG)
6689 # if S_ISSOCK (S_IFREG)
6690 You lose.
6691 # endif
6692 #endif
6693
6694 _ACEOF
6695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6696   $EGREP "You lose" >/dev/null 2>&1; then
6697   ac_cv_header_stat_broken=yes
6698 else
6699   ac_cv_header_stat_broken=no
6700 fi
6701 rm -f conftest*
6702
6703 fi
6704 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6705 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6706 if test $ac_cv_header_stat_broken = yes; then
6707
6708 cat >>confdefs.h <<\_ACEOF
6709 #define STAT_MACROS_BROKEN 1
6710 _ACEOF
6711
6712 fi
6713
6714
6715
6716
6717
6718
6719 ac_header_dirent=no
6720 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6721   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6722 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6723 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h.  */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h.  */
6733 #include <sys/types.h>
6734 #include <$ac_hdr>
6735
6736 int
6737 main ()
6738 {
6739 if ((DIR *) 0)
6740 return 0;
6741   ;
6742   return 0;
6743 }
6744 _ACEOF
6745 rm -f conftest.$ac_objext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747   (eval $ac_compile) 2>conftest.er1
6748   ac_status=$?
6749   grep -v '^ *+' conftest.er1 >conftest.err
6750   rm -f conftest.er1
6751   cat conftest.err >&5
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); } &&
6754          { ac_try='test -z "$ac_c_werror_flag"
6755                          || test ! -s conftest.err'
6756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757   (eval $ac_try) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; } &&
6761          { ac_try='test -s conftest.$ac_objext'
6762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763   (eval $ac_try) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; }; then
6767   eval "$as_ac_Header=yes"
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 eval "$as_ac_Header=no"
6773 fi
6774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6775 fi
6776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6779   cat >>confdefs.h <<_ACEOF
6780 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6781 _ACEOF
6782
6783 ac_header_dirent=$ac_hdr; break
6784 fi
6785
6786 done
6787 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6788 if test $ac_header_dirent = dirent.h; then
6789   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6790 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6791 if test "${ac_cv_search_opendir+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   ac_func_search_save_LIBS=$LIBS
6795 ac_cv_search_opendir=no
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802
6803 /* Override any gcc2 internal prototype to avoid an error.  */
6804 #ifdef __cplusplus
6805 extern "C"
6806 #endif
6807 /* We use char because int might match the return type of a gcc2
6808    builtin and then its argument prototype would still apply.  */
6809 char opendir ();
6810 int
6811 main ()
6812 {
6813 opendir ();
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820   (eval $ac_link) 2>conftest.er1
6821   ac_status=$?
6822   grep -v '^ *+' conftest.er1 >conftest.err
6823   rm -f conftest.er1
6824   cat conftest.err >&5
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); } &&
6827          { ac_try='test -z "$ac_c_werror_flag"
6828                          || test ! -s conftest.err'
6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830   (eval $ac_try) 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; } &&
6834          { ac_try='test -s conftest$ac_exeext'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; }; then
6840   ac_cv_search_opendir="none required"
6841 else
6842   echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 fi
6846 rm -f conftest.err conftest.$ac_objext \
6847       conftest$ac_exeext conftest.$ac_ext
6848 if test "$ac_cv_search_opendir" = no; then
6849   for ac_lib in dir; do
6850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6851     cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h.  */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h.  */
6857
6858 /* Override any gcc2 internal prototype to avoid an error.  */
6859 #ifdef __cplusplus
6860 extern "C"
6861 #endif
6862 /* We use char because int might match the return type of a gcc2
6863    builtin and then its argument prototype would still apply.  */
6864 char opendir ();
6865 int
6866 main ()
6867 {
6868 opendir ();
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875   (eval $ac_link) 2>conftest.er1
6876   ac_status=$?
6877   grep -v '^ *+' conftest.er1 >conftest.err
6878   rm -f conftest.er1
6879   cat conftest.err >&5
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); } &&
6882          { ac_try='test -z "$ac_c_werror_flag"
6883                          || test ! -s conftest.err'
6884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885   (eval $ac_try) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; } &&
6889          { ac_try='test -s conftest$ac_exeext'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; }; then
6895   ac_cv_search_opendir="-l$ac_lib"
6896 break
6897 else
6898   echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 fi
6902 rm -f conftest.err conftest.$ac_objext \
6903       conftest$ac_exeext conftest.$ac_ext
6904   done
6905 fi
6906 LIBS=$ac_func_search_save_LIBS
6907 fi
6908 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6909 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6910 if test "$ac_cv_search_opendir" != no; then
6911   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6912
6913 fi
6914
6915 else
6916   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6917 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6918 if test "${ac_cv_search_opendir+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   ac_func_search_save_LIBS=$LIBS
6922 ac_cv_search_opendir=no
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h.  */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h.  */
6929
6930 /* Override any gcc2 internal prototype to avoid an error.  */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935    builtin and then its argument prototype would still apply.  */
6936 char opendir ();
6937 int
6938 main ()
6939 {
6940 opendir ();
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947   (eval $ac_link) 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -z "$ac_c_werror_flag"
6955                          || test ! -s conftest.err'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; } &&
6961          { ac_try='test -s conftest$ac_exeext'
6962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; }; then
6967   ac_cv_search_opendir="none required"
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 fi
6973 rm -f conftest.err conftest.$ac_objext \
6974       conftest$ac_exeext conftest.$ac_ext
6975 if test "$ac_cv_search_opendir" = no; then
6976   for ac_lib in x; do
6977     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6978     cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984
6985 /* Override any gcc2 internal prototype to avoid an error.  */
6986 #ifdef __cplusplus
6987 extern "C"
6988 #endif
6989 /* We use char because int might match the return type of a gcc2
6990    builtin and then its argument prototype would still apply.  */
6991 char opendir ();
6992 int
6993 main ()
6994 {
6995 opendir ();
6996   ;
6997   return 0;
6998 }
6999 _ACEOF
7000 rm -f conftest.$ac_objext conftest$ac_exeext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7002   (eval $ac_link) 2>conftest.er1
7003   ac_status=$?
7004   grep -v '^ *+' conftest.er1 >conftest.err
7005   rm -f conftest.er1
7006   cat conftest.err >&5
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } &&
7009          { ac_try='test -z "$ac_c_werror_flag"
7010                          || test ! -s conftest.err'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; } &&
7016          { ac_try='test -s conftest$ac_exeext'
7017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018   (eval $ac_try) 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); }; }; then
7022   ac_cv_search_opendir="-l$ac_lib"
7023 break
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 fi
7029 rm -f conftest.err conftest.$ac_objext \
7030       conftest$ac_exeext conftest.$ac_ext
7031   done
7032 fi
7033 LIBS=$ac_func_search_save_LIBS
7034 fi
7035 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7036 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7037 if test "$ac_cv_search_opendir" != no; then
7038   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7039
7040 fi
7041
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7053 do
7054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7055 echo "$as_me:$LINENO: checking for $ac_func" >&5
7056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7057 if eval "test \"\${$as_ac_var+set}\" = set"; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h.  */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h.  */
7066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7068 #define $ac_func innocuous_$ac_func
7069
7070 /* System header to define __stub macros and hopefully few prototypes,
7071     which can conflict with char $ac_func (); below.
7072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073     <limits.h> exists even on freestanding compilers.  */
7074
7075 #ifdef __STDC__
7076 # include <limits.h>
7077 #else
7078 # include <assert.h>
7079 #endif
7080
7081 #undef $ac_func
7082
7083 /* Override any gcc2 internal prototype to avoid an error.  */
7084 #ifdef __cplusplus
7085 extern "C"
7086 {
7087 #endif
7088 /* We use char because int might match the return type of a gcc2
7089    builtin and then its argument prototype would still apply.  */
7090 char $ac_func ();
7091 /* The GNU C library defines this for functions which it implements
7092     to always fail with ENOSYS.  Some functions are actually named
7093     something starting with __ and the normal name is an alias.  */
7094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7095 choke me
7096 #else
7097 char (*f) () = $ac_func;
7098 #endif
7099 #ifdef __cplusplus
7100 }
7101 #endif
7102
7103 int
7104 main ()
7105 {
7106 return f != $ac_func;
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113   (eval $ac_link) 2>conftest.er1
7114   ac_status=$?
7115   grep -v '^ *+' conftest.er1 >conftest.err
7116   rm -f conftest.er1
7117   cat conftest.err >&5
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); } &&
7120          { ac_try='test -z "$ac_c_werror_flag"
7121                          || test ! -s conftest.err'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; } &&
7127          { ac_try='test -s conftest$ac_exeext'
7128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129   (eval $ac_try) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); }; }; then
7133   eval "$as_ac_var=yes"
7134 else
7135   echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138 eval "$as_ac_var=no"
7139 fi
7140 rm -f conftest.err conftest.$ac_objext \
7141       conftest$ac_exeext conftest.$ac_ext
7142 fi
7143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7145 if test `eval echo '${'$as_ac_var'}'` = yes; then
7146   cat >>confdefs.h <<_ACEOF
7147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7148 _ACEOF
7149
7150 fi
7151 done
7152
7153
7154
7155 for ac_func in nanosleep nl_langinfo
7156 do
7157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7158 echo "$as_me:$LINENO: checking for $ac_func" >&5
7159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7160 if eval "test \"\${$as_ac_var+set}\" = set"; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7171 #define $ac_func innocuous_$ac_func
7172
7173 /* System header to define __stub macros and hopefully few prototypes,
7174     which can conflict with char $ac_func (); below.
7175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176     <limits.h> exists even on freestanding compilers.  */
7177
7178 #ifdef __STDC__
7179 # include <limits.h>
7180 #else
7181 # include <assert.h>
7182 #endif
7183
7184 #undef $ac_func
7185
7186 /* Override any gcc2 internal prototype to avoid an error.  */
7187 #ifdef __cplusplus
7188 extern "C"
7189 {
7190 #endif
7191 /* We use char because int might match the return type of a gcc2
7192    builtin and then its argument prototype would still apply.  */
7193 char $ac_func ();
7194 /* The GNU C library defines this for functions which it implements
7195     to always fail with ENOSYS.  Some functions are actually named
7196     something starting with __ and the normal name is an alias.  */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7198 choke me
7199 #else
7200 char (*f) () = $ac_func;
7201 #endif
7202 #ifdef __cplusplus
7203 }
7204 #endif
7205
7206 int
7207 main ()
7208 {
7209 return f != $ac_func;
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext conftest$ac_exeext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216   (eval $ac_link) 2>conftest.er1
7217   ac_status=$?
7218   grep -v '^ *+' conftest.er1 >conftest.err
7219   rm -f conftest.er1
7220   cat conftest.err >&5
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } &&
7223          { ac_try='test -z "$ac_c_werror_flag"
7224                          || test ! -s conftest.err'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; } &&
7230          { ac_try='test -s conftest$ac_exeext'
7231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232   (eval $ac_try) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); }; }; then
7236   eval "$as_ac_var=yes"
7237 else
7238   echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 eval "$as_ac_var=no"
7242 fi
7243 rm -f conftest.err conftest.$ac_objext \
7244       conftest$ac_exeext conftest.$ac_ext
7245 fi
7246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7248 if test `eval echo '${'$as_ac_var'}'` = yes; then
7249   cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7251 _ACEOF
7252
7253 fi
7254 done
7255
7256
7257 for ac_header in varargs.h
7258 do
7259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7261   echo "$as_me:$LINENO: checking for $ac_header" >&5
7262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 fi
7266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7268 else
7269   # Is the header compilable?
7270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h.  */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h.  */
7278 $ac_includes_default
7279 #include <$ac_header>
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283   (eval $ac_compile) 2>conftest.er1
7284   ac_status=$?
7285   grep -v '^ *+' conftest.er1 >conftest.err
7286   rm -f conftest.er1
7287   cat conftest.err >&5
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); } &&
7290          { ac_try='test -z "$ac_c_werror_flag"
7291                          || test ! -s conftest.err'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; } &&
7297          { ac_try='test -s conftest.$ac_objext'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303   ac_header_compiler=yes
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 ac_header_compiler=no
7309 fi
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7312 echo "${ECHO_T}$ac_header_compiler" >&6
7313
7314 # Is the header present?
7315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 #include <$ac_header>
7324 _ACEOF
7325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7327   ac_status=$?
7328   grep -v '^ *+' conftest.er1 >conftest.err
7329   rm -f conftest.er1
7330   cat conftest.err >&5
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } >/dev/null; then
7333   if test -s conftest.err; then
7334     ac_cpp_err=$ac_c_preproc_warn_flag
7335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7336   else
7337     ac_cpp_err=
7338   fi
7339 else
7340   ac_cpp_err=yes
7341 fi
7342 if test -z "$ac_cpp_err"; then
7343   ac_header_preproc=yes
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348   ac_header_preproc=no
7349 fi
7350 rm -f conftest.err conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7352 echo "${ECHO_T}$ac_header_preproc" >&6
7353
7354 # So?  What about this header?
7355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7356   yes:no: )
7357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7361     ac_header_preproc=yes
7362     ;;
7363   no:yes:* )
7364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7376     (
7377       cat <<\_ASBOX
7378 ## ------------------------------------------ ##
7379 ## Report this to the AC_PACKAGE_NAME lists.  ##
7380 ## ------------------------------------------ ##
7381 _ASBOX
7382     ) |
7383       sed "s/^/$as_me: WARNING:     /" >&2
7384     ;;
7385 esac
7386 echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   eval "$as_ac_Header=\$ac_header_preproc"
7392 fi
7393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7395
7396 fi
7397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7398   cat >>confdefs.h <<_ACEOF
7399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400 _ACEOF
7401
7402 fi
7403
7404 done
7405
7406
7407 # End of readline/conio stuff
7408 # -----------------------------------------------------------------------
7409
7410 # -----------------------------------------------------------------------
7411 #  Check for Python support
7412 #
7413 echo "$as_me:$LINENO: checking for Python support" >&5
7414 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7415
7416 # Check whether --with-python or --without-python was given.
7417 if test "${with_python+set}" = set; then
7418   withval="$with_python"
7419
7420   PYTHON_INCDIR=
7421   PYTHON_LIBS=
7422   if test "$withval" != "no"; then
7423      if test "$withval" = "yes"; then
7424         if test -f /usr/include/python2.2/Python.h; then
7425            PYTHON_INCDIR=-I/usr/include/python2.2
7426            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7427         elif test -f /usr/include/python2.3/Python.h; then
7428            PYTHON_INCDIR=-I/usr/include/python2.3
7429            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7430         elif test -f /usr/include/python2.4/Python.h; then
7431            PYTHON_INCDIR=-I/usr/include/python2.4
7432            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7433         elif test -f $prefix/include/Python.h; then
7434            PYTHON_INCDIR=-I$prefix/include
7435            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7436         else
7437            echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7440 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7441    { (exit 1); exit 1; }; }
7442         fi
7443      else
7444         if test -f $withval/Python.h; then
7445            PYTHON_INCDIR=-I$withval
7446            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7447         elif test -f $withval/include/Python.h; then
7448            PYTHON_INCDIR=-I$withval/include
7449            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7450         else
7451            echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7453            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7454 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7455    { (exit 1); exit 1; }; }
7456         fi
7457      fi
7458      cat >>confdefs.h <<\_ACEOF
7459 #define HAVE_PYTHON 1
7460 _ACEOF
7461
7462      echo "$as_me:$LINENO: result: yes" >&5
7463 echo "${ECHO_T}yes" >&6
7464      support_python=yes
7465
7466   else
7467      echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7469   fi
7470
7471 else
7472
7473   echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7475
7476 fi;
7477
7478
7479
7480
7481 # -------------------------------------------
7482 # check for cdrecord writer location
7483 # get scsibus,target,lun
7484 # -------------------------------------------
7485 CDSTL="3,0,0"
7486 if test ! x$CDRECORD = x ; then
7487    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7488    if test x${CDSTL} = x ; then
7489       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7490    fi
7491    if test x${CDSTL} = x ; then
7492       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD+RW | ${AWK} '{print $1}'`
7493    fi
7494    if test x${CDSTL} = x ; then
7495       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD-RW | ${AWK} '{print $1}'`
7496    fi
7497    if test x${CDSTL} = x ; then
7498       CDSTL="3,0,0"
7499    fi
7500 fi
7501
7502
7503
7504 # ---------------------------------------------------
7505 # Check for GMP support/directory
7506 # ---------------------------------------------------
7507 #GMP_SRC=
7508 #local_gmp="no"
7509 #AC_ARG_WITH(gmp,
7510 #  [  --with-gmp[=DIR]   Specify gmp library directory],
7511 #  [
7512 #     case "$with_gmp" in
7513 #     no) : ;;
7514 #     yes|*)
7515 #       if test "$with_gmp" != "yes"; then
7516 #         GMP_INC="-I$with_gmp"
7517 #         GMP_LIBS="-lgmp"
7518 #         GMP_LDFLAGS="-L$with_gmp"
7519 #       else
7520 #          with_gmp="/usr/include"
7521 #       fi
7522 #       AC_CHECK_HEADER($with_gmp/gmp.h,
7523 #          [ AC_MSG_RESULT(yes)
7524 #            AC_DEFINE(HAVE_GMP)
7525 #            GMP_LIBS="-lgmp"
7526 #            got_gmp="yes"
7527 #          ],
7528 #          [ AC_MSG_ERROR([*** gmp library missing])
7529 #          ]
7530 #       )
7531 #       ;;
7532 #     esac
7533 #  ],[
7534 #    # check for standard gmp library
7535 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7536 #    [ AC_MSG_RESULT(yes)
7537 #      AC_DEFINE(HAVE_GMP)
7538 #      got_gmp="yes"
7539 #      GMP_INC=
7540 #      GMP_LIBS="-lgmp"
7541 #    ], [
7542 #      # Did not find standard library, so use our own
7543 #      AC_MSG_RESULT(yes)
7544 #      AC_DEFINE(HAVE_GMP)
7545 #      got_gmp="yes"
7546 #      local_gmp="yes"
7547 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7548 #      GMP_LIBS="-lgmp"
7549 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7550 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7551 #    ])
7552 #  ]
7553 #)
7554 #AC_SUBST(GMP_INC)
7555 #AC_SUBST(GMP_LIBS)
7556 #AC_SUBST(GMP_LDFLAGS)
7557 #AC_SUBST(GMP_SRC)
7558
7559 # End of GMP stuff
7560 # -----------------------------------------------------------------------
7561
7562
7563 # ---------------------------------------------------
7564 # Check for CWEB support/directory
7565 # ---------------------------------------------------
7566 #CWEB_SRC=
7567 #CWEB=/bin
7568 #local_cweb="no"
7569 #AC_ARG_WITH(cweb,
7570 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7571 #  [
7572 #     case "$with_cweb" in
7573 #     no) : ;;
7574 #     yes|*)
7575 #       if test "$with_cweb" != "yes"; then
7576 #         CWEB_INC="-I$with_cweb"
7577 #         CWEB_LIBS="-lcweb"
7578 #         CWEB_LDFLAGS="-L$with_cweb"
7579 #       else
7580 #          with_cweb="/usr/include"
7581 #       fi
7582 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7583 #          [ AC_MSG_RESULT(yes)
7584 #            AC_DEFINE(HAVE_CWEB)
7585 #            CWEB_LIBS="-lcweb"
7586 #            got_cweb="yes"
7587 #          ],
7588 #          [ AC_MSG_ERROR([*** cweb library missing])
7589 #          ]
7590 #       )
7591 #       ;;
7592 #     esac
7593 #  ],[
7594 #    # check for standard cweb library
7595 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7596 #    [ AC_MSG_RESULT(yes)
7597 #      AC_DEFINE(HAVE_CWEB)
7598 #      got_cweb="yes"
7599 #      CWEB_INC=
7600 #      CWEB_LIBS="-lcweb"
7601 #    ], [
7602 #      # Did not find starndard library, so use our own
7603 #      AC_MSG_RESULT(yes)
7604 #      AC_DEFINE(HAVE_CWEB)
7605 #      got_cweb="yes"
7606 #      local_cweb="yes"
7607 #      CWEB=${TOP_DIR}/depkgs/cweb
7608 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7609 #      CWEB_LIBS="-lcweb"
7610 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7611 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7612 #    ])
7613 #  ]
7614 #)
7615 #AC_SUBST(CWEB)
7616 #AC_SUBST(CWEB_INC)
7617 #AC_SUBST(CWEB_LIBS)
7618 #AC_SUBST(CWEB_LDFLAGS)
7619 #AC_SUBST(CWEB_SRC)
7620
7621 # End of CWEB stuff
7622 # -----------------------------------------------------------------------
7623
7624 #
7625 # Find where sockets are (especially for Solaris)
7626 # Do this before the TCP Wrappers test since tcp wrappers
7627 # uses the socket library and some linkers are stupid.
7628 #
7629 echo "$as_me:$LINENO: checking for socket" >&5
7630 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7631 if test "${ac_cv_func_socket+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7642 #define socket innocuous_socket
7643
7644 /* System header to define __stub macros and hopefully few prototypes,
7645     which can conflict with char socket (); below.
7646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7647     <limits.h> exists even on freestanding compilers.  */
7648
7649 #ifdef __STDC__
7650 # include <limits.h>
7651 #else
7652 # include <assert.h>
7653 #endif
7654
7655 #undef socket
7656
7657 /* Override any gcc2 internal prototype to avoid an error.  */
7658 #ifdef __cplusplus
7659 extern "C"
7660 {
7661 #endif
7662 /* We use char because int might match the return type of a gcc2
7663    builtin and then its argument prototype would still apply.  */
7664 char socket ();
7665 /* The GNU C library defines this for functions which it implements
7666     to always fail with ENOSYS.  Some functions are actually named
7667     something starting with __ and the normal name is an alias.  */
7668 #if defined (__stub_socket) || defined (__stub___socket)
7669 choke me
7670 #else
7671 char (*f) () = socket;
7672 #endif
7673 #ifdef __cplusplus
7674 }
7675 #endif
7676
7677 int
7678 main ()
7679 {
7680 return f != socket;
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687   (eval $ac_link) 2>conftest.er1
7688   ac_status=$?
7689   grep -v '^ *+' conftest.er1 >conftest.err
7690   rm -f conftest.er1
7691   cat conftest.err >&5
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); } &&
7694          { ac_try='test -z "$ac_c_werror_flag"
7695                          || test ! -s conftest.err'
7696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697   (eval $ac_try) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; } &&
7701          { ac_try='test -s conftest$ac_exeext'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; }; then
7707   ac_cv_func_socket=yes
7708 else
7709   echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712 ac_cv_func_socket=no
7713 fi
7714 rm -f conftest.err conftest.$ac_objext \
7715       conftest$ac_exeext conftest.$ac_ext
7716 fi
7717 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7718 echo "${ECHO_T}$ac_cv_func_socket" >&6
7719 if test $ac_cv_func_socket = yes; then
7720   echo "$as_me:$LINENO: result: using libc's socket" >&5
7721 echo "${ECHO_T}using libc's socket" >&6
7722 else
7723
7724 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7725 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7726 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7727   echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729   ac_check_lib_save_LIBS=$LIBS
7730 LIBS="-lxnet  $LIBS"
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737
7738 /* Override any gcc2 internal prototype to avoid an error.  */
7739 #ifdef __cplusplus
7740 extern "C"
7741 #endif
7742 /* We use char because int might match the return type of a gcc2
7743    builtin and then its argument prototype would still apply.  */
7744 char socket ();
7745 int
7746 main ()
7747 {
7748 socket ();
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext conftest$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755   (eval $ac_link) 2>conftest.er1
7756   ac_status=$?
7757   grep -v '^ *+' conftest.er1 >conftest.err
7758   rm -f conftest.er1
7759   cat conftest.err >&5
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); } &&
7762          { ac_try='test -z "$ac_c_werror_flag"
7763                          || test ! -s conftest.err'
7764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765   (eval $ac_try) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; } &&
7769          { ac_try='test -s conftest$ac_exeext'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; }; then
7775   ac_cv_lib_xnet_socket=yes
7776 else
7777   echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7779
7780 ac_cv_lib_xnet_socket=no
7781 fi
7782 rm -f conftest.err conftest.$ac_objext \
7783       conftest$ac_exeext conftest.$ac_ext
7784 LIBS=$ac_check_lib_save_LIBS
7785 fi
7786 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7787 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7788 if test $ac_cv_lib_xnet_socket = yes; then
7789   cat >>confdefs.h <<_ACEOF
7790 #define HAVE_LIBXNET 1
7791 _ACEOF
7792
7793   LIBS="-lxnet $LIBS"
7794
7795 fi
7796
7797
7798 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7799 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7800 if test "${ac_cv_lib_socket_socket+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-lsocket  $LIBS"
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 /* We use char because int might match the return type of a gcc2
7817    builtin and then its argument prototype would still apply.  */
7818 char socket ();
7819 int
7820 main ()
7821 {
7822 socket ();
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829   (eval $ac_link) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag"
7837                          || test ! -s conftest.err'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest$ac_exeext'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   ac_cv_lib_socket_socket=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 ac_cv_lib_socket_socket=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext \
7857       conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7859 fi
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7861 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7862 if test $ac_cv_lib_socket_socket = yes; then
7863   cat >>confdefs.h <<_ACEOF
7864 #define HAVE_LIBSOCKET 1
7865 _ACEOF
7866
7867   LIBS="-lsocket $LIBS"
7868
7869 fi
7870
7871
7872 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7873 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7874 if test "${ac_cv_lib_inet_socket+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   ac_check_lib_save_LIBS=$LIBS
7878 LIBS="-linet  $LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 /* Override any gcc2 internal prototype to avoid an error.  */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 /* We use char because int might match the return type of a gcc2
7891    builtin and then its argument prototype would still apply.  */
7892 char socket ();
7893 int
7894 main ()
7895 {
7896 socket ();
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903   (eval $ac_link) 2>conftest.er1
7904   ac_status=$?
7905   grep -v '^ *+' conftest.er1 >conftest.err
7906   rm -f conftest.er1
7907   cat conftest.err >&5
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -z "$ac_c_werror_flag"
7911                          || test ! -s conftest.err'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; } &&
7917          { ac_try='test -s conftest$ac_exeext'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   ac_cv_lib_inet_socket=yes
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 ac_cv_lib_inet_socket=no
7929 fi
7930 rm -f conftest.err conftest.$ac_objext \
7931       conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7933 fi
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7935 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7936 if test $ac_cv_lib_inet_socket = yes; then
7937   cat >>confdefs.h <<_ACEOF
7938 #define HAVE_LIBINET 1
7939 _ACEOF
7940
7941   LIBS="-linet $LIBS"
7942
7943 fi
7944
7945 fi
7946
7947
7948
7949 # -----------------------------------------------------------
7950 # Check whether user wants TCP wrappers support (default off)
7951 # -----------------------------------------------------------
7952 TCPW_MSG="no"
7953
7954 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7955 if test "${with_tcp_wrappers+set}" = set; then
7956   withval="$with_tcp_wrappers"
7957
7958     if test "x$withval" != "xno" ; then
7959        saved_LIBS="$LIBS"
7960        LIBS="$saved_LIBS -lwrap"
7961        echo "$as_me:$LINENO: checking for libwrap" >&5
7962 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7963        cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h.  */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h.  */
7969  #include <tcpd.h>
7970              int deny_severity = 0;
7971              int allow_severity = 0;
7972              struct request_info *req;
7973 int
7974 main ()
7975 {
7976  hosts_access(req);
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7983   (eval $ac_link) 2>conftest.er1
7984   ac_status=$?
7985   grep -v '^ *+' conftest.er1 >conftest.err
7986   rm -f conftest.er1
7987   cat conftest.err >&5
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } &&
7990          { ac_try='test -z "$ac_c_werror_flag"
7991                          || test ! -s conftest.err'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest$ac_exeext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003
8004             echo "$as_me:$LINENO: result: yes" >&5
8005 echo "${ECHO_T}yes" >&6
8006             cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_LIBWRAP 1
8008 _ACEOF
8009
8010             TCPW_MSG="yes"
8011
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016
8017             LIBS="$saved_LIBS -lwrap -lnsl"
8018             cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024  #include <tcpd.h>
8025                  int deny_severity = 0;
8026                  int allow_severity = 0;
8027                  struct request_info *req;
8028 int
8029 main ()
8030 {
8031  hosts_access(req);
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038   (eval $ac_link) 2>conftest.er1
8039   ac_status=$?
8040   grep -v '^ *+' conftest.er1 >conftest.err
8041   rm -f conftest.er1
8042   cat conftest.err >&5
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } &&
8045          { ac_try='test -z "$ac_c_werror_flag"
8046                          || test ! -s conftest.err'
8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048   (eval $ac_try) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; } &&
8052          { ac_try='test -s conftest$ac_exeext'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058
8059                  echo "$as_me:$LINENO: result: yes" >&5
8060 echo "${ECHO_T}yes" >&6
8061                  cat >>confdefs.h <<\_ACEOF
8062 #define HAVE_LIBWRAP 1
8063 _ACEOF
8064
8065                  TCPW_MSG="yes"
8066
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8072 echo "$as_me: error: *** libwrap missing" >&2;}
8073    { (exit 1); exit 1; }; }
8074
8075 fi
8076 rm -f conftest.err conftest.$ac_objext \
8077       conftest$ac_exeext conftest.$ac_ext
8078
8079 fi
8080 rm -f conftest.err conftest.$ac_objext \
8081       conftest$ac_exeext conftest.$ac_ext
8082     fi
8083
8084
8085 fi;
8086
8087 # ------------------------------------------
8088 # Where to place working dir
8089 # ------------------------------------------
8090 working_dir=`eval echo ${prefix}/var/bacula/working`
8091
8092 # Check whether --with-working-dir or --without-working-dir was given.
8093 if test "${with_working_dir+set}" = set; then
8094   withval="$with_working_dir"
8095
8096        if test "x$withval" != "xno" ; then
8097               working_dir=$withval
8098        fi
8099
8100
8101 fi;
8102
8103
8104
8105
8106 # ------------------------------------------
8107 # Where to place scriptdir (script files)
8108 # ------------------------------------------
8109 scriptdir=`eval echo ${sysconfdir}`
8110
8111 # Check whether --with-scriptdir or --without-scriptdir was given.
8112 if test "${with_scriptdir+set}" = set; then
8113   withval="$with_scriptdir"
8114
8115        if test "x$withval" != "xno" ; then
8116               scriptdir=$withval
8117        fi
8118
8119
8120 fi;
8121
8122
8123
8124
8125 # ------------------------------------------
8126 # Where to send dump email
8127 # ------------------------------------------
8128 dump_email=root@localhost
8129
8130 # Check whether --with-dump-email or --without-dump-email was given.
8131 if test "${with_dump_email+set}" = set; then
8132   withval="$with_dump_email"
8133
8134        if test "x$withval" != "xno" ; then
8135               dump_email=$withval
8136        fi
8137
8138
8139 fi;
8140
8141
8142
8143 # ------------------------------------------
8144 # Where to send job email
8145 # ------------------------------------------
8146 job_email=root@localhost
8147
8148 # Check whether --with-job-email or --without-job-email was given.
8149 if test "${with_job_email+set}" = set; then
8150   withval="$with_job_email"
8151
8152        if test "x$withval" != "xno" ; then
8153               job_email=$withval
8154        fi
8155
8156
8157 fi;
8158
8159
8160
8161 # ------------------------------------------
8162 # Where to find smtp host
8163 # ------------------------------------------
8164 smtp_host=localhost
8165
8166 # Check whether --with-smtp_host or --without-smtp_host was given.
8167 if test "${with_smtp_host+set}" = set; then
8168   withval="$with_smtp_host"
8169
8170        if test "x$withval" != "xno" ; then
8171               smtp_host=$withval
8172        fi
8173
8174
8175 fi;
8176
8177
8178
8179
8180 # ------------------------------------
8181 # Where to place pid files
8182 # ------------------------------------
8183 piddir=/var/run
8184
8185 # Check whether --with-pid-dir or --without-pid-dir was given.
8186 if test "${with_pid_dir+set}" = set; then
8187   withval="$with_pid_dir"
8188
8189         if test "x$withval" != "xno" ; then
8190             piddir=$withval
8191         fi
8192
8193
8194 fi;
8195
8196 cat >>confdefs.h <<_ACEOF
8197 #define _PATH_BACULA_PIDDIR "$piddir"
8198 _ACEOF
8199
8200
8201
8202
8203 # ------------------------------------
8204 # Where to place subsys "lock file"
8205 # ------------------------------------
8206 subsysdir=/var/run/subsys
8207
8208 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8209 if test "${with_subsys_dir+set}" = set; then
8210   withval="$with_subsys_dir"
8211
8212         if test "x$withval" != "xno" ; then
8213             subsysdir=$withval
8214         fi
8215
8216
8217 fi;
8218
8219
8220
8221
8222
8223 # ------------------------------------
8224 # Where to start assigning ports
8225 # ------------------------------------
8226 baseport=9101
8227
8228 # Check whether --with-baseport or --without-baseport was given.
8229 if test "${with_baseport+set}" = set; then
8230   withval="$with_baseport"
8231
8232         if test "x$withval" != "xno" ; then
8233              baseport=$withval
8234         fi
8235
8236
8237 fi;
8238
8239
8240 dir_port=`expr $baseport`
8241 fd_port=`expr $baseport + 1`
8242 sd_port=`expr $fd_port + 1`
8243
8244
8245
8246
8247
8248
8249 # ------------------------------------------
8250 # Generate passwords
8251 # ------------------------------------------
8252 dir_password=
8253
8254 # Check whether --with-dir-password or --without-dir-password was given.
8255 if test "${with_dir_password+set}" = set; then
8256   withval="$with_dir_password"
8257
8258        if test "x$withval" != "xno" ; then
8259            dir_password=$withval
8260        fi
8261
8262
8263 fi;
8264
8265 if test "x$dir_password" = "x" ; then
8266    if test "x$OPENSSL" = "xnone" ; then
8267 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8268       key=`autoconf/randpass 33`
8269    else
8270       key=`openssl rand -base64 33`
8271    fi
8272    dir_password=$key
8273 fi
8274
8275 fd_password=
8276
8277 # Check whether --with-fd-password or --without-fd-password was given.
8278 if test "${with_fd_password+set}" = set; then
8279   withval="$with_fd_password"
8280
8281        if test "x$withval" != "xno" ; then
8282            fd_password=$withval
8283        fi
8284
8285
8286 fi;
8287
8288 if test "x$fd_password" = "x" ; then
8289    if test "x$OPENSSL" = "xnone" ; then
8290 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8291       key=`autoconf/randpass 37`
8292    else
8293       key=`openssl rand -base64 33`
8294    fi
8295    fd_password=$key
8296 fi
8297
8298 sd_password=
8299
8300 # Check whether --with-sd-password or --without-sd-password was given.
8301 if test "${with_sd_password+set}" = set; then
8302   withval="$with_sd_password"
8303
8304        if test "x$withval" != "xno" ; then
8305            sd_password=$withval
8306        fi
8307
8308
8309 fi;
8310
8311 if test "x$sd_password" = "x" ; then
8312    if test "x$OPENSSL" = "xnone" ; then
8313 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8314       key=`autoconf/randpass 41`
8315    else
8316       key=`openssl rand -base64 33`
8317    fi
8318    sd_password=$key
8319 fi
8320
8321 mon_dir_password=
8322
8323 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8324 if test "${with_mon_dir_password+set}" = set; then
8325   withval="$with_mon_dir_password"
8326
8327        if test "x$withval" != "xno" ; then
8328            mon_dir_password=$withval
8329        fi
8330
8331
8332 fi;
8333
8334 if test "x$mon_dir_password" = "x" ; then
8335    if test "x$OPENSSL" = "xnone" ; then
8336 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8337       key=`autoconf/randpass 33`
8338    else
8339       key=`openssl rand -base64 33`
8340    fi
8341    mon_dir_password=$key
8342 fi
8343
8344 mon_fd_password=
8345
8346 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8347 if test "${with_mon_fd_password+set}" = set; then
8348   withval="$with_mon_fd_password"
8349
8350        if test "x$withval" != "xno" ; then
8351            mon_fd_password=$withval
8352        fi
8353
8354
8355 fi;
8356
8357 if test "x$mon_fd_password" = "x" ; then
8358    if test "x$OPENSSL" = "xnone" ; then
8359 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8360       key=`autoconf/randpass 37`
8361    else
8362       key=`openssl rand -base64 33`
8363    fi
8364    mon_fd_password=$key
8365 fi
8366
8367 mon_sd_password=
8368
8369 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8370 if test "${with_mon_sd_password+set}" = set; then
8371   withval="$with_mon_sd_password"
8372
8373        if test "x$withval" != "xno" ; then
8374            mon_sd_password=$withval
8375        fi
8376
8377
8378 fi;
8379
8380 if test "x$mon_sd_password" = "x" ; then
8381    if test "x$OPENSSL" = "xnone" ; then
8382 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8383       key=`autoconf/randpass 41`
8384    else
8385       key=`openssl rand -base64 33`
8386    fi
8387    mon_sd_password=$key
8388 fi
8389
8390
8391
8392
8393
8394
8395
8396
8397 # -------------------------------------------------------------------------
8398 #  Set variables for bimagemgr installation
8399 # -------------------------------------------------------------------------
8400 bimagemgr_cgidir=/var/www/cgi-bin
8401
8402 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8403 if test "${with_bimagemgr_cgidir+set}" = set; then
8404   withval="$with_bimagemgr_cgidir"
8405
8406        if test "x$withval" != "xno" ; then
8407            bimagemgr_cgidir=$withval
8408        fi
8409
8410
8411 fi;
8412
8413 bimagemgr_docdir=/var/www/html
8414
8415 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8416 if test "${with_bimagemgr_docdir+set}" = set; then
8417   withval="$with_bimagemgr_docdir"
8418
8419        if test "x$withval" != "xno" ; then
8420            bimagemgr_docdir=$withval
8421        fi
8422
8423
8424 fi;
8425
8426 bimagemgr_binowner=root
8427
8428 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8429 if test "${with_bimagemgr_binowner+set}" = set; then
8430   withval="$with_bimagemgr_binowner"
8431
8432        if test "x$withval" != "xno" ; then
8433            bimagemgr_binowner=$withval
8434        fi
8435
8436
8437 fi;
8438
8439 bimagemgr_bingroup=root
8440
8441 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8442 if test "${with_bimagemgr_bingroup+set}" = set; then
8443   withval="$with_bimagemgr_bingroup"
8444
8445        if test "x$withval" != "xno" ; then
8446            bimagemgr_bingroup=$withval
8447        fi
8448
8449
8450 fi;
8451
8452 bimagemgr_dataowner=apache
8453
8454 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8455 if test "${with_bimagemgr_dataowner+set}" = set; then
8456   withval="$with_bimagemgr_dataowner"
8457
8458        if test "x$withval" != "xno" ; then
8459            bimagemgr_dataowner=$withval
8460        fi
8461
8462
8463 fi;
8464
8465 bimagemgr_datagroup=apache
8466
8467 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8468 if test "${with_bimagemgr_datagroup+set}" = set; then
8469   withval="$with_bimagemgr_datagroup"
8470
8471        if test "x$withval" != "xno" ; then
8472            bimagemgr_datagroup=$withval
8473        fi
8474
8475
8476 fi;
8477
8478
8479
8480
8481
8482
8483
8484
8485 #
8486 # Handle users and groups for each daemon
8487 #
8488 dir_user=
8489
8490 # Check whether --with-dir_user or --without-dir_user was given.
8491 if test "${with_dir_user+set}" = set; then
8492   withval="$with_dir_user"
8493
8494         if test "x$withval" != "x" ; then
8495              dir_user=$withval
8496         fi
8497
8498
8499 fi;
8500
8501 dir_group=
8502
8503 # Check whether --with-dir_group or --without-dir_group was given.
8504 if test "${with_dir_group+set}" = set; then
8505   withval="$with_dir_group"
8506
8507         if test "x$withval" != "x" ; then
8508              dir_group=$withval
8509         fi
8510
8511
8512 fi;
8513
8514 sd_user=
8515
8516 # Check whether --with-sd_user or --without-sd_user was given.
8517 if test "${with_sd_user+set}" = set; then
8518   withval="$with_sd_user"
8519
8520         if test "x$withval" != "x" ; then
8521              sd_user=$withval
8522         fi
8523
8524
8525 fi;
8526
8527 sd_group=
8528
8529 # Check whether --with-sd_group or --without-sd_group was given.
8530 if test "${with_sd_group+set}" = set; then
8531   withval="$with_sd_group"
8532
8533         if test "x$withval" != "x" ; then
8534              sd_group=$withval
8535         fi
8536
8537
8538 fi;
8539
8540 fd_user=
8541
8542 # Check whether --with-fd_user or --without-fd_user was given.
8543 if test "${with_fd_user+set}" = set; then
8544   withval="$with_fd_user"
8545
8546         if test "x$withval" != "x" ; then
8547              fd_user=$withval
8548         fi
8549
8550
8551 fi;
8552
8553 fd_group=
8554
8555 # Check whether --with-fd_group or --without-fd_group was given.
8556 if test "${with_fd_group+set}" = set; then
8557   withval="$with_fd_group"
8558
8559         if test "x$withval" != "x" ; then
8560              fd_group=$withval
8561         fi
8562
8563
8564 fi;
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576 #
8577 # allow setting default executable permissions
8578 #
8579 SBINPERM=0754
8580
8581 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8582 if test "${with_sbin_perm+set}" = set; then
8583   withval="$with_sbin_perm"
8584
8585         if test "x$withval" != "x" ; then
8586             SBINPERM=$withval
8587         fi
8588
8589
8590 fi;
8591
8592
8593
8594 # ------------------------------------------------
8595 # Bacula check for various SQL database engines
8596 # ------------------------------------------------
8597
8598 db_found=no
8599 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8600 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8601
8602 # Check whether --with-postgresql or --without-postgresql was given.
8603 if test "${with_postgresql+set}" = set; then
8604   withval="$with_postgresql"
8605
8606   if test "$withval" != "no"; then
8607       if test "$db_found" = "yes"; then
8608           echo "$as_me:$LINENO: result: error" >&5
8609 echo "${ECHO_T}error" >&6
8610           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8611 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8612    { (exit 1); exit 1; }; };
8613       fi
8614       if test "$withval" = "yes"; then
8615           if test -f /usr/local/include/libpq-fe.h; then
8616               POSTGRESQL_INCDIR=/usr/local/include
8617               POSTGRESQL_LIBDIR=/usr/local/lib
8618               POSTGRESQL_BINDIR=/usr/local/bin
8619           elif test -f /usr/include/libpq-fe.h; then
8620               POSTGRESQL_INCDIR=/usr/include
8621               POSTGRESQL_LIBDIR=/usr/lib
8622               POSTGRESQL_BINDIR=/usr/bin
8623           elif test -f /usr/include/pgsql/libpq-fe.h; then
8624               POSTGRESQL_INCDIR=/usr/include/pgsql
8625               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8626               POSTGRESQL_BINDIR=/usr/bin
8627           elif test -f /usr/include/postgresql/libpq-fe.h; then
8628               POSTGRESQL_INCDIR=/usr/include/postgresql
8629               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8630               POSTGRESQL_BINDIR=/usr/bin
8631           else
8632               echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6
8634               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8635 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8636    { (exit 1); exit 1; }; }
8637           fi
8638       elif test -f $withval/include/libpq-fe.h; then
8639           POSTGRESQL_INCDIR=$withval/include
8640           POSTGRESQL_LIBDIR=$withval/lib
8641           POSTGRESQL_BINDIR=$withval/bin
8642       elif test -f $withval/include/postgresql/libpq-fe.h; then
8643           POSTGRESQL_INCDIR=$withval/include/postgresql
8644           POSTGRESQL_LIBDIR=$withval/lib
8645           POSTGRESQL_BINDIR=$withval/bin
8646       else
8647           echo "$as_me:$LINENO: result: no" >&5
8648 echo "${ECHO_T}no" >&6
8649           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8650 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8651    { (exit 1); exit 1; }; }
8652       fi
8653       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8654       echo "$as_me:$LINENO: checking for crypt" >&5
8655 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8656 if test "${ac_cv_func_crypt+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8667 #define crypt innocuous_crypt
8668
8669 /* System header to define __stub macros and hopefully few prototypes,
8670     which can conflict with char crypt (); below.
8671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672     <limits.h> exists even on freestanding compilers.  */
8673
8674 #ifdef __STDC__
8675 # include <limits.h>
8676 #else
8677 # include <assert.h>
8678 #endif
8679
8680 #undef crypt
8681
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 {
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688    builtin and then its argument prototype would still apply.  */
8689 char crypt ();
8690 /* The GNU C library defines this for functions which it implements
8691     to always fail with ENOSYS.  Some functions are actually named
8692     something starting with __ and the normal name is an alias.  */
8693 #if defined (__stub_crypt) || defined (__stub___crypt)
8694 choke me
8695 #else
8696 char (*f) () = crypt;
8697 #endif
8698 #ifdef __cplusplus
8699 }
8700 #endif
8701
8702 int
8703 main ()
8704 {
8705 return f != crypt;
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712   (eval $ac_link) 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -z "$ac_c_werror_flag"
8720                          || test ! -s conftest.err'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   ac_cv_func_crypt=yes
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_cv_func_crypt=no
8738 fi
8739 rm -f conftest.err conftest.$ac_objext \
8740       conftest$ac_exeext conftest.$ac_ext
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8743 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8744 if test $ac_cv_func_crypt = yes; then
8745   :
8746 else
8747   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8748 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8749 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   ac_check_lib_save_LIBS=$LIBS
8753 LIBS="-lcrypt  $LIBS"
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8760
8761 /* Override any gcc2 internal prototype to avoid an error.  */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 /* We use char because int might match the return type of a gcc2
8766    builtin and then its argument prototype would still apply.  */
8767 char crypt ();
8768 int
8769 main ()
8770 {
8771 crypt ();
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext conftest$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778   (eval $ac_link) 2>conftest.er1
8779   ac_status=$?
8780   grep -v '^ *+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } &&
8785          { ac_try='test -z "$ac_c_werror_flag"
8786                          || test ! -s conftest.err'
8787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788   (eval $ac_try) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; } &&
8792          { ac_try='test -s conftest$ac_exeext'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_lib_crypt_crypt=yes
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_lib_crypt_crypt=no
8804 fi
8805 rm -f conftest.err conftest.$ac_objext \
8806       conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_check_lib_save_LIBS
8808 fi
8809 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8810 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8811 if test $ac_cv_lib_crypt_crypt = yes; then
8812   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8813 fi
8814
8815 fi
8816
8817       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8818       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8819       SQL_BINDIR=$POSTGRESQL_BINDIR
8820       cat >>confdefs.h <<\_ACEOF
8821 #define HAVE_POSTGRESQL 1
8822 _ACEOF
8823
8824       echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8826       db_found=yes
8827       support_postgresql=yes
8828       db_name=PostgreSQL
8829       DB_NAME=postgresql
8830   else
8831       echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6
8833   fi
8834
8835 else
8836
8837   echo "$as_me:$LINENO: result: no" >&5
8838 echo "${ECHO_T}no" >&6
8839
8840 fi;
8841
8842
8843
8844
8845
8846
8847
8848 db_found=no
8849 echo "$as_me:$LINENO: checking for MySQL support" >&5
8850 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8851
8852 # Check whether --with-mysql or --without-mysql was given.
8853 if test "${with_mysql+set}" = set; then
8854   withval="$with_mysql"
8855
8856   if test "$withval" != "no"; then
8857         if test "$withval" = "yes"; then
8858                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8859                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8860                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8861                         MYSQL_BINDIR=/usr/local/mysql/bin
8862                 elif test -f /usr/include/mysql/mysql.h; then
8863                         MYSQL_INCDIR=/usr/include/mysql
8864                         MYSQL_LIBDIR=/usr/lib/mysql
8865                         MYSQL_BINDIR=/usr/bin
8866                 elif test -f /usr/include/mysql.h; then
8867                         MYSQL_INCDIR=/usr/include
8868                         MYSQL_LIBDIR=/usr/lib
8869                         MYSQL_BINDIR=/usr/bin
8870                 elif test -f /usr/local/include/mysql/mysql.h; then
8871                         MYSQL_INCDIR=/usr/local/include/mysql
8872                         MYSQL_LIBDIR=/usr/local/lib/mysql
8873                         MYSQL_BINDIR=/usr/local/bin
8874                 elif test -f /usr/local/include/mysql.h; then
8875                         MYSQL_INCDIR=/usr/local/include
8876                         MYSQL_LIBDIR=/usr/local/lib
8877                         MYSQL_BINDIR=/usr/local/bin
8878                 else
8879                    echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8882 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8883    { (exit 1); exit 1; }; }
8884                 fi
8885         else
8886                 if test -f $withval/include/mysql/mysql.h; then
8887                         MYSQL_INCDIR=$withval/include/mysql
8888                         MYSQL_LIBDIR=$withval/lib/mysql
8889                         MYSQL_BINDIR=$withval/bin
8890                 elif test -f $withval/include/mysql.h; then
8891                         MYSQL_INCDIR=$withval/include
8892                         MYSQL_LIBDIR=$withval/lib
8893                         MYSQL_BINDIR=$withval/bin
8894                 else
8895                    echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6
8897                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8898 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8899    { (exit 1); exit 1; }; }
8900                 fi
8901         fi
8902     SQL_INCLUDE=-I$MYSQL_INCDIR
8903     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8904        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8905        cat >>confdefs.h <<\_ACEOF
8906 #define HAVE_THREAD_SAFE_MYSQL 1
8907 _ACEOF
8908
8909     else
8910        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8911     fi
8912     SQL_BINDIR=$MYSQL_BINDIR
8913
8914     cat >>confdefs.h <<\_ACEOF
8915 #define HAVE_MYSQL 1
8916 _ACEOF
8917
8918     echo "$as_me:$LINENO: result: yes" >&5
8919 echo "${ECHO_T}yes" >&6
8920     db_found=yes
8921     support_mysql=yes
8922     db_name=MySQL
8923     DB_NAME=mysql
8924
8925   else
8926         echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6
8928   fi
8929
8930
8931 fi;
8932
8933
8934 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8935 if test "${with_embedded_mysql+set}" = set; then
8936   withval="$with_embedded_mysql"
8937
8938   if test "$withval" != "no"; then
8939         if test "$withval" = "yes"; then
8940                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8941                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8942                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8943                         MYSQL_BINDIR=/usr/local/mysql/bin
8944                 elif test -f /usr/include/mysql/mysql.h; then
8945                         MYSQL_INCDIR=/usr/include/mysql
8946                         MYSQL_LIBDIR=/usr/lib/mysql
8947                         MYSQL_BINDIR=/usr/bin
8948                 elif test -f /usr/include/mysql.h; then
8949                         MYSQL_INCDIR=/usr/include
8950                         MYSQL_LIBDIR=/usr/lib
8951                         MYSQL_BINDIR=/usr/bin
8952                 elif test -f /usr/local/include/mysql/mysql.h; then
8953                         MYSQL_INCDIR=/usr/local/include/mysql
8954                         MYSQL_LIBDIR=/usr/local/lib/mysql
8955                         MYSQL_BINDIR=/usr/local/bin
8956                 elif test -f /usr/local/include/mysql.h; then
8957                         MYSQL_INCDIR=/usr/local/include
8958                         MYSQL_LIBDIR=/usr/local/lib
8959                         MYSQL_BINDIR=/usr/local/bin
8960                 else
8961                    echo "$as_me:$LINENO: result: no" >&5
8962 echo "${ECHO_T}no" >&6
8963                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8964 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8965    { (exit 1); exit 1; }; }
8966                 fi
8967         else
8968                 if test -f $withval/include/mysql/mysql.h; then
8969                         MYSQL_INCDIR=$withval/include/mysql
8970                         MYSQL_LIBDIR=$withval/lib/mysql
8971                         MYSQL_BINDIR=$withval/bin
8972                 elif test -f $withval/include/mysql.h; then
8973                         MYSQL_INCDIR=$withval/include
8974                         MYSQL_LIBDIR=$withval/lib
8975                         MYSQL_BINDIR=$withval/bin
8976                 else
8977                    echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8980 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8981    { (exit 1); exit 1; }; }
8982                 fi
8983         fi
8984     SQL_INCLUDE=-I$MYSQL_INCDIR
8985     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8986     SQL_BINDIR=$MYSQL_BINDIR
8987
8988     cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_MYSQL 1
8990 _ACEOF
8991
8992     cat >>confdefs.h <<\_ACEOF
8993 #define HAVE_EMBEDDED_MYSQL 1
8994 _ACEOF
8995
8996     echo "$as_me:$LINENO: result: yes" >&5
8997 echo "${ECHO_T}yes" >&6
8998     db_found=yes
8999     support_mysql=yes
9000     db_name=MySQL
9001     DB_NAME=mysql
9002
9003   else
9004         echo "$as_me:$LINENO: result: no" >&5
9005 echo "${ECHO_T}no" >&6
9006   fi
9007
9008
9009 fi;
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 db_found=no
9020 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9021 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9022
9023 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9024 if test "${with_sqlite3+set}" = set; then
9025   withval="$with_sqlite3"
9026
9027   if test "$withval" != "no"; then
9028      if test "$withval" = "yes"; then
9029         if test -f /usr/local/include/sqlite3.h; then
9030            SQLITE_INCDIR=/usr/local/include
9031            SQLITE_LIBDIR=/usr/local/lib
9032            SQLITE_BINDIR=/usr/local/bin
9033         elif test -f /usr/include/sqlite3.h; then
9034            SQLITE_INCDIR=/usr/include
9035            SQLITE_LIBDIR=/usr/lib
9036            SQLITE_BINDIR=/usr/bin
9037         elif test -f $prefix/include/sqlite3.h; then
9038            SQLITE_INCDIR=$prefix/include
9039            SQLITE_LIBDIR=$prefix/lib
9040            SQLITE_BINDIR=$prefix/bin
9041         else
9042            echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9044            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9045 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9046    { (exit 1); exit 1; }; }
9047         fi
9048      else
9049         if test -f $withval/sqlite3.h; then
9050            SQLITE_INCDIR=$withval
9051            SQLITE_LIBDIR=$withval
9052            SQLITE_BINDIR=$withval
9053         elif test -f $withval/include/sqlite3.h; then
9054            SQLITE_INCDIR=$withval/include
9055            SQLITE_LIBDIR=$withval/lib
9056            SQLITE_BINDIR=$withval/bin
9057         else
9058            echo "$as_me:$LINENO: result: no" >&5
9059 echo "${ECHO_T}no" >&6
9060            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9061 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9062    { (exit 1); exit 1; }; }
9063         fi
9064      fi
9065      SQL_INCLUDE=-I$SQLITE_INCDIR
9066      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9067      SQL_BINDIR=$SQLITE_BINDIR
9068
9069      cat >>confdefs.h <<\_ACEOF
9070 #define HAVE_SQLITE3 1
9071 _ACEOF
9072
9073      echo "$as_me:$LINENO: result: yes" >&5
9074 echo "${ECHO_T}yes" >&6
9075      db_found=yes
9076      support_sqlite3=yes
9077      db_name=SQLite3
9078      DB_NAME=sqlite3
9079
9080   else
9081      echo "$as_me:$LINENO: result: no" >&5
9082 echo "${ECHO_T}no" >&6
9083   fi
9084
9085 else
9086
9087   echo "$as_me:$LINENO: result: no" >&5
9088 echo "${ECHO_T}no" >&6
9089
9090 fi;
9091
9092
9093
9094
9095
9096
9097
9098 db_found=no
9099 echo "$as_me:$LINENO: checking for SQLite support" >&5
9100 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9101
9102 # Check whether --with-sqlite or --without-sqlite was given.
9103 if test "${with_sqlite+set}" = set; then
9104   withval="$with_sqlite"
9105
9106   if test "$withval" != "no"; then
9107      if test "$withval" = "yes"; then
9108         if test -f /usr/local/include/sqlite.h; then
9109            SQLITE_INCDIR=/usr/local/include
9110            SQLITE_LIBDIR=/usr/local/lib
9111            SQLITE_BINDIR=/usr/local/bin
9112         elif test -f /usr/include/sqlite.h; then
9113            SQLITE_INCDIR=/usr/include
9114            SQLITE_LIBDIR=/usr/lib
9115            SQLITE_BINDIR=/usr/bin
9116         elif test -f $prefix/include/sqlite.h; then
9117            SQLITE_INCDIR=$prefix/include
9118            SQLITE_LIBDIR=$prefix/lib
9119            SQLITE_BINDIR=$prefix/bin
9120         else
9121            echo "$as_me:$LINENO: result: no" >&5
9122 echo "${ECHO_T}no" >&6
9123            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9124 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9125    { (exit 1); exit 1; }; }
9126         fi
9127      else
9128         if test -f $withval/sqlite.h; then
9129            SQLITE_INCDIR=$withval
9130            SQLITE_LIBDIR=$withval
9131            SQLITE_BINDIR=$withval
9132         elif test -f $withval/include/sqlite.h; then
9133            SQLITE_INCDIR=$withval/include
9134            SQLITE_LIBDIR=$withval/lib
9135            SQLITE_BINDIR=$withval/bin
9136         else
9137            echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9139            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9140 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9141    { (exit 1); exit 1; }; }
9142         fi
9143      fi
9144      SQL_INCLUDE=-I$SQLITE_INCDIR
9145      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9146      SQL_BINDIR=$SQLITE_BINDIR
9147
9148      cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_SQLITE 1
9150 _ACEOF
9151
9152      echo "$as_me:$LINENO: result: yes" >&5
9153 echo "${ECHO_T}yes" >&6
9154      db_found=yes
9155      support_sqlite=yes
9156      db_name=SQLite
9157      DB_NAME=sqlite
9158
9159   else
9160      echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6
9162   fi
9163
9164 else
9165
9166   echo "$as_me:$LINENO: result: no" >&5
9167 echo "${ECHO_T}no" >&6
9168
9169 fi;
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 cat >>confdefs.h <<\_ACEOF
9180 #define PROTOTYPES 1
9181 _ACEOF
9182
9183
9184 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9185     if test -z "$CCOPTS"; then
9186         CCOPTS='-g -O2 -Wall'
9187     fi
9188     CFLAGS="$CCOPTS"
9189 fi
9190
9191
9192
9193
9194 largefile_support="no"
9195
9196    # Check whether --enable-largefile or --disable-largefile was given.
9197 if test "${enable_largefile+set}" = set; then
9198   enableval="$enable_largefile"
9199
9200 fi;
9201    if test "$enable_largefile" != no; then
9202      if test -n "$ac_tool_prefix"; then
9203   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9204 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9205 echo "$as_me:$LINENO: checking for $ac_word" >&5
9206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9207 if test "${ac_cv_prog_GETCONF+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   if test -n "$GETCONF"; then
9211   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9212 else
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 for as_dir in $PATH
9215 do
9216   IFS=$as_save_IFS
9217   test -z "$as_dir" && as_dir=.
9218   for ac_exec_ext in '' $ac_executable_extensions; do
9219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9220     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222     break 2
9223   fi
9224 done
9225 done
9226
9227 fi
9228 fi
9229 GETCONF=$ac_cv_prog_GETCONF
9230 if test -n "$GETCONF"; then
9231   echo "$as_me:$LINENO: result: $GETCONF" >&5
9232 echo "${ECHO_T}$GETCONF" >&6
9233 else
9234   echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6
9236 fi
9237
9238 fi
9239 if test -z "$ac_cv_prog_GETCONF"; then
9240   ac_ct_GETCONF=$GETCONF
9241   # Extract the first word of "getconf", so it can be a program name with args.
9242 set dummy getconf; ac_word=$2
9243 echo "$as_me:$LINENO: checking for $ac_word" >&5
9244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9245 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9246   echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248   if test -n "$ac_ct_GETCONF"; then
9249   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9250 else
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9253 do
9254   IFS=$as_save_IFS
9255   test -z "$as_dir" && as_dir=.
9256   for ac_exec_ext in '' $ac_executable_extensions; do
9257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258     ac_cv_prog_ac_ct_GETCONF="getconf"
9259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9260     break 2
9261   fi
9262 done
9263 done
9264
9265 fi
9266 fi
9267 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9268 if test -n "$ac_ct_GETCONF"; then
9269   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9270 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9271 else
9272   echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9274 fi
9275
9276   GETCONF=$ac_ct_GETCONF
9277 else
9278   GETCONF="$ac_cv_prog_GETCONF"
9279 fi
9280
9281      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9282 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9283 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9287         ac_cv_sys_largefile_CFLAGS=no
9288         case "$host_os" in
9289            # IRIX 6.2 and later require cc -n32.
9290            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9291              if test "$GCC" != yes; then
9292                ac_cv_sys_largefile_CFLAGS=-n32
9293              fi
9294              ac_save_CC="$CC"
9295              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9296              cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 int
9304 main ()
9305 {
9306
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313   (eval $ac_link) 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } &&
9320          { ac_try='test -z "$ac_c_werror_flag"
9321                          || test ! -s conftest.err'
9322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323   (eval $ac_try) 2>&5
9324   ac_status=$?
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); }; } &&
9327          { ac_try='test -s conftest$ac_exeext'
9328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329   (eval $ac_try) 2>&5
9330   ac_status=$?
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); }; }; then
9333   :
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338 ac_cv_sys_largefile_CFLAGS=no
9339 fi
9340 rm -f conftest.err conftest.$ac_objext \
9341       conftest$ac_exeext conftest.$ac_ext
9342              CC="$ac_save_CC"
9343            esac
9344       }
9345 fi
9346 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9347 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9348      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9349 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9350 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9354         ac_cv_sys_largefile_LDFLAGS=no
9355
9356       }
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9359 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9360      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9361 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9362 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9366         ac_cv_sys_largefile_LIBS=no
9367
9368       }
9369 fi
9370 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9371 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9372
9373      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9374        case "$ac_flag" in
9375        no) ;;
9376        -D_FILE_OFFSET_BITS=*) ;;
9377        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9378        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9379        -D?* | -I?*)
9380          case "$ac_flag" in
9381    no) ;;
9382    ?*)
9383      case "$CPPFLAGS" in
9384      '') CPPFLAGS="$ac_flag" ;;
9385      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9386      esac ;;
9387    esac ;;
9388        *)
9389          case "$ac_flag" in
9390    no) ;;
9391    ?*)
9392      case "$CFLAGS" in
9393      '') CFLAGS="$ac_flag" ;;
9394      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9395      esac ;;
9396    esac ;;
9397        esac
9398      done
9399      case "$ac_cv_sys_largefile_LDFLAGS" in
9400    no) ;;
9401    ?*)
9402      case "$LDFLAGS" in
9403      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9404      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9405      esac ;;
9406    esac
9407      case "$ac_cv_sys_largefile_LIBS" in
9408    no) ;;
9409    ?*)
9410      case "$LIBS" in
9411      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9412      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9413      esac ;;
9414    esac
9415      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9416 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9417 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   ac_cv_sys_file_offset_bits=no
9421       ac_cv_sys_file_offset_bits=64
9422       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9423         case "$ac_flag" in
9424         -D_FILE_OFFSET_BITS)
9425           ac_cv_sys_file_offset_bits=1 ;;
9426         -D_FILE_OFFSET_BITS=*)
9427           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9428         esac
9429       done
9430
9431 fi
9432 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9433 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9434    if test "$ac_cv_sys_file_offset_bits" != no; then
9435
9436 cat >>confdefs.h <<_ACEOF
9437 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9438 _ACEOF
9439
9440    fi
9441      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9442 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9443 if test "${ac_cv_sys_largefile_source+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446   ac_cv_sys_largefile_source=no
9447       ac_cv_sys_largefile_source=1
9448       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9449         case "$ac_flag" in
9450         -D_LARGEFILE_SOURCE)
9451           ac_cv_sys_largefile_source=1 ;;
9452         -D_LARGEFILE_SOURCE=*)
9453           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9454         esac
9455       done
9456
9457 fi
9458 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9459 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9460    if test "$ac_cv_sys_largefile_source" != no; then
9461
9462 cat >>confdefs.h <<_ACEOF
9463 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9464 _ACEOF
9465
9466    fi
9467      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9468 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9469 if test "${ac_cv_sys_large_files+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   ac_cv_sys_large_files=no
9473       ac_cv_sys_large_files=1
9474       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9475         case "$ac_flag" in
9476         -D_LARGE_FILES)
9477           ac_cv_sys_large_files=1 ;;
9478         -D_LARGE_FILES=*)
9479           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9480         esac
9481       done
9482
9483 fi
9484 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9485 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9486    if test "$ac_cv_sys_large_files" != no; then
9487
9488 cat >>confdefs.h <<_ACEOF
9489 #define _LARGE_FILES $ac_cv_sys_large_files
9490 _ACEOF
9491
9492    fi
9493    fi
9494
9495
9496
9497 echo "$as_me:$LINENO: checking for X" >&5
9498 echo $ECHO_N "checking for X... $ECHO_C" >&6
9499
9500
9501 # Check whether --with-x or --without-x was given.
9502 if test "${with_x+set}" = set; then
9503   withval="$with_x"
9504
9505 fi;
9506 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9507 if test "x$with_x" = xno; then
9508   # The user explicitly disabled X.
9509   have_x=disabled
9510 else
9511   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9512     # Both variables are already set.
9513     have_x=yes
9514   else
9515     if test "${ac_cv_have_x+set}" = set; then
9516   echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518   # One or both of the vars are not set, and there is no cached value.
9519 ac_x_includes=no ac_x_libraries=no
9520 rm -fr conftest.dir
9521 if mkdir conftest.dir; then
9522   cd conftest.dir
9523   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9524   cat >Imakefile <<'_ACEOF'
9525 acfindx:
9526         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9527 _ACEOF
9528   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9529     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9530     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9531     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9532     for ac_extension in a so sl; do
9533       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9534          test -f $ac_im_libdir/libX11.$ac_extension; then
9535         ac_im_usrlibdir=$ac_im_libdir; break
9536       fi
9537     done
9538     # Screen out bogus values from the imake configuration.  They are
9539     # bogus both because they are the default anyway, and because
9540     # using them would break gcc on systems where it needs fixed includes.
9541     case $ac_im_incroot in
9542         /usr/include) ;;
9543         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9544     esac
9545     case $ac_im_usrlibdir in
9546         /usr/lib | /lib) ;;
9547         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9548     esac
9549   fi
9550   cd ..
9551   rm -fr conftest.dir
9552 fi
9553
9554 # Standard set of common directories for X headers.
9555 # Check X11 before X11Rn because it is often a symlink to the current release.
9556 ac_x_header_dirs='
9557 /usr/X11/include
9558 /usr/X11R6/include
9559 /usr/X11R5/include
9560 /usr/X11R4/include
9561
9562 /usr/include/X11
9563 /usr/include/X11R6
9564 /usr/include/X11R5
9565 /usr/include/X11R4
9566
9567 /usr/local/X11/include
9568 /usr/local/X11R6/include
9569 /usr/local/X11R5/include
9570 /usr/local/X11R4/include
9571
9572 /usr/local/include/X11
9573 /usr/local/include/X11R6
9574 /usr/local/include/X11R5
9575 /usr/local/include/X11R4
9576
9577 /usr/X386/include
9578 /usr/x386/include
9579 /usr/XFree86/include/X11
9580
9581 /usr/include
9582 /usr/local/include
9583 /usr/unsupported/include
9584 /usr/athena/include
9585 /usr/local/x11r5/include
9586 /usr/lpp/Xamples/include
9587
9588 /usr/openwin/include
9589 /usr/openwin/share/include'
9590
9591 if test "$ac_x_includes" = no; then
9592   # Guess where to find include files, by looking for Intrinsic.h.
9593   # First, try using that file with no special directory specified.
9594   cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600 #include <X11/Intrinsic.h>
9601 _ACEOF
9602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9604   ac_status=$?
9605   grep -v '^ *+' conftest.er1 >conftest.err
9606   rm -f conftest.er1
9607   cat conftest.err >&5
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } >/dev/null; then
9610   if test -s conftest.err; then
9611     ac_cpp_err=$ac_c_preproc_warn_flag
9612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9613   else
9614     ac_cpp_err=
9615   fi
9616 else
9617   ac_cpp_err=yes
9618 fi
9619 if test -z "$ac_cpp_err"; then
9620   # We can compile using X headers with no special include directory.
9621 ac_x_includes=
9622 else
9623   echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626   for ac_dir in $ac_x_header_dirs; do
9627   if test -r "$ac_dir/X11/Intrinsic.h"; then
9628     ac_x_includes=$ac_dir
9629     break
9630   fi
9631 done
9632 fi
9633 rm -f conftest.err conftest.$ac_ext
9634 fi # $ac_x_includes = no
9635
9636 if test "$ac_x_libraries" = no; then
9637   # Check for the libraries.
9638   # See if we find them without any special options.
9639   # Don't add to $LIBS permanently.
9640   ac_save_LIBS=$LIBS
9641   LIBS="-lXt $LIBS"
9642   cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648 #include <X11/Intrinsic.h>
9649 int
9650 main ()
9651 {
9652 XtMalloc (0)
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659   (eval $ac_link) 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -z "$ac_c_werror_flag"
9667                          || test ! -s conftest.err'
9668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669   (eval $ac_try) 2>&5
9670   ac_status=$?
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); }; } &&
9673          { ac_try='test -s conftest$ac_exeext'
9674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675   (eval $ac_try) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679   LIBS=$ac_save_LIBS
9680 # We can link X programs with no special library path.
9681 ac_x_libraries=
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 LIBS=$ac_save_LIBS
9687 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9688 do
9689   # Don't even attempt the hair of trying to link an X program!
9690   for ac_extension in a so sl; do
9691     if test -r $ac_dir/libXt.$ac_extension; then
9692       ac_x_libraries=$ac_dir
9693       break 2
9694     fi
9695   done
9696 done
9697 fi
9698 rm -f conftest.err conftest.$ac_objext \
9699       conftest$ac_exeext conftest.$ac_ext
9700 fi # $ac_x_libraries = no
9701
9702 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9703   # Didn't find X anywhere.  Cache the known absence of X.
9704   ac_cv_have_x="have_x=no"
9705 else
9706   # Record where we found X for the cache.
9707   ac_cv_have_x="have_x=yes \
9708                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9709 fi
9710 fi
9711
9712   fi
9713   eval "$ac_cv_have_x"
9714 fi # $with_x != no
9715
9716 if test "$have_x" != yes; then
9717   echo "$as_me:$LINENO: result: $have_x" >&5
9718 echo "${ECHO_T}$have_x" >&6
9719   no_x=yes
9720 else
9721   # If each of the values was on the command line, it overrides each guess.
9722   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9723   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9724   # Update the cache value to reflect the command line values.
9725   ac_cv_have_x="have_x=yes \
9726                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9727   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9728 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9729 fi
9730
9731 if test "$no_x" = yes; then
9732   # Not all programs may use this symbol, but it does not hurt to define it.
9733
9734 cat >>confdefs.h <<\_ACEOF
9735 #define X_DISPLAY_MISSING 1
9736 _ACEOF
9737
9738   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9739 else
9740   if test -n "$x_includes"; then
9741     X_CFLAGS="$X_CFLAGS -I$x_includes"
9742   fi
9743
9744   # It would also be nice to do this for all -L options, not just this one.
9745   if test -n "$x_libraries"; then
9746     X_LIBS="$X_LIBS -L$x_libraries"
9747     # For Solaris; some versions of Sun CC require a space after -R and
9748     # others require no space.  Words are not sufficient . . . .
9749     case `(uname -sr) 2>/dev/null` in
9750     "SunOS 5"*)
9751       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9752 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9753       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9754       cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760
9761 int
9762 main ()
9763 {
9764
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771   (eval $ac_link) 2>conftest.er1
9772   ac_status=$?
9773   grep -v '^ *+' conftest.er1 >conftest.err
9774   rm -f conftest.er1
9775   cat conftest.err >&5
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } &&
9778          { ac_try='test -z "$ac_c_werror_flag"
9779                          || test ! -s conftest.err'
9780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781   (eval $ac_try) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787   (eval $ac_try) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); }; }; then
9791   ac_R_nospace=yes
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_R_nospace=no
9797 fi
9798 rm -f conftest.err conftest.$ac_objext \
9799       conftest$ac_exeext conftest.$ac_ext
9800       if test $ac_R_nospace = yes; then
9801         echo "$as_me:$LINENO: result: no" >&5
9802 echo "${ECHO_T}no" >&6
9803         X_LIBS="$X_LIBS -R$x_libraries"
9804       else
9805         LIBS="$ac_xsave_LIBS -R $x_libraries"
9806         cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812
9813 int
9814 main ()
9815 {
9816
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823   (eval $ac_link) 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } &&
9830          { ac_try='test -z "$ac_c_werror_flag"
9831                          || test ! -s conftest.err'
9832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833   (eval $ac_try) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; } &&
9837          { ac_try='test -s conftest$ac_exeext'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   ac_R_space=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_R_space=no
9849 fi
9850 rm -f conftest.err conftest.$ac_objext \
9851       conftest$ac_exeext conftest.$ac_ext
9852         if test $ac_R_space = yes; then
9853           echo "$as_me:$LINENO: result: yes" >&5
9854 echo "${ECHO_T}yes" >&6
9855           X_LIBS="$X_LIBS -R $x_libraries"
9856         else
9857           echo "$as_me:$LINENO: result: neither works" >&5
9858 echo "${ECHO_T}neither works" >&6
9859         fi
9860       fi
9861       LIBS=$ac_xsave_LIBS
9862     esac
9863   fi
9864
9865   # Check for system-dependent libraries X programs must link with.
9866   # Do this before checking for the system-independent R6 libraries
9867   # (-lICE), since we may need -lsocket or whatever for X linking.
9868
9869   if test "$ISC" = yes; then
9870     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9871   else
9872     # Martyn Johnson says this is needed for Ultrix, if the X
9873     # libraries were built with DECnet support.  And Karl Berry says
9874     # the Alpha needs dnet_stub (dnet does not exist).
9875     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9876     cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882
9883 /* Override any gcc2 internal prototype to avoid an error.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 /* We use char because int might match the return type of a gcc2
9888    builtin and then its argument prototype would still apply.  */
9889 char XOpenDisplay ();
9890 int
9891 main ()
9892 {
9893 XOpenDisplay ();
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900   (eval $ac_link) 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } &&
9907          { ac_try='test -z "$ac_c_werror_flag"
9908                          || test ! -s conftest.err'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; } &&
9914          { ac_try='test -s conftest$ac_exeext'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   :
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9926 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9927 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9928   echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930   ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-ldnet  $LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938
9939 /* Override any gcc2 internal prototype to avoid an error.  */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 /* We use char because int might match the return type of a gcc2
9944    builtin and then its argument prototype would still apply.  */
9945 char dnet_ntoa ();
9946 int
9947 main ()
9948 {
9949 dnet_ntoa ();
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956   (eval $ac_link) 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag"
9964                          || test ! -s conftest.err'
9965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966   (eval $ac_try) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_lib_dnet_dnet_ntoa=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 ac_cv_lib_dnet_dnet_ntoa=no
9982 fi
9983 rm -f conftest.err conftest.$ac_objext \
9984       conftest$ac_exeext conftest.$ac_ext
9985 LIBS=$ac_check_lib_save_LIBS
9986 fi
9987 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9988 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9989 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9990   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9991 fi
9992
9993     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9994       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9995 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9996 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   ac_check_lib_save_LIBS=$LIBS
10000 LIBS="-ldnet_stub  $LIBS"
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007
10008 /* Override any gcc2 internal prototype to avoid an error.  */
10009 #ifdef __cplusplus
10010 extern "C"
10011 #endif
10012 /* We use char because int might match the return type of a gcc2
10013    builtin and then its argument prototype would still apply.  */
10014 char dnet_ntoa ();
10015 int
10016 main ()
10017 {
10018 dnet_ntoa ();
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025   (eval $ac_link) 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_c_werror_flag"
10033                          || test ! -s conftest.err'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; } &&
10039          { ac_try='test -s conftest$ac_exeext'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ac_cv_lib_dnet_stub_dnet_ntoa=no
10051 fi
10052 rm -f conftest.err conftest.$ac_objext \
10053       conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10055 fi
10056 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10058 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10059   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10060 fi
10061
10062     fi
10063 fi
10064 rm -f conftest.err conftest.$ac_objext \
10065       conftest$ac_exeext conftest.$ac_ext
10066     LIBS="$ac_xsave_LIBS"
10067
10068     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10069     # to get the SysV transport functions.
10070     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10071     # needs -lnsl.
10072     # The nsl library prevents programs from opening the X display
10073     # on Irix 5.2, according to T.E. Dickey.
10074     # The functions gethostbyname, getservbyname, and inet_addr are
10075     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10076     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10077 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10078 if test "${ac_cv_func_gethostbyname+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10089 #define gethostbyname innocuous_gethostbyname
10090
10091 /* System header to define __stub macros and hopefully few prototypes,
10092     which can conflict with char gethostbyname (); below.
10093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094     <limits.h> exists even on freestanding compilers.  */
10095
10096 #ifdef __STDC__
10097 # include <limits.h>
10098 #else
10099 # include <assert.h>
10100 #endif
10101
10102 #undef gethostbyname
10103
10104 /* Override any gcc2 internal prototype to avoid an error.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 {
10108 #endif
10109 /* We use char because int might match the return type of a gcc2
10110    builtin and then its argument prototype would still apply.  */
10111 char gethostbyname ();
10112 /* The GNU C library defines this for functions which it implements
10113     to always fail with ENOSYS.  Some functions are actually named
10114     something starting with __ and the normal name is an alias.  */
10115 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10116 choke me
10117 #else
10118 char (*f) () = gethostbyname;
10119 #endif
10120 #ifdef __cplusplus
10121 }
10122 #endif
10123
10124 int
10125 main ()
10126 {
10127 return f != gethostbyname;
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134   (eval $ac_link) 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -z "$ac_c_werror_flag"
10142                          || test ! -s conftest.err'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   ac_cv_func_gethostbyname=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_func_gethostbyname=no
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10165 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10166
10167     if test $ac_cv_func_gethostbyname = no; then
10168       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10169 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10170 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-lnsl  $LIBS"
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181
10182 /* Override any gcc2 internal prototype to avoid an error.  */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 /* We use char because int might match the return type of a gcc2
10187    builtin and then its argument prototype would still apply.  */
10188 char gethostbyname ();
10189 int
10190 main ()
10191 {
10192 gethostbyname ();
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199   (eval $ac_link) 2>conftest.er1
10200   ac_status=$?
10201   grep -v '^ *+' conftest.er1 >conftest.err
10202   rm -f conftest.er1
10203   cat conftest.err >&5
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); } &&
10206          { ac_try='test -z "$ac_c_werror_flag"
10207                          || test ! -s conftest.err'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; } &&
10213          { ac_try='test -s conftest$ac_exeext'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_lib_nsl_gethostbyname=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 ac_cv_lib_nsl_gethostbyname=no
10225 fi
10226 rm -f conftest.err conftest.$ac_objext \
10227       conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10229 fi
10230 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10231 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10232 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10233   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10234 fi
10235
10236       if test $ac_cv_lib_nsl_gethostbyname = no; then
10237         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10238 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10239 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   ac_check_lib_save_LIBS=$LIBS
10243 LIBS="-lbsd  $LIBS"
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h.  */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h.  */
10250
10251 /* Override any gcc2 internal prototype to avoid an error.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 /* We use char because int might match the return type of a gcc2
10256    builtin and then its argument prototype would still apply.  */
10257 char gethostbyname ();
10258 int
10259 main ()
10260 {
10261 gethostbyname ();
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268   (eval $ac_link) 2>conftest.er1
10269   ac_status=$?
10270   grep -v '^ *+' conftest.er1 >conftest.err
10271   rm -f conftest.er1
10272   cat conftest.err >&5
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } &&
10275          { ac_try='test -z "$ac_c_werror_flag"
10276                          || test ! -s conftest.err'
10277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; } &&
10282          { ac_try='test -s conftest$ac_exeext'
10283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284   (eval $ac_try) 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); }; }; then
10288   ac_cv_lib_bsd_gethostbyname=yes
10289 else
10290   echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 ac_cv_lib_bsd_gethostbyname=no
10294 fi
10295 rm -f conftest.err conftest.$ac_objext \
10296       conftest$ac_exeext conftest.$ac_ext
10297 LIBS=$ac_check_lib_save_LIBS
10298 fi
10299 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10300 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10301 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10302   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10303 fi
10304
10305       fi
10306     fi
10307
10308     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10309     # socket/setsockopt and other routines are undefined under SCO ODT
10310     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10311     # on later versions), says Simon Leinen: it contains gethostby*
10312     # variants that don't use the name server (or something).  -lsocket
10313     # must be given before -lnsl if both are needed.  We assume that
10314     # if connect needs -lnsl, so does gethostbyname.
10315     echo "$as_me:$LINENO: checking for connect" >&5
10316 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10317 if test "${ac_cv_func_connect+set}" = set; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10328 #define connect innocuous_connect
10329
10330 /* System header to define __stub macros and hopefully few prototypes,
10331     which can conflict with char connect (); below.
10332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10333     <limits.h> exists even on freestanding compilers.  */
10334
10335 #ifdef __STDC__
10336 # include <limits.h>
10337 #else
10338 # include <assert.h>
10339 #endif
10340
10341 #undef connect
10342
10343 /* Override any gcc2 internal prototype to avoid an error.  */
10344 #ifdef __cplusplus
10345 extern "C"
10346 {
10347 #endif
10348 /* We use char because int might match the return type of a gcc2
10349    builtin and then its argument prototype would still apply.  */
10350 char connect ();
10351 /* The GNU C library defines this for functions which it implements
10352     to always fail with ENOSYS.  Some functions are actually named
10353     something starting with __ and the normal name is an alias.  */
10354 #if defined (__stub_connect) || defined (__stub___connect)
10355 choke me
10356 #else
10357 char (*f) () = connect;
10358 #endif
10359 #ifdef __cplusplus
10360 }
10361 #endif
10362
10363 int
10364 main ()
10365 {
10366 return f != connect;
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373   (eval $ac_link) 2>conftest.er1
10374   ac_status=$?
10375   grep -v '^ *+' conftest.er1 >conftest.err
10376   rm -f conftest.er1
10377   cat conftest.err >&5
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } &&
10380          { ac_try='test -z "$ac_c_werror_flag"
10381                          || test ! -s conftest.err'
10382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383   (eval $ac_try) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; } &&
10387          { ac_try='test -s conftest$ac_exeext'
10388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389   (eval $ac_try) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393   ac_cv_func_connect=yes
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398 ac_cv_func_connect=no
10399 fi
10400 rm -f conftest.err conftest.$ac_objext \
10401       conftest$ac_exeext conftest.$ac_ext
10402 fi
10403 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10404 echo "${ECHO_T}$ac_cv_func_connect" >&6
10405
10406     if test $ac_cv_func_connect = no; then
10407       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10408 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10409 if test "${ac_cv_lib_socket_connect+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420
10421 /* Override any gcc2 internal prototype to avoid an error.  */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 /* We use char because int might match the return type of a gcc2
10426    builtin and then its argument prototype would still apply.  */
10427 char connect ();
10428 int
10429 main ()
10430 {
10431 connect ();
10432   ;
10433   return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438   (eval $ac_link) 2>conftest.er1
10439   ac_status=$?
10440   grep -v '^ *+' conftest.er1 >conftest.err
10441   rm -f conftest.er1
10442   cat conftest.err >&5
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } &&
10445          { ac_try='test -z "$ac_c_werror_flag"
10446                          || test ! -s conftest.err'
10447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448   (eval $ac_try) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; } &&
10452          { ac_try='test -s conftest$ac_exeext'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; }; then
10458   ac_cv_lib_socket_connect=yes
10459 else
10460   echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10462
10463 ac_cv_lib_socket_connect=no
10464 fi
10465 rm -f conftest.err conftest.$ac_objext \
10466       conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_lib_save_LIBS
10468 fi
10469 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10470 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10471 if test $ac_cv_lib_socket_connect = yes; then
10472   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10473 fi
10474
10475     fi
10476
10477     # Guillermo Gomez says -lposix is necessary on A/UX.
10478     echo "$as_me:$LINENO: checking for remove" >&5
10479 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10480 if test "${ac_cv_func_remove+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h.  */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h.  */
10489 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10491 #define remove innocuous_remove
10492
10493 /* System header to define __stub macros and hopefully few prototypes,
10494     which can conflict with char remove (); below.
10495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10496     <limits.h> exists even on freestanding compilers.  */
10497
10498 #ifdef __STDC__
10499 # include <limits.h>
10500 #else
10501 # include <assert.h>
10502 #endif
10503
10504 #undef remove
10505
10506 /* Override any gcc2 internal prototype to avoid an error.  */
10507 #ifdef __cplusplus
10508 extern "C"
10509 {
10510 #endif
10511 /* We use char because int might match the return type of a gcc2
10512    builtin and then its argument prototype would still apply.  */
10513 char remove ();
10514 /* The GNU C library defines this for functions which it implements
10515     to always fail with ENOSYS.  Some functions are actually named
10516     something starting with __ and the normal name is an alias.  */
10517 #if defined (__stub_remove) || defined (__stub___remove)
10518 choke me
10519 #else
10520 char (*f) () = remove;
10521 #endif
10522 #ifdef __cplusplus
10523 }
10524 #endif
10525
10526 int
10527 main ()
10528 {
10529 return f != remove;
10530   ;
10531   return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536   (eval $ac_link) 2>conftest.er1
10537   ac_status=$?
10538   grep -v '^ *+' conftest.er1 >conftest.err
10539   rm -f conftest.er1
10540   cat conftest.err >&5
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); } &&
10543          { ac_try='test -z "$ac_c_werror_flag"
10544                          || test ! -s conftest.err'
10545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546   (eval $ac_try) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; } &&
10550          { ac_try='test -s conftest$ac_exeext'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   ac_cv_func_remove=yes
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 ac_cv_func_remove=no
10562 fi
10563 rm -f conftest.err conftest.$ac_objext \
10564       conftest$ac_exeext conftest.$ac_ext
10565 fi
10566 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10567 echo "${ECHO_T}$ac_cv_func_remove" >&6
10568
10569     if test $ac_cv_func_remove = no; then
10570       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10572 if test "${ac_cv_lib_posix_remove+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lposix  $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583
10584 /* Override any gcc2 internal prototype to avoid an error.  */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 /* We use char because int might match the return type of a gcc2
10589    builtin and then its argument prototype would still apply.  */
10590 char remove ();
10591 int
10592 main ()
10593 {
10594 remove ();
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601   (eval $ac_link) 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -z "$ac_c_werror_flag"
10609                          || test ! -s conftest.err'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; } &&
10615          { ac_try='test -s conftest$ac_exeext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   ac_cv_lib_posix_remove=yes
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 ac_cv_lib_posix_remove=no
10627 fi
10628 rm -f conftest.err conftest.$ac_objext \
10629       conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10631 fi
10632 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10633 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10634 if test $ac_cv_lib_posix_remove = yes; then
10635   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10636 fi
10637
10638     fi
10639
10640     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10641     echo "$as_me:$LINENO: checking for shmat" >&5
10642 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10643 if test "${ac_cv_func_shmat+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10654 #define shmat innocuous_shmat
10655
10656 /* System header to define __stub macros and hopefully few prototypes,
10657     which can conflict with char shmat (); below.
10658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10659     <limits.h> exists even on freestanding compilers.  */
10660
10661 #ifdef __STDC__
10662 # include <limits.h>
10663 #else
10664 # include <assert.h>
10665 #endif
10666
10667 #undef shmat
10668
10669 /* Override any gcc2 internal prototype to avoid an error.  */
10670 #ifdef __cplusplus
10671 extern "C"
10672 {
10673 #endif
10674 /* We use char because int might match the return type of a gcc2
10675    builtin and then its argument prototype would still apply.  */
10676 char shmat ();
10677 /* The GNU C library defines this for functions which it implements
10678     to always fail with ENOSYS.  Some functions are actually named
10679     something starting with __ and the normal name is an alias.  */
10680 #if defined (__stub_shmat) || defined (__stub___shmat)
10681 choke me
10682 #else
10683 char (*f) () = shmat;
10684 #endif
10685 #ifdef __cplusplus
10686 }
10687 #endif
10688
10689 int
10690 main ()
10691 {
10692 return f != shmat;
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699   (eval $ac_link) 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } &&
10706          { ac_try='test -z "$ac_c_werror_flag"
10707                          || test ! -s conftest.err'
10708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709   (eval $ac_try) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; } &&
10713          { ac_try='test -s conftest$ac_exeext'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   ac_cv_func_shmat=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_cv_func_shmat=no
10725 fi
10726 rm -f conftest.err conftest.$ac_objext \
10727       conftest$ac_exeext conftest.$ac_ext
10728 fi
10729 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10730 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10731
10732     if test $ac_cv_func_shmat = no; then
10733       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10734 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10735 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10736   echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738   ac_check_lib_save_LIBS=$LIBS
10739 LIBS="-lipc  $LIBS"
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h.  */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h.  */
10746
10747 /* Override any gcc2 internal prototype to avoid an error.  */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 /* We use char because int might match the return type of a gcc2
10752    builtin and then its argument prototype would still apply.  */
10753 char shmat ();
10754 int
10755 main ()
10756 {
10757 shmat ();
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764   (eval $ac_link) 2>conftest.er1
10765   ac_status=$?
10766   grep -v '^ *+' conftest.er1 >conftest.err
10767   rm -f conftest.er1
10768   cat conftest.err >&5
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); } &&
10771          { ac_try='test -z "$ac_c_werror_flag"
10772                          || test ! -s conftest.err'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; } &&
10778          { ac_try='test -s conftest$ac_exeext'
10779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780   (eval $ac_try) 2>&5
10781   ac_status=$?
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); }; }; then
10784   ac_cv_lib_ipc_shmat=yes
10785 else
10786   echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ac_cv_lib_ipc_shmat=no
10790 fi
10791 rm -f conftest.err conftest.$ac_objext \
10792       conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10794 fi
10795 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10796 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10797 if test $ac_cv_lib_ipc_shmat = yes; then
10798   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10799 fi
10800
10801     fi
10802   fi
10803
10804   # Check for libraries that X11R6 Xt/Xaw programs need.
10805   ac_save_LDFLAGS=$LDFLAGS
10806   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10807   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10808   # check for ICE first), but we must link in the order -lSM -lICE or
10809   # we get undefined symbols.  So assume we have SM if we have ICE.
10810   # These have to be linked with before -lX11, unlike the other
10811   # libraries we check for below, so use a different variable.
10812   # John Interrante, Karl Berry
10813   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10814 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10815 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10816   echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818   ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h.  */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h.  */
10826
10827 /* Override any gcc2 internal prototype to avoid an error.  */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 /* We use char because int might match the return type of a gcc2
10832    builtin and then its argument prototype would still apply.  */
10833 char IceConnectionNumber ();
10834 int
10835 main ()
10836 {
10837 IceConnectionNumber ();
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844   (eval $ac_link) 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_c_werror_flag"
10852                          || test ! -s conftest.err'
10853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854   (eval $ac_try) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; } &&
10858          { ac_try='test -s conftest$ac_exeext'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_cv_lib_ICE_IceConnectionNumber=yes
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_cv_lib_ICE_IceConnectionNumber=no
10870 fi
10871 rm -f conftest.err conftest.$ac_objext \
10872       conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10874 fi
10875 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10876 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10877 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10878   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10879 fi
10880
10881   LDFLAGS=$ac_save_LDFLAGS
10882
10883 fi
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913 for ac_header in \
10914         assert.h \
10915         fcntl.h \
10916         grp.h \
10917         pwd.h \
10918         libc.h \
10919         limits.h \
10920         stdarg.h \
10921         stdlib.h \
10922         stdint.h \
10923         string.h \
10924         termios.h \
10925         termcap.h \
10926         term.h \
10927         unistd.h \
10928         sys/bitypes.h \
10929         sys/byteorder.h \
10930         sys/ioctl.h \
10931         sys/select.h \
10932         sys/sockio.h \
10933         sys/time.h \
10934         sys/socket.h \
10935         arpa/nameser.h \
10936         resolv.h \
10937         mtio.h \
10938         sys/mtio.h \
10939         sys/tape.h \
10940         regex.h \
10941
10942 do
10943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10945   echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10948   echo $ECHO_N "(cached) $ECHO_C" >&6
10949 fi
10950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10952 else
10953   # Is the header compilable?
10954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 $ac_includes_default
10963 #include <$ac_header>
10964 _ACEOF
10965 rm -f conftest.$ac_objext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10967   (eval $ac_compile) 2>conftest.er1
10968   ac_status=$?
10969   grep -v '^ *+' conftest.er1 >conftest.err
10970   rm -f conftest.er1
10971   cat conftest.err >&5
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } &&
10974          { ac_try='test -z "$ac_c_werror_flag"
10975                          || test ! -s conftest.err'
10976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977   (eval $ac_try) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; } &&
10981          { ac_try='test -s conftest.$ac_objext'
10982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983   (eval $ac_try) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; }; then
10987   ac_header_compiler=yes
10988 else
10989   echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10991
10992 ac_header_compiler=no
10993 fi
10994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10996 echo "${ECHO_T}$ac_header_compiler" >&6
10997
10998 # Is the header present?
10999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 #include <$ac_header>
11008 _ACEOF
11009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } >/dev/null; then
11017   if test -s conftest.err; then
11018     ac_cpp_err=$ac_c_preproc_warn_flag
11019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11020   else
11021     ac_cpp_err=
11022   fi
11023 else
11024   ac_cpp_err=yes
11025 fi
11026 if test -z "$ac_cpp_err"; then
11027   ac_header_preproc=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032   ac_header_preproc=no
11033 fi
11034 rm -f conftest.err conftest.$ac_ext
11035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036 echo "${ECHO_T}$ac_header_preproc" >&6
11037
11038 # So?  What about this header?
11039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11040   yes:no: )
11041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045     ac_header_preproc=yes
11046     ;;
11047   no:yes:* )
11048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11060     (
11061       cat <<\_ASBOX
11062 ## ------------------------------------------ ##
11063 ## Report this to the AC_PACKAGE_NAME lists.  ##
11064 ## ------------------------------------------ ##
11065 _ASBOX
11066     ) |
11067       sed "s/^/$as_me: WARNING:     /" >&2
11068     ;;
11069 esac
11070 echo "$as_me:$LINENO: checking for $ac_header" >&5
11071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11073   echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075   eval "$as_ac_Header=\$ac_header_preproc"
11076 fi
11077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11079
11080 fi
11081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11082   cat >>confdefs.h <<_ACEOF
11083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11084 _ACEOF
11085
11086 fi
11087
11088 done
11089
11090 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11092 if test "${ac_cv_header_stdc+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 #include <stdlib.h>
11102 #include <stdarg.h>
11103 #include <string.h>
11104 #include <float.h>
11105
11106 int
11107 main ()
11108 {
11109
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 rm -f conftest.$ac_objext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116   (eval $ac_compile) 2>conftest.er1
11117   ac_status=$?
11118   grep -v '^ *+' conftest.er1 >conftest.err
11119   rm -f conftest.er1
11120   cat conftest.err >&5
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -z "$ac_c_werror_flag"
11124                          || test ! -s conftest.err'
11125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126   (eval $ac_try) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; } &&
11130          { ac_try='test -s conftest.$ac_objext'
11131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132   (eval $ac_try) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; }; then
11136   ac_cv_header_stdc=yes
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 ac_cv_header_stdc=no
11142 fi
11143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144
11145 if test $ac_cv_header_stdc = yes; then
11146   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11147   cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153 #include <string.h>
11154
11155 _ACEOF
11156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11157   $EGREP "memchr" >/dev/null 2>&1; then
11158   :
11159 else
11160   ac_cv_header_stdc=no
11161 fi
11162 rm -f conftest*
11163
11164 fi
11165
11166 if test $ac_cv_header_stdc = yes; then
11167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11168   cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174 #include <stdlib.h>
11175
11176 _ACEOF
11177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11178   $EGREP "free" >/dev/null 2>&1; then
11179   :
11180 else
11181   ac_cv_header_stdc=no
11182 fi
11183 rm -f conftest*
11184
11185 fi
11186
11187 if test $ac_cv_header_stdc = yes; then
11188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11189   if test "$cross_compiling" = yes; then
11190   :
11191 else
11192   cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198 #include <ctype.h>
11199 #if ((' ' & 0x0FF) == 0x020)
11200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11202 #else
11203 # define ISLOWER(c) \
11204                    (('a' <= (c) && (c) <= 'i') \
11205                      || ('j' <= (c) && (c) <= 'r') \
11206                      || ('s' <= (c) && (c) <= 'z'))
11207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11208 #endif
11209
11210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11211 int
11212 main ()
11213 {
11214   int i;
11215   for (i = 0; i < 256; i++)
11216     if (XOR (islower (i), ISLOWER (i))
11217         || toupper (i) != TOUPPER (i))
11218       exit(2);
11219   exit (0);
11220 }
11221 _ACEOF
11222 rm -f conftest$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224   (eval $ac_link) 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   :
11234 else
11235   echo "$as_me: program exited with status $ac_status" >&5
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239 ( exit $ac_status )
11240 ac_cv_header_stdc=no
11241 fi
11242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11243 fi
11244 fi
11245 fi
11246 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11247 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11248 if test $ac_cv_header_stdc = yes; then
11249
11250 cat >>confdefs.h <<\_ACEOF
11251 #define STDC_HEADERS 1
11252 _ACEOF
11253
11254 fi
11255
11256 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11257 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11258 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267 #include <sys/types.h>
11268 int
11269 main ()
11270 {
11271 return makedev(0, 0);
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278   (eval $ac_link) 2>conftest.er1
11279   ac_status=$?
11280   grep -v '^ *+' conftest.er1 >conftest.err
11281   rm -f conftest.er1
11282   cat conftest.err >&5
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -z "$ac_c_werror_flag"
11286                          || test ! -s conftest.err'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; } &&
11292          { ac_try='test -s conftest$ac_exeext'
11293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294   (eval $ac_try) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; }; then
11298   ac_cv_header_sys_types_h_makedev=yes
11299 else
11300   echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 ac_cv_header_sys_types_h_makedev=no
11304 fi
11305 rm -f conftest.err conftest.$ac_objext \
11306       conftest$ac_exeext conftest.$ac_ext
11307
11308 fi
11309 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11310 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11311
11312 if test $ac_cv_header_sys_types_h_makedev = no; then
11313 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11314   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11315 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11316 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 fi
11319 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11320 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11321 else
11322   # Is the header compilable?
11323 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11324 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 $ac_includes_default
11332 #include <sys/mkdev.h>
11333 _ACEOF
11334 rm -f conftest.$ac_objext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11336   (eval $ac_compile) 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } &&
11343          { ac_try='test -z "$ac_c_werror_flag"
11344                          || test ! -s conftest.err'
11345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346   (eval $ac_try) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; } &&
11350          { ac_try='test -s conftest.$ac_objext'
11351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352   (eval $ac_try) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; }; then
11356   ac_header_compiler=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 ac_header_compiler=no
11362 fi
11363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11365 echo "${ECHO_T}$ac_header_compiler" >&6
11366
11367 # Is the header present?
11368 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11369 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 #include <sys/mkdev.h>
11377 _ACEOF
11378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11380   ac_status=$?
11381   grep -v '^ *+' conftest.er1 >conftest.err
11382   rm -f conftest.er1
11383   cat conftest.err >&5
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } >/dev/null; then
11386   if test -s conftest.err; then
11387     ac_cpp_err=$ac_c_preproc_warn_flag
11388     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11389   else
11390     ac_cpp_err=
11391   fi
11392 else
11393   ac_cpp_err=yes
11394 fi
11395 if test -z "$ac_cpp_err"; then
11396   ac_header_preproc=yes
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401   ac_header_preproc=no
11402 fi
11403 rm -f conftest.err conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11405 echo "${ECHO_T}$ac_header_preproc" >&6
11406
11407 # So?  What about this header?
11408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11409   yes:no: )
11410     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11411 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11413 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11414     ac_header_preproc=yes
11415     ;;
11416   no:yes:* )
11417     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11418 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11419     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11420 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11421     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11422 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11424 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11426 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11428 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11429     (
11430       cat <<\_ASBOX
11431 ## ------------------------------------------ ##
11432 ## Report this to the AC_PACKAGE_NAME lists.  ##
11433 ## ------------------------------------------ ##
11434 _ASBOX
11435     ) |
11436       sed "s/^/$as_me: WARNING:     /" >&2
11437     ;;
11438 esac
11439 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11440 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11441 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11445 fi
11446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11447 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11448
11449 fi
11450 if test $ac_cv_header_sys_mkdev_h = yes; then
11451
11452 cat >>confdefs.h <<\_ACEOF
11453 #define MAJOR_IN_MKDEV 1
11454 _ACEOF
11455
11456 fi
11457
11458
11459
11460   if test $ac_cv_header_sys_mkdev_h = no; then
11461     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11462   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11463 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11464 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 fi
11467 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11468 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11469 else
11470   # Is the header compilable?
11471 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11472 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h.  */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h.  */
11479 $ac_includes_default
11480 #include <sys/sysmacros.h>
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484   (eval $ac_compile) 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -z "$ac_c_werror_flag"
11492                          || test ! -s conftest.err'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; } &&
11498          { ac_try='test -s conftest.$ac_objext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   ac_header_compiler=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_header_compiler=no
11510 fi
11511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 echo "${ECHO_T}$ac_header_compiler" >&6
11514
11515 # Is the header present?
11516 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11517 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 #include <sys/sysmacros.h>
11525 _ACEOF
11526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11528   ac_status=$?
11529   grep -v '^ *+' conftest.er1 >conftest.err
11530   rm -f conftest.er1
11531   cat conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } >/dev/null; then
11534   if test -s conftest.err; then
11535     ac_cpp_err=$ac_c_preproc_warn_flag
11536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11537   else
11538     ac_cpp_err=
11539   fi
11540 else
11541   ac_cpp_err=yes
11542 fi
11543 if test -z "$ac_cpp_err"; then
11544   ac_header_preproc=yes
11545 else
11546   echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549   ac_header_preproc=no
11550 fi
11551 rm -f conftest.err conftest.$ac_ext
11552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553 echo "${ECHO_T}$ac_header_preproc" >&6
11554
11555 # So?  What about this header?
11556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557   yes:no: )
11558     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11559 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11561 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11562     ac_header_preproc=yes
11563     ;;
11564   no:yes:* )
11565     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11566 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11568 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11570 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11571     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11572 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11573     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11574 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11575     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11576 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11577     (
11578       cat <<\_ASBOX
11579 ## ------------------------------------------ ##
11580 ## Report this to the AC_PACKAGE_NAME lists.  ##
11581 ## ------------------------------------------ ##
11582 _ASBOX
11583     ) |
11584       sed "s/^/$as_me: WARNING:     /" >&2
11585     ;;
11586 esac
11587 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11588 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11589 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11593 fi
11594 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11595 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11596
11597 fi
11598 if test $ac_cv_header_sys_sysmacros_h = yes; then
11599
11600 cat >>confdefs.h <<\_ACEOF
11601 #define MAJOR_IN_SYSMACROS 1
11602 _ACEOF
11603
11604 fi
11605
11606
11607   fi
11608 fi
11609
11610
11611
11612
11613
11614
11615 ac_header_dirent=no
11616 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11617   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11618 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11619 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h.  */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h.  */
11629 #include <sys/types.h>
11630 #include <$ac_hdr>
11631
11632 int
11633 main ()
11634 {
11635 if ((DIR *) 0)
11636 return 0;
11637   ;
11638   return 0;
11639 }
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643   (eval $ac_compile) 2>conftest.er1
11644   ac_status=$?
11645   grep -v '^ *+' conftest.er1 >conftest.err
11646   rm -f conftest.er1
11647   cat conftest.err >&5
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -z "$ac_c_werror_flag"
11651                          || test ! -s conftest.err'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; } &&
11657          { ac_try='test -s conftest.$ac_objext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   eval "$as_ac_Header=yes"
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 eval "$as_ac_Header=no"
11669 fi
11670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11671 fi
11672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11675   cat >>confdefs.h <<_ACEOF
11676 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11677 _ACEOF
11678
11679 ac_header_dirent=$ac_hdr; break
11680 fi
11681
11682 done
11683 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11684 if test $ac_header_dirent = dirent.h; then
11685   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11686 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11687 if test "${ac_cv_search_opendir+set}" = set; then
11688   echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690   ac_func_search_save_LIBS=$LIBS
11691 ac_cv_search_opendir=no
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h.  */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h.  */
11698
11699 /* Override any gcc2 internal prototype to avoid an error.  */
11700 #ifdef __cplusplus
11701 extern "C"
11702 #endif
11703 /* We use char because int might match the return type of a gcc2
11704    builtin and then its argument prototype would still apply.  */
11705 char opendir ();
11706 int
11707 main ()
11708 {
11709 opendir ();
11710   ;
11711   return 0;
11712 }
11713 _ACEOF
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716   (eval $ac_link) 2>conftest.er1
11717   ac_status=$?
11718   grep -v '^ *+' conftest.er1 >conftest.err
11719   rm -f conftest.er1
11720   cat conftest.err >&5
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } &&
11723          { ac_try='test -z "$ac_c_werror_flag"
11724                          || test ! -s conftest.err'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; } &&
11730          { ac_try='test -s conftest$ac_exeext'
11731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732   (eval $ac_try) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }; then
11736   ac_cv_search_opendir="none required"
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 fi
11742 rm -f conftest.err conftest.$ac_objext \
11743       conftest$ac_exeext conftest.$ac_ext
11744 if test "$ac_cv_search_opendir" = no; then
11745   for ac_lib in dir; do
11746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11747     cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753
11754 /* Override any gcc2 internal prototype to avoid an error.  */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 /* We use char because int might match the return type of a gcc2
11759    builtin and then its argument prototype would still apply.  */
11760 char opendir ();
11761 int
11762 main ()
11763 {
11764 opendir ();
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771   (eval $ac_link) 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } &&
11778          { ac_try='test -z "$ac_c_werror_flag"
11779                          || test ! -s conftest.err'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; } &&
11785          { ac_try='test -s conftest$ac_exeext'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; }; then
11791   ac_cv_search_opendir="-l$ac_lib"
11792 break
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797 fi
11798 rm -f conftest.err conftest.$ac_objext \
11799       conftest$ac_exeext conftest.$ac_ext
11800   done
11801 fi
11802 LIBS=$ac_func_search_save_LIBS
11803 fi
11804 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11805 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11806 if test "$ac_cv_search_opendir" != no; then
11807   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11808
11809 fi
11810
11811 else
11812   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11814 if test "${ac_cv_search_opendir+set}" = set; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   ac_func_search_save_LIBS=$LIBS
11818 ac_cv_search_opendir=no
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825
11826 /* Override any gcc2 internal prototype to avoid an error.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 /* We use char because int might match the return type of a gcc2
11831    builtin and then its argument prototype would still apply.  */
11832 char opendir ();
11833 int
11834 main ()
11835 {
11836 opendir ();
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843   (eval $ac_link) 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -z "$ac_c_werror_flag"
11851                          || test ! -s conftest.err'
11852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853   (eval $ac_try) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; } &&
11857          { ac_try='test -s conftest$ac_exeext'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; }; then
11863   ac_cv_search_opendir="none required"
11864 else
11865   echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 fi
11869 rm -f conftest.err conftest.$ac_objext \
11870       conftest$ac_exeext conftest.$ac_ext
11871 if test "$ac_cv_search_opendir" = no; then
11872   for ac_lib in x; do
11873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11874     cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880
11881 /* Override any gcc2 internal prototype to avoid an error.  */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 /* We use char because int might match the return type of a gcc2
11886    builtin and then its argument prototype would still apply.  */
11887 char opendir ();
11888 int
11889 main ()
11890 {
11891 opendir ();
11892   ;
11893   return 0;
11894 }
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11898   (eval $ac_link) 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -z "$ac_c_werror_flag"
11906                          || test ! -s conftest.err'
11907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908   (eval $ac_try) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; } &&
11912          { ac_try='test -s conftest$ac_exeext'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   ac_cv_search_opendir="-l$ac_lib"
11919 break
11920 else
11921   echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924 fi
11925 rm -f conftest.err conftest.$ac_objext \
11926       conftest$ac_exeext conftest.$ac_ext
11927   done
11928 fi
11929 LIBS=$ac_func_search_save_LIBS
11930 fi
11931 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11932 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11933 if test "$ac_cv_search_opendir" != no; then
11934   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11935
11936 fi
11937
11938 fi
11939
11940 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11941 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11942 if test "${ac_cv_header_stat_broken+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 #include <sys/types.h>
11952 #include <sys/stat.h>
11953
11954 #if defined(S_ISBLK) && defined(S_IFDIR)
11955 # if S_ISBLK (S_IFDIR)
11956 You lose.
11957 # endif
11958 #endif
11959
11960 #if defined(S_ISBLK) && defined(S_IFCHR)
11961 # if S_ISBLK (S_IFCHR)
11962 You lose.
11963 # endif
11964 #endif
11965
11966 #if defined(S_ISLNK) && defined(S_IFREG)
11967 # if S_ISLNK (S_IFREG)
11968 You lose.
11969 # endif
11970 #endif
11971
11972 #if defined(S_ISSOCK) && defined(S_IFREG)
11973 # if S_ISSOCK (S_IFREG)
11974 You lose.
11975 # endif
11976 #endif
11977
11978 _ACEOF
11979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11980   $EGREP "You lose" >/dev/null 2>&1; then
11981   ac_cv_header_stat_broken=yes
11982 else
11983   ac_cv_header_stat_broken=no
11984 fi
11985 rm -f conftest*
11986
11987 fi
11988 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11989 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11990 if test $ac_cv_header_stat_broken = yes; then
11991
11992 cat >>confdefs.h <<\_ACEOF
11993 #define STAT_MACROS_BROKEN 1
11994 _ACEOF
11995
11996 fi
11997
11998 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11999 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12000 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009 #include <sys/types.h>
12010 #include <sys/wait.h>
12011 #ifndef WEXITSTATUS
12012 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12013 #endif
12014 #ifndef WIFEXITED
12015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12016 #endif
12017
12018 int
12019 main ()
12020 {
12021   int s;
12022   wait (&s);
12023   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030   (eval $ac_compile) 2>conftest.er1
12031   ac_status=$?
12032   grep -v '^ *+' conftest.er1 >conftest.err
12033   rm -f conftest.er1
12034   cat conftest.err >&5
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -z "$ac_c_werror_flag"
12038                          || test ! -s conftest.err'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; } &&
12044          { ac_try='test -s conftest.$ac_objext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   ac_cv_header_sys_wait_h=yes
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 ac_cv_header_sys_wait_h=no
12056 fi
12057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12060 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12061 if test $ac_cv_header_sys_wait_h = yes; then
12062
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_SYS_WAIT_H 1
12065 _ACEOF
12066
12067 fi
12068
12069 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12070 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12071 if test "${ac_cv_header_time+set}" = set; then
12072   echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074   cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h.  */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h.  */
12080 #include <sys/types.h>
12081 #include <sys/time.h>
12082 #include <time.h>
12083
12084 int
12085 main ()
12086 {
12087 if ((struct tm *) 0)
12088 return 0;
12089   ;
12090   return 0;
12091 }
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095   (eval $ac_compile) 2>conftest.er1
12096   ac_status=$?
12097   grep -v '^ *+' conftest.er1 >conftest.err
12098   rm -f conftest.er1
12099   cat conftest.err >&5
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } &&
12102          { ac_try='test -z "$ac_c_werror_flag"
12103                          || test ! -s conftest.err'
12104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105   (eval $ac_try) 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); }; } &&
12109          { ac_try='test -s conftest.$ac_objext'
12110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111   (eval $ac_try) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; }; then
12115   ac_cv_header_time=yes
12116 else
12117   echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 ac_cv_header_time=no
12121 fi
12122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12123 fi
12124 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12125 echo "${ECHO_T}$ac_cv_header_time" >&6
12126 if test $ac_cv_header_time = yes; then
12127
12128 cat >>confdefs.h <<\_ACEOF
12129 #define TIME_WITH_SYS_TIME 1
12130 _ACEOF
12131
12132 fi
12133
12134
12135 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12136 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12137 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 $ac_includes_default
12147 int
12148 main ()
12149 {
12150 static struct stat ac_aggr;
12151 if (ac_aggr.st_blksize)
12152 return 0;
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159   (eval $ac_compile) 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } &&
12166          { ac_try='test -z "$ac_c_werror_flag"
12167                          || test ! -s conftest.err'
12168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169   (eval $ac_try) 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; } &&
12173          { ac_try='test -s conftest.$ac_objext'
12174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175   (eval $ac_try) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; }; then
12179   ac_cv_member_struct_stat_st_blksize=yes
12180 else
12181   echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190 $ac_includes_default
12191 int
12192 main ()
12193 {
12194 static struct stat ac_aggr;
12195 if (sizeof ac_aggr.st_blksize)
12196 return 0;
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203   (eval $ac_compile) 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_c_werror_flag"
12211                          || test ! -s conftest.err'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest.$ac_objext'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   ac_cv_member_struct_stat_st_blksize=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228 ac_cv_member_struct_stat_st_blksize=no
12229 fi
12230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12231 fi
12232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12233 fi
12234 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12235 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12236 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12240 _ACEOF
12241
12242
12243 cat >>confdefs.h <<\_ACEOF
12244 #define HAVE_ST_BLKSIZE 1
12245 _ACEOF
12246
12247 fi
12248
12249
12250 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12251 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12252 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 $ac_includes_default
12262 int
12263 main ()
12264 {
12265 static struct stat ac_aggr;
12266 if (ac_aggr.st_blocks)
12267 return 0;
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274   (eval $ac_compile) 2>conftest.er1
12275   ac_status=$?
12276   grep -v '^ *+' conftest.er1 >conftest.err
12277   rm -f conftest.er1
12278   cat conftest.err >&5
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } &&
12281          { ac_try='test -z "$ac_c_werror_flag"
12282                          || test ! -s conftest.err'
12283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284   (eval $ac_try) 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; } &&
12288          { ac_try='test -s conftest.$ac_objext'
12289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290   (eval $ac_try) 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); }; }; then
12294   ac_cv_member_struct_stat_st_blocks=yes
12295 else
12296   echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305 $ac_includes_default
12306 int
12307 main ()
12308 {
12309 static struct stat ac_aggr;
12310 if (sizeof ac_aggr.st_blocks)
12311 return 0;
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12318   (eval $ac_compile) 2>conftest.er1
12319   ac_status=$?
12320   grep -v '^ *+' conftest.er1 >conftest.err
12321   rm -f conftest.er1
12322   cat conftest.err >&5
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); } &&
12325          { ac_try='test -z "$ac_c_werror_flag"
12326                          || test ! -s conftest.err'
12327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328   (eval $ac_try) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; } &&
12332          { ac_try='test -s conftest.$ac_objext'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; }; then
12338   ac_cv_member_struct_stat_st_blocks=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 ac_cv_member_struct_stat_st_blocks=no
12344 fi
12345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12346 fi
12347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12348 fi
12349 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12350 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12351 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12352
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12355 _ACEOF
12356
12357
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_ST_BLOCKS 1
12360 _ACEOF
12361
12362 else
12363   case $LIBOBJS in
12364     "fileblocks.$ac_objext"   | \
12365   *" fileblocks.$ac_objext"   | \
12366     "fileblocks.$ac_objext "* | \
12367   *" fileblocks.$ac_objext "* ) ;;
12368   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12369 esac
12370
12371 fi
12372
12373
12374 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12375 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12376 if test "${ac_cv_struct_tm+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 #include <sys/types.h>
12386 #include <time.h>
12387
12388 int
12389 main ()
12390 {
12391 struct tm *tp; tp->tm_sec;
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 rm -f conftest.$ac_objext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398   (eval $ac_compile) 2>conftest.er1
12399   ac_status=$?
12400   grep -v '^ *+' conftest.er1 >conftest.err
12401   rm -f conftest.er1
12402   cat conftest.err >&5
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } &&
12405          { ac_try='test -z "$ac_c_werror_flag"
12406                          || test ! -s conftest.err'
12407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408   (eval $ac_try) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; } &&
12412          { ac_try='test -s conftest.$ac_objext'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; }; then
12418   ac_cv_struct_tm=time.h
12419 else
12420   echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 ac_cv_struct_tm=sys/time.h
12424 fi
12425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12426 fi
12427 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12428 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12429 if test $ac_cv_struct_tm = sys/time.h; then
12430
12431 cat >>confdefs.h <<\_ACEOF
12432 #define TM_IN_SYS_TIME 1
12433 _ACEOF
12434
12435 fi
12436
12437 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12438 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12439 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12440   echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442   cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h.  */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h.  */
12448 #include <sys/types.h>
12449 #include <$ac_cv_struct_tm>
12450
12451
12452 int
12453 main ()
12454 {
12455 static struct tm ac_aggr;
12456 if (ac_aggr.tm_zone)
12457 return 0;
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464   (eval $ac_compile) 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -z "$ac_c_werror_flag"
12472                          || test ! -s conftest.err'
12473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474   (eval $ac_try) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; } &&
12478          { ac_try='test -s conftest.$ac_objext'
12479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480   (eval $ac_try) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; }; then
12484   ac_cv_member_struct_tm_tm_zone=yes
12485 else
12486   echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 #include <sys/types.h>
12496 #include <$ac_cv_struct_tm>
12497
12498
12499 int
12500 main ()
12501 {
12502 static struct tm ac_aggr;
12503 if (sizeof ac_aggr.tm_zone)
12504 return 0;
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511   (eval $ac_compile) 2>conftest.er1
12512   ac_status=$?
12513   grep -v '^ *+' conftest.er1 >conftest.err
12514   rm -f conftest.er1
12515   cat conftest.err >&5
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } &&
12518          { ac_try='test -z "$ac_c_werror_flag"
12519                          || test ! -s conftest.err'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; } &&
12525          { ac_try='test -s conftest.$ac_objext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   ac_cv_member_struct_tm_tm_zone=yes
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_cv_member_struct_tm_tm_zone=no
12537 fi
12538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12543 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12544 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12545
12546 cat >>confdefs.h <<_ACEOF
12547 #define HAVE_STRUCT_TM_TM_ZONE 1
12548 _ACEOF
12549
12550
12551 fi
12552
12553 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12554
12555 cat >>confdefs.h <<\_ACEOF
12556 #define HAVE_TM_ZONE 1
12557 _ACEOF
12558
12559 else
12560   echo "$as_me:$LINENO: checking for tzname" >&5
12561 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12562 if test "${ac_cv_var_tzname+set}" = set; then
12563   echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565   cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571 #include <time.h>
12572 #ifndef tzname /* For SGI.  */
12573 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12574 #endif
12575
12576 int
12577 main ()
12578 {
12579 atoi(*tzname);
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586   (eval $ac_link) 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } &&
12593          { ac_try='test -z "$ac_c_werror_flag"
12594                          || test ! -s conftest.err'
12595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596   (eval $ac_try) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; } &&
12600          { ac_try='test -s conftest$ac_exeext'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; }; then
12606   ac_cv_var_tzname=yes
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_cv_var_tzname=no
12612 fi
12613 rm -f conftest.err conftest.$ac_objext \
12614       conftest$ac_exeext conftest.$ac_ext
12615 fi
12616 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12617 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12618   if test $ac_cv_var_tzname = yes; then
12619
12620 cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_TZNAME 1
12622 _ACEOF
12623
12624   fi
12625 fi
12626
12627
12628 echo "$as_me:$LINENO: checking for utime.h" >&5
12629 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12630 if test "${ba_cv_header_utime_h+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639
12640 #include <sys/types.h>
12641 #include <utime.h>
12642 int
12643 main ()
12644 {
12645 struct utimbuf foo
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652   (eval $ac_compile) 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -z "$ac_c_werror_flag"
12660                          || test ! -s conftest.err'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; } &&
12666          { ac_try='test -s conftest.$ac_objext'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ba_cv_header_utime_h=yes
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ba_cv_header_utime_h=no
12678 fi
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680 fi
12681 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12682 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12683 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_UTIME_H 1
12685 _ACEOF
12686
12687
12688 echo "$as_me:$LINENO: checking for socklen_t" >&5
12689 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12690 if test "${ba_cv_header_socklen_t+set}" = set; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699
12700 #include <sys/types.h>
12701 #include <sys/socket.h>
12702 int
12703 main ()
12704 {
12705 socklen_t x
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712   (eval $ac_compile) 2>conftest.er1
12713   ac_status=$?
12714   grep -v '^ *+' conftest.er1 >conftest.err
12715   rm -f conftest.er1
12716   cat conftest.err >&5
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -z "$ac_c_werror_flag"
12720                          || test ! -s conftest.err'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; } &&
12726          { ac_try='test -s conftest.$ac_objext'
12727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728   (eval $ac_try) 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; }; then
12732   ba_cv_header_socklen_t=yes
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737 ba_cv_header_socklen_t=no
12738 fi
12739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12740 fi
12741 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12742 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12743 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_SOCKLEN_T 1
12745 _ACEOF
12746
12747
12748 echo "$as_me:$LINENO: checking for bigendian" >&5
12749 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12750 if test "${ba_cv_bigendian+set}" = set; then
12751   echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753   if test "$cross_compiling" = yes; then
12754   ba_cv_bigendian=no
12755 else
12756   cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12763 _ACEOF
12764 rm -f conftest$ac_exeext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12766   (eval $ac_link) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   ba_cv_bigendian=yes
12776 else
12777   echo "$as_me: program exited with status $ac_status" >&5
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 ( exit $ac_status )
12782 ba_cv_bigendian=no
12783 fi
12784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12785 fi
12786 fi
12787 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12788 echo "${ECHO_T}$ba_cv_bigendian" >&6
12789 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_BIGENDIAN 1
12791 _ACEOF
12792
12793
12794
12795 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12797 if test "${ac_cv_c_const+set}" = set; then
12798   echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800   cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h.  */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h.  */
12806
12807 int
12808 main ()
12809 {
12810 /* FIXME: Include the comments suggested by Paul. */
12811 #ifndef __cplusplus
12812   /* Ultrix mips cc rejects this.  */
12813   typedef int charset[2];
12814   const charset x;
12815   /* SunOS 4.1.1 cc rejects this.  */
12816   char const *const *ccp;
12817   char **p;
12818   /* NEC SVR4.0.2 mips cc rejects this.  */
12819   struct point {int x, y;};
12820   static struct point const zero = {0,0};
12821   /* AIX XL C 1.02.0.0 rejects this.
12822      It does not let you subtract one const X* pointer from another in
12823      an arm of an if-expression whose if-part is not a constant
12824      expression */
12825   const char *g = "string";
12826   ccp = &g + (g ? g-g : 0);
12827   /* HPUX 7.0 cc rejects these. */
12828   ++ccp;
12829   p = (char**) ccp;
12830   ccp = (char const *const *) p;
12831   { /* SCO 3.2v4 cc rejects this.  */
12832     char *t;
12833     char const *s = 0 ? (char *) 0 : (char const *) 0;
12834
12835     *t++ = 0;
12836   }
12837   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12838     int x[] = {25, 17};
12839     const int *foo = &x[0];
12840     ++foo;
12841   }
12842   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12843     typedef const int *iptr;
12844     iptr p = 0;
12845     ++p;
12846   }
12847   { /* AIX XL C 1.02.0.0 rejects this saying
12848        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12849     struct s { int j; const int *ap[3]; };
12850     struct s *b; b->j = 5;
12851   }
12852   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12853     const int foo = 10;
12854   }
12855 #endif
12856
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863   (eval $ac_compile) 2>conftest.er1
12864   ac_status=$?
12865   grep -v '^ *+' conftest.er1 >conftest.err
12866   rm -f conftest.er1
12867   cat conftest.err >&5
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } &&
12870          { ac_try='test -z "$ac_c_werror_flag"
12871                          || test ! -s conftest.err'
12872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873   (eval $ac_try) 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); }; } &&
12877          { ac_try='test -s conftest.$ac_objext'
12878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879   (eval $ac_try) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; }; then
12883   ac_cv_c_const=yes
12884 else
12885   echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 ac_cv_c_const=no
12889 fi
12890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12891 fi
12892 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12893 echo "${ECHO_T}$ac_cv_c_const" >&6
12894 if test $ac_cv_c_const = no; then
12895
12896 cat >>confdefs.h <<\_ACEOF
12897 #define const
12898 _ACEOF
12899
12900 fi
12901
12902
12903
12904 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12905 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12906 fstype=no
12907 # The order of these tests is important.
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h.  */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h.  */
12914 #include <sys/statvfs.h>
12915 #include <sys/fstyp.h>
12916 _ACEOF
12917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12919   ac_status=$?
12920   grep -v '^ *+' conftest.er1 >conftest.err
12921   rm -f conftest.er1
12922   cat conftest.err >&5
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); } >/dev/null; then
12925   if test -s conftest.err; then
12926     ac_cpp_err=$ac_c_preproc_warn_flag
12927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12928   else
12929     ac_cpp_err=
12930   fi
12931 else
12932   ac_cpp_err=yes
12933 fi
12934 if test -z "$ac_cpp_err"; then
12935   cat >>confdefs.h <<\_ACEOF
12936 #define FSTYPE_STATVFS 1
12937 _ACEOF
12938  fstype=SVR4
12939 else
12940   echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943
12944 fi
12945 rm -f conftest.err conftest.$ac_ext
12946 if test $fstype = no; then
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953 #include <sys/statfs.h>
12954 #include <sys/fstyp.h>
12955 _ACEOF
12956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12958   ac_status=$?
12959   grep -v '^ *+' conftest.er1 >conftest.err
12960   rm -f conftest.er1
12961   cat conftest.err >&5
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); } >/dev/null; then
12964   if test -s conftest.err; then
12965     ac_cpp_err=$ac_c_preproc_warn_flag
12966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12967   else
12968     ac_cpp_err=
12969   fi
12970 else
12971   ac_cpp_err=yes
12972 fi
12973 if test -z "$ac_cpp_err"; then
12974   cat >>confdefs.h <<\_ACEOF
12975 #define FSTYPE_USG_STATFS 1
12976 _ACEOF
12977  fstype=SVR3
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982
12983 fi
12984 rm -f conftest.err conftest.$ac_ext
12985 fi
12986 if test $fstype = no; then
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h.  */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h.  */
12993 #include <sys/statfs.h>
12994 #include <sys/vmount.h>
12995 _ACEOF
12996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12998   ac_status=$?
12999   grep -v '^ *+' conftest.er1 >conftest.err
13000   rm -f conftest.er1
13001   cat conftest.err >&5
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } >/dev/null; then
13004   if test -s conftest.err; then
13005     ac_cpp_err=$ac_c_preproc_warn_flag
13006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13007   else
13008     ac_cpp_err=
13009   fi
13010 else
13011   ac_cpp_err=yes
13012 fi
13013 if test -z "$ac_cpp_err"; then
13014   cat >>confdefs.h <<\_ACEOF
13015 #define FSTYPE_AIX_STATFS 1
13016 _ACEOF
13017  fstype=AIX
13018 else
13019   echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13021
13022
13023 fi
13024 rm -f conftest.err conftest.$ac_ext
13025 fi
13026 if test $fstype = no; then
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h.  */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h.  */
13033 #include <mntent.h>
13034 _ACEOF
13035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13037   ac_status=$?
13038   grep -v '^ *+' conftest.er1 >conftest.err
13039   rm -f conftest.er1
13040   cat conftest.err >&5
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } >/dev/null; then
13043   if test -s conftest.err; then
13044     ac_cpp_err=$ac_c_preproc_warn_flag
13045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13046   else
13047     ac_cpp_err=
13048   fi
13049 else
13050   ac_cpp_err=yes
13051 fi
13052 if test -z "$ac_cpp_err"; then
13053   cat >>confdefs.h <<\_ACEOF
13054 #define FSTYPE_MNTENT 1
13055 _ACEOF
13056  fstype=4.3BSD
13057 else
13058   echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061
13062 fi
13063 rm -f conftest.err conftest.$ac_ext
13064 fi
13065 if test $fstype = no; then
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 #include <sys/mount.h>
13073
13074 _ACEOF
13075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13076   $EGREP "f_type;" >/dev/null 2>&1; then
13077   cat >>confdefs.h <<\_ACEOF
13078 #define FSTYPE_STATFS 1
13079 _ACEOF
13080  fstype=4.4BSD/OSF1
13081 fi
13082 rm -f conftest*
13083
13084 fi
13085 if test $fstype = no; then
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092 #include <sys/mount.h>
13093 #include <sys/fs_types.h>
13094 _ACEOF
13095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } >/dev/null; then
13103   if test -s conftest.err; then
13104     ac_cpp_err=$ac_c_preproc_warn_flag
13105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13106   else
13107     ac_cpp_err=
13108   fi
13109 else
13110   ac_cpp_err=yes
13111 fi
13112 if test -z "$ac_cpp_err"; then
13113   cat >>confdefs.h <<\_ACEOF
13114 #define FSTYPE_GETMNT 1
13115 _ACEOF
13116  fstype=Ultrix
13117 else
13118   echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121
13122 fi
13123 rm -f conftest.err conftest.$ac_ext
13124 fi
13125 echo "$as_me:$LINENO: result: $fstype" >&5
13126 echo "${ECHO_T}$fstype" >&6
13127
13128 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13129 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13130 if test "${ac_cv_type_signal+set}" = set; then
13131   echo $ECHO_N "(cached) $ECHO_C" >&6
13132 else
13133   cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139 #include <sys/types.h>
13140 #include <signal.h>
13141 #ifdef signal
13142 # undef signal
13143 #endif
13144 #ifdef __cplusplus
13145 extern "C" void (*signal (int, void (*)(int)))(int);
13146 #else
13147 void (*signal ()) ();
13148 #endif
13149
13150 int
13151 main ()
13152 {
13153 int i;
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160   (eval $ac_compile) 2>conftest.er1
13161   ac_status=$?
13162   grep -v '^ *+' conftest.er1 >conftest.err
13163   rm -f conftest.er1
13164   cat conftest.err >&5
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); } &&
13167          { ac_try='test -z "$ac_c_werror_flag"
13168                          || test ! -s conftest.err'
13169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170   (eval $ac_try) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; } &&
13174          { ac_try='test -s conftest.$ac_objext'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; }; then
13180   ac_cv_type_signal=void
13181 else
13182   echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 ac_cv_type_signal=int
13186 fi
13187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13188 fi
13189 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13190 echo "${ECHO_T}$ac_cv_type_signal" >&6
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define RETSIGTYPE $ac_cv_type_signal
13194 _ACEOF
13195
13196
13197
13198 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13199 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13200 if test "${bash_cv_signal_vintage+set}" = set; then
13201   echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203
13204   cat >conftest.$ac_ext <<_ACEOF
13205 /* confdefs.h.  */
13206 _ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h.  */
13210 #include <signal.h>
13211 int
13212 main ()
13213 {
13214
13215     sigset_t ss;
13216     struct sigaction sa;
13217     sigemptyset(&ss); sigsuspend(&ss);
13218     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13219     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13220
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13227   (eval $ac_link) 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -z "$ac_c_werror_flag"
13235                          || test ! -s conftest.err'
13236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237   (eval $ac_try) 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; } &&
13241          { ac_try='test -s conftest$ac_exeext'
13242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243   (eval $ac_try) 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; }; then
13247   bash_cv_signal_vintage=posix
13248 else
13249   echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252
13253     cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259 #include <signal.h>
13260 int
13261 main ()
13262 {
13263
13264         int mask = sigmask(SIGINT);
13265         sigsetmask(mask); sigblock(mask); sigpause(mask);
13266
13267   ;
13268   return 0;
13269 }
13270 _ACEOF
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13273   (eval $ac_link) 2>conftest.er1
13274   ac_status=$?
13275   grep -v '^ *+' conftest.er1 >conftest.err
13276   rm -f conftest.er1
13277   cat conftest.err >&5
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); } &&
13280          { ac_try='test -z "$ac_c_werror_flag"
13281                          || test ! -s conftest.err'
13282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283   (eval $ac_try) 2>&5
13284   ac_status=$?
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); }; } &&
13287          { ac_try='test -s conftest$ac_exeext'
13288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289   (eval $ac_try) 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); }; }; then
13293   bash_cv_signal_vintage=4.2bsd
13294 else
13295   echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298
13299       cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h.  */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h.  */
13305
13306         #include <signal.h>
13307         RETSIGTYPE foo() { }
13308 int
13309 main ()
13310 {
13311
13312                 int mask = sigmask(SIGINT);
13313                 sigset(SIGINT, foo); sigrelse(SIGINT);
13314                 sighold(SIGINT); sigpause(SIGINT);
13315
13316   ;
13317   return 0;
13318 }
13319 _ACEOF
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13322   (eval $ac_link) 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } &&
13329          { ac_try='test -z "$ac_c_werror_flag"
13330                          || test ! -s conftest.err'
13331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332   (eval $ac_try) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; } &&
13336          { ac_try='test -s conftest$ac_exeext'
13337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338   (eval $ac_try) 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; }; then
13342   bash_cv_signal_vintage=svr3
13343 else
13344   echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347 bash_cv_signal_vintage=v7
13348
13349 fi
13350 rm -f conftest.err conftest.$ac_objext \
13351       conftest$ac_exeext conftest.$ac_ext
13352
13353 fi
13354 rm -f conftest.err conftest.$ac_objext \
13355       conftest$ac_exeext conftest.$ac_ext
13356
13357 fi
13358 rm -f conftest.err conftest.$ac_objext \
13359       conftest$ac_exeext conftest.$ac_ext
13360
13361 fi
13362
13363 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13364 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13365 if test "$bash_cv_signal_vintage" = posix; then
13366 cat >>confdefs.h <<\_ACEOF
13367 #define HAVE_POSIX_SIGNALS 1
13368 _ACEOF
13369
13370 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13371 cat >>confdefs.h <<\_ACEOF
13372 #define HAVE_BSD_SIGNALS 1
13373 _ACEOF
13374
13375 elif test "$bash_cv_signal_vintage" = svr3; then
13376 cat >>confdefs.h <<\_ACEOF
13377 #define HAVE_USG_SIGHOLD 1
13378 _ACEOF
13379
13380 fi
13381
13382 echo "$as_me:$LINENO: checking for mode_t" >&5
13383 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13384 if test "${ac_cv_type_mode_t+set}" = set; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387   cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h.  */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h.  */
13393 $ac_includes_default
13394 int
13395 main ()
13396 {
13397 if ((mode_t *) 0)
13398   return 0;
13399 if (sizeof (mode_t))
13400   return 0;
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407   (eval $ac_compile) 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } &&
13414          { ac_try='test -z "$ac_c_werror_flag"
13415                          || test ! -s conftest.err'
13416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417   (eval $ac_try) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); }; } &&
13421          { ac_try='test -s conftest.$ac_objext'
13422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423   (eval $ac_try) 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427   ac_cv_type_mode_t=yes
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ac_cv_type_mode_t=no
13433 fi
13434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13435 fi
13436 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13437 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13438 if test $ac_cv_type_mode_t = yes; then
13439   :
13440 else
13441
13442 cat >>confdefs.h <<_ACEOF
13443 #define mode_t int
13444 _ACEOF
13445
13446 fi
13447
13448 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13449 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13450 if test "${ac_cv_type_uid_t+set}" = set; then
13451   echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453   cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459 #include <sys/types.h>
13460
13461 _ACEOF
13462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13463   $EGREP "uid_t" >/dev/null 2>&1; then
13464   ac_cv_type_uid_t=yes
13465 else
13466   ac_cv_type_uid_t=no
13467 fi
13468 rm -f conftest*
13469
13470 fi
13471 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13472 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13473 if test $ac_cv_type_uid_t = no; then
13474
13475 cat >>confdefs.h <<\_ACEOF
13476 #define uid_t int
13477 _ACEOF
13478
13479
13480 cat >>confdefs.h <<\_ACEOF
13481 #define gid_t int
13482 _ACEOF
13483
13484 fi
13485
13486 echo "$as_me:$LINENO: checking for size_t" >&5
13487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13488 if test "${ac_cv_type_size_t+set}" = set; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 $ac_includes_default
13498 int
13499 main ()
13500 {
13501 if ((size_t *) 0)
13502   return 0;
13503 if (sizeof (size_t))
13504   return 0;
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511   (eval $ac_compile) 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag"
13519                          || test ! -s conftest.err'
13520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521   (eval $ac_try) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   ac_cv_type_size_t=yes
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_cv_type_size_t=no
13537 fi
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13541 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13542 if test $ac_cv_type_size_t = yes; then
13543   :
13544 else
13545
13546 cat >>confdefs.h <<_ACEOF
13547 #define size_t unsigned
13548 _ACEOF
13549
13550 fi
13551
13552 echo "$as_me:$LINENO: checking for pid_t" >&5
13553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13554 if test "${ac_cv_type_pid_t+set}" = set; then
13555   echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557   cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h.  */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h.  */
13563 $ac_includes_default
13564 int
13565 main ()
13566 {
13567 if ((pid_t *) 0)
13568   return 0;
13569 if (sizeof (pid_t))
13570   return 0;
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577   (eval $ac_compile) 2>conftest.er1
13578   ac_status=$?
13579   grep -v '^ *+' conftest.er1 >conftest.err
13580   rm -f conftest.er1
13581   cat conftest.err >&5
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); } &&
13584          { ac_try='test -z "$ac_c_werror_flag"
13585                          || test ! -s conftest.err'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; } &&
13591          { ac_try='test -s conftest.$ac_objext'
13592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593   (eval $ac_try) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; }; then
13597   ac_cv_type_pid_t=yes
13598 else
13599   echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 ac_cv_type_pid_t=no
13603 fi
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605 fi
13606 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13607 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13608 if test $ac_cv_type_pid_t = yes; then
13609   :
13610 else
13611
13612 cat >>confdefs.h <<_ACEOF
13613 #define pid_t int
13614 _ACEOF
13615
13616 fi
13617
13618 echo "$as_me:$LINENO: checking for off_t" >&5
13619 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13620 if test "${ac_cv_type_off_t+set}" = set; then
13621   echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623   cat >conftest.$ac_ext <<_ACEOF
13624 /* confdefs.h.  */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h.  */
13629 $ac_includes_default
13630 int
13631 main ()
13632 {
13633 if ((off_t *) 0)
13634   return 0;
13635 if (sizeof (off_t))
13636   return 0;
13637   ;
13638   return 0;
13639 }
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643   (eval $ac_compile) 2>conftest.er1
13644   ac_status=$?
13645   grep -v '^ *+' conftest.er1 >conftest.err
13646   rm -f conftest.er1
13647   cat conftest.err >&5
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); } &&
13650          { ac_try='test -z "$ac_c_werror_flag"
13651                          || test ! -s conftest.err'
13652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653   (eval $ac_try) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; } &&
13657          { ac_try='test -s conftest.$ac_objext'
13658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659   (eval $ac_try) 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); }; }; then
13663   ac_cv_type_off_t=yes
13664 else
13665   echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13667
13668 ac_cv_type_off_t=no
13669 fi
13670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13671 fi
13672 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13673 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13674 if test $ac_cv_type_off_t = yes; then
13675   :
13676 else
13677
13678 cat >>confdefs.h <<_ACEOF
13679 #define off_t long
13680 _ACEOF
13681
13682 fi
13683
13684 echo "$as_me:$LINENO: checking for ino_t" >&5
13685 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13686 if test "${ac_cv_type_ino_t+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689   cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695 $ac_includes_default
13696 int
13697 main ()
13698 {
13699 if ((ino_t *) 0)
13700   return 0;
13701 if (sizeof (ino_t))
13702   return 0;
13703   ;
13704   return 0;
13705 }
13706 _ACEOF
13707 rm -f conftest.$ac_objext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709   (eval $ac_compile) 2>conftest.er1
13710   ac_status=$?
13711   grep -v '^ *+' conftest.er1 >conftest.err
13712   rm -f conftest.er1
13713   cat conftest.err >&5
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); } &&
13716          { ac_try='test -z "$ac_c_werror_flag"
13717                          || test ! -s conftest.err'
13718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719   (eval $ac_try) 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; } &&
13723          { ac_try='test -s conftest.$ac_objext'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   ac_cv_type_ino_t=yes
13730 else
13731   echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_cv_type_ino_t=no
13735 fi
13736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13737 fi
13738 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13739 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13740 if test $ac_cv_type_ino_t = yes; then
13741   :
13742 else
13743
13744 cat >>confdefs.h <<_ACEOF
13745 #define ino_t unsigned long
13746 _ACEOF
13747
13748 fi
13749
13750 echo "$as_me:$LINENO: checking for dev_t" >&5
13751 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13752 if test "${ac_cv_type_dev_t+set}" = set; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755   cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761 $ac_includes_default
13762 int
13763 main ()
13764 {
13765 if ((dev_t *) 0)
13766   return 0;
13767 if (sizeof (dev_t))
13768   return 0;
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13775   (eval $ac_compile) 2>conftest.er1
13776   ac_status=$?
13777   grep -v '^ *+' conftest.er1 >conftest.err
13778   rm -f conftest.er1
13779   cat conftest.err >&5
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); } &&
13782          { ac_try='test -z "$ac_c_werror_flag"
13783                          || test ! -s conftest.err'
13784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785   (eval $ac_try) 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); }; } &&
13789          { ac_try='test -s conftest.$ac_objext'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; }; then
13795   ac_cv_type_dev_t=yes
13796 else
13797   echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 ac_cv_type_dev_t=no
13801 fi
13802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13803 fi
13804 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13805 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13806 if test $ac_cv_type_dev_t = yes; then
13807   :
13808 else
13809
13810 cat >>confdefs.h <<_ACEOF
13811 #define dev_t unsigned long
13812 _ACEOF
13813
13814 fi
13815
13816 echo "$as_me:$LINENO: checking for daddr_t" >&5
13817 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13818 if test "${ac_cv_type_daddr_t+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 $ac_includes_default
13828 int
13829 main ()
13830 {
13831 if ((daddr_t *) 0)
13832   return 0;
13833 if (sizeof (daddr_t))
13834   return 0;
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841   (eval $ac_compile) 2>conftest.er1
13842   ac_status=$?
13843   grep -v '^ *+' conftest.er1 >conftest.err
13844   rm -f conftest.er1
13845   cat conftest.err >&5
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); } &&
13848          { ac_try='test -z "$ac_c_werror_flag"
13849                          || test ! -s conftest.err'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; } &&
13855          { ac_try='test -s conftest.$ac_objext'
13856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857   (eval $ac_try) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; }; then
13861   ac_cv_type_daddr_t=yes
13862 else
13863   echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_cv_type_daddr_t=no
13867 fi
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869 fi
13870 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13871 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13872 if test $ac_cv_type_daddr_t = yes; then
13873   :
13874 else
13875
13876 cat >>confdefs.h <<_ACEOF
13877 #define daddr_t long
13878 _ACEOF
13879
13880 fi
13881
13882 echo "$as_me:$LINENO: checking for major_t" >&5
13883 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13884 if test "${ac_cv_type_major_t+set}" = set; then
13885   echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887   cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h.  */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h.  */
13893 $ac_includes_default
13894 int
13895 main ()
13896 {
13897 if ((major_t *) 0)
13898   return 0;
13899 if (sizeof (major_t))
13900   return 0;
13901   ;
13902   return 0;
13903 }
13904 _ACEOF
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907   (eval $ac_compile) 2>conftest.er1
13908   ac_status=$?
13909   grep -v '^ *+' conftest.er1 >conftest.err
13910   rm -f conftest.er1
13911   cat conftest.err >&5
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); } &&
13914          { ac_try='test -z "$ac_c_werror_flag"
13915                          || test ! -s conftest.err'
13916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917   (eval $ac_try) 2>&5
13918   ac_status=$?
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); }; } &&
13921          { ac_try='test -s conftest.$ac_objext'
13922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923   (eval $ac_try) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; }; then
13927   ac_cv_type_major_t=yes
13928 else
13929   echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 ac_cv_type_major_t=no
13933 fi
13934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13935 fi
13936 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13937 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13938 if test $ac_cv_type_major_t = yes; then
13939   :
13940 else
13941
13942 cat >>confdefs.h <<_ACEOF
13943 #define major_t int
13944 _ACEOF
13945
13946 fi
13947
13948 echo "$as_me:$LINENO: checking for minor_t" >&5
13949 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13950 if test "${ac_cv_type_minor_t+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 $ac_includes_default
13960 int
13961 main ()
13962 {
13963 if ((minor_t *) 0)
13964   return 0;
13965 if (sizeof (minor_t))
13966   return 0;
13967   ;
13968   return 0;
13969 }
13970 _ACEOF
13971 rm -f conftest.$ac_objext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13973   (eval $ac_compile) 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -z "$ac_c_werror_flag"
13981                          || test ! -s conftest.err'
13982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983   (eval $ac_try) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; } &&
13987          { ac_try='test -s conftest.$ac_objext'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993   ac_cv_type_minor_t=yes
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_cv_type_minor_t=no
13999 fi
14000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14001 fi
14002 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14003 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14004 if test $ac_cv_type_minor_t = yes; then
14005   :
14006 else
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define minor_t int
14010 _ACEOF
14011
14012 fi
14013
14014 echo "$as_me:$LINENO: checking for ssize_t" >&5
14015 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14016 if test "${ac_cv_type_ssize_t+set}" = set; then
14017   echo $ECHO_N "(cached) $ECHO_C" >&6
14018 else
14019   cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 $ac_includes_default
14026 int
14027 main ()
14028 {
14029 if ((ssize_t *) 0)
14030   return 0;
14031 if (sizeof (ssize_t))
14032   return 0;
14033   ;
14034   return 0;
14035 }
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039   (eval $ac_compile) 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -z "$ac_c_werror_flag"
14047                          || test ! -s conftest.err'
14048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049   (eval $ac_try) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; } &&
14053          { ac_try='test -s conftest.$ac_objext'
14054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055   (eval $ac_try) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; }; then
14059   ac_cv_type_ssize_t=yes
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064 ac_cv_type_ssize_t=no
14065 fi
14066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14067 fi
14068 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14069 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14070 if test $ac_cv_type_ssize_t = yes; then
14071   :
14072 else
14073
14074 cat >>confdefs.h <<_ACEOF
14075 #define ssize_t int
14076 _ACEOF
14077
14078 fi
14079
14080 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14081 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14082 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14083   echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085   cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h.  */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h.  */
14091 $ac_includes_default
14092 int
14093 main ()
14094 {
14095 static struct stat ac_aggr;
14096 if (ac_aggr.st_blocks)
14097 return 0;
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 rm -f conftest.$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104   (eval $ac_compile) 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -z "$ac_c_werror_flag"
14112                          || test ! -s conftest.err'
14113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114   (eval $ac_try) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; } &&
14118          { ac_try='test -s conftest.$ac_objext'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124   ac_cv_member_struct_stat_st_blocks=yes
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129 cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h.  */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h.  */
14135 $ac_includes_default
14136 int
14137 main ()
14138 {
14139 static struct stat ac_aggr;
14140 if (sizeof ac_aggr.st_blocks)
14141 return 0;
14142   ;
14143   return 0;
14144 }
14145 _ACEOF
14146 rm -f conftest.$ac_objext
14147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14148   (eval $ac_compile) 2>conftest.er1
14149   ac_status=$?
14150   grep -v '^ *+' conftest.er1 >conftest.err
14151   rm -f conftest.er1
14152   cat conftest.err >&5
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } &&
14155          { ac_try='test -z "$ac_c_werror_flag"
14156                          || test ! -s conftest.err'
14157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158   (eval $ac_try) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; } &&
14162          { ac_try='test -s conftest.$ac_objext'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; }; then
14168   ac_cv_member_struct_stat_st_blocks=yes
14169 else
14170   echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 ac_cv_member_struct_stat_st_blocks=no
14174 fi
14175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14176 fi
14177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14178 fi
14179 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14180 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14181 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14182
14183 cat >>confdefs.h <<_ACEOF
14184 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14185 _ACEOF
14186
14187
14188 cat >>confdefs.h <<\_ACEOF
14189 #define HAVE_ST_BLOCKS 1
14190 _ACEOF
14191
14192 else
14193   case $LIBOBJS in
14194     "fileblocks.$ac_objext"   | \
14195   *" fileblocks.$ac_objext"   | \
14196     "fileblocks.$ac_objext "* | \
14197   *" fileblocks.$ac_objext "* ) ;;
14198   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14199 esac
14200
14201 fi
14202
14203
14204
14205 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14206 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14207 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 $ac_includes_default
14217 int
14218 main ()
14219 {
14220 static struct stat ac_aggr;
14221 if (ac_aggr.st_rdev)
14222 return 0;
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 rm -f conftest.$ac_objext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14229   (eval $ac_compile) 2>conftest.er1
14230   ac_status=$?
14231   grep -v '^ *+' conftest.er1 >conftest.err
14232   rm -f conftest.er1
14233   cat conftest.err >&5
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); } &&
14236          { ac_try='test -z "$ac_c_werror_flag"
14237                          || test ! -s conftest.err'
14238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239   (eval $ac_try) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; } &&
14243          { ac_try='test -s conftest.$ac_objext'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }; then
14249   ac_cv_member_struct_stat_st_rdev=yes
14250 else
14251   echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14253
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h.  */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h.  */
14260 $ac_includes_default
14261 int
14262 main ()
14263 {
14264 static struct stat ac_aggr;
14265 if (sizeof ac_aggr.st_rdev)
14266 return 0;
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273   (eval $ac_compile) 2>conftest.er1
14274   ac_status=$?
14275   grep -v '^ *+' conftest.er1 >conftest.err
14276   rm -f conftest.er1
14277   cat conftest.err >&5
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); } &&
14280          { ac_try='test -z "$ac_c_werror_flag"
14281                          || test ! -s conftest.err'
14282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283   (eval $ac_try) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }; } &&
14287          { ac_try='test -s conftest.$ac_objext'
14288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289   (eval $ac_try) 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; }; then
14293   ac_cv_member_struct_stat_st_rdev=yes
14294 else
14295   echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 ac_cv_member_struct_stat_st_rdev=no
14299 fi
14300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14301 fi
14302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303 fi
14304 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14305 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14306 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14307
14308 cat >>confdefs.h <<_ACEOF
14309 #define HAVE_STRUCT_STAT_ST_RDEV 1
14310 _ACEOF
14311
14312
14313 cat >>confdefs.h <<\_ACEOF
14314 #define HAVE_ST_RDEV 1
14315 _ACEOF
14316
14317 fi
14318
14319
14320 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14321 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14322 if test "${ac_cv_struct_tm+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331 #include <sys/types.h>
14332 #include <time.h>
14333
14334 int
14335 main ()
14336 {
14337 struct tm *tp; tp->tm_sec;
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344   (eval $ac_compile) 2>conftest.er1
14345   ac_status=$?
14346   grep -v '^ *+' conftest.er1 >conftest.err
14347   rm -f conftest.er1
14348   cat conftest.err >&5
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -z "$ac_c_werror_flag"
14352                          || test ! -s conftest.err'
14353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354   (eval $ac_try) 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; } &&
14358          { ac_try='test -s conftest.$ac_objext'
14359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360   (eval $ac_try) 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; }; then
14364   ac_cv_struct_tm=time.h
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369 ac_cv_struct_tm=sys/time.h
14370 fi
14371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14372 fi
14373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14375 if test $ac_cv_struct_tm = sys/time.h; then
14376
14377 cat >>confdefs.h <<\_ACEOF
14378 #define TM_IN_SYS_TIME 1
14379 _ACEOF
14380
14381 fi
14382
14383 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14384 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14385 if test "${ac_cv_c_const+set}" = set; then
14386   echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388   cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h.  */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h.  */
14394
14395 int
14396 main ()
14397 {
14398 /* FIXME: Include the comments suggested by Paul. */
14399 #ifndef __cplusplus
14400   /* Ultrix mips cc rejects this.  */
14401   typedef int charset[2];
14402   const charset x;
14403   /* SunOS 4.1.1 cc rejects this.  */
14404   char const *const *ccp;
14405   char **p;
14406   /* NEC SVR4.0.2 mips cc rejects this.  */
14407   struct point {int x, y;};
14408   static struct point const zero = {0,0};
14409   /* AIX XL C 1.02.0.0 rejects this.
14410      It does not let you subtract one const X* pointer from another in
14411      an arm of an if-expression whose if-part is not a constant
14412      expression */
14413   const char *g = "string";
14414   ccp = &g + (g ? g-g : 0);
14415   /* HPUX 7.0 cc rejects these. */
14416   ++ccp;
14417   p = (char**) ccp;
14418   ccp = (char const *const *) p;
14419   { /* SCO 3.2v4 cc rejects this.  */
14420     char *t;
14421     char const *s = 0 ? (char *) 0 : (char const *) 0;
14422
14423     *t++ = 0;
14424   }
14425   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14426     int x[] = {25, 17};
14427     const int *foo = &x[0];
14428     ++foo;
14429   }
14430   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14431     typedef const int *iptr;
14432     iptr p = 0;
14433     ++p;
14434   }
14435   { /* AIX XL C 1.02.0.0 rejects this saying
14436        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14437     struct s { int j; const int *ap[3]; };
14438     struct s *b; b->j = 5;
14439   }
14440   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14441     const int foo = 10;
14442   }
14443 #endif
14444
14445   ;
14446   return 0;
14447 }
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451   (eval $ac_compile) 2>conftest.er1
14452   ac_status=$?
14453   grep -v '^ *+' conftest.er1 >conftest.err
14454   rm -f conftest.er1
14455   cat conftest.err >&5
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } &&
14458          { ac_try='test -z "$ac_c_werror_flag"
14459                          || test ! -s conftest.err'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; } &&
14465          { ac_try='test -s conftest.$ac_objext'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471   ac_cv_c_const=yes
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 ac_cv_c_const=no
14477 fi
14478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479 fi
14480 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14481 echo "${ECHO_T}$ac_cv_c_const" >&6
14482 if test $ac_cv_c_const = no; then
14483
14484 cat >>confdefs.h <<\_ACEOF
14485 #define const
14486 _ACEOF
14487
14488 fi
14489
14490
14491
14492 echo "$as_me:$LINENO: checking for char" >&5
14493 echo $ECHO_N "checking for char... $ECHO_C" >&6
14494 if test "${ac_cv_type_char+set}" = set; then
14495   echo $ECHO_N "(cached) $ECHO_C" >&6
14496 else
14497   cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h.  */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h.  */
14503 $ac_includes_default
14504 int
14505 main ()
14506 {
14507 if ((char *) 0)
14508   return 0;
14509 if (sizeof (char))
14510   return 0;
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517   (eval $ac_compile) 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag"
14525                          || test ! -s conftest.err'
14526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527   (eval $ac_try) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; } &&
14531          { ac_try='test -s conftest.$ac_objext'
14532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533   (eval $ac_try) 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; }; then
14537   ac_cv_type_char=yes
14538 else
14539   echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_cv_type_char=no
14543 fi
14544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14545 fi
14546 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14547 echo "${ECHO_T}$ac_cv_type_char" >&6
14548
14549 echo "$as_me:$LINENO: checking size of char" >&5
14550 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14551 if test "${ac_cv_sizeof_char+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   if test "$ac_cv_type_char" = yes; then
14555   # The cast to unsigned long works around a bug in the HP C Compiler
14556   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14557   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14558   # This bug is HP SR number 8606223364.
14559   if test "$cross_compiling" = yes; then
14560   # Depending upon the size, compute the lo and hi bounds.
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h.  */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h.  */
14567 $ac_includes_default
14568 int
14569 main ()
14570 {
14571 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14572 test_array [0] = 0
14573
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 rm -f conftest.$ac_objext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580   (eval $ac_compile) 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } &&
14587          { ac_try='test -z "$ac_c_werror_flag"
14588                          || test ! -s conftest.err'
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); }; } &&
14594          { ac_try='test -s conftest.$ac_objext'
14595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596   (eval $ac_try) 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); }; }; then
14600   ac_lo=0 ac_mid=0
14601   while :; do
14602     cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 $ac_includes_default
14609 int
14610 main ()
14611 {
14612 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14613 test_array [0] = 0
14614
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621   (eval $ac_compile) 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } &&
14628          { ac_try='test -z "$ac_c_werror_flag"
14629                          || test ! -s conftest.err'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; } &&
14635          { ac_try='test -s conftest.$ac_objext'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641   ac_hi=$ac_mid; break
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646 ac_lo=`expr $ac_mid + 1`
14647                     if test $ac_lo -le $ac_mid; then
14648                       ac_lo= ac_hi=
14649                       break
14650                     fi
14651                     ac_mid=`expr 2 '*' $ac_mid + 1`
14652 fi
14653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14654   done
14655 else
14656   echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14658
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))) < 0)];
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=-1 ac_mid=-1
14699   while :; do
14700     cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 $ac_includes_default
14707 int
14708 main ()
14709 {
14710 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14711 test_array [0] = 0
14712
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719   (eval $ac_compile) 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } &&
14726          { ac_try='test -z "$ac_c_werror_flag"
14727                          || test ! -s conftest.err'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; } &&
14733          { ac_try='test -s conftest.$ac_objext'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   ac_lo=$ac_mid; break
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_hi=`expr '(' $ac_mid ')' - 1`
14745                        if test $ac_mid -le $ac_hi; then
14746                          ac_lo= ac_hi=
14747                          break
14748                        fi
14749                        ac_mid=`expr 2 '*' $ac_mid`
14750 fi
14751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752   done
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 ac_lo= ac_hi=
14758 fi
14759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14760 fi
14761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762 # Binary search between lo and hi bounds.
14763 while test "x$ac_lo" != "x$ac_hi"; do
14764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14765   cat >conftest.$ac_ext <<_ACEOF
14766 /* confdefs.h.  */
14767 _ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h.  */
14771 $ac_includes_default
14772 int
14773 main ()
14774 {
14775 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14776 test_array [0] = 0
14777
14778   ;
14779   return 0;
14780 }
14781 _ACEOF
14782 rm -f conftest.$ac_objext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784   (eval $ac_compile) 2>conftest.er1
14785   ac_status=$?
14786   grep -v '^ *+' conftest.er1 >conftest.err
14787   rm -f conftest.er1
14788   cat conftest.err >&5
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); } &&
14791          { ac_try='test -z "$ac_c_werror_flag"
14792                          || test ! -s conftest.err'
14793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794   (eval $ac_try) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; } &&
14798          { ac_try='test -s conftest.$ac_objext'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; }; then
14804   ac_hi=$ac_mid
14805 else
14806   echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ac_lo=`expr '(' $ac_mid ')' + 1`
14810 fi
14811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812 done
14813 case $ac_lo in
14814 ?*) ac_cv_sizeof_char=$ac_lo;;
14815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14816 See \`config.log' for more details." >&5
14817 echo "$as_me: error: cannot compute sizeof (char), 77
14818 See \`config.log' for more details." >&2;}
14819    { (exit 1); exit 1; }; } ;;
14820 esac
14821 else
14822   if test "$cross_compiling" = yes; then
14823   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14824 See \`config.log' for more details." >&5
14825 echo "$as_me: error: cannot run test program while cross compiling
14826 See \`config.log' for more details." >&2;}
14827    { (exit 1); exit 1; }; }
14828 else
14829   cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 $ac_includes_default
14836 long longval () { return (long) (sizeof (char)); }
14837 unsigned long ulongval () { return (long) (sizeof (char)); }
14838 #include <stdio.h>
14839 #include <stdlib.h>
14840 int
14841 main ()
14842 {
14843
14844   FILE *f = fopen ("conftest.val", "w");
14845   if (! f)
14846     exit (1);
14847   if (((long) (sizeof (char))) < 0)
14848     {
14849       long i = longval ();
14850       if (i != ((long) (sizeof (char))))
14851         exit (1);
14852       fprintf (f, "%ld\n", i);
14853     }
14854   else
14855     {
14856       unsigned long i = ulongval ();
14857       if (i != ((long) (sizeof (char))))
14858         exit (1);
14859       fprintf (f, "%lu\n", i);
14860     }
14861   exit (ferror (f) || fclose (f) != 0);
14862
14863   ;
14864   return 0;
14865 }
14866 _ACEOF
14867 rm -f conftest$ac_exeext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869   (eval $ac_link) 2>&5
14870   ac_status=$?
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874   (eval $ac_try) 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; }; then
14878   ac_cv_sizeof_char=`cat conftest.val`
14879 else
14880   echo "$as_me: program exited with status $ac_status" >&5
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884 ( exit $ac_status )
14885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14886 See \`config.log' for more details." >&5
14887 echo "$as_me: error: cannot compute sizeof (char), 77
14888 See \`config.log' for more details." >&2;}
14889    { (exit 1); exit 1; }; }
14890 fi
14891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 fi
14894 rm -f conftest.val
14895 else
14896   ac_cv_sizeof_char=0
14897 fi
14898 fi
14899 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14900 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14901 cat >>confdefs.h <<_ACEOF
14902 #define SIZEOF_CHAR $ac_cv_sizeof_char
14903 _ACEOF
14904
14905
14906 echo "$as_me:$LINENO: checking for short int" >&5
14907 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14908 if test "${ac_cv_type_short_int+set}" = set; then
14909   echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911   cat >conftest.$ac_ext <<_ACEOF
14912 /* confdefs.h.  */
14913 _ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h.  */
14917 $ac_includes_default
14918 int
14919 main ()
14920 {
14921 if ((short int *) 0)
14922   return 0;
14923 if (sizeof (short int))
14924   return 0;
14925   ;
14926   return 0;
14927 }
14928 _ACEOF
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931   (eval $ac_compile) 2>conftest.er1
14932   ac_status=$?
14933   grep -v '^ *+' conftest.er1 >conftest.err
14934   rm -f conftest.er1
14935   cat conftest.err >&5
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); } &&
14938          { ac_try='test -z "$ac_c_werror_flag"
14939                          || test ! -s conftest.err'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; } &&
14945          { ac_try='test -s conftest.$ac_objext'
14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947   (eval $ac_try) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951   ac_cv_type_short_int=yes
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 ac_cv_type_short_int=no
14957 fi
14958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14959 fi
14960 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14961 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14962
14963 echo "$as_me:$LINENO: checking size of short int" >&5
14964 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14965 if test "${ac_cv_sizeof_short_int+set}" = set; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968   if test "$ac_cv_type_short_int" = yes; then
14969   # The cast to unsigned long works around a bug in the HP C Compiler
14970   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14971   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14972   # This bug is HP SR number 8606223364.
14973   if test "$cross_compiling" = yes; then
14974   # Depending upon the size, compute the lo and hi bounds.
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 $ac_includes_default
14982 int
14983 main ()
14984 {
14985 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14986 test_array [0] = 0
14987
14988   ;
14989   return 0;
14990 }
14991 _ACEOF
14992 rm -f conftest.$ac_objext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14994   (eval $ac_compile) 2>conftest.er1
14995   ac_status=$?
14996   grep -v '^ *+' conftest.er1 >conftest.err
14997   rm -f conftest.er1
14998   cat conftest.err >&5
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); } &&
15001          { ac_try='test -z "$ac_c_werror_flag"
15002                          || test ! -s conftest.err'
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); }; } &&
15008          { ac_try='test -s conftest.$ac_objext'
15009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010   (eval $ac_try) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); }; }; then
15014   ac_lo=0 ac_mid=0
15015   while :; do
15016     cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022 $ac_includes_default
15023 int
15024 main ()
15025 {
15026 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15027 test_array [0] = 0
15028
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035   (eval $ac_compile) 2>conftest.er1
15036   ac_status=$?
15037   grep -v '^ *+' conftest.er1 >conftest.err
15038   rm -f conftest.er1
15039   cat conftest.err >&5
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } &&
15042          { ac_try='test -z "$ac_c_werror_flag"
15043                          || test ! -s conftest.err'
15044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045   (eval $ac_try) 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); }; } &&
15049          { ac_try='test -s conftest.$ac_objext'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; }; then
15055   ac_hi=$ac_mid; break
15056 else
15057   echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15059
15060 ac_lo=`expr $ac_mid + 1`
15061                     if test $ac_lo -le $ac_mid; then
15062                       ac_lo= ac_hi=
15063                       break
15064                     fi
15065                     ac_mid=`expr 2 '*' $ac_mid + 1`
15066 fi
15067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15068   done
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
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))) < 0)];
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=-1 ac_mid=-1
15113   while :; do
15114     cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 $ac_includes_default
15121 int
15122 main ()
15123 {
15124 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15125 test_array [0] = 0
15126
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15133   (eval $ac_compile) 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } &&
15140          { ac_try='test -z "$ac_c_werror_flag"
15141                          || test ! -s conftest.err'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; } &&
15147          { ac_try='test -s conftest.$ac_objext'
15148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149   (eval $ac_try) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; }; then
15153   ac_lo=$ac_mid; break
15154 else
15155   echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 ac_hi=`expr '(' $ac_mid ')' - 1`
15159                        if test $ac_mid -le $ac_hi; then
15160                          ac_lo= ac_hi=
15161                          break
15162                        fi
15163                        ac_mid=`expr 2 '*' $ac_mid`
15164 fi
15165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15166   done
15167 else
15168   echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ac_lo= ac_hi=
15172 fi
15173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15176 # Binary search between lo and hi bounds.
15177 while test "x$ac_lo" != "x$ac_hi"; do
15178   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15179   cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h.  */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h.  */
15185 $ac_includes_default
15186 int
15187 main ()
15188 {
15189 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15190 test_array [0] = 0
15191
15192   ;
15193   return 0;
15194 }
15195 _ACEOF
15196 rm -f conftest.$ac_objext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15198   (eval $ac_compile) 2>conftest.er1
15199   ac_status=$?
15200   grep -v '^ *+' conftest.er1 >conftest.err
15201   rm -f conftest.er1
15202   cat conftest.err >&5
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); } &&
15205          { ac_try='test -z "$ac_c_werror_flag"
15206                          || test ! -s conftest.err'
15207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208   (eval $ac_try) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; } &&
15212          { ac_try='test -s conftest.$ac_objext'
15213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214   (eval $ac_try) 2>&5
15215   ac_status=$?
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); }; }; then
15218   ac_hi=$ac_mid
15219 else
15220   echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15222
15223 ac_lo=`expr '(' $ac_mid ')' + 1`
15224 fi
15225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15226 done
15227 case $ac_lo in
15228 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15229 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15230 See \`config.log' for more details." >&5
15231 echo "$as_me: error: cannot compute sizeof (short int), 77
15232 See \`config.log' for more details." >&2;}
15233    { (exit 1); exit 1; }; } ;;
15234 esac
15235 else
15236   if test "$cross_compiling" = yes; then
15237   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15238 See \`config.log' for more details." >&5
15239 echo "$as_me: error: cannot run test program while cross compiling
15240 See \`config.log' for more details." >&2;}
15241    { (exit 1); exit 1; }; }
15242 else
15243   cat >conftest.$ac_ext <<_ACEOF
15244 /* confdefs.h.  */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h.  */
15249 $ac_includes_default
15250 long longval () { return (long) (sizeof (short int)); }
15251 unsigned long ulongval () { return (long) (sizeof (short int)); }
15252 #include <stdio.h>
15253 #include <stdlib.h>
15254 int
15255 main ()
15256 {
15257
15258   FILE *f = fopen ("conftest.val", "w");
15259   if (! f)
15260     exit (1);
15261   if (((long) (sizeof (short int))) < 0)
15262     {
15263       long i = longval ();
15264       if (i != ((long) (sizeof (short int))))
15265         exit (1);
15266       fprintf (f, "%ld\n", i);
15267     }
15268   else
15269     {
15270       unsigned long i = ulongval ();
15271       if (i != ((long) (sizeof (short int))))
15272         exit (1);
15273       fprintf (f, "%lu\n", i);
15274     }
15275   exit (ferror (f) || fclose (f) != 0);
15276
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 rm -f conftest$ac_exeext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15283   (eval $ac_link) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; }; then
15292   ac_cv_sizeof_short_int=`cat conftest.val`
15293 else
15294   echo "$as_me: program exited with status $ac_status" >&5
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 ( exit $ac_status )
15299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15300 See \`config.log' for more details." >&5
15301 echo "$as_me: error: cannot compute sizeof (short int), 77
15302 See \`config.log' for more details." >&2;}
15303    { (exit 1); exit 1; }; }
15304 fi
15305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15306 fi
15307 fi
15308 rm -f conftest.val
15309 else
15310   ac_cv_sizeof_short_int=0
15311 fi
15312 fi
15313 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15314 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15315 cat >>confdefs.h <<_ACEOF
15316 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15317 _ACEOF
15318
15319
15320 echo "$as_me:$LINENO: checking for int" >&5
15321 echo $ECHO_N "checking for int... $ECHO_C" >&6
15322 if test "${ac_cv_type_int+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h.  */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h.  */
15331 $ac_includes_default
15332 int
15333 main ()
15334 {
15335 if ((int *) 0)
15336   return 0;
15337 if (sizeof (int))
15338   return 0;
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345   (eval $ac_compile) 2>conftest.er1
15346   ac_status=$?
15347   grep -v '^ *+' conftest.er1 >conftest.err
15348   rm -f conftest.er1
15349   cat conftest.err >&5
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } &&
15352          { ac_try='test -z "$ac_c_werror_flag"
15353                          || test ! -s conftest.err'
15354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355   (eval $ac_try) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; } &&
15359          { ac_try='test -s conftest.$ac_objext'
15360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361   (eval $ac_try) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; }; then
15365   ac_cv_type_int=yes
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370 ac_cv_type_int=no
15371 fi
15372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15373 fi
15374 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15375 echo "${ECHO_T}$ac_cv_type_int" >&6
15376
15377 echo "$as_me:$LINENO: checking size of int" >&5
15378 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15379 if test "${ac_cv_sizeof_int+set}" = set; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382   if test "$ac_cv_type_int" = yes; then
15383   # The cast to unsigned long works around a bug in the HP C Compiler
15384   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15385   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15386   # This bug is HP SR number 8606223364.
15387   if test "$cross_compiling" = yes; then
15388   # Depending upon the size, compute the lo and hi bounds.
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395 $ac_includes_default
15396 int
15397 main ()
15398 {
15399 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15400 test_array [0] = 0
15401
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 rm -f conftest.$ac_objext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15408   (eval $ac_compile) 2>conftest.er1
15409   ac_status=$?
15410   grep -v '^ *+' conftest.er1 >conftest.err
15411   rm -f conftest.er1
15412   cat conftest.err >&5
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); } &&
15415          { ac_try='test -z "$ac_c_werror_flag"
15416                          || test ! -s conftest.err'
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); }; } &&
15422          { ac_try='test -s conftest.$ac_objext'
15423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424   (eval $ac_try) 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; }; then
15428   ac_lo=0 ac_mid=0
15429   while :; do
15430     cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 $ac_includes_default
15437 int
15438 main ()
15439 {
15440 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15441 test_array [0] = 0
15442
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15449   (eval $ac_compile) 2>conftest.er1
15450   ac_status=$?
15451   grep -v '^ *+' conftest.er1 >conftest.err
15452   rm -f conftest.er1
15453   cat conftest.err >&5
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -z "$ac_c_werror_flag"
15457                          || test ! -s conftest.err'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest.$ac_objext'
15464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465   (eval $ac_try) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469   ac_hi=$ac_mid; break
15470 else
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474 ac_lo=`expr $ac_mid + 1`
15475                     if test $ac_lo -le $ac_mid; then
15476                       ac_lo= ac_hi=
15477                       break
15478                     fi
15479                     ac_mid=`expr 2 '*' $ac_mid + 1`
15480 fi
15481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15482   done
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
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))) < 0)];
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=-1 ac_mid=-1
15527   while :; do
15528     cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h.  */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h.  */
15534 $ac_includes_default
15535 int
15536 main ()
15537 {
15538 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15539 test_array [0] = 0
15540
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547   (eval $ac_compile) 2>conftest.er1
15548   ac_status=$?
15549   grep -v '^ *+' conftest.er1 >conftest.err
15550   rm -f conftest.er1
15551   cat conftest.err >&5
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -z "$ac_c_werror_flag"
15555                          || test ! -s conftest.err'
15556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557   (eval $ac_try) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; } &&
15561          { ac_try='test -s conftest.$ac_objext'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; }; then
15567   ac_lo=$ac_mid; break
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 ac_hi=`expr '(' $ac_mid ')' - 1`
15573                        if test $ac_mid -le $ac_hi; then
15574                          ac_lo= ac_hi=
15575                          break
15576                        fi
15577                        ac_mid=`expr 2 '*' $ac_mid`
15578 fi
15579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15580   done
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15584
15585 ac_lo= ac_hi=
15586 fi
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15588 fi
15589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15590 # Binary search between lo and hi bounds.
15591 while test "x$ac_lo" != "x$ac_hi"; do
15592   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15593   cat >conftest.$ac_ext <<_ACEOF
15594 /* confdefs.h.  */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h.  */
15599 $ac_includes_default
15600 int
15601 main ()
15602 {
15603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15604 test_array [0] = 0
15605
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15612   (eval $ac_compile) 2>conftest.er1
15613   ac_status=$?
15614   grep -v '^ *+' conftest.er1 >conftest.err
15615   rm -f conftest.er1
15616   cat conftest.err >&5
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } &&
15619          { ac_try='test -z "$ac_c_werror_flag"
15620                          || test ! -s conftest.err'
15621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622   (eval $ac_try) 2>&5
15623   ac_status=$?
15624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625   (exit $ac_status); }; } &&
15626          { ac_try='test -s conftest.$ac_objext'
15627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628   (eval $ac_try) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); }; }; then
15632   ac_hi=$ac_mid
15633 else
15634   echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15636
15637 ac_lo=`expr '(' $ac_mid ')' + 1`
15638 fi
15639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15640 done
15641 case $ac_lo in
15642 ?*) ac_cv_sizeof_int=$ac_lo;;
15643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15644 See \`config.log' for more details." >&5
15645 echo "$as_me: error: cannot compute sizeof (int), 77
15646 See \`config.log' for more details." >&2;}
15647    { (exit 1); exit 1; }; } ;;
15648 esac
15649 else
15650   if test "$cross_compiling" = yes; then
15651   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15652 See \`config.log' for more details." >&5
15653 echo "$as_me: error: cannot run test program while cross compiling
15654 See \`config.log' for more details." >&2;}
15655    { (exit 1); exit 1; }; }
15656 else
15657   cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h.  */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h.  */
15663 $ac_includes_default
15664 long longval () { return (long) (sizeof (int)); }
15665 unsigned long ulongval () { return (long) (sizeof (int)); }
15666 #include <stdio.h>
15667 #include <stdlib.h>
15668 int
15669 main ()
15670 {
15671
15672   FILE *f = fopen ("conftest.val", "w");
15673   if (! f)
15674     exit (1);
15675   if (((long) (sizeof (int))) < 0)
15676     {
15677       long i = longval ();
15678       if (i != ((long) (sizeof (int))))
15679         exit (1);
15680       fprintf (f, "%ld\n", i);
15681     }
15682   else
15683     {
15684       unsigned long i = ulongval ();
15685       if (i != ((long) (sizeof (int))))
15686         exit (1);
15687       fprintf (f, "%lu\n", i);
15688     }
15689   exit (ferror (f) || fclose (f) != 0);
15690
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest$ac_exeext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697   (eval $ac_link) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702   (eval $ac_try) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }; then
15706   ac_cv_sizeof_int=`cat conftest.val`
15707 else
15708   echo "$as_me: program exited with status $ac_status" >&5
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 ( exit $ac_status )
15713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15714 See \`config.log' for more details." >&5
15715 echo "$as_me: error: cannot compute sizeof (int), 77
15716 See \`config.log' for more details." >&2;}
15717    { (exit 1); exit 1; }; }
15718 fi
15719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15720 fi
15721 fi
15722 rm -f conftest.val
15723 else
15724   ac_cv_sizeof_int=0
15725 fi
15726 fi
15727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15728 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15729 cat >>confdefs.h <<_ACEOF
15730 #define SIZEOF_INT $ac_cv_sizeof_int
15731 _ACEOF
15732
15733
15734 echo "$as_me:$LINENO: checking for long int" >&5
15735 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15736 if test "${ac_cv_type_long_int+set}" = set; then
15737   echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739   cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745 $ac_includes_default
15746 int
15747 main ()
15748 {
15749 if ((long int *) 0)
15750   return 0;
15751 if (sizeof (long int))
15752   return 0;
15753   ;
15754   return 0;
15755 }
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759   (eval $ac_compile) 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_c_werror_flag"
15767                          || test ! -s conftest.err'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_cv_type_long_int=yes
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784 ac_cv_type_long_int=no
15785 fi
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 fi
15788 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15789 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15790
15791 echo "$as_me:$LINENO: checking size of long int" >&5
15792 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15793 if test "${ac_cv_sizeof_long_int+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   if test "$ac_cv_type_long_int" = yes; then
15797   # The cast to unsigned long works around a bug in the HP C Compiler
15798   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15799   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15800   # This bug is HP SR number 8606223364.
15801   if test "$cross_compiling" = yes; then
15802   # Depending upon the size, compute the lo and hi bounds.
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809 $ac_includes_default
15810 int
15811 main ()
15812 {
15813 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15814 test_array [0] = 0
15815
15816   ;
15817   return 0;
15818 }
15819 _ACEOF
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822   (eval $ac_compile) 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } &&
15829          { ac_try='test -z "$ac_c_werror_flag"
15830                          || test ! -s conftest.err'
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); }; } &&
15836          { ac_try='test -s conftest.$ac_objext'
15837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838   (eval $ac_try) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; }; then
15842   ac_lo=0 ac_mid=0
15843   while :; do
15844     cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850 $ac_includes_default
15851 int
15852 main ()
15853 {
15854 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15855 test_array [0] = 0
15856
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863   (eval $ac_compile) 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -z "$ac_c_werror_flag"
15871                          || test ! -s conftest.err'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; } &&
15877          { ac_try='test -s conftest.$ac_objext'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; }; then
15883   ac_hi=$ac_mid; break
15884 else
15885   echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ac_lo=`expr $ac_mid + 1`
15889                     if test $ac_lo -le $ac_mid; then
15890                       ac_lo= ac_hi=
15891                       break
15892                     fi
15893                     ac_mid=`expr 2 '*' $ac_mid + 1`
15894 fi
15895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15896   done
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
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))) < 0)];
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=-1 ac_mid=-1
15941   while :; do
15942     cat >conftest.$ac_ext <<_ACEOF
15943 /* confdefs.h.  */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h.  */
15948 $ac_includes_default
15949 int
15950 main ()
15951 {
15952 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15953 test_array [0] = 0
15954
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961   (eval $ac_compile) 2>conftest.er1
15962   ac_status=$?
15963   grep -v '^ *+' conftest.er1 >conftest.err
15964   rm -f conftest.er1
15965   cat conftest.err >&5
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -z "$ac_c_werror_flag"
15969                          || test ! -s conftest.err'
15970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971   (eval $ac_try) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; } &&
15975          { ac_try='test -s conftest.$ac_objext'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981   ac_lo=$ac_mid; break
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 ac_hi=`expr '(' $ac_mid ')' - 1`
15987                        if test $ac_mid -le $ac_hi; then
15988                          ac_lo= ac_hi=
15989                          break
15990                        fi
15991                        ac_mid=`expr 2 '*' $ac_mid`
15992 fi
15993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15994   done
15995 else
15996   echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 ac_lo= ac_hi=
16000 fi
16001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16002 fi
16003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16004 # Binary search between lo and hi bounds.
16005 while test "x$ac_lo" != "x$ac_hi"; do
16006   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16007   cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h.  */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h.  */
16013 $ac_includes_default
16014 int
16015 main ()
16016 {
16017 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16018 test_array [0] = 0
16019
16020   ;
16021   return 0;
16022 }
16023 _ACEOF
16024 rm -f conftest.$ac_objext
16025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026   (eval $ac_compile) 2>conftest.er1
16027   ac_status=$?
16028   grep -v '^ *+' conftest.er1 >conftest.err
16029   rm -f conftest.er1
16030   cat conftest.err >&5
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } &&
16033          { ac_try='test -z "$ac_c_werror_flag"
16034                          || test ! -s conftest.err'
16035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036   (eval $ac_try) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; } &&
16040          { ac_try='test -s conftest.$ac_objext'
16041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042   (eval $ac_try) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; }; then
16046   ac_hi=$ac_mid
16047 else
16048   echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16050
16051 ac_lo=`expr '(' $ac_mid ')' + 1`
16052 fi
16053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16054 done
16055 case $ac_lo in
16056 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16057 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16058 See \`config.log' for more details." >&5
16059 echo "$as_me: error: cannot compute sizeof (long int), 77
16060 See \`config.log' for more details." >&2;}
16061    { (exit 1); exit 1; }; } ;;
16062 esac
16063 else
16064   if test "$cross_compiling" = yes; then
16065   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16066 See \`config.log' for more details." >&5
16067 echo "$as_me: error: cannot run test program while cross compiling
16068 See \`config.log' for more details." >&2;}
16069    { (exit 1); exit 1; }; }
16070 else
16071   cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h.  */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h.  */
16077 $ac_includes_default
16078 long longval () { return (long) (sizeof (long int)); }
16079 unsigned long ulongval () { return (long) (sizeof (long int)); }
16080 #include <stdio.h>
16081 #include <stdlib.h>
16082 int
16083 main ()
16084 {
16085
16086   FILE *f = fopen ("conftest.val", "w");
16087   if (! f)
16088     exit (1);
16089   if (((long) (sizeof (long int))) < 0)
16090     {
16091       long i = longval ();
16092       if (i != ((long) (sizeof (long int))))
16093         exit (1);
16094       fprintf (f, "%ld\n", i);
16095     }
16096   else
16097     {
16098       unsigned long i = ulongval ();
16099       if (i != ((long) (sizeof (long int))))
16100         exit (1);
16101       fprintf (f, "%lu\n", i);
16102     }
16103   exit (ferror (f) || fclose (f) != 0);
16104
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest$ac_exeext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16111   (eval $ac_link) 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120   ac_cv_sizeof_long_int=`cat conftest.val`
16121 else
16122   echo "$as_me: program exited with status $ac_status" >&5
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 ( exit $ac_status )
16127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16128 See \`config.log' for more details." >&5
16129 echo "$as_me: error: cannot compute sizeof (long int), 77
16130 See \`config.log' for more details." >&2;}
16131    { (exit 1); exit 1; }; }
16132 fi
16133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16134 fi
16135 fi
16136 rm -f conftest.val
16137 else
16138   ac_cv_sizeof_long_int=0
16139 fi
16140 fi
16141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16142 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16143 cat >>confdefs.h <<_ACEOF
16144 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16145 _ACEOF
16146
16147
16148 echo "$as_me:$LINENO: checking for long long int" >&5
16149 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16150 if test "${ac_cv_type_long_long_int+set}" = set; then
16151   echo $ECHO_N "(cached) $ECHO_C" >&6
16152 else
16153   cat >conftest.$ac_ext <<_ACEOF
16154 /* confdefs.h.  */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h.  */
16159 $ac_includes_default
16160 int
16161 main ()
16162 {
16163 if ((long long int *) 0)
16164   return 0;
16165 if (sizeof (long long int))
16166   return 0;
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173   (eval $ac_compile) 2>conftest.er1
16174   ac_status=$?
16175   grep -v '^ *+' conftest.er1 >conftest.err
16176   rm -f conftest.er1
16177   cat conftest.err >&5
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -z "$ac_c_werror_flag"
16181                          || test ! -s conftest.err'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; } &&
16187          { ac_try='test -s conftest.$ac_objext'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; }; then
16193   ac_cv_type_long_long_int=yes
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ac_cv_type_long_long_int=no
16199 fi
16200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16201 fi
16202 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16203 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16204
16205 echo "$as_me:$LINENO: checking size of long long int" >&5
16206 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16207 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   if test "$ac_cv_type_long_long_int" = yes; then
16211   # The cast to unsigned long works around a bug in the HP C Compiler
16212   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16213   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16214   # This bug is HP SR number 8606223364.
16215   if test "$cross_compiling" = yes; then
16216   # Depending upon the size, compute the lo and hi bounds.
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h.  */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h.  */
16223 $ac_includes_default
16224 int
16225 main ()
16226 {
16227 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16228 test_array [0] = 0
16229
16230   ;
16231   return 0;
16232 }
16233 _ACEOF
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236   (eval $ac_compile) 2>conftest.er1
16237   ac_status=$?
16238   grep -v '^ *+' conftest.er1 >conftest.err
16239   rm -f conftest.er1
16240   cat conftest.err >&5
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); } &&
16243          { ac_try='test -z "$ac_c_werror_flag"
16244                          || test ! -s conftest.err'
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); }; } &&
16250          { ac_try='test -s conftest.$ac_objext'
16251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252   (eval $ac_try) 2>&5
16253   ac_status=$?
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); }; }; then
16256   ac_lo=0 ac_mid=0
16257   while :; do
16258     cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264 $ac_includes_default
16265 int
16266 main ()
16267 {
16268 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16269 test_array [0] = 0
16270
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277   (eval $ac_compile) 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag"
16285                          || test ! -s conftest.err'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; } &&
16291          { ac_try='test -s conftest.$ac_objext'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; }; then
16297   ac_hi=$ac_mid; break
16298 else
16299   echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 ac_lo=`expr $ac_mid + 1`
16303                     if test $ac_lo -le $ac_mid; then
16304                       ac_lo= ac_hi=
16305                       break
16306                     fi
16307                     ac_mid=`expr 2 '*' $ac_mid + 1`
16308 fi
16309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16310   done
16311 else
16312   echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
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))) < 0)];
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=-1 ac_mid=-1
16355   while :; do
16356     cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 $ac_includes_default
16363 int
16364 main ()
16365 {
16366 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16367 test_array [0] = 0
16368
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375   (eval $ac_compile) 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -z "$ac_c_werror_flag"
16383                          || test ! -s conftest.err'
16384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385   (eval $ac_try) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }; } &&
16389          { ac_try='test -s conftest.$ac_objext'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; }; then
16395   ac_lo=$ac_mid; break
16396 else
16397   echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400 ac_hi=`expr '(' $ac_mid ')' - 1`
16401                        if test $ac_mid -le $ac_hi; then
16402                          ac_lo= ac_hi=
16403                          break
16404                        fi
16405                        ac_mid=`expr 2 '*' $ac_mid`
16406 fi
16407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16408   done
16409 else
16410   echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 ac_lo= ac_hi=
16414 fi
16415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16416 fi
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 # Binary search between lo and hi bounds.
16419 while test "x$ac_lo" != "x$ac_hi"; do
16420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16421   cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h.  */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h.  */
16427 $ac_includes_default
16428 int
16429 main ()
16430 {
16431 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16432 test_array [0] = 0
16433
16434   ;
16435   return 0;
16436 }
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440   (eval $ac_compile) 2>conftest.er1
16441   ac_status=$?
16442   grep -v '^ *+' conftest.er1 >conftest.err
16443   rm -f conftest.er1
16444   cat conftest.err >&5
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); } &&
16447          { ac_try='test -z "$ac_c_werror_flag"
16448                          || test ! -s conftest.err'
16449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450   (eval $ac_try) 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; } &&
16454          { ac_try='test -s conftest.$ac_objext'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; }; then
16460   ac_hi=$ac_mid
16461 else
16462   echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 ac_lo=`expr '(' $ac_mid ')' + 1`
16466 fi
16467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16468 done
16469 case $ac_lo in
16470 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16472 See \`config.log' for more details." >&5
16473 echo "$as_me: error: cannot compute sizeof (long long int), 77
16474 See \`config.log' for more details." >&2;}
16475    { (exit 1); exit 1; }; } ;;
16476 esac
16477 else
16478   if test "$cross_compiling" = yes; then
16479   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16480 See \`config.log' for more details." >&5
16481 echo "$as_me: error: cannot run test program while cross compiling
16482 See \`config.log' for more details." >&2;}
16483    { (exit 1); exit 1; }; }
16484 else
16485   cat >conftest.$ac_ext <<_ACEOF
16486 /* confdefs.h.  */
16487 _ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h.  */
16491 $ac_includes_default
16492 long longval () { return (long) (sizeof (long long int)); }
16493 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16494 #include <stdio.h>
16495 #include <stdlib.h>
16496 int
16497 main ()
16498 {
16499
16500   FILE *f = fopen ("conftest.val", "w");
16501   if (! f)
16502     exit (1);
16503   if (((long) (sizeof (long long int))) < 0)
16504     {
16505       long i = longval ();
16506       if (i != ((long) (sizeof (long long int))))
16507         exit (1);
16508       fprintf (f, "%ld\n", i);
16509     }
16510   else
16511     {
16512       unsigned long i = ulongval ();
16513       if (i != ((long) (sizeof (long long int))))
16514         exit (1);
16515       fprintf (f, "%lu\n", i);
16516     }
16517   exit (ferror (f) || fclose (f) != 0);
16518
16519   ;
16520   return 0;
16521 }
16522 _ACEOF
16523 rm -f conftest$ac_exeext
16524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16525   (eval $ac_link) 2>&5
16526   ac_status=$?
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530   (eval $ac_try) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; }; then
16534   ac_cv_sizeof_long_long_int=`cat conftest.val`
16535 else
16536   echo "$as_me: program exited with status $ac_status" >&5
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540 ( exit $ac_status )
16541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16542 See \`config.log' for more details." >&5
16543 echo "$as_me: error: cannot compute sizeof (long long int), 77
16544 See \`config.log' for more details." >&2;}
16545    { (exit 1); exit 1; }; }
16546 fi
16547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16548 fi
16549 fi
16550 rm -f conftest.val
16551 else
16552   ac_cv_sizeof_long_long_int=0
16553 fi
16554 fi
16555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16556 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16557 cat >>confdefs.h <<_ACEOF
16558 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16559 _ACEOF
16560
16561
16562 echo "$as_me:$LINENO: checking for int *" >&5
16563 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16564 if test "${ac_cv_type_int_p+set}" = set; then
16565   echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567   cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573 $ac_includes_default
16574 int
16575 main ()
16576 {
16577 if ((int * *) 0)
16578   return 0;
16579 if (sizeof (int *))
16580   return 0;
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587   (eval $ac_compile) 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } &&
16594          { ac_try='test -z "$ac_c_werror_flag"
16595                          || test ! -s conftest.err'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; } &&
16601          { ac_try='test -s conftest.$ac_objext'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   ac_cv_type_int_p=yes
16608 else
16609   echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 ac_cv_type_int_p=no
16613 fi
16614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16617 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16618
16619 echo "$as_me:$LINENO: checking size of int *" >&5
16620 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16621 if test "${ac_cv_sizeof_int_p+set}" = set; then
16622   echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624   if test "$ac_cv_type_int_p" = yes; then
16625   # The cast to unsigned long works around a bug in the HP C Compiler
16626   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16627   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16628   # This bug is HP SR number 8606223364.
16629   if test "$cross_compiling" = yes; then
16630   # Depending upon the size, compute the lo and hi bounds.
16631 cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637 $ac_includes_default
16638 int
16639 main ()
16640 {
16641 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16642 test_array [0] = 0
16643
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 rm -f conftest.$ac_objext
16649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16650   (eval $ac_compile) 2>conftest.er1
16651   ac_status=$?
16652   grep -v '^ *+' conftest.er1 >conftest.err
16653   rm -f conftest.er1
16654   cat conftest.err >&5
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); } &&
16657          { ac_try='test -z "$ac_c_werror_flag"
16658                          || test ! -s conftest.err'
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); }; } &&
16664          { ac_try='test -s conftest.$ac_objext'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_lo=0 ac_mid=0
16671   while :; do
16672     cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678 $ac_includes_default
16679 int
16680 main ()
16681 {
16682 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16683 test_array [0] = 0
16684
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691   (eval $ac_compile) 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } &&
16698          { ac_try='test -z "$ac_c_werror_flag"
16699                          || test ! -s conftest.err'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; } &&
16705          { ac_try='test -s conftest.$ac_objext'
16706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707   (eval $ac_try) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   ac_hi=$ac_mid; break
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_lo=`expr $ac_mid + 1`
16717                     if test $ac_lo -le $ac_mid; then
16718                       ac_lo= ac_hi=
16719                       break
16720                     fi
16721                     ac_mid=`expr 2 '*' $ac_mid + 1`
16722 fi
16723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16724   done
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
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 *))) < 0)];
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=-1 ac_mid=-1
16769   while :; do
16770     cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776 $ac_includes_default
16777 int
16778 main ()
16779 {
16780 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16781 test_array [0] = 0
16782
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16789   (eval $ac_compile) 2>conftest.er1
16790   ac_status=$?
16791   grep -v '^ *+' conftest.er1 >conftest.err
16792   rm -f conftest.er1
16793   cat conftest.err >&5
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); } &&
16796          { ac_try='test -z "$ac_c_werror_flag"
16797                          || test ! -s conftest.err'
16798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799   (eval $ac_try) 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; } &&
16803          { ac_try='test -s conftest.$ac_objext'
16804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805   (eval $ac_try) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; }; then
16809   ac_lo=$ac_mid; break
16810 else
16811   echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16813
16814 ac_hi=`expr '(' $ac_mid ')' - 1`
16815                        if test $ac_mid -le $ac_hi; then
16816                          ac_lo= ac_hi=
16817                          break
16818                        fi
16819                        ac_mid=`expr 2 '*' $ac_mid`
16820 fi
16821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16822   done
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 ac_lo= ac_hi=
16828 fi
16829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16830 fi
16831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16832 # Binary search between lo and hi bounds.
16833 while test "x$ac_lo" != "x$ac_hi"; do
16834   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16835   cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h.  */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h.  */
16841 $ac_includes_default
16842 int
16843 main ()
16844 {
16845 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16846 test_array [0] = 0
16847
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854   (eval $ac_compile) 2>conftest.er1
16855   ac_status=$?
16856   grep -v '^ *+' conftest.er1 >conftest.err
16857   rm -f conftest.er1
16858   cat conftest.err >&5
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); } &&
16861          { ac_try='test -z "$ac_c_werror_flag"
16862                          || test ! -s conftest.err'
16863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864   (eval $ac_try) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; } &&
16868          { ac_try='test -s conftest.$ac_objext'
16869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870   (eval $ac_try) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; }; then
16874   ac_hi=$ac_mid
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_lo=`expr '(' $ac_mid ')' + 1`
16880 fi
16881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16882 done
16883 case $ac_lo in
16884 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16885 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16886 See \`config.log' for more details." >&5
16887 echo "$as_me: error: cannot compute sizeof (int *), 77
16888 See \`config.log' for more details." >&2;}
16889    { (exit 1); exit 1; }; } ;;
16890 esac
16891 else
16892   if test "$cross_compiling" = yes; then
16893   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16894 See \`config.log' for more details." >&5
16895 echo "$as_me: error: cannot run test program while cross compiling
16896 See \`config.log' for more details." >&2;}
16897    { (exit 1); exit 1; }; }
16898 else
16899   cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905 $ac_includes_default
16906 long longval () { return (long) (sizeof (int *)); }
16907 unsigned long ulongval () { return (long) (sizeof (int *)); }
16908 #include <stdio.h>
16909 #include <stdlib.h>
16910 int
16911 main ()
16912 {
16913
16914   FILE *f = fopen ("conftest.val", "w");
16915   if (! f)
16916     exit (1);
16917   if (((long) (sizeof (int *))) < 0)
16918     {
16919       long i = longval ();
16920       if (i != ((long) (sizeof (int *))))
16921         exit (1);
16922       fprintf (f, "%ld\n", i);
16923     }
16924   else
16925     {
16926       unsigned long i = ulongval ();
16927       if (i != ((long) (sizeof (int *))))
16928         exit (1);
16929       fprintf (f, "%lu\n", i);
16930     }
16931   exit (ferror (f) || fclose (f) != 0);
16932
16933   ;
16934   return 0;
16935 }
16936 _ACEOF
16937 rm -f conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939   (eval $ac_link) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944   (eval $ac_try) 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; }; then
16948   ac_cv_sizeof_int_p=`cat conftest.val`
16949 else
16950   echo "$as_me: program exited with status $ac_status" >&5
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954 ( exit $ac_status )
16955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16956 See \`config.log' for more details." >&5
16957 echo "$as_me: error: cannot compute sizeof (int *), 77
16958 See \`config.log' for more details." >&2;}
16959    { (exit 1); exit 1; }; }
16960 fi
16961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16962 fi
16963 fi
16964 rm -f conftest.val
16965 else
16966   ac_cv_sizeof_int_p=0
16967 fi
16968 fi
16969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16970 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16971 cat >>confdefs.h <<_ACEOF
16972 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16973 _ACEOF
16974
16975
16976
16977 # Check for sys/types.h types
16978 echo "$as_me:$LINENO: checking for u_int type" >&5
16979 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16980 if test "${ac_cv_have_u_int+set}" = set; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983
16984     cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990  #include <sys/types.h>
16991 int
16992 main ()
16993 {
16994  u_int a; a = 1;
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17001   (eval $ac_compile) 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } &&
17008          { ac_try='test -z "$ac_c_werror_flag"
17009                          || test ! -s conftest.err'
17010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011   (eval $ac_try) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; } &&
17015          { ac_try='test -s conftest.$ac_objext'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021    ac_cv_have_u_int="yes"
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026  ac_cv_have_u_int="no"
17027
17028 fi
17029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17030
17031 fi
17032 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17033 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17034 if test "x$ac_cv_have_u_int" = "xyes" ; then
17035    cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_U_INT 1
17037 _ACEOF
17038
17039    have_u_int=1
17040 fi
17041
17042 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17043 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17044 if test "${ac_cv_have_intmax_t+set}" = set; then
17045   echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047
17048    cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h.  */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h.  */
17054  #include <sys/types.h>
17055 int
17056 main ()
17057 {
17058  intmax_t a; a = 1;
17059   ;
17060   return 0;
17061 }
17062 _ACEOF
17063 rm -f conftest.$ac_objext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065   (eval $ac_compile) 2>conftest.er1
17066   ac_status=$?
17067   grep -v '^ *+' conftest.er1 >conftest.err
17068   rm -f conftest.er1
17069   cat conftest.err >&5
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); } &&
17072          { ac_try='test -z "$ac_c_werror_flag"
17073                          || test ! -s conftest.err'
17074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075   (eval $ac_try) 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; } &&
17079          { ac_try='test -s conftest.$ac_objext'
17080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081   (eval $ac_try) 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; }; then
17085    ac_cv_have_intmax_t="yes"
17086 else
17087   echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090
17091          cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097  #include <stdint.h>
17098 int
17099 main ()
17100 {
17101  intmax_t a; a = 1;
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108   (eval $ac_compile) 2>conftest.er1
17109   ac_status=$?
17110   grep -v '^ *+' conftest.er1 >conftest.err
17111   rm -f conftest.er1
17112   cat conftest.err >&5
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } &&
17115          { ac_try='test -z "$ac_c_werror_flag"
17116                          || test ! -s conftest.err'
17117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118   (eval $ac_try) 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; } &&
17122          { ac_try='test -s conftest.$ac_objext'
17123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124   (eval $ac_try) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; }; then
17128    ac_cv_have_intmax_t="yes"
17129 else
17130   echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133  ac_cv_have_intmax_t="no"
17134
17135 fi
17136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17137
17138
17139 fi
17140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17141
17142
17143 fi
17144 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17145 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17146 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17147    cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_INTMAX_T 1
17149 _ACEOF
17150
17151    have_intmax_t=1
17152 fi
17153
17154
17155 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17156 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17157 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160
17161    cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167  #include <sys/types.h>
17168 int
17169 main ()
17170 {
17171  u_intmax_t a; a = 1;
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178   (eval $ac_compile) 2>conftest.er1
17179   ac_status=$?
17180   grep -v '^ *+' conftest.er1 >conftest.err
17181   rm -f conftest.er1
17182   cat conftest.err >&5
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); } &&
17185          { ac_try='test -z "$ac_c_werror_flag"
17186                          || test ! -s conftest.err'
17187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188   (eval $ac_try) 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; } &&
17192          { ac_try='test -s conftest.$ac_objext'
17193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194   (eval $ac_try) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); }; }; then
17198    ac_cv_have_u_intmax_t="yes"
17199 else
17200   echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203
17204          cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h.  */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h.  */
17210  #include <stdint.h>
17211 int
17212 main ()
17213 {
17214  u_intmax_t a; a = 1;
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221   (eval $ac_compile) 2>conftest.er1
17222   ac_status=$?
17223   grep -v '^ *+' conftest.er1 >conftest.err
17224   rm -f conftest.er1
17225   cat conftest.err >&5
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } &&
17228          { ac_try='test -z "$ac_c_werror_flag"
17229                          || test ! -s conftest.err'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest.$ac_objext'
17236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237   (eval $ac_try) 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241    ac_cv_have_u_intmax_t="yes"
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246  ac_cv_have_u_intmax_t="no"
17247
17248 fi
17249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17250
17251
17252 fi
17253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17254
17255 fi
17256 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17257 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17258 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17259    cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_U_INTMAX_T 1
17261 _ACEOF
17262
17263    have_u_intmax_t=1
17264 fi
17265
17266
17267 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17268 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17269 if test "${ac_cv_have_intxx_t+set}" = set; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272
17273    cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h.  */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h.  */
17279  #include <sys/types.h>
17280 int
17281 main ()
17282 {
17283  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17290   (eval $ac_compile) 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } &&
17297          { ac_try='test -z "$ac_c_werror_flag"
17298                          || test ! -s conftest.err'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest.$ac_objext'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; }; then
17310    ac_cv_have_intxx_t="yes"
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315  ac_cv_have_intxx_t="no"
17316
17317 fi
17318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17319
17320 fi
17321 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17322 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17323 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17324    cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_INTXX_T 1
17326 _ACEOF
17327
17328    have_intxx_t=1
17329 fi
17330
17331 echo "$as_me:$LINENO: checking for int64_t type" >&5
17332 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17333 if test "${ac_cv_have_int64_t+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336
17337    cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343  #include <sys/types.h>
17344 int
17345 main ()
17346 {
17347  int64_t a; a = 1;
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354   (eval $ac_compile) 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -z "$ac_c_werror_flag"
17362                          || test ! -s conftest.err'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; } &&
17368          { ac_try='test -s conftest.$ac_objext'
17369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370   (eval $ac_try) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; }; then
17374    ac_cv_have_int64_t="yes"
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379  ac_cv_have_int64_t="no"
17380
17381 fi
17382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17383
17384 fi
17385 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17386 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17387 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17388    cat >>confdefs.h <<\_ACEOF
17389 #define HAVE_INT64_T 1
17390 _ACEOF
17391
17392    have_int64_t=1
17393 fi
17394
17395 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17396 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17397 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400
17401    cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407  #include <sys/types.h>
17408 int
17409 main ()
17410 {
17411  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418   (eval $ac_compile) 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -z "$ac_c_werror_flag"
17426                          || test ! -s conftest.err'
17427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428   (eval $ac_try) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); }; } &&
17432          { ac_try='test -s conftest.$ac_objext'
17433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434   (eval $ac_try) 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438    ac_cv_have_u_intxx_t="yes"
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443  ac_cv_have_u_intxx_t="no"
17444
17445 fi
17446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17447
17448 fi
17449 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17450 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17451 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17452    cat >>confdefs.h <<\_ACEOF
17453 #define HAVE_U_INTXX_T 1
17454 _ACEOF
17455
17456    have_u_intxx_t=1
17457 fi
17458
17459 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17460 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17461 if test "${ac_cv_have_u_int64_t+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464
17465    cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h.  */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h.  */
17471  #include <sys/types.h>
17472 int
17473 main ()
17474 {
17475  u_int64_t a; a = 1;
17476   ;
17477   return 0;
17478 }
17479 _ACEOF
17480 rm -f conftest.$ac_objext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482   (eval $ac_compile) 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } &&
17489          { ac_try='test -z "$ac_c_werror_flag"
17490                          || test ! -s conftest.err'
17491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492   (eval $ac_try) 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); }; } &&
17496          { ac_try='test -s conftest.$ac_objext'
17497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498   (eval $ac_try) 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; }; then
17502    ac_cv_have_u_int64_t="yes"
17503 else
17504   echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507  ac_cv_have_u_int64_t="no"
17508
17509 fi
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17511
17512 fi
17513 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17514 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17515 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17516    cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_U_INT64_T 1
17518 _ACEOF
17519
17520    have_u_int64_t=1
17521 fi
17522
17523 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17524            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17525 then
17526    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17527 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17528    cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534  #include <sys/bitypes.h>
17535 int
17536 main ()
17537 {
17538  int8_t a; int16_t b; int32_t c;
17539         u_int8_t e; u_int16_t f; u_int32_t g;
17540         a = b = c = e = f = g = 1;
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547   (eval $ac_compile) 2>conftest.er1
17548   ac_status=$?
17549   grep -v '^ *+' conftest.er1 >conftest.err
17550   rm -f conftest.er1
17551   cat conftest.err >&5
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); } &&
17554          { ac_try='test -z "$ac_c_werror_flag"
17555                          || test ! -s conftest.err'
17556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557   (eval $ac_try) 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; } &&
17561          { ac_try='test -s conftest.$ac_objext'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; }; then
17567    cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_U_INTXX_T 1
17569 _ACEOF
17570
17571         cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_INTXX_T 1
17573 _ACEOF
17574
17575         cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_SYS_BITYPES_H 1
17577 _ACEOF
17578
17579         echo "$as_me:$LINENO: result: yes" >&5
17580 echo "${ECHO_T}yes" >&6
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585  echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6
17587
17588 fi
17589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17590 fi
17591
17592 if test -z "$have_u_intxx_t" ; then
17593    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17594 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17595 if test "${ac_cv_have_uintxx_t+set}" = set; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598
17599       cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605  #include <sys/types.h>
17606 int
17607 main ()
17608 {
17609  uint8_t a; uint16_t b;
17610            uint32_t c; a = b = c = 1;
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 rm -f conftest.$ac_objext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17617   (eval $ac_compile) 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } &&
17624          { ac_try='test -z "$ac_c_werror_flag"
17625                          || test ! -s conftest.err'
17626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627   (eval $ac_try) 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }; } &&
17631          { ac_try='test -s conftest.$ac_objext'
17632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633   (eval $ac_try) 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); }; }; then
17637    ac_cv_have_uintxx_t="yes"
17638 else
17639   echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17641
17642  ac_cv_have_uintxx_t="no"
17643
17644 fi
17645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646
17647 fi
17648 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17649 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17650    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17651       cat >>confdefs.h <<\_ACEOF
17652 #define HAVE_UINTXX_T 1
17653 _ACEOF
17654
17655    fi
17656 fi
17657
17658 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17659           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17660 then
17661    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17662 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17663    cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h.  */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h.  */
17669  #include <sys/bitypes.h>
17670 int
17671 main ()
17672 {
17673  int64_t a; u_int64_t b;
17674        a = b = 1;
17675   ;
17676   return 0;
17677 }
17678 _ACEOF
17679 rm -f conftest.$ac_objext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681   (eval $ac_compile) 2>conftest.er1
17682   ac_status=$?
17683   grep -v '^ *+' conftest.er1 >conftest.err
17684   rm -f conftest.er1
17685   cat conftest.err >&5
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } &&
17688          { ac_try='test -z "$ac_c_werror_flag"
17689                          || test ! -s conftest.err'
17690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691   (eval $ac_try) 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; } &&
17695          { ac_try='test -s conftest.$ac_objext'
17696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697   (eval $ac_try) 2>&5
17698   ac_status=$?
17699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700   (exit $ac_status); }; }; then
17701    cat >>confdefs.h <<\_ACEOF
17702 #define HAVE_U_INT64_T 1
17703 _ACEOF
17704
17705        cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_INT64_T 1
17707 _ACEOF
17708
17709        echo "$as_me:$LINENO: result: yes" >&5
17710 echo "${ECHO_T}yes" >&6
17711 else
17712   echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715  echo "$as_me:$LINENO: result: no" >&5
17716 echo "${ECHO_T}no" >&6
17717
17718 fi
17719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17720 fi
17721
17722 if (test -z "$have_uintxx_t" && \
17723           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17724 then
17725    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17726 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17727    cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733  #include <sys/bitypes.h>
17734 int
17735 main ()
17736 {
17737  uint8_t a; uint16_t b;
17738           uint32_t c; a = b = c = 1;
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext
17744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17745   (eval $ac_compile) 2>conftest.er1
17746   ac_status=$?
17747   grep -v '^ *+' conftest.er1 >conftest.err
17748   rm -f conftest.er1
17749   cat conftest.err >&5
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); } &&
17752          { ac_try='test -z "$ac_c_werror_flag"
17753                          || test ! -s conftest.err'
17754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755   (eval $ac_try) 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; } &&
17759          { ac_try='test -s conftest.$ac_objext'
17760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761   (eval $ac_try) 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765    cat >>confdefs.h <<\_ACEOF
17766 #define HAVE_UINTXX_T 1
17767 _ACEOF
17768
17769        echo "$as_me:$LINENO: result: yes" >&5
17770 echo "${ECHO_T}yes" >&6
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775  echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6
17777
17778 fi
17779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17780
17781 fi
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799 for ac_func in \
17800         fork \
17801         getcwd \
17802         gethostname \
17803         getpid \
17804         gettimeofday \
17805         setpgid \
17806         setpgrp \
17807         setsid \
17808         signal \
17809         strerror \
17810         strncmp \
17811         strncpy \
17812         vfprintf \
17813
17814 do
17815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17816 echo "$as_me:$LINENO: checking for $ac_func" >&5
17817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17818 if eval "test \"\${$as_ac_var+set}\" = set"; then
17819   echo $ECHO_N "(cached) $ECHO_C" >&6
17820 else
17821   cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h.  */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h.  */
17827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17829 #define $ac_func innocuous_$ac_func
17830
17831 /* System header to define __stub macros and hopefully few prototypes,
17832     which can conflict with char $ac_func (); below.
17833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834     <limits.h> exists even on freestanding compilers.  */
17835
17836 #ifdef __STDC__
17837 # include <limits.h>
17838 #else
17839 # include <assert.h>
17840 #endif
17841
17842 #undef $ac_func
17843
17844 /* Override any gcc2 internal prototype to avoid an error.  */
17845 #ifdef __cplusplus
17846 extern "C"
17847 {
17848 #endif
17849 /* We use char because int might match the return type of a gcc2
17850    builtin and then its argument prototype would still apply.  */
17851 char $ac_func ();
17852 /* The GNU C library defines this for functions which it implements
17853     to always fail with ENOSYS.  Some functions are actually named
17854     something starting with __ and the normal name is an alias.  */
17855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17856 choke me
17857 #else
17858 char (*f) () = $ac_func;
17859 #endif
17860 #ifdef __cplusplus
17861 }
17862 #endif
17863
17864 int
17865 main ()
17866 {
17867 return f != $ac_func;
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17874   (eval $ac_link) 2>conftest.er1
17875   ac_status=$?
17876   grep -v '^ *+' conftest.er1 >conftest.err
17877   rm -f conftest.er1
17878   cat conftest.err >&5
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); } &&
17881          { ac_try='test -z "$ac_c_werror_flag"
17882                          || test ! -s conftest.err'
17883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884   (eval $ac_try) 2>&5
17885   ac_status=$?
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); }; } &&
17888          { ac_try='test -s conftest$ac_exeext'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   eval "$as_ac_var=yes"
17895 else
17896   echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 eval "$as_ac_var=no"
17900 fi
17901 rm -f conftest.err conftest.$ac_objext \
17902       conftest$ac_exeext conftest.$ac_ext
17903 fi
17904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17906 if test `eval echo '${'$as_ac_var'}'` = yes; then
17907   cat >>confdefs.h <<_ACEOF
17908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17909 _ACEOF
17910
17911 else
17912   echo 'configure: cannot find needed function.'; exit 1
17913
17914 fi
17915 done
17916
17917
17918
17919 for ac_func in fchdir
17920 do
17921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 echo "$as_me:$LINENO: checking for $ac_func" >&5
17923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17924 if eval "test \"\${$as_ac_var+set}\" = set"; then
17925   echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927   cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h.  */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h.  */
17933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17935 #define $ac_func innocuous_$ac_func
17936
17937 /* System header to define __stub macros and hopefully few prototypes,
17938     which can conflict with char $ac_func (); below.
17939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17940     <limits.h> exists even on freestanding compilers.  */
17941
17942 #ifdef __STDC__
17943 # include <limits.h>
17944 #else
17945 # include <assert.h>
17946 #endif
17947
17948 #undef $ac_func
17949
17950 /* Override any gcc2 internal prototype to avoid an error.  */
17951 #ifdef __cplusplus
17952 extern "C"
17953 {
17954 #endif
17955 /* We use char because int might match the return type of a gcc2
17956    builtin and then its argument prototype would still apply.  */
17957 char $ac_func ();
17958 /* The GNU C library defines this for functions which it implements
17959     to always fail with ENOSYS.  Some functions are actually named
17960     something starting with __ and the normal name is an alias.  */
17961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17962 choke me
17963 #else
17964 char (*f) () = $ac_func;
17965 #endif
17966 #ifdef __cplusplus
17967 }
17968 #endif
17969
17970 int
17971 main ()
17972 {
17973 return f != $ac_func;
17974   ;
17975   return 0;
17976 }
17977 _ACEOF
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17980   (eval $ac_link) 2>conftest.er1
17981   ac_status=$?
17982   grep -v '^ *+' conftest.er1 >conftest.err
17983   rm -f conftest.er1
17984   cat conftest.err >&5
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); } &&
17987          { ac_try='test -z "$ac_c_werror_flag"
17988                          || test ! -s conftest.err'
17989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990   (eval $ac_try) 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; } &&
17994          { ac_try='test -s conftest$ac_exeext'
17995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996   (eval $ac_try) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); }; }; then
18000   eval "$as_ac_var=yes"
18001 else
18002   echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18004
18005 eval "$as_ac_var=no"
18006 fi
18007 rm -f conftest.err conftest.$ac_objext \
18008       conftest$ac_exeext conftest.$ac_ext
18009 fi
18010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18012 if test `eval echo '${'$as_ac_var'}'` = yes; then
18013   cat >>confdefs.h <<_ACEOF
18014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18015 _ACEOF
18016  cat >>confdefs.h <<\_ACEOF
18017 #define HAVE_FCHDIR 1
18018 _ACEOF
18019
18020 fi
18021 done
18022
18023
18024 for ac_func in strtoll
18025 do
18026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18027 echo "$as_me:$LINENO: checking for $ac_func" >&5
18028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18029 if eval "test \"\${$as_ac_var+set}\" = set"; then
18030   echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032   cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h.  */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h.  */
18038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18040 #define $ac_func innocuous_$ac_func
18041
18042 /* System header to define __stub macros and hopefully few prototypes,
18043     which can conflict with char $ac_func (); below.
18044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18045     <limits.h> exists even on freestanding compilers.  */
18046
18047 #ifdef __STDC__
18048 # include <limits.h>
18049 #else
18050 # include <assert.h>
18051 #endif
18052
18053 #undef $ac_func
18054
18055 /* Override any gcc2 internal prototype to avoid an error.  */
18056 #ifdef __cplusplus
18057 extern "C"
18058 {
18059 #endif
18060 /* We use char because int might match the return type of a gcc2
18061    builtin and then its argument prototype would still apply.  */
18062 char $ac_func ();
18063 /* The GNU C library defines this for functions which it implements
18064     to always fail with ENOSYS.  Some functions are actually named
18065     something starting with __ and the normal name is an alias.  */
18066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18067 choke me
18068 #else
18069 char (*f) () = $ac_func;
18070 #endif
18071 #ifdef __cplusplus
18072 }
18073 #endif
18074
18075 int
18076 main ()
18077 {
18078 return f != $ac_func;
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 rm -f conftest.$ac_objext conftest$ac_exeext
18084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085   (eval $ac_link) 2>conftest.er1
18086   ac_status=$?
18087   grep -v '^ *+' conftest.er1 >conftest.err
18088   rm -f conftest.er1
18089   cat conftest.err >&5
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); } &&
18092          { ac_try='test -z "$ac_c_werror_flag"
18093                          || test ! -s conftest.err'
18094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095   (eval $ac_try) 2>&5
18096   ac_status=$?
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); }; } &&
18099          { ac_try='test -s conftest$ac_exeext'
18100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; }; then
18105   eval "$as_ac_var=yes"
18106 else
18107   echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110 eval "$as_ac_var=no"
18111 fi
18112 rm -f conftest.err conftest.$ac_objext \
18113       conftest$ac_exeext conftest.$ac_ext
18114 fi
18115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118   cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18120 _ACEOF
18121  cat >>confdefs.h <<\_ACEOF
18122 #define HAVE_STRTOLL 1
18123 _ACEOF
18124
18125 fi
18126 done
18127
18128
18129
18130 for ac_func in chflags
18131 do
18132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18133 echo "$as_me:$LINENO: checking for $ac_func" >&5
18134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18135 if eval "test \"\${$as_ac_var+set}\" = set"; then
18136   echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18138   cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h.  */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h.  */
18144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18146 #define $ac_func innocuous_$ac_func
18147
18148 /* System header to define __stub macros and hopefully few prototypes,
18149     which can conflict with char $ac_func (); below.
18150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151     <limits.h> exists even on freestanding compilers.  */
18152
18153 #ifdef __STDC__
18154 # include <limits.h>
18155 #else
18156 # include <assert.h>
18157 #endif
18158
18159 #undef $ac_func
18160
18161 /* Override any gcc2 internal prototype to avoid an error.  */
18162 #ifdef __cplusplus
18163 extern "C"
18164 {
18165 #endif
18166 /* We use char because int might match the return type of a gcc2
18167    builtin and then its argument prototype would still apply.  */
18168 char $ac_func ();
18169 /* The GNU C library defines this for functions which it implements
18170     to always fail with ENOSYS.  Some functions are actually named
18171     something starting with __ and the normal name is an alias.  */
18172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18173 choke me
18174 #else
18175 char (*f) () = $ac_func;
18176 #endif
18177 #ifdef __cplusplus
18178 }
18179 #endif
18180
18181 int
18182 main ()
18183 {
18184 return f != $ac_func;
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18191   (eval $ac_link) 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } &&
18198          { ac_try='test -z "$ac_c_werror_flag"
18199                          || test ! -s conftest.err'
18200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201   (eval $ac_try) 2>&5
18202   ac_status=$?
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); }; } &&
18205          { ac_try='test -s conftest$ac_exeext'
18206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207   (eval $ac_try) 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; }; then
18211   eval "$as_ac_var=yes"
18212 else
18213   echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 eval "$as_ac_var=no"
18217 fi
18218 rm -f conftest.err conftest.$ac_objext \
18219       conftest$ac_exeext conftest.$ac_ext
18220 fi
18221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224   cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18226 _ACEOF
18227
18228 fi
18229 done
18230
18231
18232
18233
18234
18235
18236 for ac_func in snprintf vsnprintf gethostid getdomainname
18237 do
18238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18239 echo "$as_me:$LINENO: checking for $ac_func" >&5
18240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18241 if eval "test \"\${$as_ac_var+set}\" = set"; then
18242   echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244   cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h.  */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h.  */
18250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18252 #define $ac_func innocuous_$ac_func
18253
18254 /* System header to define __stub macros and hopefully few prototypes,
18255     which can conflict with char $ac_func (); below.
18256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18257     <limits.h> exists even on freestanding compilers.  */
18258
18259 #ifdef __STDC__
18260 # include <limits.h>
18261 #else
18262 # include <assert.h>
18263 #endif
18264
18265 #undef $ac_func
18266
18267 /* Override any gcc2 internal prototype to avoid an error.  */
18268 #ifdef __cplusplus
18269 extern "C"
18270 {
18271 #endif
18272 /* We use char because int might match the return type of a gcc2
18273    builtin and then its argument prototype would still apply.  */
18274 char $ac_func ();
18275 /* The GNU C library defines this for functions which it implements
18276     to always fail with ENOSYS.  Some functions are actually named
18277     something starting with __ and the normal name is an alias.  */
18278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18279 choke me
18280 #else
18281 char (*f) () = $ac_func;
18282 #endif
18283 #ifdef __cplusplus
18284 }
18285 #endif
18286
18287 int
18288 main ()
18289 {
18290 return f != $ac_func;
18291   ;
18292   return 0;
18293 }
18294 _ACEOF
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297   (eval $ac_link) 2>conftest.er1
18298   ac_status=$?
18299   grep -v '^ *+' conftest.er1 >conftest.err
18300   rm -f conftest.er1
18301   cat conftest.err >&5
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); } &&
18304          { ac_try='test -z "$ac_c_werror_flag"
18305                          || test ! -s conftest.err'
18306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307   (eval $ac_try) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); }; } &&
18311          { ac_try='test -s conftest$ac_exeext'
18312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313   (eval $ac_try) 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; }; then
18317   eval "$as_ac_var=yes"
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322 eval "$as_ac_var=no"
18323 fi
18324 rm -f conftest.err conftest.$ac_objext \
18325       conftest$ac_exeext conftest.$ac_ext
18326 fi
18327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330   cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18332 _ACEOF
18333
18334 fi
18335 done
18336
18337
18338
18339
18340
18341
18342 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18343 do
18344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18345 echo "$as_me:$LINENO: checking for $ac_func" >&5
18346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18347 if eval "test \"\${$as_ac_var+set}\" = set"; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18358 #define $ac_func innocuous_$ac_func
18359
18360 /* System header to define __stub macros and hopefully few prototypes,
18361     which can conflict with char $ac_func (); below.
18362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363     <limits.h> exists even on freestanding compilers.  */
18364
18365 #ifdef __STDC__
18366 # include <limits.h>
18367 #else
18368 # include <assert.h>
18369 #endif
18370
18371 #undef $ac_func
18372
18373 /* Override any gcc2 internal prototype to avoid an error.  */
18374 #ifdef __cplusplus
18375 extern "C"
18376 {
18377 #endif
18378 /* We use char because int might match the return type of a gcc2
18379    builtin and then its argument prototype would still apply.  */
18380 char $ac_func ();
18381 /* The GNU C library defines this for functions which it implements
18382     to always fail with ENOSYS.  Some functions are actually named
18383     something starting with __ and the normal name is an alias.  */
18384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18385 choke me
18386 #else
18387 char (*f) () = $ac_func;
18388 #endif
18389 #ifdef __cplusplus
18390 }
18391 #endif
18392
18393 int
18394 main ()
18395 {
18396 return f != $ac_func;
18397   ;
18398   return 0;
18399 }
18400 _ACEOF
18401 rm -f conftest.$ac_objext conftest$ac_exeext
18402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18403   (eval $ac_link) 2>conftest.er1
18404   ac_status=$?
18405   grep -v '^ *+' conftest.er1 >conftest.err
18406   rm -f conftest.er1
18407   cat conftest.err >&5
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); } &&
18410          { ac_try='test -z "$ac_c_werror_flag"
18411                          || test ! -s conftest.err'
18412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413   (eval $ac_try) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); }; } &&
18417          { ac_try='test -s conftest$ac_exeext'
18418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419   (eval $ac_try) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; }; then
18423   eval "$as_ac_var=yes"
18424 else
18425   echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428 eval "$as_ac_var=no"
18429 fi
18430 rm -f conftest.err conftest.$ac_objext \
18431       conftest$ac_exeext conftest.$ac_ext
18432 fi
18433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18435 if test `eval echo '${'$as_ac_var'}'` = yes; then
18436   cat >>confdefs.h <<_ACEOF
18437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18438 _ACEOF
18439
18440 fi
18441 done
18442
18443
18444 # If resolver functions are not in libc check for -lnsl or -lresolv.
18445 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18446 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18447 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450   cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h.  */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h.  */
18456 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18458 #define gethostbyname_r innocuous_gethostbyname_r
18459
18460 /* System header to define __stub macros and hopefully few prototypes,
18461     which can conflict with char gethostbyname_r (); below.
18462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463     <limits.h> exists even on freestanding compilers.  */
18464
18465 #ifdef __STDC__
18466 # include <limits.h>
18467 #else
18468 # include <assert.h>
18469 #endif
18470
18471 #undef gethostbyname_r
18472
18473 /* Override any gcc2 internal prototype to avoid an error.  */
18474 #ifdef __cplusplus
18475 extern "C"
18476 {
18477 #endif
18478 /* We use char because int might match the return type of a gcc2
18479    builtin and then its argument prototype would still apply.  */
18480 char gethostbyname_r ();
18481 /* The GNU C library defines this for functions which it implements
18482     to always fail with ENOSYS.  Some functions are actually named
18483     something starting with __ and the normal name is an alias.  */
18484 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18485 choke me
18486 #else
18487 char (*f) () = gethostbyname_r;
18488 #endif
18489 #ifdef __cplusplus
18490 }
18491 #endif
18492
18493 int
18494 main ()
18495 {
18496 return f != gethostbyname_r;
18497   ;
18498   return 0;
18499 }
18500 _ACEOF
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503   (eval $ac_link) 2>conftest.er1
18504   ac_status=$?
18505   grep -v '^ *+' conftest.er1 >conftest.err
18506   rm -f conftest.er1
18507   cat conftest.err >&5
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); } &&
18510          { ac_try='test -z "$ac_c_werror_flag"
18511                          || test ! -s conftest.err'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; } &&
18517          { ac_try='test -s conftest$ac_exeext'
18518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519   (eval $ac_try) 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; }; then
18523   ac_cv_func_gethostbyname_r=yes
18524 else
18525   echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18527
18528 ac_cv_func_gethostbyname_r=no
18529 fi
18530 rm -f conftest.err conftest.$ac_objext \
18531       conftest$ac_exeext conftest.$ac_ext
18532 fi
18533 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18534 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18535 if test $ac_cv_func_gethostbyname_r = yes; then
18536   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18537 echo "${ECHO_T}using libc's resolver" >&6
18538 else
18539
18540 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18541 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18542 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18543   echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545   ac_check_lib_save_LIBS=$LIBS
18546 LIBS="-lnsl  $LIBS"
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h.  */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h.  */
18553
18554 /* Override any gcc2 internal prototype to avoid an error.  */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 /* We use char because int might match the return type of a gcc2
18559    builtin and then its argument prototype would still apply.  */
18560 char gethostbyname_r ();
18561 int
18562 main ()
18563 {
18564 gethostbyname_r ();
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571   (eval $ac_link) 2>conftest.er1
18572   ac_status=$?
18573   grep -v '^ *+' conftest.er1 >conftest.err
18574   rm -f conftest.er1
18575   cat conftest.err >&5
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); } &&
18578          { ac_try='test -z "$ac_c_werror_flag"
18579                          || test ! -s conftest.err'
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); }; } &&
18585          { ac_try='test -s conftest$ac_exeext'
18586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587   (eval $ac_try) 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; }; then
18591   ac_cv_lib_nsl_gethostbyname_r=yes
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ac_cv_lib_nsl_gethostbyname_r=no
18597 fi
18598 rm -f conftest.err conftest.$ac_objext \
18599       conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18601 fi
18602 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18603 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18604 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18605   cat >>confdefs.h <<_ACEOF
18606 #define HAVE_LIBNSL 1
18607 _ACEOF
18608
18609   LIBS="-lnsl $LIBS"
18610
18611 fi
18612
18613
18614 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18615 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18616 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18617   echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619   ac_check_lib_save_LIBS=$LIBS
18620 LIBS="-lresolv  $LIBS"
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627
18628 /* Override any gcc2 internal prototype to avoid an error.  */
18629 #ifdef __cplusplus
18630 extern "C"
18631 #endif
18632 /* We use char because int might match the return type of a gcc2
18633    builtin and then its argument prototype would still apply.  */
18634 char gethostbyname_r ();
18635 int
18636 main ()
18637 {
18638 gethostbyname_r ();
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645   (eval $ac_link) 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } &&
18652          { ac_try='test -z "$ac_c_werror_flag"
18653                          || test ! -s conftest.err'
18654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655   (eval $ac_try) 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; } &&
18659          { ac_try='test -s conftest$ac_exeext'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; }; then
18665   ac_cv_lib_resolv_gethostbyname_r=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 ac_cv_lib_resolv_gethostbyname_r=no
18671 fi
18672 rm -f conftest.err conftest.$ac_objext \
18673       conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18675 fi
18676 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18677 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18678 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18679   cat >>confdefs.h <<_ACEOF
18680 #define HAVE_LIBRESOLV 1
18681 _ACEOF
18682
18683   LIBS="-lresolv $LIBS"
18684
18685 fi
18686
18687 fi
18688
18689
18690
18691
18692
18693 for ac_func in inet_pton
18694 do
18695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18696 echo "$as_me:$LINENO: checking for $ac_func" >&5
18697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18698 if eval "test \"\${$as_ac_var+set}\" = set"; then
18699   echo $ECHO_N "(cached) $ECHO_C" >&6
18700 else
18701   cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h.  */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h.  */
18707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18709 #define $ac_func innocuous_$ac_func
18710
18711 /* System header to define __stub macros and hopefully few prototypes,
18712     which can conflict with char $ac_func (); below.
18713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18714     <limits.h> exists even on freestanding compilers.  */
18715
18716 #ifdef __STDC__
18717 # include <limits.h>
18718 #else
18719 # include <assert.h>
18720 #endif
18721
18722 #undef $ac_func
18723
18724 /* Override any gcc2 internal prototype to avoid an error.  */
18725 #ifdef __cplusplus
18726 extern "C"
18727 {
18728 #endif
18729 /* We use char because int might match the return type of a gcc2
18730    builtin and then its argument prototype would still apply.  */
18731 char $ac_func ();
18732 /* The GNU C library defines this for functions which it implements
18733     to always fail with ENOSYS.  Some functions are actually named
18734     something starting with __ and the normal name is an alias.  */
18735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18736 choke me
18737 #else
18738 char (*f) () = $ac_func;
18739 #endif
18740 #ifdef __cplusplus
18741 }
18742 #endif
18743
18744 int
18745 main ()
18746 {
18747 return f != $ac_func;
18748   ;
18749   return 0;
18750 }
18751 _ACEOF
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754   (eval $ac_link) 2>conftest.er1
18755   ac_status=$?
18756   grep -v '^ *+' conftest.er1 >conftest.err
18757   rm -f conftest.er1
18758   cat conftest.err >&5
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); } &&
18761          { ac_try='test -z "$ac_c_werror_flag"
18762                          || test ! -s conftest.err'
18763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764   (eval $ac_try) 2>&5
18765   ac_status=$?
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); }; } &&
18768          { ac_try='test -s conftest$ac_exeext'
18769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770   (eval $ac_try) 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); }; }; then
18774   eval "$as_ac_var=yes"
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779 eval "$as_ac_var=no"
18780 fi
18781 rm -f conftest.err conftest.$ac_objext \
18782       conftest$ac_exeext conftest.$ac_ext
18783 fi
18784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18786 if test `eval echo '${'$as_ac_var'}'` = yes; then
18787   cat >>confdefs.h <<_ACEOF
18788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18789 _ACEOF
18790  cat >>confdefs.h <<\_ACEOF
18791 #define HAVE_INET_PTON 1
18792 _ACEOF
18793
18794 fi
18795 done
18796
18797
18798 for ac_func in inet_ntop
18799 do
18800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18801 echo "$as_me:$LINENO: checking for $ac_func" >&5
18802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18803 if eval "test \"\${$as_ac_var+set}\" = set"; then
18804   echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806   cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h.  */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h.  */
18812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18814 #define $ac_func innocuous_$ac_func
18815
18816 /* System header to define __stub macros and hopefully few prototypes,
18817     which can conflict with char $ac_func (); below.
18818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18819     <limits.h> exists even on freestanding compilers.  */
18820
18821 #ifdef __STDC__
18822 # include <limits.h>
18823 #else
18824 # include <assert.h>
18825 #endif
18826
18827 #undef $ac_func
18828
18829 /* Override any gcc2 internal prototype to avoid an error.  */
18830 #ifdef __cplusplus
18831 extern "C"
18832 {
18833 #endif
18834 /* We use char because int might match the return type of a gcc2
18835    builtin and then its argument prototype would still apply.  */
18836 char $ac_func ();
18837 /* The GNU C library defines this for functions which it implements
18838     to always fail with ENOSYS.  Some functions are actually named
18839     something starting with __ and the normal name is an alias.  */
18840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18841 choke me
18842 #else
18843 char (*f) () = $ac_func;
18844 #endif
18845 #ifdef __cplusplus
18846 }
18847 #endif
18848
18849 int
18850 main ()
18851 {
18852 return f != $ac_func;
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859   (eval $ac_link) 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } &&
18866          { ac_try='test -z "$ac_c_werror_flag"
18867                          || test ! -s conftest.err'
18868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869   (eval $ac_try) 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; } &&
18873          { ac_try='test -s conftest$ac_exeext'
18874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875   (eval $ac_try) 2>&5
18876   ac_status=$?
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); }; }; then
18879   eval "$as_ac_var=yes"
18880 else
18881   echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 eval "$as_ac_var=no"
18885 fi
18886 rm -f conftest.err conftest.$ac_objext \
18887       conftest$ac_exeext conftest.$ac_ext
18888 fi
18889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18891 if test `eval echo '${'$as_ac_var'}'` = yes; then
18892   cat >>confdefs.h <<_ACEOF
18893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18894 _ACEOF
18895  cat >>confdefs.h <<\_ACEOF
18896 #define HAVE_INET_NTOP 1
18897 _ACEOF
18898
18899 fi
18900 done
18901
18902
18903 for ac_func in gethostbyname2
18904 do
18905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18906 echo "$as_me:$LINENO: checking for $ac_func" >&5
18907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18908 if eval "test \"\${$as_ac_var+set}\" = set"; then
18909   echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911   cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18919 #define $ac_func innocuous_$ac_func
18920
18921 /* System header to define __stub macros and hopefully few prototypes,
18922     which can conflict with char $ac_func (); below.
18923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18924     <limits.h> exists even on freestanding compilers.  */
18925
18926 #ifdef __STDC__
18927 # include <limits.h>
18928 #else
18929 # include <assert.h>
18930 #endif
18931
18932 #undef $ac_func
18933
18934 /* Override any gcc2 internal prototype to avoid an error.  */
18935 #ifdef __cplusplus
18936 extern "C"
18937 {
18938 #endif
18939 /* We use char because int might match the return type of a gcc2
18940    builtin and then its argument prototype would still apply.  */
18941 char $ac_func ();
18942 /* The GNU C library defines this for functions which it implements
18943     to always fail with ENOSYS.  Some functions are actually named
18944     something starting with __ and the normal name is an alias.  */
18945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18946 choke me
18947 #else
18948 char (*f) () = $ac_func;
18949 #endif
18950 #ifdef __cplusplus
18951 }
18952 #endif
18953
18954 int
18955 main ()
18956 {
18957 return f != $ac_func;
18958   ;
18959   return 0;
18960 }
18961 _ACEOF
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964   (eval $ac_link) 2>conftest.er1
18965   ac_status=$?
18966   grep -v '^ *+' conftest.er1 >conftest.err
18967   rm -f conftest.er1
18968   cat conftest.err >&5
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); } &&
18971          { ac_try='test -z "$ac_c_werror_flag"
18972                          || test ! -s conftest.err'
18973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974   (eval $ac_try) 2>&5
18975   ac_status=$?
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); }; } &&
18978          { ac_try='test -s conftest$ac_exeext'
18979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980   (eval $ac_try) 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; }; then
18984   eval "$as_ac_var=yes"
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989 eval "$as_ac_var=no"
18990 fi
18991 rm -f conftest.err conftest.$ac_objext \
18992       conftest$ac_exeext conftest.$ac_ext
18993 fi
18994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18996 if test `eval echo '${'$as_ac_var'}'` = yes; then
18997   cat >>confdefs.h <<_ACEOF
18998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18999 _ACEOF
19000  cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_GETHOSTBYNAME2 1
19002 _ACEOF
19003
19004 fi
19005 done
19006
19007
19008 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19009 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19010 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019 #include <sys/socket.h>
19020 int
19021 main ()
19022 {
19023 struct sockaddr s; s.sa_len;
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19030   (eval $ac_compile) 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } &&
19037          { ac_try='test -z "$ac_c_werror_flag"
19038                          || test ! -s conftest.err'
19039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040   (eval $ac_try) 2>&5
19041   ac_status=$?
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); }; } &&
19044          { ac_try='test -s conftest.$ac_objext'
19045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046   (eval $ac_try) 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; }; then
19050   ac_cv_struct_sockaddr_sa_len=yes
19051 else
19052   echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055 ac_cv_struct_sockaddr_sa_len=no
19056 fi
19057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19058 fi
19059 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19060 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19061
19062  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19063
19064 cat >>confdefs.h <<\_ACEOF
19065 #define HAVE_SA_LEN 1
19066 _ACEOF
19067
19068  fi
19069
19070
19071 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19072 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19073 if test "${ac_cv_ipv6_support+set}" = set; then
19074   echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076   cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h.  */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h.  */
19082  #include <sys/types.h>
19083 #include <sys/socket.h>
19084 #include <netinet/in.h>
19085 int
19086 main ()
19087 {
19088 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19089  0;
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096   (eval $ac_link) 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -z "$ac_c_werror_flag"
19104                          || test ! -s conftest.err'
19105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106   (eval $ac_try) 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); }; } &&
19110          { ac_try='test -s conftest$ac_exeext'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_ipv6_support=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_ipv6_support=no
19122 fi
19123 rm -f conftest.err conftest.$ac_objext \
19124       conftest$ac_exeext conftest.$ac_ext
19125 fi
19126 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19127 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19128
19129 if test "$ac_cv_ipv6_support" = yes; then
19130
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_IPV6 1
19133 _ACEOF
19134
19135 fi
19136
19137
19138
19139
19140 for ac_func in strftime
19141 do
19142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19143 echo "$as_me:$LINENO: checking for $ac_func" >&5
19144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19145 if eval "test \"\${$as_ac_var+set}\" = set"; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h.  */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h.  */
19154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19156 #define $ac_func innocuous_$ac_func
19157
19158 /* System header to define __stub macros and hopefully few prototypes,
19159     which can conflict with char $ac_func (); below.
19160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19161     <limits.h> exists even on freestanding compilers.  */
19162
19163 #ifdef __STDC__
19164 # include <limits.h>
19165 #else
19166 # include <assert.h>
19167 #endif
19168
19169 #undef $ac_func
19170
19171 /* Override any gcc2 internal prototype to avoid an error.  */
19172 #ifdef __cplusplus
19173 extern "C"
19174 {
19175 #endif
19176 /* We use char because int might match the return type of a gcc2
19177    builtin and then its argument prototype would still apply.  */
19178 char $ac_func ();
19179 /* The GNU C library defines this for functions which it implements
19180     to always fail with ENOSYS.  Some functions are actually named
19181     something starting with __ and the normal name is an alias.  */
19182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19183 choke me
19184 #else
19185 char (*f) () = $ac_func;
19186 #endif
19187 #ifdef __cplusplus
19188 }
19189 #endif
19190
19191 int
19192 main ()
19193 {
19194 return f != $ac_func;
19195   ;
19196   return 0;
19197 }
19198 _ACEOF
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19201   (eval $ac_link) 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } &&
19208          { ac_try='test -z "$ac_c_werror_flag"
19209                          || test ! -s conftest.err'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; } &&
19215          { ac_try='test -s conftest$ac_exeext'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   eval "$as_ac_var=yes"
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 eval "$as_ac_var=no"
19227 fi
19228 rm -f conftest.err conftest.$ac_objext \
19229       conftest$ac_exeext conftest.$ac_ext
19230 fi
19231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19233 if test `eval echo '${'$as_ac_var'}'` = yes; then
19234   cat >>confdefs.h <<_ACEOF
19235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19236 _ACEOF
19237
19238 else
19239   # strftime is in -lintl on SCO UNIX.
19240 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19241 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19242 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19243   echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245   ac_check_lib_save_LIBS=$LIBS
19246 LIBS="-lintl  $LIBS"
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253
19254 /* Override any gcc2 internal prototype to avoid an error.  */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 /* We use char because int might match the return type of a gcc2
19259    builtin and then its argument prototype would still apply.  */
19260 char strftime ();
19261 int
19262 main ()
19263 {
19264 strftime ();
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271   (eval $ac_link) 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_c_werror_flag"
19279                          || test ! -s conftest.err'
19280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281   (eval $ac_try) 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); }; } &&
19285          { ac_try='test -s conftest$ac_exeext'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; }; then
19291   ac_cv_lib_intl_strftime=yes
19292 else
19293   echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 ac_cv_lib_intl_strftime=no
19297 fi
19298 rm -f conftest.err conftest.$ac_objext \
19299       conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19301 fi
19302 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19303 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19304 if test $ac_cv_lib_intl_strftime = yes; then
19305   cat >>confdefs.h <<\_ACEOF
19306 #define HAVE_STRFTIME 1
19307 _ACEOF
19308
19309 LIBS="-lintl $LIBS"
19310 fi
19311
19312 fi
19313 done
19314
19315
19316 for ac_func in vprintf
19317 do
19318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19319 echo "$as_me:$LINENO: checking for $ac_func" >&5
19320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19321 if eval "test \"\${$as_ac_var+set}\" = set"; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19332 #define $ac_func innocuous_$ac_func
19333
19334 /* System header to define __stub macros and hopefully few prototypes,
19335     which can conflict with char $ac_func (); below.
19336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19337     <limits.h> exists even on freestanding compilers.  */
19338
19339 #ifdef __STDC__
19340 # include <limits.h>
19341 #else
19342 # include <assert.h>
19343 #endif
19344
19345 #undef $ac_func
19346
19347 /* Override any gcc2 internal prototype to avoid an error.  */
19348 #ifdef __cplusplus
19349 extern "C"
19350 {
19351 #endif
19352 /* We use char because int might match the return type of a gcc2
19353    builtin and then its argument prototype would still apply.  */
19354 char $ac_func ();
19355 /* The GNU C library defines this for functions which it implements
19356     to always fail with ENOSYS.  Some functions are actually named
19357     something starting with __ and the normal name is an alias.  */
19358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19359 choke me
19360 #else
19361 char (*f) () = $ac_func;
19362 #endif
19363 #ifdef __cplusplus
19364 }
19365 #endif
19366
19367 int
19368 main ()
19369 {
19370 return f != $ac_func;
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19377   (eval $ac_link) 2>conftest.er1
19378   ac_status=$?
19379   grep -v '^ *+' conftest.er1 >conftest.err
19380   rm -f conftest.er1
19381   cat conftest.err >&5
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } &&
19384          { ac_try='test -z "$ac_c_werror_flag"
19385                          || test ! -s conftest.err'
19386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387   (eval $ac_try) 2>&5
19388   ac_status=$?
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); }; } &&
19391          { ac_try='test -s conftest$ac_exeext'
19392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393   (eval $ac_try) 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   eval "$as_ac_var=yes"
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 eval "$as_ac_var=no"
19403 fi
19404 rm -f conftest.err conftest.$ac_objext \
19405       conftest$ac_exeext conftest.$ac_ext
19406 fi
19407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19409 if test `eval echo '${'$as_ac_var'}'` = yes; then
19410   cat >>confdefs.h <<_ACEOF
19411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19412 _ACEOF
19413
19414 echo "$as_me:$LINENO: checking for _doprnt" >&5
19415 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19416 if test "${ac_cv_func__doprnt+set}" = set; then
19417   echo $ECHO_N "(cached) $ECHO_C" >&6
19418 else
19419   cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19427 #define _doprnt innocuous__doprnt
19428
19429 /* System header to define __stub macros and hopefully few prototypes,
19430     which can conflict with char _doprnt (); below.
19431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19432     <limits.h> exists even on freestanding compilers.  */
19433
19434 #ifdef __STDC__
19435 # include <limits.h>
19436 #else
19437 # include <assert.h>
19438 #endif
19439
19440 #undef _doprnt
19441
19442 /* Override any gcc2 internal prototype to avoid an error.  */
19443 #ifdef __cplusplus
19444 extern "C"
19445 {
19446 #endif
19447 /* We use char because int might match the return type of a gcc2
19448    builtin and then its argument prototype would still apply.  */
19449 char _doprnt ();
19450 /* The GNU C library defines this for functions which it implements
19451     to always fail with ENOSYS.  Some functions are actually named
19452     something starting with __ and the normal name is an alias.  */
19453 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19454 choke me
19455 #else
19456 char (*f) () = _doprnt;
19457 #endif
19458 #ifdef __cplusplus
19459 }
19460 #endif
19461
19462 int
19463 main ()
19464 {
19465 return f != _doprnt;
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472   (eval $ac_link) 2>conftest.er1
19473   ac_status=$?
19474   grep -v '^ *+' conftest.er1 >conftest.err
19475   rm -f conftest.er1
19476   cat conftest.err >&5
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } &&
19479          { ac_try='test -z "$ac_c_werror_flag"
19480                          || test ! -s conftest.err'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; } &&
19486          { ac_try='test -s conftest$ac_exeext'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   ac_cv_func__doprnt=yes
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_cv_func__doprnt=no
19498 fi
19499 rm -f conftest.err conftest.$ac_objext \
19500       conftest$ac_exeext conftest.$ac_ext
19501 fi
19502 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19503 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19504 if test $ac_cv_func__doprnt = yes; then
19505
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE_DOPRNT 1
19508 _ACEOF
19509
19510 fi
19511
19512 fi
19513 done
19514
19515
19516 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19517 # for constant arguments.  Useless!
19518 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19519 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19520 if test "${ac_cv_working_alloca_h+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 #include <alloca.h>
19530 int
19531 main ()
19532 {
19533 char *p = (char *) alloca (2 * sizeof (int));
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540   (eval $ac_link) 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_c_werror_flag"
19548                          || test ! -s conftest.err'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; } &&
19554          { ac_try='test -s conftest$ac_exeext'
19555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556   (eval $ac_try) 2>&5
19557   ac_status=$?
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); }; }; then
19560   ac_cv_working_alloca_h=yes
19561 else
19562   echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565 ac_cv_working_alloca_h=no
19566 fi
19567 rm -f conftest.err conftest.$ac_objext \
19568       conftest$ac_exeext conftest.$ac_ext
19569 fi
19570 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19571 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19572 if test $ac_cv_working_alloca_h = yes; then
19573
19574 cat >>confdefs.h <<\_ACEOF
19575 #define HAVE_ALLOCA_H 1
19576 _ACEOF
19577
19578 fi
19579
19580 echo "$as_me:$LINENO: checking for alloca" >&5
19581 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19582 if test "${ac_cv_func_alloca_works+set}" = set; then
19583   echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585   cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591 #ifdef __GNUC__
19592 # define alloca __builtin_alloca
19593 #else
19594 # ifdef _MSC_VER
19595 #  include <malloc.h>
19596 #  define alloca _alloca
19597 # else
19598 #  if HAVE_ALLOCA_H
19599 #   include <alloca.h>
19600 #  else
19601 #   ifdef _AIX
19602  #pragma alloca
19603 #   else
19604 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19605 char *alloca ();
19606 #    endif
19607 #   endif
19608 #  endif
19609 # endif
19610 #endif
19611
19612 int
19613 main ()
19614 {
19615 char *p = (char *) alloca (1);
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19622   (eval $ac_link) 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag"
19630                          || test ! -s conftest.err'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; } &&
19636          { ac_try='test -s conftest$ac_exeext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_cv_func_alloca_works=yes
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_cv_func_alloca_works=no
19648 fi
19649 rm -f conftest.err conftest.$ac_objext \
19650       conftest$ac_exeext conftest.$ac_ext
19651 fi
19652 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19654
19655 if test $ac_cv_func_alloca_works = yes; then
19656
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_ALLOCA 1
19659 _ACEOF
19660
19661 else
19662   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19663 # that cause trouble.  Some versions do not even contain alloca or
19664 # contain a buggy version.  If you still want to use their alloca,
19665 # use ar to extract alloca.o from them instead of compiling alloca.c.
19666
19667 ALLOCA=alloca.$ac_objext
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define C_ALLOCA 1
19671 _ACEOF
19672
19673
19674 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19676 if test "${ac_cv_os_cray+set}" = set; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679   cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685 #if defined(CRAY) && ! defined(CRAY2)
19686 webecray
19687 #else
19688 wenotbecray
19689 #endif
19690
19691 _ACEOF
19692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19693   $EGREP "webecray" >/dev/null 2>&1; then
19694   ac_cv_os_cray=yes
19695 else
19696   ac_cv_os_cray=no
19697 fi
19698 rm -f conftest*
19699
19700 fi
19701 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19702 echo "${ECHO_T}$ac_cv_os_cray" >&6
19703 if test $ac_cv_os_cray = yes; then
19704   for ac_func in _getb67 GETB67 getb67; do
19705     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19706 echo "$as_me:$LINENO: checking for $ac_func" >&5
19707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19708 if eval "test \"\${$as_ac_var+set}\" = set"; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19719 #define $ac_func innocuous_$ac_func
19720
19721 /* System header to define __stub macros and hopefully few prototypes,
19722     which can conflict with char $ac_func (); below.
19723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19724     <limits.h> exists even on freestanding compilers.  */
19725
19726 #ifdef __STDC__
19727 # include <limits.h>
19728 #else
19729 # include <assert.h>
19730 #endif
19731
19732 #undef $ac_func
19733
19734 /* Override any gcc2 internal prototype to avoid an error.  */
19735 #ifdef __cplusplus
19736 extern "C"
19737 {
19738 #endif
19739 /* We use char because int might match the return type of a gcc2
19740    builtin and then its argument prototype would still apply.  */
19741 char $ac_func ();
19742 /* The GNU C library defines this for functions which it implements
19743     to always fail with ENOSYS.  Some functions are actually named
19744     something starting with __ and the normal name is an alias.  */
19745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19746 choke me
19747 #else
19748 char (*f) () = $ac_func;
19749 #endif
19750 #ifdef __cplusplus
19751 }
19752 #endif
19753
19754 int
19755 main ()
19756 {
19757 return f != $ac_func;
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19764   (eval $ac_link) 2>conftest.er1
19765   ac_status=$?
19766   grep -v '^ *+' conftest.er1 >conftest.err
19767   rm -f conftest.er1
19768   cat conftest.err >&5
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); } &&
19771          { ac_try='test -z "$ac_c_werror_flag"
19772                          || test ! -s conftest.err'
19773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774   (eval $ac_try) 2>&5
19775   ac_status=$?
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); }; } &&
19778          { ac_try='test -s conftest$ac_exeext'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; }; then
19784   eval "$as_ac_var=yes"
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 eval "$as_ac_var=no"
19790 fi
19791 rm -f conftest.err conftest.$ac_objext \
19792       conftest$ac_exeext conftest.$ac_ext
19793 fi
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19796 if test `eval echo '${'$as_ac_var'}'` = yes; then
19797
19798 cat >>confdefs.h <<_ACEOF
19799 #define CRAY_STACKSEG_END $ac_func
19800 _ACEOF
19801
19802     break
19803 fi
19804
19805   done
19806 fi
19807
19808 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19809 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19810 if test "${ac_cv_c_stack_direction+set}" = set; then
19811   echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813   if test "$cross_compiling" = yes; then
19814   ac_cv_c_stack_direction=0
19815 else
19816   cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h.  */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h.  */
19822 int
19823 find_stack_direction ()
19824 {
19825   static char *addr = 0;
19826   auto char dummy;
19827   if (addr == 0)
19828     {
19829       addr = &dummy;
19830       return find_stack_direction ();
19831     }
19832   else
19833     return (&dummy > addr) ? 1 : -1;
19834 }
19835
19836 int
19837 main ()
19838 {
19839   exit (find_stack_direction () < 0);
19840 }
19841 _ACEOF
19842 rm -f conftest$ac_exeext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844   (eval $ac_link) 2>&5
19845   ac_status=$?
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849   (eval $ac_try) 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); }; }; then
19853   ac_cv_c_stack_direction=1
19854 else
19855   echo "$as_me: program exited with status $ac_status" >&5
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 ( exit $ac_status )
19860 ac_cv_c_stack_direction=-1
19861 fi
19862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19863 fi
19864 fi
19865 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19866 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19867
19868 cat >>confdefs.h <<_ACEOF
19869 #define STACK_DIRECTION $ac_cv_c_stack_direction
19870 _ACEOF
19871
19872
19873 fi
19874
19875 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19876 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19877 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19878 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19879   echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881   ac_check_lib_save_LIBS=$LIBS
19882 LIBS="-lsun  $LIBS"
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889
19890 /* Override any gcc2 internal prototype to avoid an error.  */
19891 #ifdef __cplusplus
19892 extern "C"
19893 #endif
19894 /* We use char because int might match the return type of a gcc2
19895    builtin and then its argument prototype would still apply.  */
19896 char getmntent ();
19897 int
19898 main ()
19899 {
19900 getmntent ();
19901   ;
19902   return 0;
19903 }
19904 _ACEOF
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907   (eval $ac_link) 2>conftest.er1
19908   ac_status=$?
19909   grep -v '^ *+' conftest.er1 >conftest.err
19910   rm -f conftest.er1
19911   cat conftest.err >&5
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } &&
19914          { ac_try='test -z "$ac_c_werror_flag"
19915                          || test ! -s conftest.err'
19916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917   (eval $ac_try) 2>&5
19918   ac_status=$?
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); }; } &&
19921          { ac_try='test -s conftest$ac_exeext'
19922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923   (eval $ac_try) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); }; }; then
19927   ac_cv_lib_sun_getmntent=yes
19928 else
19929   echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 ac_cv_lib_sun_getmntent=no
19933 fi
19934 rm -f conftest.err conftest.$ac_objext \
19935       conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19937 fi
19938 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19939 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19940 if test $ac_cv_lib_sun_getmntent = yes; then
19941   LIBS="-lsun $LIBS"
19942 else
19943   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19944 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19945 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19946   echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948   ac_check_lib_save_LIBS=$LIBS
19949 LIBS="-lseq  $LIBS"
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h.  */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h.  */
19956
19957 /* Override any gcc2 internal prototype to avoid an error.  */
19958 #ifdef __cplusplus
19959 extern "C"
19960 #endif
19961 /* We use char because int might match the return type of a gcc2
19962    builtin and then its argument prototype would still apply.  */
19963 char getmntent ();
19964 int
19965 main ()
19966 {
19967 getmntent ();
19968   ;
19969   return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19974   (eval $ac_link) 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -z "$ac_c_werror_flag"
19982                          || test ! -s conftest.err'
19983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984   (eval $ac_try) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; } &&
19988          { ac_try='test -s conftest$ac_exeext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_cv_lib_seq_getmntent=yes
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 ac_cv_lib_seq_getmntent=no
20000 fi
20001 rm -f conftest.err conftest.$ac_objext \
20002       conftest$ac_exeext conftest.$ac_ext
20003 LIBS=$ac_check_lib_save_LIBS
20004 fi
20005 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20006 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20007 if test $ac_cv_lib_seq_getmntent = yes; then
20008   LIBS="-lseq $LIBS"
20009 else
20010   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20011 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20012 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015   ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lgen  $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023
20024 /* Override any gcc2 internal prototype to avoid an error.  */
20025 #ifdef __cplusplus
20026 extern "C"
20027 #endif
20028 /* We use char because int might match the return type of a gcc2
20029    builtin and then its argument prototype would still apply.  */
20030 char getmntent ();
20031 int
20032 main ()
20033 {
20034 getmntent ();
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041   (eval $ac_link) 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag"
20049                          || test ! -s conftest.err'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest$ac_exeext'
20056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057   (eval $ac_try) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_cv_lib_gen_getmntent=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ac_cv_lib_gen_getmntent=no
20067 fi
20068 rm -f conftest.err conftest.$ac_objext \
20069       conftest$ac_exeext conftest.$ac_ext
20070 LIBS=$ac_check_lib_save_LIBS
20071 fi
20072 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20073 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20074 if test $ac_cv_lib_gen_getmntent = yes; then
20075   LIBS="-lgen $LIBS"
20076 fi
20077
20078 fi
20079
20080 fi
20081
20082
20083 for ac_func in getmntent
20084 do
20085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20086 echo "$as_me:$LINENO: checking for $ac_func" >&5
20087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20088 if eval "test \"\${$as_ac_var+set}\" = set"; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h.  */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h.  */
20097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20099 #define $ac_func innocuous_$ac_func
20100
20101 /* System header to define __stub macros and hopefully few prototypes,
20102     which can conflict with char $ac_func (); below.
20103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104     <limits.h> exists even on freestanding compilers.  */
20105
20106 #ifdef __STDC__
20107 # include <limits.h>
20108 #else
20109 # include <assert.h>
20110 #endif
20111
20112 #undef $ac_func
20113
20114 /* Override any gcc2 internal prototype to avoid an error.  */
20115 #ifdef __cplusplus
20116 extern "C"
20117 {
20118 #endif
20119 /* We use char because int might match the return type of a gcc2
20120    builtin and then its argument prototype would still apply.  */
20121 char $ac_func ();
20122 /* The GNU C library defines this for functions which it implements
20123     to always fail with ENOSYS.  Some functions are actually named
20124     something starting with __ and the normal name is an alias.  */
20125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20126 choke me
20127 #else
20128 char (*f) () = $ac_func;
20129 #endif
20130 #ifdef __cplusplus
20131 }
20132 #endif
20133
20134 int
20135 main ()
20136 {
20137 return f != $ac_func;
20138   ;
20139   return 0;
20140 }
20141 _ACEOF
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144   (eval $ac_link) 2>conftest.er1
20145   ac_status=$?
20146   grep -v '^ *+' conftest.er1 >conftest.err
20147   rm -f conftest.er1
20148   cat conftest.err >&5
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } &&
20151          { ac_try='test -z "$ac_c_werror_flag"
20152                          || test ! -s conftest.err'
20153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154   (eval $ac_try) 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; } &&
20158          { ac_try='test -s conftest$ac_exeext'
20159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160   (eval $ac_try) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; }; then
20164   eval "$as_ac_var=yes"
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 eval "$as_ac_var=no"
20170 fi
20171 rm -f conftest.err conftest.$ac_objext \
20172       conftest$ac_exeext conftest.$ac_ext
20173 fi
20174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20176 if test `eval echo '${'$as_ac_var'}'` = yes; then
20177   cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20179 _ACEOF
20180
20181 fi
20182 done
20183
20184
20185 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20186 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20187 if test "${ac_cv_func_closedir_void+set}" = set; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190   if test "$cross_compiling" = yes; then
20191   ac_cv_func_closedir_void=yes
20192 else
20193   cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199 $ac_includes_default
20200 #include <$ac_header_dirent>
20201 #ifndef __cplusplus
20202 int closedir ();
20203 #endif
20204
20205 int
20206 main ()
20207 {
20208 exit (closedir (opendir (".")) != 0);
20209   ;
20210   return 0;
20211 }
20212 _ACEOF
20213 rm -f conftest$ac_exeext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20215   (eval $ac_link) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220   (eval $ac_try) 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; }; then
20224   ac_cv_func_closedir_void=no
20225 else
20226   echo "$as_me: program exited with status $ac_status" >&5
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 ( exit $ac_status )
20231 ac_cv_func_closedir_void=yes
20232 fi
20233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20234 fi
20235 fi
20236 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20237 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20238 if test $ac_cv_func_closedir_void = yes; then
20239
20240 cat >>confdefs.h <<\_ACEOF
20241 #define CLOSEDIR_VOID 1
20242 _ACEOF
20243
20244 fi
20245
20246 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20247 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20248 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20249   echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251   if test "$cross_compiling" = yes; then
20252   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20253 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20254    { (exit 1); exit 1; }; }
20255 else
20256   cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262 #if HAVE_UNISTD_H
20263 # include <unistd.h>
20264 #endif
20265
20266 int
20267 main ()
20268 {
20269 /* If this system has a BSD-style setpgrp which takes arguments,
20270   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20271   exit successfully. */
20272   exit (setpgrp (1,1) == -1 ? 0 : 1);
20273   ;
20274   return 0;
20275 }
20276 _ACEOF
20277 rm -f conftest$ac_exeext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279   (eval $ac_link) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; }; then
20288   ac_cv_func_setpgrp_void=no
20289 else
20290   echo "$as_me: program exited with status $ac_status" >&5
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294 ( exit $ac_status )
20295 ac_cv_func_setpgrp_void=yes
20296 fi
20297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20298 fi
20299 fi
20300 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20301 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20302 if test $ac_cv_func_setpgrp_void = yes; then
20303
20304 cat >>confdefs.h <<\_ACEOF
20305 #define SETPGRP_VOID 1
20306 _ACEOF
20307
20308 fi
20309                       # AC_FUNC_FNMATCH    dnl use local version
20310
20311
20312 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20313 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20314 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20315   echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317   ac_check_lib_save_LIBS=$LIBS
20318 LIBS="-lxpg4  $LIBS"
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325
20326 /* Override any gcc2 internal prototype to avoid an error.  */
20327 #ifdef __cplusplus
20328 extern "C"
20329 #endif
20330 /* We use char because int might match the return type of a gcc2
20331    builtin and then its argument prototype would still apply.  */
20332 char setlocale ();
20333 int
20334 main ()
20335 {
20336 setlocale ();
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20343   (eval $ac_link) 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } &&
20350          { ac_try='test -z "$ac_c_werror_flag"
20351                          || test ! -s conftest.err'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; } &&
20357          { ac_try='test -s conftest$ac_exeext'
20358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359   (eval $ac_try) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363   ac_cv_lib_xpg4_setlocale=yes
20364 else
20365   echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 ac_cv_lib_xpg4_setlocale=no
20369 fi
20370 rm -f conftest.err conftest.$ac_objext \
20371       conftest$ac_exeext conftest.$ac_ext
20372 LIBS=$ac_check_lib_save_LIBS
20373 fi
20374 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20375 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20376 if test $ac_cv_lib_xpg4_setlocale = yes; then
20377   LIBS="$LIBS -lxpg4"
20378 fi
20379
20380
20381
20382
20383 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20384 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20385 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   ac_check_lib_save_LIBS=$LIBS
20389 LIBS="-lsun  $LIBS"
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396
20397 /* Override any gcc2 internal prototype to avoid an error.  */
20398 #ifdef __cplusplus
20399 extern "C"
20400 #endif
20401 /* We use char because int might match the return type of a gcc2
20402    builtin and then its argument prototype would still apply.  */
20403 char getpwnam ();
20404 int
20405 main ()
20406 {
20407 getpwnam ();
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20414   (eval $ac_link) 2>conftest.er1
20415   ac_status=$?
20416   grep -v '^ *+' conftest.er1 >conftest.err
20417   rm -f conftest.er1
20418   cat conftest.err >&5
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); } &&
20421          { ac_try='test -z "$ac_c_werror_flag"
20422                          || test ! -s conftest.err'
20423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424   (eval $ac_try) 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; } &&
20428          { ac_try='test -s conftest$ac_exeext'
20429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430   (eval $ac_try) 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); }; }; then
20434   ac_cv_lib_sun_getpwnam=yes
20435 else
20436   echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 ac_cv_lib_sun_getpwnam=no
20440 fi
20441 rm -f conftest.err conftest.$ac_objext \
20442       conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20444 fi
20445 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20446 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20447 if test $ac_cv_lib_sun_getpwnam = yes; then
20448   cat >>confdefs.h <<_ACEOF
20449 #define HAVE_LIBSUN 1
20450 _ACEOF
20451
20452   LIBS="-lsun $LIBS"
20453
20454 fi
20455
20456
20457
20458 for ac_header in zlib.h
20459 do
20460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20462   echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 fi
20467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20469 else
20470   # Is the header compilable?
20471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20473 cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 $ac_includes_default
20480 #include <$ac_header>
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484   (eval $ac_compile) 2>conftest.er1
20485   ac_status=$?
20486   grep -v '^ *+' conftest.er1 >conftest.err
20487   rm -f conftest.er1
20488   cat conftest.err >&5
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } &&
20491          { ac_try='test -z "$ac_c_werror_flag"
20492                          || test ! -s conftest.err'
20493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494   (eval $ac_try) 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; } &&
20498          { ac_try='test -s conftest.$ac_objext'
20499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500   (eval $ac_try) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; }; then
20504   ac_header_compiler=yes
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 ac_header_compiler=no
20510 fi
20511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20513 echo "${ECHO_T}$ac_header_compiler" >&6
20514
20515 # Is the header present?
20516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h.  */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h.  */
20524 #include <$ac_header>
20525 _ACEOF
20526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20528   ac_status=$?
20529   grep -v '^ *+' conftest.er1 >conftest.err
20530   rm -f conftest.er1
20531   cat conftest.err >&5
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); } >/dev/null; then
20534   if test -s conftest.err; then
20535     ac_cpp_err=$ac_c_preproc_warn_flag
20536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20537   else
20538     ac_cpp_err=
20539   fi
20540 else
20541   ac_cpp_err=yes
20542 fi
20543 if test -z "$ac_cpp_err"; then
20544   ac_header_preproc=yes
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549   ac_header_preproc=no
20550 fi
20551 rm -f conftest.err conftest.$ac_ext
20552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20553 echo "${ECHO_T}$ac_header_preproc" >&6
20554
20555 # So?  What about this header?
20556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20557   yes:no: )
20558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20562     ac_header_preproc=yes
20563     ;;
20564   no:yes:* )
20565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20577     (
20578       cat <<\_ASBOX
20579 ## ------------------------------------------ ##
20580 ## Report this to the AC_PACKAGE_NAME lists.  ##
20581 ## ------------------------------------------ ##
20582 _ASBOX
20583     ) |
20584       sed "s/^/$as_me: WARNING:     /" >&2
20585     ;;
20586 esac
20587 echo "$as_me:$LINENO: checking for $ac_header" >&5
20588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   eval "$as_ac_Header=\$ac_header_preproc"
20593 fi
20594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20596
20597 fi
20598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20599   cat >>confdefs.h <<_ACEOF
20600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20601 _ACEOF
20602
20603 fi
20604
20605 done
20606
20607 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20608 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20609 if test "${ac_cv_lib_z_deflate+set}" = set; then
20610   echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612   ac_check_lib_save_LIBS=$LIBS
20613 LIBS="-lz  $LIBS"
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620
20621 /* Override any gcc2 internal prototype to avoid an error.  */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 /* We use char because int might match the return type of a gcc2
20626    builtin and then its argument prototype would still apply.  */
20627 char deflate ();
20628 int
20629 main ()
20630 {
20631 deflate ();
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638   (eval $ac_link) 2>conftest.er1
20639   ac_status=$?
20640   grep -v '^ *+' conftest.er1 >conftest.err
20641   rm -f conftest.er1
20642   cat conftest.err >&5
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); } &&
20645          { ac_try='test -z "$ac_c_werror_flag"
20646                          || test ! -s conftest.err'
20647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648   (eval $ac_try) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; } &&
20652          { ac_try='test -s conftest$ac_exeext'
20653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654   (eval $ac_try) 2>&5
20655   ac_status=$?
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); }; }; then
20658   ac_cv_lib_z_deflate=yes
20659 else
20660   echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 ac_cv_lib_z_deflate=no
20664 fi
20665 rm -f conftest.err conftest.$ac_objext \
20666       conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20668 fi
20669 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20670 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20671 if test $ac_cv_lib_z_deflate = yes; then
20672   FDLIBS="-lz"
20673 fi
20674
20675 have_zlib=no
20676 if test x$FDLIBS = x-lz; then
20677   cat >>confdefs.h <<\_ACEOF
20678 #define HAVE_LIBZ 1
20679 _ACEOF
20680
20681   have_zlib=yes
20682 fi
20683
20684 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20685   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20686 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20687 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20688   echo $ECHO_N "(cached) $ECHO_C" >&6
20689 fi
20690 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20691 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20692 else
20693   # Is the header compilable?
20694 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20695 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20696 cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h.  */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h.  */
20702 $ac_includes_default
20703 #include <sys/acl.h>
20704 _ACEOF
20705 rm -f conftest.$ac_objext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20707   (eval $ac_compile) 2>conftest.er1
20708   ac_status=$?
20709   grep -v '^ *+' conftest.er1 >conftest.err
20710   rm -f conftest.er1
20711   cat conftest.err >&5
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } &&
20714          { ac_try='test -z "$ac_c_werror_flag"
20715                          || test ! -s conftest.err'
20716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717   (eval $ac_try) 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); }; } &&
20721          { ac_try='test -s conftest.$ac_objext'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; }; then
20727   ac_header_compiler=yes
20728 else
20729   echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20731
20732 ac_header_compiler=no
20733 fi
20734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20736 echo "${ECHO_T}$ac_header_compiler" >&6
20737
20738 # Is the header present?
20739 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20740 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747 #include <sys/acl.h>
20748 _ACEOF
20749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20751   ac_status=$?
20752   grep -v '^ *+' conftest.er1 >conftest.err
20753   rm -f conftest.er1
20754   cat conftest.err >&5
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); } >/dev/null; then
20757   if test -s conftest.err; then
20758     ac_cpp_err=$ac_c_preproc_warn_flag
20759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20760   else
20761     ac_cpp_err=
20762   fi
20763 else
20764   ac_cpp_err=yes
20765 fi
20766 if test -z "$ac_cpp_err"; then
20767   ac_header_preproc=yes
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772   ac_header_preproc=no
20773 fi
20774 rm -f conftest.err conftest.$ac_ext
20775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20776 echo "${ECHO_T}$ac_header_preproc" >&6
20777
20778 # So?  What about this header?
20779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20780   yes:no: )
20781     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20782 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20784 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20785     ac_header_preproc=yes
20786     ;;
20787   no:yes:* )
20788     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20789 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20791 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20793 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20795 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20796     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20797 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20798     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20799 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20800     (
20801       cat <<\_ASBOX
20802 ## ------------------------------------------ ##
20803 ## Report this to the AC_PACKAGE_NAME lists.  ##
20804 ## ------------------------------------------ ##
20805 _ASBOX
20806     ) |
20807       sed "s/^/$as_me: WARNING:     /" >&2
20808     ;;
20809 esac
20810 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20811 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20812 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20813   echo $ECHO_N "(cached) $ECHO_C" >&6
20814 else
20815   ac_cv_header_sys_acl_h=$ac_header_preproc
20816 fi
20817 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20818 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20819
20820 fi
20821
20822
20823 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20824 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20825 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20826   echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828   ac_check_lib_save_LIBS=$LIBS
20829 LIBS="-lacl  $LIBS"
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h.  */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h.  */
20836
20837 /* Override any gcc2 internal prototype to avoid an error.  */
20838 #ifdef __cplusplus
20839 extern "C"
20840 #endif
20841 /* We use char because int might match the return type of a gcc2
20842    builtin and then its argument prototype would still apply.  */
20843 char acl_get_file ();
20844 int
20845 main ()
20846 {
20847 acl_get_file ();
20848   ;
20849   return 0;
20850 }
20851 _ACEOF
20852 rm -f conftest.$ac_objext conftest$ac_exeext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20854   (eval $ac_link) 2>conftest.er1
20855   ac_status=$?
20856   grep -v '^ *+' conftest.er1 >conftest.err
20857   rm -f conftest.er1
20858   cat conftest.err >&5
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); } &&
20861          { ac_try='test -z "$ac_c_werror_flag"
20862                          || test ! -s conftest.err'
20863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864   (eval $ac_try) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; } &&
20868          { ac_try='test -s conftest$ac_exeext'
20869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870   (eval $ac_try) 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); }; }; then
20874   ac_cv_lib_acl_acl_get_file=yes
20875 else
20876   echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_cv_lib_acl_acl_get_file=no
20880 fi
20881 rm -f conftest.err conftest.$ac_objext \
20882       conftest$ac_exeext conftest.$ac_ext
20883 LIBS=$ac_check_lib_save_LIBS
20884 fi
20885 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20886 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20887 if test $ac_cv_lib_acl_acl_get_file = yes; then
20888   FDLIBS="-lacl $FDLIBS"
20889 fi
20890
20891 have_acl=no
20892 if test $ac_cv_lib_acl_acl_get_file = yes; then
20893    cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_ACL 1
20895 _ACEOF
20896
20897    have_acl=yes
20898 fi
20899
20900 PTHREAD_LIB=""
20901 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20902 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20903 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20904   echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906   ac_check_lib_save_LIBS=$LIBS
20907 LIBS="-lpthread  $LIBS"
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h.  */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h.  */
20914
20915 /* Override any gcc2 internal prototype to avoid an error.  */
20916 #ifdef __cplusplus
20917 extern "C"
20918 #endif
20919 /* We use char because int might match the return type of a gcc2
20920    builtin and then its argument prototype would still apply.  */
20921 char pthread_create ();
20922 int
20923 main ()
20924 {
20925 pthread_create ();
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932   (eval $ac_link) 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } &&
20939          { ac_try='test -z "$ac_c_werror_flag"
20940                          || test ! -s conftest.err'
20941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942   (eval $ac_try) 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); }; } &&
20946          { ac_try='test -s conftest$ac_exeext'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ac_cv_lib_pthread_pthread_create=yes
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ac_cv_lib_pthread_pthread_create=no
20958 fi
20959 rm -f conftest.err conftest.$ac_objext \
20960       conftest$ac_exeext conftest.$ac_ext
20961 LIBS=$ac_check_lib_save_LIBS
20962 fi
20963 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20964 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20965 if test $ac_cv_lib_pthread_pthread_create = yes; then
20966   PTHREAD_LIB="-lpthread"
20967 else
20968   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20969 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20970 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20971   echo $ECHO_N "(cached) $ECHO_C" >&6
20972 else
20973   ac_check_lib_save_LIBS=$LIBS
20974 LIBS="-lpthreads  $LIBS"
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981
20982 /* Override any gcc2 internal prototype to avoid an error.  */
20983 #ifdef __cplusplus
20984 extern "C"
20985 #endif
20986 /* We use char because int might match the return type of a gcc2
20987    builtin and then its argument prototype would still apply.  */
20988 char pthread_create ();
20989 int
20990 main ()
20991 {
20992 pthread_create ();
20993   ;
20994   return 0;
20995 }
20996 _ACEOF
20997 rm -f conftest.$ac_objext conftest$ac_exeext
20998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20999   (eval $ac_link) 2>conftest.er1
21000   ac_status=$?
21001   grep -v '^ *+' conftest.er1 >conftest.err
21002   rm -f conftest.er1
21003   cat conftest.err >&5
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } &&
21006          { ac_try='test -z "$ac_c_werror_flag"
21007                          || test ! -s conftest.err'
21008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009   (eval $ac_try) 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); }; } &&
21013          { ac_try='test -s conftest$ac_exeext'
21014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015   (eval $ac_try) 2>&5
21016   ac_status=$?
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); }; }; then
21019   ac_cv_lib_pthreads_pthread_create=yes
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 ac_cv_lib_pthreads_pthread_create=no
21025 fi
21026 rm -f conftest.err conftest.$ac_objext \
21027       conftest$ac_exeext conftest.$ac_ext
21028 LIBS=$ac_check_lib_save_LIBS
21029 fi
21030 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21031 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21032 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21033   PTHREAD_LIB="-lpthreads"
21034 else
21035   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21036 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21037 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040   ac_check_lib_save_LIBS=$LIBS
21041 LIBS="-lc_r  $LIBS"
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048
21049 /* Override any gcc2 internal prototype to avoid an error.  */
21050 #ifdef __cplusplus
21051 extern "C"
21052 #endif
21053 /* We use char because int might match the return type of a gcc2
21054    builtin and then its argument prototype would still apply.  */
21055 char pthread_create ();
21056 int
21057 main ()
21058 {
21059 pthread_create ();
21060   ;
21061   return 0;
21062 }
21063 _ACEOF
21064 rm -f conftest.$ac_objext conftest$ac_exeext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21066   (eval $ac_link) 2>conftest.er1
21067   ac_status=$?
21068   grep -v '^ *+' conftest.er1 >conftest.err
21069   rm -f conftest.er1
21070   cat conftest.err >&5
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); } &&
21073          { ac_try='test -z "$ac_c_werror_flag"
21074                          || test ! -s conftest.err'
21075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076   (eval $ac_try) 2>&5
21077   ac_status=$?
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); }; } &&
21080          { ac_try='test -s conftest$ac_exeext'
21081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082   (eval $ac_try) 2>&5
21083   ac_status=$?
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); }; }; then
21086   ac_cv_lib_c_r_pthread_create=yes
21087 else
21088   echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_lib_c_r_pthread_create=no
21092 fi
21093 rm -f conftest.err conftest.$ac_objext \
21094       conftest$ac_exeext conftest.$ac_ext
21095 LIBS=$ac_check_lib_save_LIBS
21096 fi
21097 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21098 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21099 if test $ac_cv_lib_c_r_pthread_create = yes; then
21100   PTHREAD_LIB="-lc_r"
21101 else
21102   echo "$as_me:$LINENO: checking for pthread_create" >&5
21103 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21104 if test "${ac_cv_func_pthread_create+set}" = set; then
21105   echo $ECHO_N "(cached) $ECHO_C" >&6
21106 else
21107   cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21115 #define pthread_create innocuous_pthread_create
21116
21117 /* System header to define __stub macros and hopefully few prototypes,
21118     which can conflict with char pthread_create (); below.
21119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21120     <limits.h> exists even on freestanding compilers.  */
21121
21122 #ifdef __STDC__
21123 # include <limits.h>
21124 #else
21125 # include <assert.h>
21126 #endif
21127
21128 #undef pthread_create
21129
21130 /* Override any gcc2 internal prototype to avoid an error.  */
21131 #ifdef __cplusplus
21132 extern "C"
21133 {
21134 #endif
21135 /* We use char because int might match the return type of a gcc2
21136    builtin and then its argument prototype would still apply.  */
21137 char pthread_create ();
21138 /* The GNU C library defines this for functions which it implements
21139     to always fail with ENOSYS.  Some functions are actually named
21140     something starting with __ and the normal name is an alias.  */
21141 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21142 choke me
21143 #else
21144 char (*f) () = pthread_create;
21145 #endif
21146 #ifdef __cplusplus
21147 }
21148 #endif
21149
21150 int
21151 main ()
21152 {
21153 return f != pthread_create;
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext conftest$ac_exeext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21160   (eval $ac_link) 2>conftest.er1
21161   ac_status=$?
21162   grep -v '^ *+' conftest.er1 >conftest.err
21163   rm -f conftest.er1
21164   cat conftest.err >&5
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); } &&
21167          { ac_try='test -z "$ac_c_werror_flag"
21168                          || test ! -s conftest.err'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; } &&
21174          { ac_try='test -s conftest$ac_exeext'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; }; then
21180   ac_cv_func_pthread_create=yes
21181 else
21182   echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 ac_cv_func_pthread_create=no
21186 fi
21187 rm -f conftest.err conftest.$ac_objext \
21188       conftest$ac_exeext conftest.$ac_ext
21189 fi
21190 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21191 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21192
21193
21194 fi
21195
21196
21197 fi
21198
21199
21200 fi
21201
21202
21203
21204 cat >>confdefs.h <<\_ACEOF
21205 #define FDLIBS 1
21206 _ACEOF
21207
21208
21209
21210 CFLAGS=${CFLAGS--O}
21211 LDFLAGS=${LDFLAGS--O}
21212 DB_LIBS="${SQL_LFLAGS}"
21213
21214 CPPFLAGS="$CPPFLAGS"
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229 OBJLIST=
21230
21231
21232 lld="lld"
21233 llu="llu"
21234
21235 WCFLAGS=
21236 WLDFLAGS=
21237
21238 #
21239 # Finally we set appropriate distribution specific
21240 #  variables and defaults
21241 #
21242 # PFILES are platform specific files
21243 PFILES="platforms/Makefile"
21244 PSCMD="ps -e"
21245 WIN32=
21246 MACOSX=
21247 hostname=`uname -n | cut -d '.' -f 1`
21248 case "$DISTNAME" in
21249 aix)
21250         DISTVER=`uname -r`
21251         PSCMD="ps -e -o pid,comm"
21252         PFILES="${PFILES} \
21253            platforms/aix/Makefile"
21254         TAPEDRIVE="/dev/rmt0.1"
21255   ;;
21256 alpha)
21257         DISTVER=`uname -r`
21258         PTHREAD_LIB="-lpthread -lexc"
21259         if test "${CC}" = "gcc" ; then
21260            lld="lld"
21261            llu="llu"
21262         else
21263            lld="ld"
21264            llu="lu"
21265         fi
21266         TAPEDRIVE="/dev/nrmt0"
21267   ;;
21268 bsdi)
21269         DISTVER=`uname -a |awk '{print $3}'`
21270         TAPEDRIVE="/dev/nrmt0"
21271         PTHREAD_LIB="-pthread"
21272         CFLAGS="${CFLAGS} -pthread"
21273         PSCMD="ps -x -o pid,command"
21274         lld="qd"
21275         llu="qu"
21276         PFILES="${PFILES} \
21277             platforms/bsdi/Makefile \
21278             platforms/bsdi/bacula-fd \
21279             platforms/bsdi/bacula-sd \
21280             platforms/bsdi/bacula-dir"
21281         largefile_support="yes"
21282   ;;
21283 cygwin)
21284         DISTVER=`uname -a |awk '{print $3}'`
21285         TAPEDRIVE="/dev/nrst0"
21286         WIN32=win32
21287         WCFLAGS="-mwindows"
21288         WLDFLAGS="-mwindows"
21289   ;;
21290 darwin)
21291         DISTVER=`uname -r`
21292         TAPEDRIVE="/dev/nst0"
21293         PSCMD="ps -e -o pid,command"
21294         MACOSX=macosx
21295         PFILES="${PFILES} \
21296            platforms/darwin/Makefile"
21297   ;;
21298 debian)
21299         DISTVER=`cat /etc/debian_version`
21300         TAPEDRIVE="/dev/nrst0"
21301         PSCMD="ps -e -o pid,command"
21302   ;;
21303 freebsd)
21304         DISTVER=`uname -a |awk '{print $3}'`
21305         VER=`echo $DISTVER | cut -c 1`
21306         if test x$VER = x4 ; then
21307            PTHREAD_LIB="-pthread"
21308            CFLAGS="${CFLAGS} -pthread"
21309         fi
21310         lld="qd"
21311         llu="qu"
21312         TAPEDRIVE="/dev/nrsa0"
21313         PSCMD="ps -x -o pid,command"
21314         PFILES="${PFILES} \
21315             platforms/freebsd/Makefile \
21316             platforms/freebsd/bacula-fd \
21317             platforms/freebsd/bacula-sd \
21318             platforms/freebsd/bacula-dir"
21319         largefile_support="yes"
21320   ;;
21321 hpux)
21322         PSCMD="UNIX95=1 ps -e -o pid,comm"
21323         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21324         DISTVER=`uname -r`
21325         TAPEDRIVE="/dev/rmt/0hnb"
21326   ;;
21327 irix)
21328         DISTVER=`uname -r`
21329         TAPEDRIVE="/dev/rmt/0cbn"
21330         PSCMD="ps -e -o pid,comm"
21331         PFILES="${PFILES} \
21332             platforms/irix/Makefile \
21333             platforms/irix/bacula-fd \
21334             platforms/irix/bacula-sd \
21335             platforms/irix/bacula-dir"
21336   ;;
21337 netbsd)
21338         DISTVER=`uname -a |awk '{print $3}'`
21339         lld="qd"
21340         llu="qu"
21341         TAPEDRIVE="/dev/nrst0"
21342         PSCMD="ps -a -o pid,command"
21343         PTHREAD_LIB="-pthread"
21344         CFLAGS="${CFLAGS} -pthread"
21345   ;;
21346 openbsd)
21347         DISTVER=`uname -a |awk '{print $3}'`
21348         lld="qd"
21349         llu="qu"
21350         TAPEDRIVE="/dev/nrst0"
21351         PSCMD="ps -ax -o pid,command"
21352         PTHREAD_LIB="-pthread"
21353         CFLAGS="${CFLAGS} -pthread"
21354         PFILES="${PFILES} \
21355             platforms/openbsd/Makefile \
21356             platforms/openbsd/bacula-fd \
21357             platforms/openbsd/bacula-sd \
21358             platforms/openbsd/bacula-dir"
21359   ;;
21360 redhat)
21361         if test -f /etc/whitebox-release ; then
21362            f=/etc/whitebox-release
21363         else
21364            f=/etc/redhat-release
21365         fi
21366         if test `cat $f | grep release |\
21367                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21368            DISTVER="Enterprise "`cat $f | grep release |\
21369                     cut -f 6 -d ' '`
21370         else
21371             DISTVER=`cat /etc/redhat-release | grep release |\
21372                      cut -f 5 -d ' '`
21373         fi
21374         TAPEDRIVE="/dev/nst0"
21375         PSCMD="ps -e -o pid,command"
21376         PFILES="${PFILES} \
21377             platforms/redhat/Makefile \
21378             platforms/redhat/bacula-fd \
21379             platforms/redhat/bacula-sd \
21380             platforms/redhat/bacula-dir \
21381             platforms/redhat/bacula.spec \
21382             "
21383         hostname=`hostname -s`
21384   ;;
21385 mandrake)
21386         DISTVER=`cat /etc/mandrake-release | grep release |\
21387            cut -f 5 -d ' '`
21388         TAPEDRIVE="/dev/nst0"
21389         PSCMD="ps -e -o pid,command"
21390         PFILES="${PFILES} \
21391             platforms/mandrake/Makefile \
21392             platforms/mandrake/bacula-fd \
21393             platforms/mandrake/bacula-sd \
21394             platforms/mandrake/bacula-dir \
21395             platforms/mandrake/bacula.spec \
21396             "
21397   ;;
21398 gentoo)
21399         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21400         TAPEDRIVE="/dev/nst0"
21401         PSCMD="ps -e -o pid,command"
21402         PFILES="${PFILES} \
21403             platforms/gentoo/Makefile \
21404          platforms/gentoo/bacula-init \
21405             platforms/gentoo/bacula-fd \
21406             platforms/gentoo/bacula-sd \
21407             platforms/gentoo/bacula-dir"
21408   ;;
21409 slackware)
21410         DISTVER=`cat /etc/slackware-version`
21411         TAPEDRIVE="/dev/nst0"
21412         PSCMD="ps -e -o pid,command"
21413         PFILES="${PFILES} \
21414             platforms/slackware/Makefile \
21415             platforms/slackware/rc.bacula-fd \
21416             platforms/slackware/rc.bacula-sd \
21417             platforms/slackware/rc.bacula-dir\
21418             platforms/slackware/functions.bacula"
21419   ;;
21420 solaris)
21421         DISTVER=`uname -r`
21422         TAPEDRIVE="/dev/rmt/0cbn"
21423         PSCMD="ps -e -o pid,comm"
21424         PFILES="${PFILES} \
21425             platforms/solaris/Makefile \
21426             platforms/solaris/bacula-fd \
21427             platforms/solaris/bacula-sd \
21428             platforms/solaris/bacula-dir"
21429         if test x$DISTVER = x5.6 ; then
21430             cat >>confdefs.h <<\_ACEOF
21431 #define HAVE_OLD_SOCKOPT 1
21432 _ACEOF
21433
21434         fi
21435   ;;
21436 suse)
21437         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21438             cut -f 3 -d ' '`
21439         TAPEDRIVE="/dev/nst0"
21440         PSCMD="ps -e -o pid,command"
21441         PFILES="${PFILES} \
21442             platforms/suse/Makefile \
21443             platforms/suse/bacula-fd \
21444             platforms/suse/bacula-sd \
21445             platforms/suse/bacula-dir \
21446             platforms/suse/bacula \
21447             platforms/suse/bacula.spec"
21448   ;;
21449 suse5)
21450         DISTNAME=suse
21451         DISTVER=5.x
21452         TAPEDRIVE="/dev/nst0"
21453         PSCMD="ps -e -o pid,command"
21454         PFILES="${PFILES} \
21455             platforms/suse/Makefile \
21456             platforms/suse/bacula-fd \
21457             platforms/suse/bacula-sd \
21458             platforms/suse/bacula-dir"
21459   ;;
21460 unknown)
21461         DISTVER=unknown
21462         TAPEDRIVE="/dev/nst0"
21463   ;;
21464 *)
21465   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21466   ;;
21467 esac
21468
21469
21470
21471 LIBS="$PTHREAD_LIB $LIBS"
21472
21473 cat >>confdefs.h <<_ACEOF
21474 #define lld "$lld"
21475 _ACEOF
21476
21477 cat >>confdefs.h <<_ACEOF
21478 #define llu "$llu"
21479 _ACEOF
21480
21481
21482
21483
21484
21485
21486
21487
21488 MCOMMON=./autoconf/Make.common
21489
21490
21491 if test "x${subsysdir}" = "x${sbindir}" ; then
21492    echo " "
21493    echo " "
21494    echo "You have set both --sbindir and --with-subsys-dir"
21495    echo "  equal to: ${subsysdir} "
21496    echo "This is not permitted. Please reconfigure."
21497    echo " "
21498    echo "Aborting configuration ..."
21499    echo " "
21500    echo " "
21501    exit 1
21502 fi
21503
21504                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     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"
21505           ac_config_commands="$ac_config_commands default"
21506 cat >confcache <<\_ACEOF
21507 # This file is a shell script that caches the results of configure
21508 # tests run on this system so they can be shared between configure
21509 # scripts and configure runs, see configure's option --config-cache.
21510 # It is not useful on other systems.  If it contains results you don't
21511 # want to keep, you may remove or edit it.
21512 #
21513 # config.status only pays attention to the cache file if you give it
21514 # the --recheck option to rerun configure.
21515 #
21516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21518 # following values.
21519
21520 _ACEOF
21521
21522 # The following way of writing the cache mishandles newlines in values,
21523 # but we know of no workaround that is simple, portable, and efficient.
21524 # So, don't put newlines in cache variables' values.
21525 # Ultrix sh set writes to stderr and can't be redirected directly,
21526 # and sets the high bit in the cache file unless we assign to the vars.
21527 {
21528   (set) 2>&1 |
21529     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21530     *ac_space=\ *)
21531       # `set' does not quote correctly, so add quotes (double-quote
21532       # substitution turns \\\\ into \\, and sed turns \\ into \).
21533       sed -n \
21534         "s/'/'\\\\''/g;
21535           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21536       ;;
21537     *)
21538       # `set' quotes correctly as required by POSIX, so do not add quotes.
21539       sed -n \
21540         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21541       ;;
21542     esac;
21543 } |
21544   sed '
21545      t clear
21546      : clear
21547      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21548      t end
21549      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21550      : end' >>confcache
21551 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21552   if test -w $cache_file; then
21553     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21554     cat confcache >$cache_file
21555   else
21556     echo "not updating unwritable cache $cache_file"
21557   fi
21558 fi
21559 rm -f confcache
21560
21561 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21562 # Let make expand exec_prefix.
21563 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21564
21565 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21566 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21567 # trailing colons and then remove the whole line if VPATH becomes empty
21568 # (actually we leave an empty line to preserve line numbers).
21569 if test "x$srcdir" = x.; then
21570   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21571 s/:*\$(srcdir):*/:/;
21572 s/:*\${srcdir}:*/:/;
21573 s/:*@srcdir@:*/:/;
21574 s/^\([^=]*=[     ]*\):*/\1/;
21575 s/:*$//;
21576 s/^[^=]*=[       ]*$//;
21577 }'
21578 fi
21579
21580 DEFS=-DHAVE_CONFIG_H
21581
21582 ac_libobjs=
21583 ac_ltlibobjs=
21584 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21585   # 1. Remove the extension, and $U if already installed.
21586   ac_i=`echo "$ac_i" |
21587          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21588   # 2. Add them.
21589   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21590   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21591 done
21592 LIBOBJS=$ac_libobjs
21593
21594 LTLIBOBJS=$ac_ltlibobjs
21595
21596
21597
21598 : ${CONFIG_STATUS=./config.status}
21599 ac_clean_files_save=$ac_clean_files
21600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21601 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21602 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21603 cat >$CONFIG_STATUS <<_ACEOF
21604 #! $SHELL
21605 # Generated by $as_me.
21606 # Run this file to recreate the current configuration.
21607 # Compiler output produced by configure, useful for debugging
21608 # configure, is in config.log if it exists.
21609
21610 debug=false
21611 ac_cs_recheck=false
21612 ac_cs_silent=false
21613 SHELL=\${CONFIG_SHELL-$SHELL}
21614 _ACEOF
21615
21616 cat >>$CONFIG_STATUS <<\_ACEOF
21617 ## --------------------- ##
21618 ## M4sh Initialization.  ##
21619 ## --------------------- ##
21620
21621 # Be Bourne compatible
21622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21623   emulate sh
21624   NULLCMD=:
21625   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21626   # is contrary to our usage.  Disable this feature.
21627   alias -g '${1+"$@"}'='"$@"'
21628 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21629   set -o posix
21630 fi
21631 DUALCASE=1; export DUALCASE # for MKS sh
21632
21633 # Support unset when possible.
21634 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21635   as_unset=unset
21636 else
21637   as_unset=false
21638 fi
21639
21640
21641 # Work around bugs in pre-3.0 UWIN ksh.
21642 $as_unset ENV MAIL MAILPATH
21643 PS1='$ '
21644 PS2='> '
21645 PS4='+ '
21646
21647 # NLS nuisances.
21648 for as_var in \
21649   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21650   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21651   LC_TELEPHONE LC_TIME
21652 do
21653   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21654     eval $as_var=C; export $as_var
21655   else
21656     $as_unset $as_var
21657   fi
21658 done
21659
21660 # Required to use basename.
21661 if expr a : '\(a\)' >/dev/null 2>&1; then
21662   as_expr=expr
21663 else
21664   as_expr=false
21665 fi
21666
21667 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21668   as_basename=basename
21669 else
21670   as_basename=false
21671 fi
21672
21673
21674 # Name of the executable.
21675 as_me=`$as_basename "$0" ||
21676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21677          X"$0" : 'X\(//\)$' \| \
21678          X"$0" : 'X\(/\)$' \| \
21679          .     : '\(.\)' 2>/dev/null ||
21680 echo X/"$0" |
21681     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21682           /^X\/\(\/\/\)$/{ s//\1/; q; }
21683           /^X\/\(\/\).*/{ s//\1/; q; }
21684           s/.*/./; q'`
21685
21686
21687 # PATH needs CR, and LINENO needs CR and PATH.
21688 # Avoid depending upon Character Ranges.
21689 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21690 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21691 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21692 as_cr_digits='0123456789'
21693 as_cr_alnum=$as_cr_Letters$as_cr_digits
21694
21695 # The user is always right.
21696 if test "${PATH_SEPARATOR+set}" != set; then
21697   echo "#! /bin/sh" >conf$$.sh
21698   echo  "exit 0"   >>conf$$.sh
21699   chmod +x conf$$.sh
21700   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21701     PATH_SEPARATOR=';'
21702   else
21703     PATH_SEPARATOR=:
21704   fi
21705   rm -f conf$$.sh
21706 fi
21707
21708
21709   as_lineno_1=$LINENO
21710   as_lineno_2=$LINENO
21711   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21712   test "x$as_lineno_1" != "x$as_lineno_2" &&
21713   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21714   # Find who we are.  Look in the path if we contain no path at all
21715   # relative or not.
21716   case $0 in
21717     *[\\/]* ) as_myself=$0 ;;
21718     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21719 for as_dir in $PATH
21720 do
21721   IFS=$as_save_IFS
21722   test -z "$as_dir" && as_dir=.
21723   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21724 done
21725
21726        ;;
21727   esac
21728   # We did not find ourselves, most probably we were run as `sh COMMAND'
21729   # in which case we are not to be found in the path.
21730   if test "x$as_myself" = x; then
21731     as_myself=$0
21732   fi
21733   if test ! -f "$as_myself"; then
21734     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21735 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21736    { (exit 1); exit 1; }; }
21737   fi
21738   case $CONFIG_SHELL in
21739   '')
21740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21741 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21742 do
21743   IFS=$as_save_IFS
21744   test -z "$as_dir" && as_dir=.
21745   for as_base in sh bash ksh sh5; do
21746          case $as_dir in
21747          /*)
21748            if ("$as_dir/$as_base" -c '
21749   as_lineno_1=$LINENO
21750   as_lineno_2=$LINENO
21751   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21752   test "x$as_lineno_1" != "x$as_lineno_2" &&
21753   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21754              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21755              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21756              CONFIG_SHELL=$as_dir/$as_base
21757              export CONFIG_SHELL
21758              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21759            fi;;
21760          esac
21761        done
21762 done
21763 ;;
21764   esac
21765
21766   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21767   # uniformly replaced by the line number.  The first 'sed' inserts a
21768   # line-number line before each line; the second 'sed' does the real
21769   # work.  The second script uses 'N' to pair each line-number line
21770   # with the numbered line, and appends trailing '-' during
21771   # substitution so that $LINENO is not a special case at line end.
21772   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21773   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21774   sed '=' <$as_myself |
21775     sed '
21776       N
21777       s,$,-,
21778       : loop
21779       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21780       t loop
21781       s,-$,,
21782       s,^['$as_cr_digits']*\n,,
21783     ' >$as_me.lineno &&
21784   chmod +x $as_me.lineno ||
21785     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21786 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21787    { (exit 1); exit 1; }; }
21788
21789   # Don't try to exec as it changes $[0], causing all sort of problems
21790   # (the dirname of $[0] is not the place where we might find the
21791   # original and so on.  Autoconf is especially sensible to this).
21792   . ./$as_me.lineno
21793   # Exit status is that of the last command.
21794   exit
21795 }
21796
21797
21798 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21799   *c*,-n*) ECHO_N= ECHO_C='
21800 ' ECHO_T='      ' ;;
21801   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21802   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21803 esac
21804
21805 if expr a : '\(a\)' >/dev/null 2>&1; then
21806   as_expr=expr
21807 else
21808   as_expr=false
21809 fi
21810
21811 rm -f conf$$ conf$$.exe conf$$.file
21812 echo >conf$$.file
21813 if ln -s conf$$.file conf$$ 2>/dev/null; then
21814   # We could just check for DJGPP; but this test a) works b) is more generic
21815   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21816   if test -f conf$$.exe; then
21817     # Don't use ln at all; we don't have any links
21818     as_ln_s='cp -p'
21819   else
21820     as_ln_s='ln -s'
21821   fi
21822 elif ln conf$$.file conf$$ 2>/dev/null; then
21823   as_ln_s=ln
21824 else
21825   as_ln_s='cp -p'
21826 fi
21827 rm -f conf$$ conf$$.exe conf$$.file
21828
21829 if mkdir -p . 2>/dev/null; then
21830   as_mkdir_p=:
21831 else
21832   test -d ./-p && rmdir ./-p
21833   as_mkdir_p=false
21834 fi
21835
21836 as_executable_p="test -f"
21837
21838 # Sed expression to map a string onto a valid CPP name.
21839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21840
21841 # Sed expression to map a string onto a valid variable name.
21842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21843
21844
21845 # IFS
21846 # We need space, tab and new line, in precisely that order.
21847 as_nl='
21848 '
21849 IFS="   $as_nl"
21850
21851 # CDPATH.
21852 $as_unset CDPATH
21853
21854 exec 6>&1
21855
21856 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21857 # report actual input values of CONFIG_FILES etc. instead of their
21858 # values after options handling.  Logging --version etc. is OK.
21859 exec 5>>config.log
21860 {
21861   echo
21862   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21863 ## Running $as_me. ##
21864 _ASBOX
21865 } >&5
21866 cat >&5 <<_CSEOF
21867
21868 This file was extended by $as_me, which was
21869 generated by GNU Autoconf 2.59.  Invocation command line was
21870
21871   CONFIG_FILES    = $CONFIG_FILES
21872   CONFIG_HEADERS  = $CONFIG_HEADERS
21873   CONFIG_LINKS    = $CONFIG_LINKS
21874   CONFIG_COMMANDS = $CONFIG_COMMANDS
21875   $ $0 $@
21876
21877 _CSEOF
21878 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21879 echo >&5
21880 _ACEOF
21881
21882 # Files that config.status was made for.
21883 if test -n "$ac_config_files"; then
21884   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21885 fi
21886
21887 if test -n "$ac_config_headers"; then
21888   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21889 fi
21890
21891 if test -n "$ac_config_links"; then
21892   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21893 fi
21894
21895 if test -n "$ac_config_commands"; then
21896   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21897 fi
21898
21899 cat >>$CONFIG_STATUS <<\_ACEOF
21900
21901 ac_cs_usage="\
21902 \`$as_me' instantiates files from templates according to the
21903 current configuration.
21904
21905 Usage: $0 [OPTIONS] [FILE]...
21906
21907   -h, --help       print this help, then exit
21908   -V, --version    print version number, then exit
21909   -q, --quiet      do not print progress messages
21910   -d, --debug      don't remove temporary files
21911       --recheck    update $as_me by reconfiguring in the same conditions
21912   --file=FILE[:TEMPLATE]
21913                    instantiate the configuration file FILE
21914   --header=FILE[:TEMPLATE]
21915                    instantiate the configuration header FILE
21916
21917 Configuration files:
21918 $config_files
21919
21920 Configuration headers:
21921 $config_headers
21922
21923 Configuration commands:
21924 $config_commands
21925
21926 Report bugs to <bug-autoconf@gnu.org>."
21927 _ACEOF
21928
21929 cat >>$CONFIG_STATUS <<_ACEOF
21930 ac_cs_version="\\
21931 config.status
21932 configured by $0, generated by GNU Autoconf 2.59,
21933   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21934
21935 Copyright (C) 2003 Free Software Foundation, Inc.
21936 This config.status script is free software; the Free Software Foundation
21937 gives unlimited permission to copy, distribute and modify it."
21938 srcdir=$srcdir
21939 INSTALL="$INSTALL"
21940 _ACEOF
21941
21942 cat >>$CONFIG_STATUS <<\_ACEOF
21943 # If no file are specified by the user, then we need to provide default
21944 # value.  By we need to know if files were specified by the user.
21945 ac_need_defaults=:
21946 while test $# != 0
21947 do
21948   case $1 in
21949   --*=*)
21950     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21951     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21952     ac_shift=:
21953     ;;
21954   -*)
21955     ac_option=$1
21956     ac_optarg=$2
21957     ac_shift=shift
21958     ;;
21959   *) # This is not an option, so the user has probably given explicit
21960      # arguments.
21961      ac_option=$1
21962      ac_need_defaults=false;;
21963   esac
21964
21965   case $ac_option in
21966   # Handling of the options.
21967 _ACEOF
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21969   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21970     ac_cs_recheck=: ;;
21971   --version | --vers* | -V )
21972     echo "$ac_cs_version"; exit 0 ;;
21973   --he | --h)
21974     # Conflict between --help and --header
21975     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21976 Try \`$0 --help' for more information." >&5
21977 echo "$as_me: error: ambiguous option: $1
21978 Try \`$0 --help' for more information." >&2;}
21979    { (exit 1); exit 1; }; };;
21980   --help | --hel | -h )
21981     echo "$ac_cs_usage"; exit 0 ;;
21982   --debug | --d* | -d )
21983     debug=: ;;
21984   --file | --fil | --fi | --f )
21985     $ac_shift
21986     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21987     ac_need_defaults=false;;
21988   --header | --heade | --head | --hea )
21989     $ac_shift
21990     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21991     ac_need_defaults=false;;
21992   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21993   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21994     ac_cs_silent=: ;;
21995
21996   # This is an error.
21997   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21998 Try \`$0 --help' for more information." >&5
21999 echo "$as_me: error: unrecognized option: $1
22000 Try \`$0 --help' for more information." >&2;}
22001    { (exit 1); exit 1; }; } ;;
22002
22003   *) ac_config_targets="$ac_config_targets $1" ;;
22004
22005   esac
22006   shift
22007 done
22008
22009 ac_configure_extra_args=
22010
22011 if $ac_cs_silent; then
22012   exec 6>/dev/null
22013   ac_configure_extra_args="$ac_configure_extra_args --silent"
22014 fi
22015
22016 _ACEOF
22017 cat >>$CONFIG_STATUS <<_ACEOF
22018 if \$ac_cs_recheck; then
22019   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22020   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22021 fi
22022
22023 _ACEOF
22024
22025
22026
22027
22028
22029 cat >>$CONFIG_STATUS <<\_ACEOF
22030 for ac_config_target in $ac_config_targets
22031 do
22032   case "$ac_config_target" in
22033   # Handling of arguments.
22034   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22035   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22036   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
22037   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
22038   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
22039   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
22040   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
22041   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
22042   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
22043   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22044   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22045   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22046   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22047   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22048   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22049   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22050   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22051   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22052   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22053   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22054   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22055   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22056   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22057   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22058   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22059   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22060   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22061   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22062   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22063   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22064   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22065   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22066   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22067   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22068   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22069   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22070   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22071   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22072   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22073   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22074   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22075   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22076   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22077   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22078   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22079   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22080   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22081   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22082   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22083   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22084   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22085   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22086   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22087   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22088   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22089   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22090   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22091   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22092   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22093   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22094   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22095   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22096   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22097   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22098   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22099   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22100   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22101   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22102   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22103   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22104   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22105   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22106   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22107   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22108   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22109   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22110   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22111   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22112   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22113   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22114   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22115   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22116   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22117   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22118   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22119   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22120   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22121   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22122   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22123   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22124   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22125   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22126   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22127   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22128   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22129   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22130   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22131   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22132   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22133   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22134   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22135   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22136   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22137   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22138   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22139   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22140   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22141   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22142   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22143 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22144    { (exit 1); exit 1; }; };;
22145   esac
22146 done
22147
22148 # If the user did not use the arguments to specify the items to instantiate,
22149 # then the envvar interface is used.  Set only those that are not.
22150 # We use the long form for the default assignment because of an extremely
22151 # bizarre bug on SunOS 4.1.3.
22152 if $ac_need_defaults; then
22153   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22154   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22155   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22156 fi
22157
22158 # Have a temporary directory for convenience.  Make it in the build tree
22159 # simply because there is no reason to put it here, and in addition,
22160 # creating and moving files from /tmp can sometimes cause problems.
22161 # Create a temporary directory, and hook for its removal unless debugging.
22162 $debug ||
22163 {
22164   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22165   trap '{ (exit 1); exit 1; }' 1 2 13 15
22166 }
22167
22168 # Create a (secure) tmp directory for tmp files.
22169
22170 {
22171   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22172   test -n "$tmp" && test -d "$tmp"
22173 }  ||
22174 {
22175   tmp=./confstat$$-$RANDOM
22176   (umask 077 && mkdir $tmp)
22177 } ||
22178 {
22179    echo "$me: cannot create a temporary directory in ." >&2
22180    { (exit 1); exit 1; }
22181 }
22182
22183 _ACEOF
22184
22185 cat >>$CONFIG_STATUS <<_ACEOF
22186
22187 #
22188 # CONFIG_FILES section.
22189 #
22190
22191 # No need to generate the scripts if there are no CONFIG_FILES.
22192 # This happens for instance when ./config.status config.h
22193 if test -n "\$CONFIG_FILES"; then
22194   # Protect against being on the right side of a sed subst in config.status.
22195   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22196    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22197 s,@SHELL@,$SHELL,;t t
22198 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22199 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22200 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22201 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22202 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22203 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22204 s,@exec_prefix@,$exec_prefix,;t t
22205 s,@prefix@,$prefix,;t t
22206 s,@program_transform_name@,$program_transform_name,;t t
22207 s,@bindir@,$bindir,;t t
22208 s,@sbindir@,$sbindir,;t t
22209 s,@libexecdir@,$libexecdir,;t t
22210 s,@datadir@,$datadir,;t t
22211 s,@sysconfdir@,$sysconfdir,;t t
22212 s,@sharedstatedir@,$sharedstatedir,;t t
22213 s,@localstatedir@,$localstatedir,;t t
22214 s,@libdir@,$libdir,;t t
22215 s,@includedir@,$includedir,;t t
22216 s,@oldincludedir@,$oldincludedir,;t t
22217 s,@infodir@,$infodir,;t t
22218 s,@mandir@,$mandir,;t t
22219 s,@build_alias@,$build_alias,;t t
22220 s,@host_alias@,$host_alias,;t t
22221 s,@target_alias@,$target_alias,;t t
22222 s,@DEFS@,$DEFS,;t t
22223 s,@ECHO_C@,$ECHO_C,;t t
22224 s,@ECHO_N@,$ECHO_N,;t t
22225 s,@ECHO_T@,$ECHO_T,;t t
22226 s,@LIBS@,$LIBS,;t t
22227 s,@BUILD_DIR@,$BUILD_DIR,;t t
22228 s,@TRUEPRG@,$TRUEPRG,;t t
22229 s,@FALSEPRG@,$FALSEPRG,;t t
22230 s,@VERSION@,$VERSION,;t t
22231 s,@DATE@,$DATE,;t t
22232 s,@LSMDATE@,$LSMDATE,;t t
22233 s,@CC@,$CC,;t t
22234 s,@CFLAGS@,$CFLAGS,;t t
22235 s,@LDFLAGS@,$LDFLAGS,;t t
22236 s,@CPPFLAGS@,$CPPFLAGS,;t t
22237 s,@ac_ct_CC@,$ac_ct_CC,;t t
22238 s,@EXEEXT@,$EXEEXT,;t t
22239 s,@OBJEXT@,$OBJEXT,;t t
22240 s,@CXX@,$CXX,;t t
22241 s,@CXXFLAGS@,$CXXFLAGS,;t t
22242 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22243 s,@CPP@,$CPP,;t t
22244 s,@EGREP@,$EGREP,;t t
22245 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22246 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22247 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22248 s,@RANLIB@,$RANLIB,;t t
22249 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22250 s,@MV@,$MV,;t t
22251 s,@RM@,$RM,;t t
22252 s,@CP@,$CP,;t t
22253 s,@SED@,$SED,;t t
22254 s,@AWK@,$AWK,;t t
22255 s,@ECHO@,$ECHO,;t t
22256 s,@CMP@,$CMP,;t t
22257 s,@TBL@,$TBL,;t t
22258 s,@AR@,$AR,;t t
22259 s,@OPENSSL@,$OPENSSL,;t t
22260 s,@MTX@,$MTX,;t t
22261 s,@MKISOFS@,$MKISOFS,;t t
22262 s,@PYTHON@,$PYTHON,;t t
22263 s,@GROWISOFS@,$GROWISOFS,;t t
22264 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22265 s,@PKGCONFIG@,$PKGCONFIG,;t t
22266 s,@WXCONFIG@,$WXCONFIG,;t t
22267 s,@CDRECORD@,$CDRECORD,;t t
22268 s,@PIDOF@,$PIDOF,;t t
22269 s,@ARFLAGS@,$ARFLAGS,;t t
22270 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22271 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22272 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22273 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22274 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22275 s,@build@,$build,;t t
22276 s,@build_cpu@,$build_cpu,;t t
22277 s,@build_vendor@,$build_vendor,;t t
22278 s,@build_os@,$build_os,;t t
22279 s,@host@,$host,;t t
22280 s,@host_cpu@,$host_cpu,;t t
22281 s,@host_vendor@,$host_vendor,;t t
22282 s,@host_os@,$host_os,;t t
22283 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22284 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22285 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22286 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22287 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22288 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22289 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22290 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22291 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22292 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22293 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22294 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22295 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22296 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22297 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22298 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22299 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22300 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22301 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22302 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22303 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22304 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22305 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22306 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22307 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22308 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22309 s,@MSGFMT@,$MSGFMT,;t t
22310 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22311 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22312 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22313 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22314 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22315 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22316 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22317 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22318 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22319 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22320 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22321 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22322 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22323 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22324 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22325 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22326 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22327 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22328 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22329 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22330 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22331 s,@GNOME_DIR@,$GNOME_DIR,;t t
22332 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22333 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22334 s,@WX_DIR@,$WX_DIR,;t t
22335 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22336 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22337 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22338 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22339 s,@STATIC_FD@,$STATIC_FD,;t t
22340 s,@STATIC_SD@,$STATIC_SD,;t t
22341 s,@STATIC_DIR@,$STATIC_DIR,;t t
22342 s,@STATIC_CONS@,$STATIC_CONS,;t t
22343 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22344 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22345 s,@ALL_DIRS@,$ALL_DIRS,;t t
22346 s,@CONS_INC@,$CONS_INC,;t t
22347 s,@CONS_OBJ@,$CONS_OBJ,;t t
22348 s,@CONS_SRC@,$CONS_SRC,;t t
22349 s,@CONS_LIBS@,$CONS_LIBS,;t t
22350 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22351 s,@READLINE_SRC@,$READLINE_SRC,;t t
22352 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22353 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22354 s,@CDSTL@,$CDSTL,;t t
22355 s,@working_dir@,$working_dir,;t t
22356 s,@scriptdir@,$scriptdir,;t t
22357 s,@dump_email@,$dump_email,;t t
22358 s,@job_email@,$job_email,;t t
22359 s,@smtp_host@,$smtp_host,;t t
22360 s,@piddir@,$piddir,;t t
22361 s,@subsysdir@,$subsysdir,;t t
22362 s,@baseport@,$baseport,;t t
22363 s,@dir_port@,$dir_port,;t t
22364 s,@fd_port@,$fd_port,;t t
22365 s,@sd_port@,$sd_port,;t t
22366 s,@dir_password@,$dir_password,;t t
22367 s,@fd_password@,$fd_password,;t t
22368 s,@sd_password@,$sd_password,;t t
22369 s,@mon_dir_password@,$mon_dir_password,;t t
22370 s,@mon_fd_password@,$mon_fd_password,;t t
22371 s,@mon_sd_password@,$mon_sd_password,;t t
22372 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22373 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22374 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22375 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22376 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22377 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22378 s,@dir_user@,$dir_user,;t t
22379 s,@dir_group@,$dir_group,;t t
22380 s,@sd_user@,$sd_user,;t t
22381 s,@sd_group@,$sd_group,;t t
22382 s,@fd_user@,$fd_user,;t t
22383 s,@fd_group@,$fd_group,;t t
22384 s,@SBINPERM@,$SBINPERM,;t t
22385 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22386 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22387 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22388 s,@cats@,$cats,;t t
22389 s,@DB_NAME@,$DB_NAME,;t t
22390 s,@GETCONF@,$GETCONF,;t t
22391 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22392 s,@X_CFLAGS@,$X_CFLAGS,;t t
22393 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22394 s,@X_LIBS@,$X_LIBS,;t t
22395 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22396 s,@LIBOBJS@,$LIBOBJS,;t t
22397 s,@ALLOCA@,$ALLOCA,;t t
22398 s,@FDLIBS@,$FDLIBS,;t t
22399 s,@DEBUG@,$DEBUG,;t t
22400 s,@DINCLUDE@,$DINCLUDE,;t t
22401 s,@DLIB@,$DLIB,;t t
22402 s,@DB_LIBS@,$DB_LIBS,;t t
22403 s,@WCFLAGS@,$WCFLAGS,;t t
22404 s,@WLDFLAGS@,$WLDFLAGS,;t t
22405 s,@OBJLIST@,$OBJLIST,;t t
22406 s,@hostname@,$hostname,;t t
22407 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22408 s,@PSCMD@,$PSCMD,;t t
22409 s,@WIN32@,$WIN32,;t t
22410 s,@MACOSX@,$MACOSX,;t t
22411 s,@DISTNAME@,$DISTNAME,;t t
22412 s,@DISTVER@,$DISTVER,;t t
22413 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22414 /@MCOMMON@/r $MCOMMON
22415 s,@MCOMMON@,,;t t
22416 CEOF
22417
22418 _ACEOF
22419
22420   cat >>$CONFIG_STATUS <<\_ACEOF
22421   # Split the substitutions into bite-sized pieces for seds with
22422   # small command number limits, like on Digital OSF/1 and HP-UX.
22423   ac_max_sed_lines=48
22424   ac_sed_frag=1 # Number of current file.
22425   ac_beg=1 # First line for current file.
22426   ac_end=$ac_max_sed_lines # Line after last line for current file.
22427   ac_more_lines=:
22428   ac_sed_cmds=
22429   while $ac_more_lines; do
22430     if test $ac_beg -gt 1; then
22431       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22432     else
22433       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22434     fi
22435     if test ! -s $tmp/subs.frag; then
22436       ac_more_lines=false
22437     else
22438       # The purpose of the label and of the branching condition is to
22439       # speed up the sed processing (if there are no `@' at all, there
22440       # is no need to browse any of the substitutions).
22441       # These are the two extra sed commands mentioned above.
22442       (echo ':t
22443   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22444       if test -z "$ac_sed_cmds"; then
22445         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22446       else
22447         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22448       fi
22449       ac_sed_frag=`expr $ac_sed_frag + 1`
22450       ac_beg=$ac_end
22451       ac_end=`expr $ac_end + $ac_max_sed_lines`
22452     fi
22453   done
22454   if test -z "$ac_sed_cmds"; then
22455     ac_sed_cmds=cat
22456   fi
22457 fi # test -n "$CONFIG_FILES"
22458
22459 _ACEOF
22460 cat >>$CONFIG_STATUS <<\_ACEOF
22461 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22462   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22463   case $ac_file in
22464   - | *:- | *:-:* ) # input from stdin
22465         cat >$tmp/stdin
22466         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22467         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22468   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22469         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22470   * )   ac_file_in=$ac_file.in ;;
22471   esac
22472
22473   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22474   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476          X"$ac_file" : 'X\(//\)[^/]' \| \
22477          X"$ac_file" : 'X\(//\)$' \| \
22478          X"$ac_file" : 'X\(/\)' \| \
22479          .     : '\(.\)' 2>/dev/null ||
22480 echo X"$ac_file" |
22481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22483           /^X\(\/\/\)$/{ s//\1/; q; }
22484           /^X\(\/\).*/{ s//\1/; q; }
22485           s/.*/./; q'`
22486   { if $as_mkdir_p; then
22487     mkdir -p "$ac_dir"
22488   else
22489     as_dir="$ac_dir"
22490     as_dirs=
22491     while test ! -d "$as_dir"; do
22492       as_dirs="$as_dir $as_dirs"
22493       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22495          X"$as_dir" : 'X\(//\)[^/]' \| \
22496          X"$as_dir" : 'X\(//\)$' \| \
22497          X"$as_dir" : 'X\(/\)' \| \
22498          .     : '\(.\)' 2>/dev/null ||
22499 echo X"$as_dir" |
22500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22501           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22502           /^X\(\/\/\)$/{ s//\1/; q; }
22503           /^X\(\/\).*/{ s//\1/; q; }
22504           s/.*/./; q'`
22505     done
22506     test ! -n "$as_dirs" || mkdir $as_dirs
22507   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22508 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22509    { (exit 1); exit 1; }; }; }
22510
22511   ac_builddir=.
22512
22513 if test "$ac_dir" != .; then
22514   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22515   # A "../" for each directory in $ac_dir_suffix.
22516   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22517 else
22518   ac_dir_suffix= ac_top_builddir=
22519 fi
22520
22521 case $srcdir in
22522   .)  # No --srcdir option.  We are building in place.
22523     ac_srcdir=.
22524     if test -z "$ac_top_builddir"; then
22525        ac_top_srcdir=.
22526     else
22527        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22528     fi ;;
22529   [\\/]* | ?:[\\/]* )  # Absolute path.
22530     ac_srcdir=$srcdir$ac_dir_suffix;
22531     ac_top_srcdir=$srcdir ;;
22532   *) # Relative path.
22533     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22534     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22535 esac
22536
22537 # Do not use `cd foo && pwd` to compute absolute paths, because
22538 # the directories may not exist.
22539 case `pwd` in
22540 .) ac_abs_builddir="$ac_dir";;
22541 *)
22542   case "$ac_dir" in
22543   .) ac_abs_builddir=`pwd`;;
22544   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22545   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22546   esac;;
22547 esac
22548 case $ac_abs_builddir in
22549 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22550 *)
22551   case ${ac_top_builddir}. in
22552   .) ac_abs_top_builddir=$ac_abs_builddir;;
22553   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22554   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22555   esac;;
22556 esac
22557 case $ac_abs_builddir in
22558 .) ac_abs_srcdir=$ac_srcdir;;
22559 *)
22560   case $ac_srcdir in
22561   .) ac_abs_srcdir=$ac_abs_builddir;;
22562   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22563   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22564   esac;;
22565 esac
22566 case $ac_abs_builddir in
22567 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22568 *)
22569   case $ac_top_srcdir in
22570   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22571   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22572   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22573   esac;;
22574 esac
22575
22576
22577   case $INSTALL in
22578   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22579   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22580   esac
22581
22582   if test x"$ac_file" != x-; then
22583     { echo "$as_me:$LINENO: creating $ac_file" >&5
22584 echo "$as_me: creating $ac_file" >&6;}
22585     rm -f "$ac_file"
22586   fi
22587   # Let's still pretend it is `configure' which instantiates (i.e., don't
22588   # use $as_me), people would be surprised to read:
22589   #    /* config.h.  Generated by config.status.  */
22590   if test x"$ac_file" = x-; then
22591     configure_input=
22592   else
22593     configure_input="$ac_file.  "
22594   fi
22595   configure_input=$configure_input"Generated from `echo $ac_file_in |
22596                                      sed 's,.*/,,'` by configure."
22597
22598   # First look for the input files in the build tree, otherwise in the
22599   # src tree.
22600   ac_file_inputs=`IFS=:
22601     for f in $ac_file_in; do
22602       case $f in
22603       -) echo $tmp/stdin ;;
22604       [\\/$]*)
22605          # Absolute (can't be DOS-style, as IFS=:)
22606          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22607 echo "$as_me: error: cannot find input file: $f" >&2;}
22608    { (exit 1); exit 1; }; }
22609          echo "$f";;
22610       *) # Relative
22611          if test -f "$f"; then
22612            # Build tree
22613            echo "$f"
22614          elif test -f "$srcdir/$f"; then
22615            # Source tree
22616            echo "$srcdir/$f"
22617          else
22618            # /dev/null tree
22619            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22620 echo "$as_me: error: cannot find input file: $f" >&2;}
22621    { (exit 1); exit 1; }; }
22622          fi;;
22623       esac
22624     done` || { (exit 1); exit 1; }
22625 _ACEOF
22626 cat >>$CONFIG_STATUS <<_ACEOF
22627   sed "$ac_vpsub
22628 $extrasub
22629 _ACEOF
22630 cat >>$CONFIG_STATUS <<\_ACEOF
22631 :t
22632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22633 s,@configure_input@,$configure_input,;t t
22634 s,@srcdir@,$ac_srcdir,;t t
22635 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22636 s,@top_srcdir@,$ac_top_srcdir,;t t
22637 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22638 s,@builddir@,$ac_builddir,;t t
22639 s,@abs_builddir@,$ac_abs_builddir,;t t
22640 s,@top_builddir@,$ac_top_builddir,;t t
22641 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22642 s,@INSTALL@,$ac_INSTALL,;t t
22643 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22644   rm -f $tmp/stdin
22645   if test x"$ac_file" != x-; then
22646     mv $tmp/out $ac_file
22647   else
22648     cat $tmp/out
22649     rm -f $tmp/out
22650   fi
22651
22652 done
22653 _ACEOF
22654 cat >>$CONFIG_STATUS <<\_ACEOF
22655
22656 #
22657 # CONFIG_HEADER section.
22658 #
22659
22660 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22661 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22662 #
22663 # ac_d sets the value in "#define NAME VALUE" lines.
22664 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22665 ac_dB='[         ].*$,\1#\2'
22666 ac_dC=' '
22667 ac_dD=',;t'
22668 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22669 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22670 ac_uB='$,\1#\2define\3'
22671 ac_uC=' '
22672 ac_uD=',;t'
22673
22674 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22675   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22676   case $ac_file in
22677   - | *:- | *:-:* ) # input from stdin
22678         cat >$tmp/stdin
22679         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22680         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22681   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22682         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22683   * )   ac_file_in=$ac_file.in ;;
22684   esac
22685
22686   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22687 echo "$as_me: creating $ac_file" >&6;}
22688
22689   # First look for the input files in the build tree, otherwise in the
22690   # src tree.
22691   ac_file_inputs=`IFS=:
22692     for f in $ac_file_in; do
22693       case $f in
22694       -) echo $tmp/stdin ;;
22695       [\\/$]*)
22696          # Absolute (can't be DOS-style, as IFS=:)
22697          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22698 echo "$as_me: error: cannot find input file: $f" >&2;}
22699    { (exit 1); exit 1; }; }
22700          # Do quote $f, to prevent DOS paths from being IFS'd.
22701          echo "$f";;
22702       *) # Relative
22703          if test -f "$f"; then
22704            # Build tree
22705            echo "$f"
22706          elif test -f "$srcdir/$f"; then
22707            # Source tree
22708            echo "$srcdir/$f"
22709          else
22710            # /dev/null tree
22711            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22712 echo "$as_me: error: cannot find input file: $f" >&2;}
22713    { (exit 1); exit 1; }; }
22714          fi;;
22715       esac
22716     done` || { (exit 1); exit 1; }
22717   # Remove the trailing spaces.
22718   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22719
22720 _ACEOF
22721
22722 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22723 # `conftest.undefs', that substitutes the proper values into
22724 # config.h.in to produce config.h.  The first handles `#define'
22725 # templates, and the second `#undef' templates.
22726 # And first: Protect against being on the right side of a sed subst in
22727 # config.status.  Protect against being in an unquoted here document
22728 # in config.status.
22729 rm -f conftest.defines conftest.undefs
22730 # Using a here document instead of a string reduces the quoting nightmare.
22731 # Putting comments in sed scripts is not portable.
22732 #
22733 # `end' is used to avoid that the second main sed command (meant for
22734 # 0-ary CPP macros) applies to n-ary macro definitions.
22735 # See the Autoconf documentation for `clear'.
22736 cat >confdef2sed.sed <<\_ACEOF
22737 s/[\\&,]/\\&/g
22738 s,[\\$`],\\&,g
22739 t clear
22740 : clear
22741 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22742 t end
22743 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22744 : end
22745 _ACEOF
22746 # If some macros were called several times there might be several times
22747 # the same #defines, which is useless.  Nevertheless, we may not want to
22748 # sort them, since we want the *last* AC-DEFINE to be honored.
22749 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22750 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22751 rm -f confdef2sed.sed
22752
22753 # This sed command replaces #undef with comments.  This is necessary, for
22754 # example, in the case of _POSIX_SOURCE, which is predefined and required
22755 # on some systems where configure will not decide to define it.
22756 cat >>conftest.undefs <<\_ACEOF
22757 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22758 _ACEOF
22759
22760 # Break up conftest.defines because some shells have a limit on the size
22761 # of here documents, and old seds have small limits too (100 cmds).
22762 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22763 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22764 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22765 echo '  :' >>$CONFIG_STATUS
22766 rm -f conftest.tail
22767 while grep . conftest.defines >/dev/null
22768 do
22769   # Write a limited-size here document to $tmp/defines.sed.
22770   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22771   # Speed up: don't consider the non `#define' lines.
22772   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22773   # Work around the forget-to-reset-the-flag bug.
22774   echo 't clr' >>$CONFIG_STATUS
22775   echo ': clr' >>$CONFIG_STATUS
22776   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22777   echo 'CEOF
22778   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22779   rm -f $tmp/in
22780   mv $tmp/out $tmp/in
22781 ' >>$CONFIG_STATUS
22782   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22783   rm -f conftest.defines
22784   mv conftest.tail conftest.defines
22785 done
22786 rm -f conftest.defines
22787 echo '  fi # grep' >>$CONFIG_STATUS
22788 echo >>$CONFIG_STATUS
22789
22790 # Break up conftest.undefs because some shells have a limit on the size
22791 # of here documents, and old seds have small limits too (100 cmds).
22792 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22793 rm -f conftest.tail
22794 while grep . conftest.undefs >/dev/null
22795 do
22796   # Write a limited-size here document to $tmp/undefs.sed.
22797   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22798   # Speed up: don't consider the non `#undef'
22799   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22800   # Work around the forget-to-reset-the-flag bug.
22801   echo 't clr' >>$CONFIG_STATUS
22802   echo ': clr' >>$CONFIG_STATUS
22803   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22804   echo 'CEOF
22805   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22806   rm -f $tmp/in
22807   mv $tmp/out $tmp/in
22808 ' >>$CONFIG_STATUS
22809   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22810   rm -f conftest.undefs
22811   mv conftest.tail conftest.undefs
22812 done
22813 rm -f conftest.undefs
22814
22815 cat >>$CONFIG_STATUS <<\_ACEOF
22816   # Let's still pretend it is `configure' which instantiates (i.e., don't
22817   # use $as_me), people would be surprised to read:
22818   #    /* config.h.  Generated by config.status.  */
22819   if test x"$ac_file" = x-; then
22820     echo "/* Generated by configure.  */" >$tmp/config.h
22821   else
22822     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22823   fi
22824   cat $tmp/in >>$tmp/config.h
22825   rm -f $tmp/in
22826   if test x"$ac_file" != x-; then
22827     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22828       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22829 echo "$as_me: $ac_file is unchanged" >&6;}
22830     else
22831       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22833          X"$ac_file" : 'X\(//\)[^/]' \| \
22834          X"$ac_file" : 'X\(//\)$' \| \
22835          X"$ac_file" : 'X\(/\)' \| \
22836          .     : '\(.\)' 2>/dev/null ||
22837 echo X"$ac_file" |
22838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22840           /^X\(\/\/\)$/{ s//\1/; q; }
22841           /^X\(\/\).*/{ s//\1/; q; }
22842           s/.*/./; q'`
22843       { if $as_mkdir_p; then
22844     mkdir -p "$ac_dir"
22845   else
22846     as_dir="$ac_dir"
22847     as_dirs=
22848     while test ! -d "$as_dir"; do
22849       as_dirs="$as_dir $as_dirs"
22850       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22852          X"$as_dir" : 'X\(//\)[^/]' \| \
22853          X"$as_dir" : 'X\(//\)$' \| \
22854          X"$as_dir" : 'X\(/\)' \| \
22855          .     : '\(.\)' 2>/dev/null ||
22856 echo X"$as_dir" |
22857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22858           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22859           /^X\(\/\/\)$/{ s//\1/; q; }
22860           /^X\(\/\).*/{ s//\1/; q; }
22861           s/.*/./; q'`
22862     done
22863     test ! -n "$as_dirs" || mkdir $as_dirs
22864   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22865 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22866    { (exit 1); exit 1; }; }; }
22867
22868       rm -f $ac_file
22869       mv $tmp/config.h $ac_file
22870     fi
22871   else
22872     cat $tmp/config.h
22873     rm -f $tmp/config.h
22874   fi
22875 done
22876 _ACEOF
22877 cat >>$CONFIG_STATUS <<\_ACEOF
22878
22879 #
22880 # CONFIG_COMMANDS section.
22881 #
22882 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22883   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22884   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22885   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22886 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22887          X"$ac_dest" : 'X\(//\)[^/]' \| \
22888          X"$ac_dest" : 'X\(//\)$' \| \
22889          X"$ac_dest" : 'X\(/\)' \| \
22890          .     : '\(.\)' 2>/dev/null ||
22891 echo X"$ac_dest" |
22892     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22893           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22894           /^X\(\/\/\)$/{ s//\1/; q; }
22895           /^X\(\/\).*/{ s//\1/; q; }
22896           s/.*/./; q'`
22897   { if $as_mkdir_p; then
22898     mkdir -p "$ac_dir"
22899   else
22900     as_dir="$ac_dir"
22901     as_dirs=
22902     while test ! -d "$as_dir"; do
22903       as_dirs="$as_dir $as_dirs"
22904       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22906          X"$as_dir" : 'X\(//\)[^/]' \| \
22907          X"$as_dir" : 'X\(//\)$' \| \
22908          X"$as_dir" : 'X\(/\)' \| \
22909          .     : '\(.\)' 2>/dev/null ||
22910 echo X"$as_dir" |
22911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22913           /^X\(\/\/\)$/{ s//\1/; q; }
22914           /^X\(\/\).*/{ s//\1/; q; }
22915           s/.*/./; q'`
22916     done
22917     test ! -n "$as_dirs" || mkdir $as_dirs
22918   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22919 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22920    { (exit 1); exit 1; }; }; }
22921
22922   ac_builddir=.
22923
22924 if test "$ac_dir" != .; then
22925   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22926   # A "../" for each directory in $ac_dir_suffix.
22927   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22928 else
22929   ac_dir_suffix= ac_top_builddir=
22930 fi
22931
22932 case $srcdir in
22933   .)  # No --srcdir option.  We are building in place.
22934     ac_srcdir=.
22935     if test -z "$ac_top_builddir"; then
22936        ac_top_srcdir=.
22937     else
22938        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22939     fi ;;
22940   [\\/]* | ?:[\\/]* )  # Absolute path.
22941     ac_srcdir=$srcdir$ac_dir_suffix;
22942     ac_top_srcdir=$srcdir ;;
22943   *) # Relative path.
22944     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22945     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22946 esac
22947
22948 # Do not use `cd foo && pwd` to compute absolute paths, because
22949 # the directories may not exist.
22950 case `pwd` in
22951 .) ac_abs_builddir="$ac_dir";;
22952 *)
22953   case "$ac_dir" in
22954   .) ac_abs_builddir=`pwd`;;
22955   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22956   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22957   esac;;
22958 esac
22959 case $ac_abs_builddir in
22960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22961 *)
22962   case ${ac_top_builddir}. in
22963   .) ac_abs_top_builddir=$ac_abs_builddir;;
22964   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22965   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22966   esac;;
22967 esac
22968 case $ac_abs_builddir in
22969 .) ac_abs_srcdir=$ac_srcdir;;
22970 *)
22971   case $ac_srcdir in
22972   .) ac_abs_srcdir=$ac_abs_builddir;;
22973   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22974   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22975   esac;;
22976 esac
22977 case $ac_abs_builddir in
22978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22979 *)
22980   case $ac_top_srcdir in
22981   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22982   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22983   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22984   esac;;
22985 esac
22986
22987
22988   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22989 echo "$as_me: executing $ac_dest commands" >&6;}
22990   case $ac_dest in
22991     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22992  ;;
22993   esac
22994 done
22995 _ACEOF
22996
22997 cat >>$CONFIG_STATUS <<\_ACEOF
22998
22999 { (exit 0); exit 0; }
23000 _ACEOF
23001 chmod +x $CONFIG_STATUS
23002 ac_clean_files=$ac_clean_files_save
23003
23004
23005 # configure is writing to config.log, and then calls config.status.
23006 # config.status does its own redirection, appending to config.log.
23007 # Unfortunately, on DOS this fails, as config.log is still kept open
23008 # by configure, so config.status won't be able to write to it; its
23009 # output is simply discarded.  So we exec the FD to /dev/null,
23010 # effectively closing config.log, so it can be properly (re)opened and
23011 # appended to by config.status.  When coming back to configure, we
23012 # need to make the FD available again.
23013 if test "$no_create" != yes; then
23014   ac_cs_success=:
23015   ac_config_status_args=
23016   test "$silent" = yes &&
23017     ac_config_status_args="$ac_config_status_args --quiet"
23018   exec 5>/dev/null
23019   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23020   exec 5>>config.log
23021   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23022   # would make configure fail if this is the last instruction.
23023   $ac_cs_success || { (exit 1); exit 1; }
23024 fi
23025
23026
23027 cd scripts
23028 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23029 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23030 cd ..
23031
23032 c=src/cats
23033
23034 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23035 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23036
23037 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23038 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23039
23040 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23041 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23042
23043 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23044 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23045
23046 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23047 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23048
23049 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23050 chmod 755 $c/sqlite
23051 chmod 755 $c/mysql
23052
23053 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23054    largefile_support="yes"
23055 fi
23056
23057 #
23058 # A whole lot of hand springs to get the compiler version.
23059 #  This is because gcc changed the output in version 3.0
23060 #
23061 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23062 if test "x${CCVERSION}" = "x" ; then
23063   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23064 fi
23065 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23066 if test x"${CXXVERSION}" = x ; then
23067   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23068 fi
23069
23070 if test "x${subsysdir}" = "x${sbindir}" ; then
23071    echo " "
23072    echo " "
23073    echo "You have set --sbindir and --with-subsys-dir"
23074    echo "  both equal to: ${subsysdir} "
23075    echo "  This is not permitted. Please reconfigure."
23076    echo " "
23077    echo "Aborting configuration ..."
23078    echo " "
23079    echo " "
23080    exit 1
23081 fi
23082
23083 if test "x${db_name}" = "xInternal" ; then
23084    echo " "
23085    echo " "
23086    echo "You have not specified either --enable-client-only or one of the"
23087    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23088    echo "  This is not permitted. Please reconfigure."
23089    echo " "
23090    echo "Aborting the configuration ..."
23091    echo " "
23092    echo " "
23093    exit 1
23094 fi
23095
23096 echo "
23097 Configuration on `date`:
23098
23099   Host:                       $host -- ${DISTNAME} ${DISTVER}
23100   Bacula version:             ${VERSION} (${DATE})
23101   Source code location:       ${srcdir}
23102   Install binaries:           ${sbindir}
23103   Install config files:       ${sysconfdir}
23104   Scripts directory:          ${scriptdir}
23105   Working directory:          ${working_dir}
23106   PID directory:              ${piddir}
23107   Subsys directory:           ${subsysdir}
23108   C Compiler:                 ${CC} ${CCVERSION}
23109   C++ Compiler:               ${CXX} ${CXXVERSION}
23110   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23111   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23112   Libraries:                  ${LIBS}
23113   Statically Linked Tools:    ${support_static_tools}
23114   Statically Linked FD:       ${support_static_fd}
23115   Statically Linked SD:       ${support_static_sd}
23116   Statically Linked DIR:      ${support_static_dir}
23117   Statically Linked CONS:     ${support_static_cons}
23118   Database type:              ${db_name}
23119   Database lib:               ${DB_LIBS}
23120
23121   Job Output Email:           ${job_email}
23122   Traceback Email:            ${dump_email}
23123   SMTP Host Address:          ${smtp_host}
23124
23125   Director Port:              ${dir_port}
23126   File daemon Port:           ${fd_port}
23127   Storage daemon Port:        ${sd_port}
23128
23129   Director User:              ${dir_user}
23130   Director Group:             ${dir_group}
23131   Storage Daemon User:        ${sd_user}
23132   Storage DaemonGroup:        ${sd_group}
23133   File Daemon User:           ${fd_user}
23134   File Daemon Group:          ${fd_group}
23135
23136   SQL binaries Directory      ${SQL_BINDIR}
23137
23138   Large file support:         $largefile_support
23139   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23140   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23141   TCP Wrappers support:       ${TCPW_MSG}
23142   ZLIB support:               ${have_zlib}
23143   enable-smartalloc:          ${support_smartalloc}
23144   enable-gnome:               ${support_gnome} ${gnome_version}
23145   enable-wx-console:          ${support_wx_console}
23146   enable-tray-monitor:        ${support_tray_monitor}
23147   client-only:                ${build_client_only}
23148   ACL support:                ${have_acl}
23149   Python support:             ${support_python} ${PYTHON_LIBS}
23150
23151   " > config.out
23152
23153 cat config.out
23154
23155 # old stuff
23156 # cweb support:               ${got_cweb} ${CWEB_SRC}
23157 # gmp support:                ${got_gmp} ${GMP_SRC}