]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
1.32d status dir fix
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS 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 TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password 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 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-readline      disable readline support enabled
867
868   --disable-largefile     omit support for large files
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-gnome-includes   Specify location of GNOME headers
874   --with-gnome-libs       Specify location of GNOME libs
875   --with-gnome            Specify prefix for GNOME files
876  --with-readline=DIR             specify readline library directory
877   --with-tcp-wrappers=DIR        enable tcpwrappers support
878   --with-working-dir=PATH        specify path of Bacula working directory
879   --with-scriptdir=PATH    specify path of Bacula scripts directory
880   --with-dump-email=EMAIL        dump email address
881   --with-job-email=EMAIL         job output email address
882   --with-smtp-host=HOST          SMTP mail host address
883   --with-pid-dir=PATH            specify location of Bacula pid files
884   --with-subsys-dir=PATH         specify location of Bacula subsys file
885   --with-baseport=PORT           specify base port address for daemons
886   --with-dir-password=PASSWORD   specify Director's password
887   --with-fd-password=PASSWORD    specify Client's password
888   --with-sd-password=PASSWORD    specify Storage daemon's password
889
890 Which DBMS do you want to use (please select only one):
891   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
892                           install directory, default is to search through
893                           a number of common places for the MySQL files.
894
895 Which DBMS do you want to use (please select only one):
896   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
897                           install directory, default is to search through
898                           a number of common places for the MySQL files.
899
900 Which DBMS do you want to use (please select only one):
901   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
902                           install directory, default is to search through
903                           a number of common places for the SQLite files.
904   --with-x                use the X Window System
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CXX         C++ compiler command
914   CXXFLAGS    C++ compiler flags
915   CPP         C preprocessor
916
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
919
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924   # If there are subdirs, report their specific --help.
925   ac_popdir=`pwd`
926   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927     test -d $ac_dir || continue
928     ac_builddir=.
929
930 if test "$ac_dir" != .; then
931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932   # A "../" for each directory in $ac_dir_suffix.
933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935   ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939   .)  # No --srcdir option.  We are building in place.
940     ac_srcdir=.
941     if test -z "$ac_top_builddir"; then
942        ac_top_srcdir=.
943     else
944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945     fi ;;
946   [\\/]* | ?:[\\/]* )  # Absolute path.
947     ac_srcdir=$srcdir$ac_dir_suffix;
948     ac_top_srcdir=$srcdir ;;
949   *) # Relative path.
950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
954 # absolute.
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd $ac_popdir
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982
983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
984 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988   exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.57.  Invocation command line was
997
998   $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029   IFS=$as_save_IFS
1030   test -z "$as_dir" && as_dir=.
1031   echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058   for ac_arg
1059   do
1060     case $ac_arg in
1061     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063     | -silent | --silent | --silen | --sile | --sil)
1064       continue ;;
1065     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067     esac
1068     case $ac_pass in
1069     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070     2)
1071       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072       if test $ac_must_keep_next = true; then
1073         ac_must_keep_next=false # Got value, back to normal.
1074       else
1075         case $ac_arg in
1076           *=* | --config-cache | -C | -disable-* | --disable-* \
1077           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079           | -with-* | --with-* | -without-* | --without-* | --x)
1080             case "$ac_configure_args0 " in
1081               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082             esac
1083             ;;
1084           -* ) ac_must_keep_next=true ;;
1085         esac
1086       fi
1087       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088       # Get rid of the leading space.
1089       ac_sep=" "
1090       ;;
1091     esac
1092   done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log.  We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103   # Save into config.log some information that might help in debugging.
1104   {
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112     echo
1113     # The following way of writing the cache mishandles newlines in values,
1114 {
1115   (set) 2>&1 |
1116     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117     *ac_space=\ *)
1118       sed -n \
1119         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121       ;;
1122     *)
1123       sed -n \
1124         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125       ;;
1126     esac;
1127 }
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135     echo
1136     for ac_var in $ac_subst_vars
1137     do
1138       eval ac_val=$`echo $ac_var`
1139       echo "$ac_var='"'"'$ac_val'"'"'"
1140     done | sort
1141     echo
1142
1143     if test -n "$ac_subst_files"; then
1144       cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149       echo
1150       for ac_var in $ac_subst_files
1151       do
1152         eval ac_val=$`echo $ac_var`
1153         echo "$ac_var='"'"'$ac_val'"'"'"
1154       done | sort
1155       echo
1156     fi
1157
1158     if test -s confdefs.h; then
1159       cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164       echo
1165       sed "/^$/d" confdefs.h | sort
1166       echo
1167     fi
1168     test "$ac_signal" != 0 &&
1169       echo "$as_me: caught signal $ac_signal"
1170     echo "$as_me: exit $exit_status"
1171   } >&5
1172   rm -f core core.* *.core &&
1173   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174     exit $exit_status
1175      ' 0
1176 for ac_signal in 1 2 13 15; do
1177   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216   if test "x$prefix" != xNONE; then
1217     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218   else
1219     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220   fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223   if test -r "$ac_site_file"; then
1224     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226     sed 's/^/| /' "$ac_site_file" >&5
1227     . "$ac_site_file"
1228   fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232   # Some versions of bash will fail to source /dev/null (special
1233   # files actually), so we avoid doing that.
1234   if test -f "$cache_file"; then
1235     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237     case $cache_file in
1238       [\\/]* | ?:[\\/]* ) . $cache_file;;
1239       *)                      . ./$cache_file;;
1240     esac
1241   fi
1242 else
1243   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245   >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254   eval ac_new_set=\$ac_env_${ac_var}_set
1255   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256   eval ac_new_val="\$ac_env_${ac_var}_value"
1257   case $ac_old_set,$ac_new_set in
1258     set,)
1259       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261       ac_cache_corrupted=: ;;
1262     ,set)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,);;
1267     *)
1268       if test "x$ac_old_val" != "x$ac_new_val"; then
1269         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272 echo "$as_me:   former value:  $ac_old_val" >&2;}
1273         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274 echo "$as_me:   current value: $ac_new_val" >&2;}
1275         ac_cache_corrupted=:
1276       fi;;
1277   esac
1278   # Pass precious variables to config.status.
1279   if test "$ac_new_set" = set; then
1280     case $ac_new_val in
1281     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283     *) ac_arg=$ac_var=$ac_new_val ;;
1284     esac
1285     case " $ac_configure_args " in
1286       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288     esac
1289   fi
1290 done
1291 if $ac_cache_corrupted; then
1292   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296    { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 BUILD_DIR=`pwd`
1324 cd ..
1325 TOP_DIR=`pwd`
1326 cd ${BUILD_DIR}
1327
1328 ac_aux_dir=
1329 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1330   if test -f $ac_dir/install-sh; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/install-sh -c"
1333     break
1334   elif test -f $ac_dir/install.sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install.sh -c"
1337     break
1338   elif test -f $ac_dir/shtool; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/shtool install -c"
1341     break
1342   fi
1343 done
1344 if test -z "$ac_aux_dir"; then
1345   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352
1353           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1354
1355
1356
1357
1358
1359 for ac_prog in true
1360 do
1361   # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   case $TRUEPRG in
1369   [\\/]* | ?:[\\/]*)
1370   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1371   ;;
1372   *)
1373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
1376   IFS=$as_save_IFS
1377   test -z "$as_dir" && as_dir=.
1378   for ac_exec_ext in '' $ac_executable_extensions; do
1379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382     break 2
1383   fi
1384 done
1385 done
1386
1387   ;;
1388 esac
1389 fi
1390 TRUEPRG=$ac_cv_path_TRUEPRG
1391
1392 if test -n "$TRUEPRG"; then
1393   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1394 echo "${ECHO_T}$TRUEPRG" >&6
1395 else
1396   echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1398 fi
1399
1400   test -n "$TRUEPRG" && break
1401 done
1402 test -n "$TRUEPRG" || TRUEPRG=":"
1403
1404 for ac_prog in false
1405 do
1406   # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   case $FALSEPRG in
1414   [\\/]* | ?:[\\/]*)
1415   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1416   ;;
1417   *)
1418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1420 do
1421   IFS=$as_save_IFS
1422   test -z "$as_dir" && as_dir=.
1423   for ac_exec_ext in '' $ac_executable_extensions; do
1424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427     break 2
1428   fi
1429 done
1430 done
1431
1432   ;;
1433 esac
1434 fi
1435 FALSEPRG=$ac_cv_path_FALSEPRG
1436
1437 if test -n "$FALSEPRG"; then
1438   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1439 echo "${ECHO_T}$FALSEPRG" >&6
1440 else
1441   echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1443 fi
1444
1445   test -n "$FALSEPRG" && break
1446 done
1447 test -n "$FALSEPRG" || FALSEPRG=":"
1448
1449
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454    { (exit 1); exit 1; }; }
1455
1456 echo "$as_me:$LINENO: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463   ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467    { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1476 build=$ac_cv_build
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489   ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1498 host=$ac_cv_host
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504
1505 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1508 echo "configuring for bacula $VERSION ($DATE)"
1509
1510
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 if test -n "$ac_tool_prefix"; then
1518   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   if test -n "$CC"; then
1526   ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531   IFS=$as_save_IFS
1532   test -z "$as_dir" && as_dir=.
1533   for ac_exec_ext in '' $ac_executable_extensions; do
1534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537     break 2
1538   fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546   echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549   echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 fi
1554 if test -z "$ac_cv_prog_CC"; then
1555   ac_ct_CC=$CC
1556   # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$ac_ct_CC"; then
1564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_ac_ct_CC="gcc"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591   CC=$ac_ct_CC
1592 else
1593   CC="$ac_cv_prog_CC"
1594 fi
1595
1596 if test -z "$CC"; then
1597   if test -n "$ac_tool_prefix"; then
1598   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     ac_cv_prog_CC="${ac_tool_prefix}cc"
1616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 fi
1623 fi
1624 CC=$ac_cv_prog_CC
1625 if test -n "$CC"; then
1626   echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1628 else
1629   echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633 fi
1634 if test -z "$ac_cv_prog_CC"; then
1635   ac_ct_CC=$CC
1636   # Extract the first word of "cc", so it can be a program name with args.
1637 set dummy cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$ac_ct_CC"; then
1644   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_ac_ct_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671   CC=$ac_ct_CC
1672 else
1673   CC="$ac_cv_prog_CC"
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678   # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$CC"; then
1686   ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688   ac_prog_rejected=no
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1697        ac_prog_rejected=yes
1698        continue
1699      fi
1700     ac_cv_prog_CC="cc"
1701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702     break 2
1703   fi
1704 done
1705 done
1706
1707 if test $ac_prog_rejected = yes; then
1708   # We found a bogon in the path, so make sure we never use it.
1709   set dummy $ac_cv_prog_CC
1710   shift
1711   if test $# != 0; then
1712     # We chose a different compiler from the bogus one.
1713     # However, it has the same basename, so the bogon will be chosen
1714     # first if we set CC to just the basename; use the full file name.
1715     shift
1716     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1717   fi
1718 fi
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$CC"; then
1732   if test -n "$ac_tool_prefix"; then
1733   for ac_prog in cl
1734   do
1735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   if test -n "$CC"; then
1743   ac_cv_prog_CC="$CC" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   for ac_exec_ext in '' $ac_executable_extensions; do
1751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754     break 2
1755   fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 CC=$ac_cv_prog_CC
1762 if test -n "$CC"; then
1763   echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1765 else
1766   echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770     test -n "$CC" && break
1771   done
1772 fi
1773 if test -z "$CC"; then
1774   ac_ct_CC=$CC
1775   for ac_prog in cl
1776 do
1777   # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   if test -n "$ac_ct_CC"; then
1785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790   IFS=$as_save_IFS
1791   test -z "$as_dir" && as_dir=.
1792   for ac_exec_ext in '' $ac_executable_extensions; do
1793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794     ac_cv_prog_ac_ct_CC="$ac_prog"
1795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796     break 2
1797   fi
1798 done
1799 done
1800
1801 fi
1802 fi
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1807 else
1808   echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 fi
1811
1812   test -n "$ac_ct_CC" && break
1813 done
1814
1815   CC=$ac_ct_CC
1816 fi
1817
1818 fi
1819
1820
1821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: no acceptable C compiler found in \$PATH
1824 See \`config.log' for more details." >&2;}
1825    { (exit 1); exit 1; }; }
1826
1827 # Provide some information about the compiler.
1828 echo "$as_me:$LINENO:" \
1829      "checking for C compiler version" >&5
1830 ac_compiler=`set X $ac_compile; echo $2`
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832   (eval $ac_compiler --version </dev/null >&5) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }
1836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837   (eval $ac_compiler -v </dev/null >&5) 2>&5
1838   ac_status=$?
1839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840   (exit $ac_status); }
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842   (eval $ac_compiler -V </dev/null >&5) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }
1846
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1849 /* confdefs.h.  */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h.  */
1854
1855 int
1856 main ()
1857 {
1858
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1867 # of exeext.
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872   (eval $ac_link_default) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   # Find the output, starting from the most likely.  This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1878 # resort.
1879
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1882 ac_cv_exeext=
1883 # b.out is created by i960 compilers.
1884 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1885 do
1886   test -f "$ac_file" || continue
1887   case $ac_file in
1888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1889         ;;
1890     conftest.$ac_ext )
1891         # This is the source file.
1892         ;;
1893     [ab].out )
1894         # We found the default executable, but exeext='' is most
1895         # certainly right.
1896         break;;
1897     *.* )
1898         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899         # FIXME: I believe we export ac_cv_exeext for Libtool,
1900         # but it would be cool to find out if it's true.  Does anybody
1901         # maintain Libtool? --akim.
1902         export ac_cv_exeext
1903         break;;
1904     * )
1905         break;;
1906   esac
1907 done
1908 else
1909   echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&2;}
1916    { (exit 77); exit 77; }; }
1917 fi
1918
1919 ac_exeext=$ac_cv_exeext
1920 echo "$as_me:$LINENO: result: $ac_file" >&5
1921 echo "${ECHO_T}$ac_file" >&6
1922
1923 # Check the compiler produces executables we can run.  If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1928 # If not cross compiling, check that we can run a simple program.
1929 if test "$cross_compiling" != yes; then
1930   if { ac_try='./$ac_file'
1931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932   (eval $ac_try) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; }; then
1936     cross_compiling=no
1937   else
1938     if test "$cross_compiling" = maybe; then
1939         cross_compiling=yes
1940     else
1941         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot run C compiled programs.
1945 If you meant to cross compile, use \`--host'.
1946 See \`config.log' for more details." >&2;}
1947    { (exit 1); exit 1; }; }
1948     fi
1949   fi
1950 fi
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1953
1954 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1955 ac_clean_files=$ac_clean_files_save
1956 # Check the compiler produces executables we can run.  If not, either
1957 # the compiler is broken, or we cross compile.
1958 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1959 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1960 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1961 echo "${ECHO_T}$cross_compiling" >&6
1962
1963 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1964 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1966   (eval $ac_link) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; then
1970   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1971 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1972 # work properly (i.e., refer to `conftest.exe'), while it won't with
1973 # `rm'.
1974 for ac_file in conftest.exe conftest conftest.*; do
1975   test -f "$ac_file" || continue
1976   case $ac_file in
1977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1978     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979           export ac_cv_exeext
1980           break;;
1981     * ) break;;
1982   esac
1983 done
1984 else
1985   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 rm -f conftest$ac_cv_exeext
1993 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1994 echo "${ECHO_T}$ac_cv_exeext" >&6
1995
1996 rm -f conftest.$ac_ext
1997 EXEEXT=$ac_cv_exeext
1998 ac_exeext=$EXEEXT
1999 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2000 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2001 if test "${ac_cv_objext+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 /* confdefs.h.  */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h.  */
2011
2012 int
2013 main ()
2014 {
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022   (eval $ac_compile) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2027   case $ac_file in
2028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2029     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2030        break;;
2031   esac
2032 done
2033 else
2034   echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2040 See \`config.log' for more details." >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2045 fi
2046 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2047 echo "${ECHO_T}$ac_cv_objext" >&6
2048 OBJEXT=$ac_cv_objext
2049 ac_objext=$OBJEXT
2050 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   cat >conftest.$ac_ext <<_ACEOF
2056 #line $LINENO "configure"
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066 #ifndef __GNUC__
2067        choke me
2068 #endif
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076   (eval $ac_compile) 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); } &&
2080          { ac_try='test -s conftest.$ac_objext'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086   ac_compiler_gnu=yes
2087 else
2088   echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 ac_compiler_gnu=no
2092 fi
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2095
2096 fi
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2102 CFLAGS="-g"
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126   (eval $ac_compile) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); } &&
2130          { ac_try='test -s conftest.$ac_objext'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; }; then
2136   ac_cv_prog_cc_g=yes
2137 else
2138   echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 ac_cv_prog_cc_g=no
2142 fi
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2147 if test "$ac_test_CFLAGS" = set; then
2148   CFLAGS=$ac_save_CFLAGS
2149 elif test $ac_cv_prog_cc_g = yes; then
2150   if test "$GCC" = yes; then
2151     CFLAGS="-g -O2"
2152   else
2153     CFLAGS="-g"
2154   fi
2155 else
2156   if test "$GCC" = yes; then
2157     CFLAGS="-O2"
2158   else
2159     CFLAGS=
2160   fi
2161 fi
2162 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2163 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2164 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   ac_cv_prog_cc_stdc=no
2168 ac_save_CC=$CC
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176 #include <stdarg.h>
2177 #include <stdio.h>
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2181 struct buf { int x; };
2182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (p, i)
2184      char **p;
2185      int i;
2186 {
2187   return p[i];
2188 }
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2190 {
2191   char *s;
2192   va_list v;
2193   va_start (v,p);
2194   s = g (p, va_arg (v,int));
2195   va_end (v);
2196   return s;
2197 }
2198 int test (int i, double x);
2199 struct s1 {int (*f) (int a);};
2200 struct s2 {int (*f) (double a);};
2201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2202 int argc;
2203 char **argv;
2204 int
2205 main ()
2206 {
2207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 # Don't try gcc -ansi; that turns off useful extensions and
2213 # breaks some systems' header files.
2214 # AIX                   -qlanglvl=ansi
2215 # Ultrix and OSF/1      -std1
2216 # HP-UX 10.20 and later -Ae
2217 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2218 # SVR4                  -Xc -D__EXTENSIONS__
2219 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2220 do
2221   CC="$ac_save_CC $ac_arg"
2222   rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -s conftest.$ac_objext'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234   ac_cv_prog_cc_stdc=$ac_arg
2235 break
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 fi
2241 rm -f conftest.$ac_objext
2242 done
2243 rm -f conftest.$ac_ext conftest.$ac_objext
2244 CC=$ac_save_CC
2245
2246 fi
2247
2248 case "x$ac_cv_prog_cc_stdc" in
2249   x|xno)
2250     echo "$as_me:$LINENO: result: none needed" >&5
2251 echo "${ECHO_T}none needed" >&6 ;;
2252   *)
2253     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2255     CC="$CC $ac_cv_prog_cc_stdc" ;;
2256 esac
2257
2258 # Some people use a C++ compiler to compile C.  Since we use `exit',
2259 # in C++ we need to declare it.  In case someone uses the same compiler
2260 # for both compiling C and C++ we need to have the C++ compiler decide
2261 # the declaration of exit, since it's the most demanding environment.
2262 cat >conftest.$ac_ext <<_ACEOF
2263 #ifndef __cplusplus
2264   choke me
2265 #endif
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   for ac_declaration in \
2280    ''\
2281    '#include <stdlib.h>' \
2282    'extern "C" void std::exit (int) throw (); using std::exit;' \
2283    'extern "C" void std::exit (int); using std::exit;' \
2284    'extern "C" void exit (int) throw ();' \
2285    'extern "C" void exit (int);' \
2286    'void exit (int);'
2287 do
2288   cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 #include <stdlib.h>
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   :
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 continue
2323 fi
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325   cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 $ac_declaration
2333 int
2334 main ()
2335 {
2336 exit (42);
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   break
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 done
2361 rm -f conftest*
2362 if test -n "$ac_declaration"; then
2363   echo '#ifdef __cplusplus' >>confdefs.h
2364   echo $ac_declaration      >>confdefs.h
2365   echo '#endif'             >>confdefs.h
2366 fi
2367
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379
2380 ac_ext=cc
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2387   do
2388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$CXX"; then
2396   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411
2412 fi
2413 fi
2414 CXX=$ac_cv_prog_CXX
2415 if test -n "$CXX"; then
2416   echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2418 else
2419   echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421 fi
2422
2423     test -n "$CXX" && break
2424   done
2425 fi
2426 if test -z "$CXX"; then
2427   ac_ct_CXX=$CXX
2428   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2429 do
2430   # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$ac_ct_CXX"; then
2438   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_ac_ct_CXX="$ac_prog"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453
2454 fi
2455 fi
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2460 else
2461   echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2463 fi
2464
2465   test -n "$ac_ct_CXX" && break
2466 done
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2468
2469   CXX=$ac_ct_CXX
2470 fi
2471
2472
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475      "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478   (eval $ac_compiler --version </dev/null >&5) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483   (eval $ac_compiler -v </dev/null >&5) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488   (eval $ac_compiler -V </dev/null >&5) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505
2506 int
2507 main ()
2508 {
2509 #ifndef __GNUC__
2510        choke me
2511 #endif
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519   (eval $ac_compile) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529   ac_compiler_gnu=yes
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 ac_compiler_gnu=no
2535 fi
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2538
2539 fi
2540 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2542 GXX=`test $ac_compiler_gnu = yes && echo yes`
2543 ac_test_CXXFLAGS=${CXXFLAGS+set}
2544 ac_save_CXXFLAGS=$CXXFLAGS
2545 CXXFLAGS="-g"
2546 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2548 if test "${ac_cv_prog_cxx_g+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   ac_cv_prog_cxx_g=yes
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 ac_cv_prog_cxx_g=no
2585 fi
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590 if test "$ac_test_CXXFLAGS" = set; then
2591   CXXFLAGS=$ac_save_CXXFLAGS
2592 elif test $ac_cv_prog_cxx_g = yes; then
2593   if test "$GXX" = yes; then
2594     CXXFLAGS="-g -O2"
2595   else
2596     CXXFLAGS="-g"
2597   fi
2598 else
2599   if test "$GXX" = yes; then
2600     CXXFLAGS="-O2"
2601   else
2602     CXXFLAGS=
2603   fi
2604 fi
2605 for ac_declaration in \
2606    ''\
2607    '#include <stdlib.h>' \
2608    'extern "C" void std::exit (int) throw (); using std::exit;' \
2609    'extern "C" void std::exit (int); using std::exit;' \
2610    'extern "C" void exit (int) throw ();' \
2611    'extern "C" void exit (int);' \
2612    'void exit (int);'
2613 do
2614   cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621 #include <stdlib.h>
2622 $ac_declaration
2623 int
2624 main ()
2625 {
2626 exit (42);
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633   (eval $ac_compile) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   :
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 continue
2649 fi
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651   cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 /* confdefs.h.  */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h.  */
2658 $ac_declaration
2659 int
2660 main ()
2661 {
2662 exit (42);
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669   (eval $ac_compile) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   break
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 done
2687 rm -f conftest*
2688 if test -n "$ac_declaration"; then
2689   echo '#ifdef __cplusplus' >>confdefs.h
2690   echo $ac_declaration      >>confdefs.h
2691   echo '#endif'             >>confdefs.h
2692 fi
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700 if test "x$CC" != xcc; then
2701   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2702 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2703 else
2704   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2705 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2706 fi
2707 set dummy $CC; ac_cc=`echo $2 |
2708                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2709 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719
2720 int
2721 main ()
2722 {
2723
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 # Make sure it works both with $CC and with simple cc.
2729 # We do the test twice because some compilers refuse to overwrite an
2730 # existing .o file with -o, though they will create one.
2731 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2732 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } &&
2737    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); };
2742 then
2743   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2744   if test "x$CC" != xcc; then
2745     # Test first that cc exists at all.
2746     if { ac_try='cc -c conftest.$ac_ext >&5'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2753       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); };
2763       then
2764         # cc works too.
2765         :
2766       else
2767         # cc exists but doesn't like -o.
2768         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2769       fi
2770     fi
2771   fi
2772 else
2773   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2774 fi
2775 rm -f conftest*
2776
2777 fi
2778 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2779   echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2781 else
2782   echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784
2785 cat >>confdefs.h <<\_ACEOF
2786 #define NO_MINUS_C_MINUS_O 1
2787 _ACEOF
2788
2789 fi
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2800   CPP=
2801 fi
2802 if test -z "$CPP"; then
2803   if test "${ac_cv_prog_CPP+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806       # Double quotes because CPP needs to be expanded
2807     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2808     do
2809       ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812   # Use a header file that comes with gcc, so configuring glibc
2813   # with a fresh cross-compiler works.
2814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815   # <limits.h> exists even on freestanding compilers.
2816   # On the NeXT, cc -E runs the code through the compiler's parser,
2817   # not just through cpp. "Syntax error" is here to catch this case.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830                      Syntax error
2831 _ACEOF
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } >/dev/null; then
2840   if test -s conftest.err; then
2841     ac_cpp_err=$ac_c_preproc_warn_flag
2842   else
2843     ac_cpp_err=
2844   fi
2845 else
2846   ac_cpp_err=yes
2847 fi
2848 if test -z "$ac_cpp_err"; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854   # Broken: fails on valid input.
2855 continue
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859   # OK, works on sane cases.  Now check whether non-existent headers
2860   # can be detected and how.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868 #include <ac_nonexistent.h>
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } >/dev/null; then
2878   if test -s conftest.err; then
2879     ac_cpp_err=$ac_c_preproc_warn_flag
2880   else
2881     ac_cpp_err=
2882   fi
2883 else
2884   ac_cpp_err=yes
2885 fi
2886 if test -z "$ac_cpp_err"; then
2887   # Broken: success on invalid input.
2888 continue
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893   # Passes both tests.
2894 ac_preproc_ok=:
2895 break
2896 fi
2897 rm -f conftest.err conftest.$ac_ext
2898
2899 done
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2903   break
2904 fi
2905
2906     done
2907     ac_cv_prog_CPP=$CPP
2908
2909 fi
2910   CPP=$ac_cv_prog_CPP
2911 else
2912   ac_cv_prog_CPP=$CPP
2913 fi
2914 echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6
2916 ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #ifdef __STDC__
2933 # include <limits.h>
2934 #else
2935 # include <assert.h>
2936 #endif
2937                      Syntax error
2938 _ACEOF
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941   ac_status=$?
2942   grep -v '^ *+' conftest.er1 >conftest.err
2943   rm -f conftest.er1
2944   cat conftest.err >&5
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } >/dev/null; then
2947   if test -s conftest.err; then
2948     ac_cpp_err=$ac_c_preproc_warn_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 /* confdefs.h.  */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h.  */
2975 #include <ac_nonexistent.h>
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } >/dev/null; then
2985   if test -s conftest.err; then
2986     ac_cpp_err=$ac_c_preproc_warn_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   :
3011 else
3012   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&2;}
3016    { (exit 1); exit 1; }; }
3017 fi
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024
3025
3026 echo "$as_me:$LINENO: checking for egrep" >&5
3027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3028 if test "${ac_cv_prog_egrep+set}" = set; then
3029   echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3032     then ac_cv_prog_egrep='grep -E'
3033     else ac_cv_prog_egrep='egrep'
3034     fi
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3038  EGREP=$ac_cv_prog_egrep
3039
3040
3041 if test $ac_cv_c_compiler_gnu = yes; then
3042     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3043 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3044 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047     ac_pattern="Autoconf.*'x'"
3048   cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #include <sgtty.h>
3056 Autoconf TIOCGETP
3057 _ACEOF
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3060   ac_cv_prog_gcc_traditional=yes
3061 else
3062   ac_cv_prog_gcc_traditional=no
3063 fi
3064 rm -f conftest*
3065
3066
3067   if test $ac_cv_prog_gcc_traditional = no; then
3068     cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075 #include <termio.h>
3076 Autoconf TCGETA
3077 _ACEOF
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3080   ac_cv_prog_gcc_traditional=yes
3081 fi
3082 rm -f conftest*
3083
3084   fi
3085 fi
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3088   if test $ac_cv_prog_gcc_traditional = yes; then
3089     CC="$CC -traditional"
3090   fi
3091 fi
3092
3093 if test x$CC = xgcc
3094 then
3095    cat >>confdefs.h <<\_ACEOF
3096 #define HAVE_GCC 1
3097 _ACEOF
3098
3099 fi
3100
3101 # Find a good install program.  We prefer a C program (faster),
3102 # so one script is as good as another.  But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3107 # AIX /bin/install
3108 # AmigaOS /C/install, which installs bootblocks on floppy discs
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3115 if test -z "$INSTALL"; then
3116 if test "${ac_cv_path_install+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   # Account for people who put trailing slashes in PATH elements.
3125 case $as_dir/ in
3126   ./ | .// | /cC/* | \
3127   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3128   /usr/ucb/* ) ;;
3129   *)
3130     # OSF1 and SCO ODT 3.0 have their own names for install.
3131     # Don't use installbsd from OSF since it installs stuff as root
3132     # by default.
3133     for ac_prog in ginstall scoinst install; do
3134       for ac_exec_ext in '' $ac_executable_extensions; do
3135         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136           if test $ac_prog = install &&
3137             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138             # AIX install.  It has an incompatible calling convention.
3139             :
3140           elif test $ac_prog = install &&
3141             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142             # program-specific install script used by HP pwplus--don't use.
3143             :
3144           else
3145             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3146             break 3
3147           fi
3148         fi
3149       done
3150     done
3151     ;;
3152 esac
3153 done
3154
3155
3156 fi
3157   if test "${ac_cv_path_install+set}" = set; then
3158     INSTALL=$ac_cv_path_install
3159   else
3160     # As a last resort, use the slow shell script.  We don't cache a
3161     # path for INSTALL within a source directory, because that will
3162     # break other packages using the cache if that directory is
3163     # removed, or if the path is relative.
3164     INSTALL=$ac_install_sh
3165   fi
3166 fi
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3169
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3173
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3175
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3177
3178 if test -n "$ac_tool_prefix"; then
3179   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_RANLIB+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$RANLIB"; then
3187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194   for ac_exec_ext in '' $ac_executable_extensions; do
3195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201 done
3202
3203 fi
3204 fi
3205 RANLIB=$ac_cv_prog_RANLIB
3206 if test -n "$RANLIB"; then
3207   echo "$as_me:$LINENO: result: $RANLIB" >&5
3208 echo "${ECHO_T}$RANLIB" >&6
3209 else
3210   echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3212 fi
3213
3214 fi
3215 if test -z "$ac_cv_prog_RANLIB"; then
3216   ac_ct_RANLIB=$RANLIB
3217   # Extract the first word of "ranlib", so it can be a program name with args.
3218 set dummy ranlib; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   if test -n "$ac_ct_RANLIB"; then
3225   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_prog_ac_ct_RANLIB="ranlib"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3242 fi
3243 fi
3244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3245 if test -n "$ac_ct_RANLIB"; then
3246   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253   RANLIB=$ac_ct_RANLIB
3254 else
3255   RANLIB="$ac_cv_prog_RANLIB"
3256 fi
3257
3258 # Extract the first word of "mv", so it can be a program name with args.
3259 set dummy mv; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_MV+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $MV in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3285   ;;
3286 esac
3287 fi
3288 MV=$ac_cv_path_MV
3289
3290 if test -n "$MV"; then
3291   echo "$as_me:$LINENO: result: $MV" >&5
3292 echo "${ECHO_T}$MV" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "rm", so it can be a program name with args.
3299 set dummy rm; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_RM+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $RM in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3325   ;;
3326 esac
3327 fi
3328 RM=$ac_cv_path_RM
3329
3330 if test -n "$RM"; then
3331   echo "$as_me:$LINENO: result: $RM" >&5
3332 echo "${ECHO_T}$RM" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "cp", so it can be a program name with args.
3339 set dummy cp; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_CP+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $CP in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3365   ;;
3366 esac
3367 fi
3368 CP=$ac_cv_path_CP
3369
3370 if test -n "$CP"; then
3371   echo "$as_me:$LINENO: result: $CP" >&5
3372 echo "${ECHO_T}$CP" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "sed", so it can be a program name with args.
3379 set dummy sed; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_SED+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $SED in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3405   ;;
3406 esac
3407 fi
3408 SED=$ac_cv_path_SED
3409
3410 if test -n "$SED"; then
3411   echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "awk", so it can be a program name with args.
3419 set dummy awk; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_AWK+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $AWK in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3445   ;;
3446 esac
3447 fi
3448 AWK=$ac_cv_path_AWK
3449
3450 if test -n "$AWK"; then
3451   echo "$as_me:$LINENO: result: $AWK" >&5
3452 echo "${ECHO_T}$AWK" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "echo", so it can be a program name with args.
3459 set dummy echo; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ECHO+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $ECHO in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3485   ;;
3486 esac
3487 fi
3488 ECHO=$ac_cv_path_ECHO
3489
3490 if test -n "$ECHO"; then
3491   echo "$as_me:$LINENO: result: $ECHO" >&5
3492 echo "${ECHO_T}$ECHO" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "cmp", so it can be a program name with args.
3499 set dummy cmp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CMP+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $CMP in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3525   ;;
3526 esac
3527 fi
3528 CMP=$ac_cv_path_CMP
3529
3530 if test -n "$CMP"; then
3531   echo "$as_me:$LINENO: result: $CMP" >&5
3532 echo "${ECHO_T}$CMP" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "tbl", so it can be a program name with args.
3539 set dummy tbl; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_TBL+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $TBL in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3565   ;;
3566 esac
3567 fi
3568 TBL=$ac_cv_path_TBL
3569
3570 if test -n "$TBL"; then
3571   echo "$as_me:$LINENO: result: $TBL" >&5
3572 echo "${ECHO_T}$TBL" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "ar", so it can be a program name with args.
3579 set dummy ar; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_AR+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $AR in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3605   ;;
3606 esac
3607 fi
3608 AR=$ac_cv_path_AR
3609
3610 if test -n "$AR"; then
3611   echo "$as_me:$LINENO: result: $AR" >&5
3612 echo "${ECHO_T}$AR" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_RANLIB+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $RANLIB in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3645   ;;
3646 esac
3647 fi
3648 RANLIB=$ac_cv_path_RANLIB
3649
3650 if test -n "$RANLIB"; then
3651   echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "openssl", so it can be a program name with args.
3659 set dummy openssl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_OPENSSL+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $OPENSSL in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3685   ;;
3686 esac
3687 fi
3688 OPENSSL=$ac_cv_path_OPENSSL
3689
3690 if test -n "$OPENSSL"; then
3691   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3692 echo "${ECHO_T}$OPENSSL" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "mtx", so it can be a program name with args.
3699 set dummy mtx; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_MTX+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $MTX in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3725   ;;
3726 esac
3727 fi
3728 MTX=$ac_cv_path_MTX
3729
3730 if test -n "$MTX"; then
3731   echo "$as_me:$LINENO: result: $MTX" >&5
3732 echo "${ECHO_T}$MTX" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "pkg-config", so it can be a program name with args.
3739 set dummy pkg-config; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $PKGCONFIG in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3765   ;;
3766 esac
3767 fi
3768 PKGCONFIG=$ac_cv_path_PKGCONFIG
3769
3770 if test -n "$PKGCONFIG"; then
3771   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3772 echo "${ECHO_T}$PKGCONFIG" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778
3779 test -n "$ARFLAG" || ARFLAGS="cr"
3780
3781
3782 MAKE_SHELL=/bin/sh
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792 echo "$as_me:$LINENO: checking for Operating System" >&5
3793 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3794
3795 case $host_os in
3796   *cygwin* ) CYGWIN=yes;;
3797          * ) CYGWIN=no;;
3798 esac
3799
3800 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3801 then
3802
3803
3804 if $TRUEPRG; then
3805   HAVE_SUN_OS_TRUE=
3806   HAVE_SUN_OS_FALSE='#'
3807 else
3808   HAVE_SUN_OS_TRUE='#'
3809   HAVE_SUN_OS_FALSE=
3810 fi
3811         cat >>confdefs.h <<\_ACEOF
3812 #define HAVE_SUN_OS 1
3813 _ACEOF
3814
3815 else
3816
3817
3818 if $FALSEPRG; then
3819   HAVE_SUN_OS_TRUE=
3820   HAVE_SUN_OS_FALSE='#'
3821 else
3822   HAVE_SUN_OS_TRUE='#'
3823   HAVE_SUN_OS_FALSE=
3824 fi
3825 fi
3826
3827 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3828 then
3829
3830
3831 if $TRUEPRG; then
3832   HAVE_OSF1_OS_TRUE=
3833   HAVE_OSF1_OS_FALSE='#'
3834 else
3835   HAVE_OSF1_OS_TRUE='#'
3836   HAVE_OSF1_OS_FALSE=
3837 fi
3838         cat >>confdefs.h <<\_ACEOF
3839 #define HAVE_OSF1_OS 1
3840 _ACEOF
3841
3842 else
3843
3844
3845 if $FALSEPRG; then
3846   HAVE_OSF1_OS_TRUE=
3847   HAVE_OSF1_OS_FALSE='#'
3848 else
3849   HAVE_OSF1_OS_TRUE='#'
3850   HAVE_OSF1_OS_FALSE=
3851 fi
3852 fi
3853
3854 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3855 then
3856
3857
3858 if $TRUEPRG; then
3859   HAVE_AIX_OS_TRUE=
3860   HAVE_AIX_OS_FALSE='#'
3861 else
3862   HAVE_AIX_OS_TRUE='#'
3863   HAVE_AIX_OS_FALSE=
3864 fi
3865         cat >>confdefs.h <<\_ACEOF
3866 #define HAVE_AIX_OS 1
3867 _ACEOF
3868
3869 else
3870
3871
3872 if $FALSEPRG; then
3873   HAVE_AIX_OS_TRUE=
3874   HAVE_AIX_OS_FALSE='#'
3875 else
3876   HAVE_AIX_OS_TRUE='#'
3877   HAVE_AIX_OS_FALSE=
3878 fi
3879 fi
3880
3881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3882 then
3883
3884
3885 if $TRUEPRG; then
3886   HAVE_HPUX_OS_TRUE=
3887   HAVE_HPUX_OS_FALSE='#'
3888 else
3889   HAVE_HPUX_OS_TRUE='#'
3890   HAVE_HPUX_OS_FALSE=
3891 fi
3892         cat >>confdefs.h <<\_ACEOF
3893 #define HAVE_HPUX_OS 1
3894 _ACEOF
3895
3896 else
3897
3898
3899 if $FALSEPRG; then
3900   HAVE_HPUX_OS_TRUE=
3901   HAVE_HPUX_OS_FALSE='#'
3902 else
3903   HAVE_HPUX_OS_TRUE='#'
3904   HAVE_HPUX_OS_FALSE=
3905 fi
3906 fi
3907
3908 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3909 then
3910
3911
3912 if $TRUEPRG; then
3913   HAVE_LINUX_OS_TRUE=
3914   HAVE_LINUX_OS_FALSE='#'
3915 else
3916   HAVE_LINUX_OS_TRUE='#'
3917   HAVE_LINUX_OS_FALSE=
3918 fi
3919         cat >>confdefs.h <<\_ACEOF
3920 #define HAVE_LINUX_OS 1
3921 _ACEOF
3922
3923 else
3924
3925
3926 if $FALSEPRG; then
3927   HAVE_LINUX_OS_TRUE=
3928   HAVE_LINUX_OS_FALSE='#'
3929 else
3930   HAVE_LINUX_OS_TRUE='#'
3931   HAVE_LINUX_OS_FALSE=
3932 fi
3933 fi
3934
3935 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3936 then
3937
3938
3939 if $TRUEPRG; then
3940   HAVE_FREEBSD_OS_TRUE=
3941   HAVE_FREEBSD_OS_FALSE='#'
3942 else
3943   HAVE_FREEBSD_OS_TRUE='#'
3944   HAVE_FREEBSD_OS_FALSE=
3945 fi
3946         cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_FREEBSD_OS 1
3948 _ACEOF
3949
3950 else
3951
3952
3953 if $FALSEPRG; then
3954   HAVE_FREEBSD_OS_TRUE=
3955   HAVE_FREEBSD_OS_FALSE='#'
3956 else
3957   HAVE_FREEBSD_OS_TRUE='#'
3958   HAVE_FREEBSD_OS_FALSE=
3959 fi
3960 fi
3961
3962 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3963 then
3964
3965
3966 if $TRUEPRG; then
3967   HAVE_NETBSD_OS_TRUE=
3968   HAVE_NETBSD_OS_FALSE='#'
3969 else
3970   HAVE_NETBSD_OS_TRUE='#'
3971   HAVE_NETBSD_OS_FALSE=
3972 fi
3973         cat >>confdefs.h <<\_ACEOF
3974 #define HAVE_NETBSD_OS 1
3975 _ACEOF
3976
3977 else
3978
3979
3980 if $FALSEPRG; then
3981   HAVE_NETBSD_OS_TRUE=
3982   HAVE_NETBSD_OS_FALSE='#'
3983 else
3984   HAVE_NETBSD_OS_TRUE='#'
3985   HAVE_NETBSD_OS_FALSE=
3986 fi
3987 fi
3988
3989 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3990 then
3991
3992
3993 if $TRUEPRG; then
3994   HAVE_OPENBSD_OS_TRUE=
3995   HAVE_OPENBSD_OS_FALSE='#'
3996 else
3997   HAVE_OPENBSD_OS_TRUE='#'
3998   HAVE_OPENBSD_OS_FALSE=
3999 fi
4000         cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_OPENBSD_OS 1
4002 _ACEOF
4003
4004 else
4005
4006
4007 if $FALSEPRG; then
4008   HAVE_OPENBSD_OS_TRUE=
4009   HAVE_OPENBSD_OS_FALSE='#'
4010 else
4011   HAVE_OPENBSD_OS_TRUE='#'
4012   HAVE_OPENBSD_OS_FALSE=
4013 fi
4014 fi
4015
4016 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4017 then
4018
4019
4020 if $TRUEPRG; then
4021   HAVE_BSDI_OS_TRUE=
4022   HAVE_BSDI_OS_FALSE='#'
4023 else
4024   HAVE_BSDI_OS_TRUE='#'
4025   HAVE_BSDI_OS_FALSE=
4026 fi
4027         cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_BSDI_OS 1
4029 _ACEOF
4030
4031 else
4032
4033
4034 if $FALSEPRG; then
4035   HAVE_BSDI_OS_TRUE=
4036   HAVE_BSDI_OS_FALSE='#'
4037 else
4038   HAVE_BSDI_OS_TRUE='#'
4039   HAVE_BSDI_OS_FALSE=
4040 fi
4041 fi
4042
4043 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4044 then
4045
4046
4047 if $TRUEPRG; then
4048   HAVE_SGI_OS_TRUE=
4049   HAVE_SGI_OS_FALSE='#'
4050 else
4051   HAVE_SGI_OS_TRUE='#'
4052   HAVE_SGI_OS_FALSE=
4053 fi
4054         cat >>confdefs.h <<\_ACEOF
4055 #define HAVE_SGI_OS 1
4056 _ACEOF
4057
4058 else
4059
4060
4061 if $FALSEPRG; then
4062   HAVE_SGI_OS_TRUE=
4063   HAVE_SGI_OS_FALSE='#'
4064 else
4065   HAVE_SGI_OS_TRUE='#'
4066   HAVE_SGI_OS_FALSE=
4067 fi
4068 fi
4069
4070 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4071 then
4072
4073
4074 if $TRUEPRG; then
4075   HAVE_IRIX_OS_TRUE=
4076   HAVE_IRIX_OS_FALSE='#'
4077 else
4078   HAVE_IRIX_OS_TRUE='#'
4079   HAVE_IRIX_OS_FALSE=
4080 fi
4081         cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_IRIX_OS 1
4083 _ACEOF
4084
4085 else
4086
4087
4088 if $FALSEPRG; then
4089   HAVE_IRIX_OS_TRUE=
4090   HAVE_IRIX_OS_FALSE='#'
4091 else
4092   HAVE_IRIX_OS_TRUE='#'
4093   HAVE_IRIX_OS_FALSE=
4094 fi
4095 fi
4096
4097 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4098 then
4099
4100
4101 if $TRUEPRG; then
4102   HAVE_DARWIN_OS_TRUE=
4103   HAVE_DARWIN_OS_FALSE='#'
4104 else
4105   HAVE_DARWIN_OS_TRUE='#'
4106   HAVE_DARWIN_OS_FALSE=
4107 fi
4108     cat >>confdefs.h <<\_ACEOF
4109 #define HAVE_DARWIN_OS 1
4110 _ACEOF
4111
4112 else
4113
4114
4115 if $FALSEPRG; then
4116   HAVE_DARWIN_OS_TRUE=
4117   HAVE_DARWIN_OS_FALSE='#'
4118 else
4119   HAVE_DARWIN_OS_TRUE='#'
4120   HAVE_DARWIN_OS_FALSE=
4121 fi
4122 fi
4123
4124 echo "$as_me:$LINENO: result: \" \"" >&5
4125 echo "${ECHO_T}\" \"" >&6
4126
4127
4128 # -----------------------------------------------------------
4129 # ----------------------------------------------------------
4130 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4131 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4132 if test "x$DISTNAME" != "x"
4133 then
4134         echo "distname set to $DISTNAME"
4135 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4136 then
4137         DISTNAME=alpha
4138 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4139 then
4140         DISTNAME=aix
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4142 then
4143         DISTNAME=hpux
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4145 then
4146         DISTNAME=solaris
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4148 then
4149         DISTNAME=freebsd
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4151 then
4152         DISTNAME=netbsd
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4154 then
4155         DISTNAME=openbsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4157 then
4158         DISTNAME=irix
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4160 then
4161         DISTNAME=bsdi
4162 elif test -f /etc/SuSE-release
4163 then
4164         DISTNAME=suse
4165 elif test -d /etc/SuSEconfig
4166 then
4167         DISTNAME=suse5
4168 elif test -f /etc/mandrake-release
4169 then
4170         DISTNAME=mandrake
4171 elif test -f /etc/redhat-release
4172 then
4173         DISTNAME=redhat
4174 elif test -f /etc/gentoo-release
4175 then
4176         DISTNAME=gentoo
4177 elif test -f /etc/debian_version
4178 then
4179         DISTNAME=debian
4180 elif test -f /etc/slackware-version
4181 then
4182         DISTNAME=slackware
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4184 then
4185     DISTNAME=darwin
4186 elif test -f /etc/engarde-version
4187 then
4188         DISTNAME=engarde
4189 elif test "$CYGWIN" = yes
4190 then
4191         DISTNAME=cygwin
4192         cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_CYGWIN 1
4194 _ACEOF
4195
4196 else
4197         DISTNAME=unknown
4198 fi
4199 echo "$as_me:$LINENO: result: \" \"" >&5
4200 echo "${ECHO_T}\" \"" >&6
4201
4202
4203 # -----------------------------------------------------------
4204 # ----------------------------------------------------------
4205
4206
4207
4208 if false; then
4209   INSIDE_GNOME_COMMON_TRUE=
4210   INSIDE_GNOME_COMMON_FALSE='#'
4211 else
4212   INSIDE_GNOME_COMMON_TRUE='#'
4213   INSIDE_GNOME_COMMON_FALSE=
4214 fi
4215
4216         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4217
4218         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4219
4220
4221 # ------------------------------------------------------------------
4222 #  If the user has not set --prefix, we set our default to nothing.
4223 #  In this case, if the user has not set --sysconfdir, we set it
4224 #  to the package default of /etc/bacula.  If either --prefix or
4225 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4226 # ------------------------------------------------------------------
4227 if test x${prefix} = xNONE ; then
4228     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4229         sysconfdir=/etc/bacula
4230     fi
4231     prefix=
4232 fi
4233 sysconfdir=`eval echo ${sysconfdir}`
4234
4235 # -------------------------------------------------------------------------
4236 #  If the user has not set --exec-prefix, we default to ${prefix}
4237 # -------------------------------------------------------------------------
4238 if test x${exec_prefix} = xNONE ; then
4239     exec_prefix=${prefix}
4240 fi
4241
4242 # ------------------------------------------------------------------
4243 # If the user has not set --sbindir, we set our default as /sbin
4244 # ------------------------------------------------------------------
4245 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4246     sbindir=${exec_prefix}/sbin
4247 fi
4248 sbindir=`eval echo ${sbindir}`
4249
4250 # ------------------------------------------------------------------
4251 # All list of languages for which a translation exist. Each
4252 #  language is separated by a space.
4253 # ------------------------------------------------------------------
4254 ALL_LINGUAS=""
4255
4256 for ac_prog in msgfmt
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_MSGFMT+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   case $MSGFMT in
4266   [\\/]* | ?:[\\/]*)
4267   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4268   ;;
4269   *)
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283
4284   ;;
4285 esac
4286 fi
4287 MSGFMT=$ac_cv_path_MSGFMT
4288
4289 if test -n "$MSGFMT"; then
4290   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4291 echo "${ECHO_T}$MSGFMT" >&6
4292 else
4293   echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295 fi
4296
4297   test -n "$MSGFMT" && break
4298 done
4299 test -n "$MSGFMT" || MSGFMT="no"
4300
4301 if test "$MSGFMT" = "no"
4302 then
4303    echo 'msgfmt program not found, disabling NLS !'
4304    USE_NLS=no
4305    USE_INCLUDED_LIBINTL=no
4306 #else
4307 #   AM_GNU_GETTEXT
4308 fi
4309
4310
4311 support_mysql=no
4312 support_sqlite=no
4313 support_smartalloc=yes
4314 support_readline=yes
4315 support_gnome=no
4316 support_static_tools=no
4317 support_static_fd=no
4318 support_static_sd=no
4319 support_static_dir=no
4320 support_static_cons=no
4321 build_client_only=no
4322 cats=
4323 db_name=Internal
4324 DB_NAME=bdb
4325
4326
4327 # -------------------------------------------
4328 # gnome (default off)
4329 # -------------------------------------------
4330 # Check whether --enable-gnome or --disable-gnome was given.
4331 if test "${enable_gnome+set}" = set; then
4332   enableval="$enable_gnome"
4333   if test x$enableval = xyes; then
4334     support_gnome=yes
4335   fi
4336 fi;
4337
4338 GNOME_DIR=
4339 if test x$support_gnome = xyes; then
4340   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4341   pkg=$?
4342   if test $pkg = 0; then
4343      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4344      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4345      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4346      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4347
4348
4349
4350
4351      GNOME_DIR=src/gnome2-console
4352   else
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4365 if test "${with_gnome_includes+set}" = set; then
4366   withval="$with_gnome_includes"
4367
4368         CFLAGS="$CFLAGS -I$withval"
4369
4370 fi;
4371
4372
4373 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4374 if test "${with_gnome_libs+set}" = set; then
4375   withval="$with_gnome_libs"
4376
4377         LDFLAGS="$LDFLAGS -L$withval"
4378         gnome_prefix=$withval
4379
4380 fi;
4381
4382
4383 # Check whether --with-gnome or --without-gnome was given.
4384 if test "${with_gnome+set}" = set; then
4385   withval="$with_gnome"
4386   if test x$withval = xyes; then
4387                         want_gnome=yes
4388                                                                         :
4389                 else
4390                         if test "x$withval" = xno; then
4391                                 want_gnome=no
4392                         else
4393                                 want_gnome=yes
4394                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4395                                 CFLAGS="$CFLAGS -I$withval/include"
4396                                 gnome_prefix=$withval/lib
4397                         fi
4398                 fi
4399 else
4400   want_gnome=yes
4401 fi;
4402
4403         if test "x$want_gnome" = xyes; then
4404
4405             # Extract the first word of "gnome-config", so it can be a program name with args.
4406 set dummy gnome-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   case $GNOME_CONFIG in
4413   [\\/]* | ?:[\\/]*)
4414   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4415   ;;
4416   *)
4417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430
4431   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4432   ;;
4433 esac
4434 fi
4435 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4436
4437 if test -n "$GNOME_CONFIG"; then
4438   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4439 echo "${ECHO_T}$GNOME_CONFIG" >&6
4440 else
4441   echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4443 fi
4444
4445             if test "$GNOME_CONFIG" = "no"; then
4446               no_gnome_config="yes"
4447             else
4448               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4449 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4450               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4451                 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4453
4454
4455         # Extract the first word of "orbit-config", so it can be a program name with args.
4456 set dummy orbit-config; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   case $ORBIT_CONFIG in
4463   [\\/]* | ?:[\\/]*)
4464   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4465   ;;
4466   *)
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479 done
4480
4481   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4482   ;;
4483 esac
4484 fi
4485 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4486
4487 if test -n "$ORBIT_CONFIG"; then
4488   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4489 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495         # Extract the first word of "orbit-idl", so it can be a program name with args.
4496 set dummy orbit-idl; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   case $ORBIT_IDL in
4503   [\\/]* | ?:[\\/]*)
4504   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4505   ;;
4506   *)
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4522   ;;
4523 esac
4524 fi
4525 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4526
4527 if test -n "$ORBIT_IDL"; then
4528   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4529 echo "${ECHO_T}$ORBIT_IDL" >&6
4530 else
4531   echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4536 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4537 if test "${gnome_cv_orbit_found+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540
4541                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4542                         gnome_cv_orbit_found=no
4543                 else
4544                         gnome_cv_orbit_found=yes
4545                 fi
4546
4547 fi
4548 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4549 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4550
4551
4552 if test x$gnome_cv_orbit_found = xyes; then
4553   HAVE_ORBIT_TRUE=
4554   HAVE_ORBIT_FALSE='#'
4555 else
4556   HAVE_ORBIT_TRUE='#'
4557   HAVE_ORBIT_FALSE=
4558 fi
4559         if test x$gnome_cv_orbit_found = xyes; then
4560
4561                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4562                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4563
4564
4565         else
4566                 if test xfail = xfailure; then
4567                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4568 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4569    { (exit 1); exit 1; }; }
4570                 fi
4571         fi
4572
4573         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4574 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4575 if test "${gnome_cv_gnorba_found+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578
4579                 gnome_cv_gnorba_found=no
4580                 if test x$gnome_cv_orbit_found = xyes; then
4581                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4582                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4583                         if test -n "$GNORBA_LIBS"; then
4584                                 gnome_cv_gnorba_found=yes
4585                         fi
4586                 fi
4587
4588 fi
4589 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4590 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4591
4592
4593 if test x$gnome_cv_gnorba_found = xyes; then
4594   HAVE_GNORBA_TRUE=
4595   HAVE_GNORBA_FALSE='#'
4596 else
4597   HAVE_GNORBA_TRUE='#'
4598   HAVE_GNORBA_FALSE=
4599 fi
4600         if test x$gnome_cv_orbit_found = xyes; then
4601
4602                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4603                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4604
4605
4606         else
4607                 if test xfail = xfailure; then
4608                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4609 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4610    { (exit 1); exit 1; }; }
4611                 fi
4612         fi
4613
4614                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4615                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4616                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4617                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4618                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4619                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4620                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4621
4622               else
4623                 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625                 no_gnome_config="yes"
4626               fi
4627             fi
4628
4629             if test x$exec_prefix = xNONE; then
4630                 if test x$prefix = xNONE; then
4631                     gnome_prefix=$ac_default_prefix/lib
4632                 else
4633                     gnome_prefix=$prefix/lib
4634                 fi
4635             else
4636                 gnome_prefix=`eval echo \`echo $libdir\``
4637             fi
4638
4639             if test "$no_gnome_config" = "yes"; then
4640               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4641 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4642               if test -f $gnome_prefix/gnomeConf.sh; then
4643                 echo "$as_me:$LINENO: result: found" >&5
4644 echo "${ECHO_T}found" >&6
4645                 echo "loading gnome configuration from" \
4646                      "$gnome_prefix/gnomeConf.sh"
4647                 . $gnome_prefix/gnomeConf.sh
4648
4649               else
4650                 echo "$as_me:$LINENO: result: not found" >&5
4651 echo "${ECHO_T}not found" >&6
4652                 if test xfail = xfail; then
4653                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4654 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4655    { (exit 1); exit 1; }; }
4656                 fi
4657               fi
4658             fi
4659         fi
4660
4661         if test -n ""; then
4662           n=""
4663           for i in $n; do
4664             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4665 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4666             case $i in
4667               applets)
4668
4669                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4670                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4671 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4672               docklets)
4673
4674                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4675                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4676 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4677               capplet)
4678
4679                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4680                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4681 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4682               *)
4683                 echo "$as_me:$LINENO: result: unknown library" >&5
4684 echo "${ECHO_T}unknown library" >&6
4685             esac
4686             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4687             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4688           done
4689         fi
4690
4691
4692     GNOME_DIR=src/gnome-console
4693   fi
4694 fi
4695
4696
4697
4698 # -------------------------------------------
4699 # smartalloc (default off)
4700 # -------------------------------------------
4701 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4702 if test "${enable_smartalloc+set}" = set; then
4703   enableval="$enable_smartalloc"
4704   if test x$enableval = xno; then
4705     support_smartalloc=no
4706   fi
4707 fi;
4708
4709 if test x$support_smartalloc = xyes; then
4710    cat >>confdefs.h <<\_ACEOF
4711 #define SMARTALLOC 1
4712 _ACEOF
4713
4714 fi
4715
4716 # -------------------------------------------
4717 # static-tools (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-static-tools or --disable-static-tools was given.
4720 if test "${enable_static_tools+set}" = set; then
4721   enableval="$enable_static_tools"
4722   if test x$enableval = xyes; then
4723      support_static_tools=yes
4724    fi
4725 fi;
4726
4727 TTOOL_LDFLAGS=
4728 if test x$support_static_tools = xyes; then
4729    TTOOL_LDFLAGS="-static"
4730 fi
4731
4732
4733 # -------------------------------------------
4734 # static-fd    (default off)
4735 # -------------------------------------------
4736 # Check whether --enable-static-fd or --disable-static-fd was given.
4737 if test "${enable_static_fd+set}" = set; then
4738   enableval="$enable_static_fd"
4739   if test x$enableval = xyes; then
4740      support_static_fd=yes
4741    fi
4742 fi;
4743
4744 STATIC_FD=
4745 if test x$support_static_fd = xyes; then
4746    STATIC_FD="static-bacula-fd"
4747 fi
4748
4749
4750 # -------------------------------------------
4751 # static-sd    (default off)
4752 # -------------------------------------------
4753 # Check whether --enable-static-sd or --disable-static-sd was given.
4754 if test "${enable_static_sd+set}" = set; then
4755   enableval="$enable_static_sd"
4756   if test x$enableval = xyes; then
4757      support_static_sd=yes
4758    fi
4759 fi;
4760
4761 STATIC_SD=
4762 if test x$support_static_sd = xyes; then
4763    STATIC_SD="static-bacula-sd"
4764 fi
4765
4766
4767 # -------------------------------------------
4768 # static-dir   (default off)
4769 # -------------------------------------------
4770 # Check whether --enable-static-dir or --disable-static-dir was given.
4771 if test "${enable_static_dir+set}" = set; then
4772   enableval="$enable_static_dir"
4773   if test x$enableval = xyes; then
4774      support_static_dir=yes
4775    fi
4776 fi;
4777
4778 STATIC_DIR=
4779 if test x$support_static_dir = xyes; then
4780    STATIC_DIR="static-bacula-dir"
4781 fi
4782
4783
4784 # -------------------------------------------
4785 # static-cons  (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-static-cons or --disable-static-cons was given.
4788 if test "${enable_static_cons+set}" = set; then
4789   enableval="$enable_static_cons"
4790   if test x$enableval = xyes; then
4791      support_static_cons=yes
4792    fi
4793 fi;
4794
4795 STATIC_CONS=
4796 if test x$support_static_cons = xyes; then
4797    STATIC_CONS="static-console"
4798 fi
4799
4800
4801 # -------------------------------------------
4802 # client_only  (default off)
4803 # -------------------------------------------
4804 # Check whether --enable-client-only or --disable-client-only was given.
4805 if test "${enable_client_only+set}" = set; then
4806   enableval="$enable_client_only"
4807   if test x$enableval = xyes; then
4808      build_client_only=yes
4809    fi
4810 fi;
4811 if test x$build_client_only = xno; then
4812    ALL_DIRS="subdirs"
4813 else
4814    ALL_DIRS=""
4815 fi
4816
4817
4818 # ---------------------------------------------------
4819 # Check for readline support/directory (default on)
4820 # ---------------------------------------------------
4821 # this allows you to turn it completely off
4822 # Check whether --enable-readline or --disable-readline was given.
4823 if test "${enable_readline+set}" = set; then
4824   enableval="$enable_readline"
4825   if test x$enableval = xno; then
4826     support_readline=no
4827   fi
4828 fi;
4829
4830 got_readline="no"
4831 READLINE_SRC=
4832 if test x$support_readline = xyes; then
4833    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4835 if test "${ac_cv_header_stdc+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <stdlib.h>
4846 #include <stdarg.h>
4847 #include <string.h>
4848 #include <float.h>
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860   (eval $ac_compile) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -s conftest.$ac_objext'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; }; then
4870   ac_cv_header_stdc=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 ac_cv_header_stdc=no
4876 fi
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4878
4879 if test $ac_cv_header_stdc = yes; then
4880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881   cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <string.h>
4889
4890 _ACEOF
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892   $EGREP "memchr" >/dev/null 2>&1; then
4893   :
4894 else
4895   ac_cv_header_stdc=no
4896 fi
4897 rm -f conftest*
4898
4899 fi
4900
4901 if test $ac_cv_header_stdc = yes; then
4902   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 #include <stdlib.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914   $EGREP "free" >/dev/null 2>&1; then
4915   :
4916 else
4917   ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
4923 if test $ac_cv_header_stdc = yes; then
4924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925   if test "$cross_compiling" = yes; then
4926   :
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 #include <ctype.h>
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939 #else
4940 # define ISLOWER(c) \
4941                    (('a' <= (c) && (c) <= 'i') \
4942                      || ('j' <= (c) && (c) <= 'r') \
4943                      || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4945 #endif
4946
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4948 int
4949 main ()
4950 {
4951   int i;
4952   for (i = 0; i < 256; i++)
4953     if (XOR (islower (i), ISLOWER (i))
4954         || toupper (i) != TOUPPER (i))
4955       exit(2);
4956   exit (0);
4957 }
4958 _ACEOF
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961   (eval $ac_link) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; }; then
4970   :
4971 else
4972   echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ( exit $ac_status )
4977 ac_cv_header_stdc=no
4978 fi
4979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 fi
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4985 if test $ac_cv_header_stdc = yes; then
4986
4987 cat >>confdefs.h <<\_ACEOF
4988 #define STDC_HEADERS 1
4989 _ACEOF
4990
4991 fi
4992
4993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5004                   inttypes.h stdint.h unistd.h
5005 do
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 $ac_includes_default
5020
5021 #include <$ac_header>
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025   (eval $ac_compile) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   eval "$as_ac_Header=yes"
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 eval "$as_ac_Header=no"
5041 fi
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047   cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 _ACEOF
5050
5051 fi
5052
5053 done
5054
5055
5056
5057 # Check whether --with-readline or --without-readline was given.
5058 if test "${with_readline+set}" = set; then
5059   withval="$with_readline"
5060
5061         case "$with_readline" in
5062         no) : ;;
5063         yes|*)
5064           if test "$with_readline" != "yes"; then
5065             CONS_INC="-I${with_readline}"
5066             CONS_LDFLAGS="-L$with_readline"
5067           else
5068              with_readline="/usr/include/readline"
5069           fi
5070           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 fi
5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5079 else
5080   # Is the header compilable?
5081 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5082 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091 #include <${with_readline}/readline.h>
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } &&
5099          { ac_try='test -s conftest.$ac_objext'
5100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101   (eval $ac_try) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; }; then
5105   ac_header_compiler=yes
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ac_header_compiler=no
5111 fi
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5115
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5118 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 #include <${with_readline}/readline.h>
5127 _ACEOF
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null; then
5136   if test -s conftest.err; then
5137     ac_cpp_err=$ac_c_preproc_warn_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   ac_header_preproc=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   ac_header_preproc=no
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5155
5156 # So?  What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5158   yes:no )
5159     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5163     (
5164       cat <<\_ASBOX
5165 ## ------------------------------------ ##
5166 ## Report this to bug-autoconf@gnu.org. ##
5167 ## ------------------------------------ ##
5168 _ASBOX
5169     ) |
5170       sed "s/^/$as_me: WARNING:     /" >&2
5171     ;;
5172   no:yes )
5173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5175     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5177     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5179     (
5180       cat <<\_ASBOX
5181 ## ------------------------------------ ##
5182 ## Report this to bug-autoconf@gnu.org. ##
5183 ## ------------------------------------ ##
5184 _ASBOX
5185     ) |
5186       sed "s/^/$as_me: WARNING:     /" >&2
5187     ;;
5188 esac
5189 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   eval "$as_ac_Header=$ac_header_preproc"
5195 fi
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5198
5199 fi
5200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201    cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_READLINE 1
5203 _ACEOF
5204
5205                CONS_LIBS="-lreadline -ltermcap"
5206                got_readline="yes"
5207
5208 else
5209    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5210 echo "$as_me: error: *** readline library missing" >&2;}
5211    { (exit 1); exit 1; }; }
5212
5213
5214 fi
5215
5216
5217           ;;
5218         esac
5219
5220 else
5221
5222        # check for standard readline library
5223        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5224   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5231 else
5232   # Is the header compilable?
5233 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 $ac_includes_default
5243 #include </usr/include/readline/readline.h>
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247   (eval $ac_compile) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_header_compiler=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_header_compiler=no
5263 fi
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6
5267
5268 # Is the header present?
5269 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5270 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 #include </usr/include/readline/readline.h>
5279 _ACEOF
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } >/dev/null; then
5288   if test -s conftest.err; then
5289     ac_cpp_err=$ac_c_preproc_warn_flag
5290   else
5291     ac_cpp_err=
5292   fi
5293 else
5294   ac_cpp_err=yes
5295 fi
5296 if test -z "$ac_cpp_err"; then
5297   ac_header_preproc=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302   ac_header_preproc=no
5303 fi
5304 rm -f conftest.err conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6
5307
5308 # So?  What about this header?
5309 case $ac_header_compiler:$ac_header_preproc in
5310   yes:no )
5311     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5315     (
5316       cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5321     ) |
5322       sed "s/^/$as_me: WARNING:     /" >&2
5323     ;;
5324   no:yes )
5325     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5327     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5329     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5331     (
5332       cat <<\_ASBOX
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5336 _ASBOX
5337     ) |
5338       sed "s/^/$as_me: WARNING:     /" >&2
5339     ;;
5340 esac
5341 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5342 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5343 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5347 fi
5348 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5349 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5350
5351 fi
5352 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5353    cat >>confdefs.h <<\_ACEOF
5354 #define HAVE_READLINE 1
5355 _ACEOF
5356
5357            got_readline="yes"
5358            CONS_INC="-I/usr/include/readline"
5359            CONS_LIBS="-lreadline -ltermcap"
5360
5361 else
5362
5363            # Did not find standard library, so try Bacula's default
5364             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 fi
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373 else
5374   # Is the header compilable?
5375 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5376 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385 #include <${TOP_DIR}/depkgs/readline/readline.h>
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_header_compiler=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_header_compiler=no
5405 fi
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5408 echo "${ECHO_T}$ac_header_compiler" >&6
5409
5410 # Is the header present?
5411 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5412 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 #include <${TOP_DIR}/depkgs/readline/readline.h>
5421 _ACEOF
5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } >/dev/null; then
5430   if test -s conftest.err; then
5431     ac_cpp_err=$ac_c_preproc_warn_flag
5432   else
5433     ac_cpp_err=
5434   fi
5435 else
5436   ac_cpp_err=yes
5437 fi
5438 if test -z "$ac_cpp_err"; then
5439   ac_header_preproc=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444   ac_header_preproc=no
5445 fi
5446 rm -f conftest.err conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5448 echo "${ECHO_T}$ac_header_preproc" >&6
5449
5450 # So?  What about this header?
5451 case $ac_header_compiler:$ac_header_preproc in
5452   yes:no )
5453     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5454 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5455     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5457     (
5458       cat <<\_ASBOX
5459 ## ------------------------------------ ##
5460 ## Report this to bug-autoconf@gnu.org. ##
5461 ## ------------------------------------ ##
5462 _ASBOX
5463     ) |
5464       sed "s/^/$as_me: WARNING:     /" >&2
5465     ;;
5466   no:yes )
5467     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5469     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5471     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5473     (
5474       cat <<\_ASBOX
5475 ## ------------------------------------ ##
5476 ## Report this to bug-autoconf@gnu.org. ##
5477 ## ------------------------------------ ##
5478 _ASBOX
5479     ) |
5480       sed "s/^/$as_me: WARNING:     /" >&2
5481     ;;
5482 esac
5483 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5484 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   eval "$as_ac_Header=$ac_header_preproc"
5489 fi
5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5492
5493 fi
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495    cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_READLINE 1
5497 _ACEOF
5498
5499                  got_readline="yes"
5500                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5501                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5502                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5503                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5504
5505 else
5506    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5507 echo "$as_me: error: *** readline library missing" >&2;}
5508    { (exit 1); exit 1; }; }
5509
5510
5511 fi
5512
5513
5514
5515
5516 fi
5517
5518
5519
5520
5521 fi;
5522 fi
5523
5524
5525
5526
5527
5528 # Minimal stuff for readline Makefile configuration
5529 MAKE_SHELL=/bin/sh
5530
5531
5532 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5534 if test "${ac_cv_header_stat_broken+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544 #include <sys/types.h>
5545 #include <sys/stat.h>
5546
5547 #if defined(S_ISBLK) && defined(S_IFDIR)
5548 # if S_ISBLK (S_IFDIR)
5549 You lose.
5550 # endif
5551 #endif
5552
5553 #if defined(S_ISBLK) && defined(S_IFCHR)
5554 # if S_ISBLK (S_IFCHR)
5555 You lose.
5556 # endif
5557 #endif
5558
5559 #if defined(S_ISLNK) && defined(S_IFREG)
5560 # if S_ISLNK (S_IFREG)
5561 You lose.
5562 # endif
5563 #endif
5564
5565 #if defined(S_ISSOCK) && defined(S_IFREG)
5566 # if S_ISSOCK (S_IFREG)
5567 You lose.
5568 # endif
5569 #endif
5570
5571 _ACEOF
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573   $EGREP "You lose" >/dev/null 2>&1; then
5574   ac_cv_header_stat_broken=yes
5575 else
5576   ac_cv_header_stat_broken=no
5577 fi
5578 rm -f conftest*
5579
5580 fi
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5582 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5583 if test $ac_cv_header_stat_broken = yes; then
5584
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STAT_MACROS_BROKEN 1
5587 _ACEOF
5588
5589 fi
5590
5591
5592
5593
5594
5595
5596 ac_header_dirent=no
5597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5598   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 #include <sys/types.h>
5612 #include <$ac_hdr>
5613
5614 int
5615 main ()
5616 {
5617 if ((DIR *) 0)
5618 return 0;
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); } &&
5629          { ac_try='test -s conftest.$ac_objext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   eval "$as_ac_Header=yes"
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 eval "$as_ac_Header=no"
5641 fi
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647   cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5649 _ACEOF
5650
5651 ac_header_dirent=$ac_hdr; break
5652 fi
5653
5654 done
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5659 if test "${ac_cv_search_opendir+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_func_search_save_LIBS=$LIBS
5663 ac_cv_search_opendir=no
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671
5672 /* Override any gcc2 internal prototype to avoid an error.  */
5673 #ifdef __cplusplus
5674 extern "C"
5675 #endif
5676 /* We use char because int might match the return type of a gcc2
5677    builtin and then its argument prototype would still apply.  */
5678 char opendir ();
5679 int
5680 main ()
5681 {
5682 opendir ();
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689   (eval $ac_link) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -s conftest$ac_exeext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   ac_cv_search_opendir="none required"
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 fi
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_opendir" = no; then
5707   for ac_lib in dir; do
5708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5709     cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716
5717 /* Override any gcc2 internal prototype to avoid an error.  */
5718 #ifdef __cplusplus
5719 extern "C"
5720 #endif
5721 /* We use char because int might match the return type of a gcc2
5722    builtin and then its argument prototype would still apply.  */
5723 char opendir ();
5724 int
5725 main ()
5726 {
5727 opendir ();
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734   (eval $ac_link) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -s conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_search_opendir="-l$ac_lib"
5745 break
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 fi
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752   done
5753 fi
5754 LIBS=$ac_func_search_save_LIBS
5755 fi
5756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5758 if test "$ac_cv_search_opendir" != no; then
5759   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5760
5761 fi
5762
5763 else
5764   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5766 if test "${ac_cv_search_opendir+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_opendir=no
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778
5779 /* Override any gcc2 internal prototype to avoid an error.  */
5780 #ifdef __cplusplus
5781 extern "C"
5782 #endif
5783 /* We use char because int might match the return type of a gcc2
5784    builtin and then its argument prototype would still apply.  */
5785 char opendir ();
5786 int
5787 main ()
5788 {
5789 opendir ();
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796   (eval $ac_link) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -s conftest$ac_exeext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_cv_search_opendir="none required"
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 fi
5812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5813 if test "$ac_cv_search_opendir" = no; then
5814   for ac_lib in x; do
5815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5816     cat >conftest.$ac_ext <<_ACEOF
5817 #line $LINENO "configure"
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823
5824 /* Override any gcc2 internal prototype to avoid an error.  */
5825 #ifdef __cplusplus
5826 extern "C"
5827 #endif
5828 /* We use char because int might match the return type of a gcc2
5829    builtin and then its argument prototype would still apply.  */
5830 char opendir ();
5831 int
5832 main ()
5833 {
5834 opendir ();
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -s conftest$ac_exeext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_search_opendir="-l$ac_lib"
5852 break
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 fi
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5859   done
5860 fi
5861 LIBS=$ac_func_search_save_LIBS
5862 fi
5863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5865 if test "$ac_cv_search_opendir" != no; then
5866   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5867
5868 fi
5869
5870 fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5882 do
5883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5884 echo "$as_me:$LINENO: checking for $ac_func" >&5
5885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5886 if eval "test \"\${$as_ac_var+set}\" = set"; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 /* System header to define __stub macros and hopefully few prototypes,
5897     which can conflict with char $ac_func (); below.
5898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899     <limits.h> exists even on freestanding compilers.  */
5900 #ifdef __STDC__
5901 # include <limits.h>
5902 #else
5903 # include <assert.h>
5904 #endif
5905 /* Override any gcc2 internal prototype to avoid an error.  */
5906 #ifdef __cplusplus
5907 extern "C"
5908 {
5909 #endif
5910 /* We use char because int might match the return type of a gcc2
5911    builtin and then its argument prototype would still apply.  */
5912 char $ac_func ();
5913 /* The GNU C library defines this for functions which it implements
5914     to always fail with ENOSYS.  Some functions are actually named
5915     something starting with __ and the normal name is an alias.  */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5917 choke me
5918 #else
5919 char (*f) () = $ac_func;
5920 #endif
5921 #ifdef __cplusplus
5922 }
5923 #endif
5924
5925 int
5926 main ()
5927 {
5928 return f != $ac_func;
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -s conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   eval "$as_ac_var=yes"
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 eval "$as_ac_var=no"
5951 fi
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5956 if test `eval echo '${'$as_ac_var'}'` = yes; then
5957   cat >>confdefs.h <<_ACEOF
5958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5959 _ACEOF
5960
5961 fi
5962 done
5963
5964
5965 for ac_func in nanosleep
5966 do
5967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 /* System header to define __stub macros and hopefully few prototypes,
5981     which can conflict with char $ac_func (); below.
5982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983     <limits.h> exists even on freestanding compilers.  */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5989 /* Override any gcc2 internal prototype to avoid an error.  */
5990 #ifdef __cplusplus
5991 extern "C"
5992 {
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996 char $ac_func ();
5997 /* The GNU C library defines this for functions which it implements
5998     to always fail with ENOSYS.  Some functions are actually named
5999     something starting with __ and the normal name is an alias.  */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 choke me
6002 #else
6003 char (*f) () = $ac_func;
6004 #endif
6005 #ifdef __cplusplus
6006 }
6007 #endif
6008
6009 int
6010 main ()
6011 {
6012 return f != $ac_func;
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   eval "$as_ac_var=yes"
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 eval "$as_ac_var=no"
6035 fi
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6040 if test `eval echo '${'$as_ac_var'}'` = yes; then
6041   cat >>confdefs.h <<_ACEOF
6042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6043 _ACEOF
6044
6045 fi
6046 done
6047
6048
6049
6050 for ac_header in varargs.h
6051 do
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054   echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 fi
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061 else
6062   # Is the header compilable?
6063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072 $ac_includes_default
6073 #include <$ac_header>
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077   (eval $ac_compile) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -s conftest.$ac_objext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_header_compiler=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_header_compiler=no
6093 fi
6094 rm -f conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6
6097
6098 # Is the header present?
6099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108 #include <$ac_header>
6109 _ACEOF
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6112   ac_status=$?
6113   grep -v '^ *+' conftest.er1 >conftest.err
6114   rm -f conftest.er1
6115   cat conftest.err >&5
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } >/dev/null; then
6118   if test -s conftest.err; then
6119     ac_cpp_err=$ac_c_preproc_warn_flag
6120   else
6121     ac_cpp_err=
6122   fi
6123 else
6124   ac_cpp_err=yes
6125 fi
6126 if test -z "$ac_cpp_err"; then
6127   ac_header_preproc=yes
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132   ac_header_preproc=no
6133 fi
6134 rm -f conftest.err conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6136 echo "${ECHO_T}$ac_header_preproc" >&6
6137
6138 # So?  What about this header?
6139 case $ac_header_compiler:$ac_header_preproc in
6140   yes:no )
6141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6145     (
6146       cat <<\_ASBOX
6147 ## ------------------------------------ ##
6148 ## Report this to bug-autoconf@gnu.org. ##
6149 ## ------------------------------------ ##
6150 _ASBOX
6151     ) |
6152       sed "s/^/$as_me: WARNING:     /" >&2
6153     ;;
6154   no:yes )
6155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6161     (
6162       cat <<\_ASBOX
6163 ## ------------------------------------ ##
6164 ## Report this to bug-autoconf@gnu.org. ##
6165 ## ------------------------------------ ##
6166 _ASBOX
6167     ) |
6168       sed "s/^/$as_me: WARNING:     /" >&2
6169     ;;
6170 esac
6171 echo "$as_me:$LINENO: checking for $ac_header" >&5
6172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   eval "$as_ac_Header=$ac_header_preproc"
6177 fi
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6180
6181 fi
6182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183   cat >>confdefs.h <<_ACEOF
6184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185 _ACEOF
6186
6187 fi
6188
6189 done
6190
6191
6192 # End of readline stuff
6193 # -----------------------------------------------------------------------
6194
6195
6196 # ---------------------------------------------------
6197 # Check for GMP support/directory
6198 # ---------------------------------------------------
6199 #GMP_SRC=
6200 #local_gmp="no"
6201 #AC_ARG_WITH(gmp,
6202 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6203 #  [
6204 #     case "$with_gmp" in
6205 #     no) : ;;
6206 #     yes|*)
6207 #       if test "$with_gmp" != "yes"; then
6208 #         GMP_INC="-I$with_gmp"
6209 #         GMP_LIBS="-lgmp"
6210 #         GMP_LDFLAGS="-L$with_gmp"
6211 #       else
6212 #          with_gmp="/usr/include"
6213 #       fi
6214 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6215 #          [ AC_MSG_RESULT(yes)
6216 #            AC_DEFINE(HAVE_GMP)
6217 #            GMP_LIBS="-lgmp"
6218 #            got_gmp="yes"
6219 #          ],
6220 #          [ AC_MSG_ERROR([*** gmp library missing])
6221 #          ]
6222 #       )
6223 #       ;;
6224 #     esac
6225 #  ],[
6226 #    # check for standard gmp library
6227 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6228 #    [ AC_MSG_RESULT(yes)
6229 #      AC_DEFINE(HAVE_GMP)
6230 #      got_gmp="yes"
6231 #      GMP_INC=
6232 #      GMP_LIBS="-lgmp"
6233 #    ], [
6234 #      # Did not find standard library, so use our own
6235 #      AC_MSG_RESULT(yes)
6236 #      AC_DEFINE(HAVE_GMP)
6237 #      got_gmp="yes"
6238 #      local_gmp="yes"
6239 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6240 #      GMP_LIBS="-lgmp"
6241 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6242 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6243 #    ])
6244 #  ]
6245 #)
6246 #AC_SUBST(GMP_INC)
6247 #AC_SUBST(GMP_LIBS)
6248 #AC_SUBST(GMP_LDFLAGS)
6249 #AC_SUBST(GMP_SRC)
6250
6251 # End of GMP stuff
6252 # -----------------------------------------------------------------------
6253
6254
6255 # ---------------------------------------------------
6256 # Check for CWEB support/directory
6257 # ---------------------------------------------------
6258 #CWEB_SRC=
6259 #CWEB=/bin
6260 #local_cweb="no"
6261 #AC_ARG_WITH(cweb,
6262 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6263 #  [
6264 #     case "$with_cweb" in
6265 #     no) : ;;
6266 #     yes|*)
6267 #       if test "$with_cweb" != "yes"; then
6268 #         CWEB_INC="-I$with_cweb"
6269 #         CWEB_LIBS="-lcweb"
6270 #         CWEB_LDFLAGS="-L$with_cweb"
6271 #       else
6272 #          with_cweb="/usr/include"
6273 #       fi
6274 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6275 #          [ AC_MSG_RESULT(yes)
6276 #            AC_DEFINE(HAVE_CWEB)
6277 #            CWEB_LIBS="-lcweb"
6278 #            got_cweb="yes"
6279 #          ],
6280 #          [ AC_MSG_ERROR([*** cweb library missing])
6281 #          ]
6282 #       )
6283 #       ;;
6284 #     esac
6285 #  ],[
6286 #    # check for standard cweb library
6287 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6288 #    [ AC_MSG_RESULT(yes)
6289 #      AC_DEFINE(HAVE_CWEB)
6290 #      got_cweb="yes"
6291 #      CWEB_INC=
6292 #      CWEB_LIBS="-lcweb"
6293 #    ], [
6294 #      # Did not find starndard library, so use our own
6295 #      AC_MSG_RESULT(yes)
6296 #      AC_DEFINE(HAVE_CWEB)
6297 #      got_cweb="yes"
6298 #      local_cweb="yes"
6299 #      CWEB=${TOP_DIR}/depkgs/cweb
6300 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6301 #      CWEB_LIBS="-lcweb"
6302 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6303 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6304 #    ])
6305 #  ]
6306 #)
6307 #AC_SUBST(CWEB)
6308 #AC_SUBST(CWEB_INC)
6309 #AC_SUBST(CWEB_LIBS)
6310 #AC_SUBST(CWEB_LDFLAGS)
6311 #AC_SUBST(CWEB_SRC)
6312
6313 # End of CWEB stuff
6314 # -----------------------------------------------------------------------
6315
6316
6317
6318 # -----------------------------------------------------------
6319 # Check whether user wants TCP wrappers support (default off)
6320 # -----------------------------------------------------------
6321 TCPW_MSG="no"
6322
6323 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6324 if test "${with_tcp_wrappers+set}" = set; then
6325   withval="$with_tcp_wrappers"
6326
6327     if test "x$withval" != "xno" ; then
6328        saved_LIBS="$LIBS"
6329        LIBS="$saved_LIBS -lwrap"
6330        echo "$as_me:$LINENO: checking for libwrap" >&5
6331 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6332        cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339  #include <tcpd.h>
6340              int deny_severity = 0;
6341              int allow_severity = 0;
6342              struct request_info *req;
6343 int
6344 main ()
6345 {
6346  hosts_access(req);
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353   (eval $ac_link) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363
6364             echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6
6366             cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_LIBWRAP 1
6368 _ACEOF
6369
6370             TCPW_MSG="yes"
6371
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376
6377             LIBS="$saved_LIBS -lwrap -lnsl"
6378             cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385  #include <tcpd.h>
6386                  int deny_severity = 0;
6387                  int allow_severity = 0;
6388                  struct request_info *req;
6389 int
6390 main ()
6391 {
6392  hosts_access(req);
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399   (eval $ac_link) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } &&
6403          { ac_try='test -s conftest$ac_exeext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409
6410                  echo "$as_me:$LINENO: result: yes" >&5
6411 echo "${ECHO_T}yes" >&6
6412                  cat >>confdefs.h <<\_ACEOF
6413 #define HAVE_LIBWRAP 1
6414 _ACEOF
6415
6416                  TCPW_MSG="yes"
6417
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6423 echo "$as_me: error: *** libwrap missing" >&2;}
6424    { (exit 1); exit 1; }; }
6425
6426 fi
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6428
6429 fi
6430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6431     fi
6432
6433
6434 fi;
6435
6436 # ------------------------------------------
6437 # Where to place working dir
6438 # ------------------------------------------
6439 working_dir=`eval echo ${sysconfdir}/working`
6440
6441 # Check whether --with-working-dir or --without-working-dir was given.
6442 if test "${with_working_dir+set}" = set; then
6443   withval="$with_working_dir"
6444
6445        if test "x$withval" != "xno" ; then
6446               working_dir=$withval
6447        fi
6448
6449
6450 fi;
6451
6452
6453
6454
6455 # ------------------------------------------
6456 # Where to place scriptdir (script files)
6457 # ------------------------------------------
6458 scriptdir=`eval echo ${sysconfdir}`
6459
6460 # Check whether --with-scriptdir or --without-scriptdir was given.
6461 if test "${with_scriptdir+set}" = set; then
6462   withval="$with_scriptdir"
6463
6464        if test "x$withval" != "xno" ; then
6465               scriptdir=$withval
6466        fi
6467
6468
6469 fi;
6470
6471
6472
6473
6474 # ------------------------------------------
6475 # Where to send dump email
6476 # ------------------------------------------
6477 dump_email=root@localhost
6478
6479 # Check whether --with-dump-email or --without-dump-email was given.
6480 if test "${with_dump_email+set}" = set; then
6481   withval="$with_dump_email"
6482
6483        if test "x$withval" != "xno" ; then
6484               dump_email=$withval
6485        fi
6486
6487
6488 fi;
6489
6490
6491
6492 # ------------------------------------------
6493 # Where to send job email
6494 # ------------------------------------------
6495 job_email=root@localhost
6496
6497 # Check whether --with-job-email or --without-job-email was given.
6498 if test "${with_job_email+set}" = set; then
6499   withval="$with_job_email"
6500
6501        if test "x$withval" != "xno" ; then
6502               job_email=$withval
6503        fi
6504
6505
6506 fi;
6507
6508
6509
6510 # ------------------------------------------
6511 # Where to find smtp host
6512 # ------------------------------------------
6513 smtp_host=localhost
6514
6515 # Check whether --with-smtp_host or --without-smtp_host was given.
6516 if test "${with_smtp_host+set}" = set; then
6517   withval="$with_smtp_host"
6518
6519        if test "x$withval" != "xno" ; then
6520               smtp_host=$withval
6521        fi
6522
6523
6524 fi;
6525
6526
6527
6528
6529 # ------------------------------------
6530 # Where to place pid files
6531 # ------------------------------------
6532 piddir=/var/run
6533
6534 # Check whether --with-pid-dir or --without-pid-dir was given.
6535 if test "${with_pid_dir+set}" = set; then
6536   withval="$with_pid_dir"
6537
6538         if test "x$withval" != "xno" ; then
6539             piddir=$withval
6540         fi
6541
6542
6543 fi;
6544
6545 cat >>confdefs.h <<_ACEOF
6546 #define _PATH_BACULA_PIDDIR "$piddir"
6547 _ACEOF
6548
6549
6550
6551
6552 # ------------------------------------
6553 # Where to place subsys "lock file"
6554 # ------------------------------------
6555 subsysdir=/var/run/subsys
6556
6557 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6558 if test "${with_subsys_dir+set}" = set; then
6559   withval="$with_subsys_dir"
6560
6561         if test "x$withval" != "xno" ; then
6562             subsysdir=$withval
6563         fi
6564
6565
6566 fi;
6567
6568
6569
6570
6571
6572 # ------------------------------------
6573 # Where to start assigning ports
6574 # ------------------------------------
6575 baseport=9101
6576
6577 # Check whether --with-baseport or --without-baseport was given.
6578 if test "${with_baseport+set}" = set; then
6579   withval="$with_baseport"
6580
6581         if test "x$withval" != "xno" ; then
6582              baseport=$withval
6583         fi
6584
6585
6586 fi;
6587
6588
6589 dir_port=`expr $baseport`
6590 fd_port=`expr $baseport + 1`
6591 sd_port=`expr $fd_port + 1`
6592
6593
6594
6595
6596
6597
6598 # ------------------------------------------
6599 # Generate passwords
6600 # ------------------------------------------
6601 dir_password=
6602
6603 # Check whether --with-dir-password or --without-dir-password was given.
6604 if test "${with_dir_password+set}" = set; then
6605   withval="$with_dir_password"
6606
6607        if test "x$withval" != "xno" ; then
6608            dir_password=$withval
6609        fi
6610
6611
6612 fi;
6613
6614 if test "x$dir_password" = "x" ; then
6615    if test "x$OPENSSL" = "xnone" ; then
6616 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6617       key=`autoconf/randpass 33`
6618    else
6619       key=`openssl rand -base64 33`
6620    fi
6621    dir_password=$key
6622 fi
6623
6624 fd_password=
6625
6626 # Check whether --with-fd-password or --without-fd-password was given.
6627 if test "${with_fd_password+set}" = set; then
6628   withval="$with_fd_password"
6629
6630        if test "x$withval" != "xno" ; then
6631            fd_password=$withval
6632        fi
6633
6634
6635 fi;
6636
6637 if test "x$fd_password" = "x" ; then
6638    if test "x$OPENSSL" = "xnone" ; then
6639 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6640       key=`autoconf/randpass 37`
6641    else
6642       key=`openssl rand -base64 33`
6643    fi
6644    fd_password=$key
6645 fi
6646
6647 sd_password=
6648
6649 # Check whether --with-sd-password or --without-sd-password was given.
6650 if test "${with_sd_password+set}" = set; then
6651   withval="$with_sd_password"
6652
6653        if test "x$withval" != "xno" ; then
6654            sd_password=$withval
6655        fi
6656
6657
6658 fi;
6659
6660 if test "x$sd_password" = "x" ; then
6661    if test "x$OPENSSL" = "xnone" ; then
6662 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6663       key=`autoconf/randpass 41`
6664    else
6665       key=`openssl rand -base64 33`
6666    fi
6667    sd_password=$key
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 # ------------------------------------------------
6679 # Bacula check for various SQL database engines
6680 # ------------------------------------------------
6681
6682 db_found=no
6683 echo "$as_me:$LINENO: checking for MySQL support" >&5
6684 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6685
6686 # Check whether --with-mysql or --without-mysql was given.
6687 if test "${with_mysql+set}" = set; then
6688   withval="$with_mysql"
6689
6690   if test "$withval" != "no"; then
6691         if test "$withval" = "yes"; then
6692                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6693                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6694                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6695                         MYSQL_BINDIR=/usr/local/mysql/bin
6696                 elif test -f /usr/include/mysql/mysql.h; then
6697                         MYSQL_INCDIR=/usr/include/mysql
6698                         MYSQL_LIBDIR=/usr/lib/mysql
6699                         MYSQL_BINDIR=/usr/bin
6700                 elif test -f /usr/include/mysql.h; then
6701                         MYSQL_INCDIR=/usr/include
6702                         MYSQL_LIBDIR=/usr/lib
6703                         MYSQL_BINDIR=/usr/bin
6704                 elif test -f /usr/local/include/mysql/mysql.h; then
6705                         MYSQL_INCDIR=/usr/local/include/mysql
6706                         MYSQL_LIBDIR=/usr/local/lib/mysql
6707                         MYSQL_BINDIR=/usr/local/bin
6708                 elif test -f /usr/local/include/mysql.h; then
6709                         MYSQL_INCDIR=/usr/local/include
6710                         MYSQL_LIBDIR=/usr/local/lib
6711                         MYSQL_BINDIR=/usr/local/bin
6712                 else
6713                    echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6
6715                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6716 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6717    { (exit 1); exit 1; }; }
6718                 fi
6719         else
6720                 if test -f $withval/include/mysql/mysql.h; then
6721                         MYSQL_INCDIR=$withval/include/mysql
6722                         MYSQL_LIBDIR=$withval/lib/mysql
6723                         MYSQL_BINDIR=$withval/bin
6724                 elif test -f $withval/include/mysql.h; then
6725                         MYSQL_INCDIR=$withval/include
6726                         MYSQL_LIBDIR=$withval/lib
6727                         MYSQL_BINDIR=$withval/bin
6728                 else
6729                    echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6
6731                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6732 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6733    { (exit 1); exit 1; }; }
6734                 fi
6735         fi
6736     SQL_INCLUDE=-I$MYSQL_INCDIR
6737     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
6738        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6739        cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_THREAD_SAFE_MYSQL 1
6741 _ACEOF
6742
6743     else
6744        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
6745     fi
6746     SQL_BINDIR=$MYSQL_BINDIR
6747
6748     cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_MYSQL 1
6750 _ACEOF
6751
6752     echo "$as_me:$LINENO: result: yes" >&5
6753 echo "${ECHO_T}yes" >&6
6754     db_found=yes
6755     support_mysql=yes
6756     db_name=MySQL
6757     DB_NAME=mysql
6758
6759   else
6760         echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6762   fi
6763
6764 else
6765
6766     echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6
6768
6769 fi;
6770
6771
6772 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6773 if test "${with_embedded_mysql+set}" = set; then
6774   withval="$with_embedded_mysql"
6775
6776   if test "$withval" != "no"; then
6777         if test "$withval" = "yes"; then
6778                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6779                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6780                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6781                         MYSQL_BINDIR=/usr/local/mysql/bin
6782                 elif test -f /usr/include/mysql/mysql.h; then
6783                         MYSQL_INCDIR=/usr/include/mysql
6784                         MYSQL_LIBDIR=/usr/lib/mysql
6785                         MYSQL_BINDIR=/usr/bin
6786                 elif test -f /usr/include/mysql.h; then
6787                         MYSQL_INCDIR=/usr/include
6788                         MYSQL_LIBDIR=/usr/lib
6789                         MYSQL_BINDIR=/usr/bin
6790                 elif test -f /usr/local/include/mysql/mysql.h; then
6791                         MYSQL_INCDIR=/usr/local/include/mysql
6792                         MYSQL_LIBDIR=/usr/local/lib/mysql
6793                         MYSQL_BINDIR=/usr/local/bin
6794                 elif test -f /usr/local/include/mysql.h; then
6795                         MYSQL_INCDIR=/usr/local/include
6796                         MYSQL_LIBDIR=/usr/local/lib
6797                         MYSQL_BINDIR=/usr/local/bin
6798                 else
6799                    echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6
6801                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6802 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6803    { (exit 1); exit 1; }; }
6804                 fi
6805         else
6806                 if test -f $withval/include/mysql/mysql.h; then
6807                         MYSQL_INCDIR=$withval/include/mysql
6808                         MYSQL_LIBDIR=$withval/lib/mysql
6809                         MYSQL_BINDIR=$withval/bin
6810                 elif test -f $withval/include/mysql.h; then
6811                         MYSQL_INCDIR=$withval/include
6812                         MYSQL_LIBDIR=$withval/lib
6813                         MYSQL_BINDIR=$withval/bin
6814                 else
6815                    echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6
6817                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6818 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6819    { (exit 1); exit 1; }; }
6820                 fi
6821         fi
6822     SQL_INCLUDE=-I$MYSQL_INCDIR
6823     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6824     SQL_BINDIR=$MYSQL_BINDIR
6825
6826     cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_MYSQL 1
6828 _ACEOF
6829
6830     cat >>confdefs.h <<\_ACEOF
6831 #define HAVE_EMBEDDED_MYSQL 1
6832 _ACEOF
6833
6834     echo "$as_me:$LINENO: result: yes" >&5
6835 echo "${ECHO_T}yes" >&6
6836     db_found=yes
6837     support_mysql=yes
6838     db_name=MySQL
6839     DB_NAME=mysql
6840
6841   else
6842         echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6844   fi
6845
6846 else
6847
6848   echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6
6850
6851 fi;
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861 # ------------------------------------------------
6862 # Bacula check for various SQL database engines
6863 # ------------------------------------------------
6864
6865 db_found=no
6866 echo "$as_me:$LINENO: checking for SQLite support" >&5
6867 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6868
6869 # Check whether --with-sqlite or --without-sqlite was given.
6870 if test "${with_sqlite+set}" = set; then
6871   withval="$with_sqlite"
6872
6873   if test "$withval" != "no"; then
6874         if test "$withval" = "yes"; then
6875                 if test -f /usr/local/include/sqlite.h; then
6876                         SQLITE_INCDIR=/usr/local/include
6877                         SQLITE_LIBDIR=/usr/local/lib
6878                         SQLITE_BINDIR=/usr/local/bin
6879                 elif test -f /usr/include/sqlite.h; then
6880                         SQLITE_INCDIR=/usr/include
6881                         SQLITE_LIBDIR=/usr/lib
6882                         SQLITE_BINDIR=/usr/bin
6883                 else
6884                    echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6
6886                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6887 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6888    { (exit 1); exit 1; }; }
6889                 fi
6890         else
6891                 if test -f $withval/sqlite.h; then
6892                         SQLITE_INCDIR=$withval
6893                         SQLITE_LIBDIR=$withval
6894                         SQLITE_BINDIR=$withval
6895                 else
6896                    echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6
6898                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6899 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6900    { (exit 1); exit 1; }; }
6901                 fi
6902         fi
6903     SQL_INCLUDE=-I$SQLITE_INCDIR
6904     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6905     SQL_BINDIR=$SQLITE_BINDIR
6906
6907     cat >>confdefs.h <<\_ACEOF
6908 #define HAVE_SQLITE 1
6909 _ACEOF
6910
6911     echo "$as_me:$LINENO: result: yes" >&5
6912 echo "${ECHO_T}yes" >&6
6913     db_found=yes
6914     support_sqlite=yes
6915     db_name=SQLite
6916     DB_NAME=sqlite
6917
6918   else
6919         echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6
6921   fi
6922
6923 else
6924
6925   echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6
6927
6928 fi;
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938 cat >>confdefs.h <<\_ACEOF
6939 #define PROTOTYPES 1
6940 _ACEOF
6941
6942
6943 if test -z "$CFLAGS"; then
6944     if test -z "$CCOPTS"; then
6945         CCOPTS='-g -O2'
6946     fi
6947     CFLAGS="$CCOPTS"
6948 fi
6949
6950
6951
6952
6953 largefile_support="no"
6954
6955    # Check whether --enable-largefile or --disable-largefile was given.
6956 if test "${enable_largefile+set}" = set; then
6957   enableval="$enable_largefile"
6958
6959 fi;
6960    if test "$enable_largefile" != no; then
6961      if test -n "$ac_tool_prefix"; then
6962   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}getconf; ac_word=$2
6964 echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6966 if test "${ac_cv_prog_GETCONF+set}" = set; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   if test -n "$GETCONF"; then
6970   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977   for ac_exec_ext in '' $ac_executable_extensions; do
6978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
6980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981     break 2
6982   fi
6983 done
6984 done
6985
6986 fi
6987 fi
6988 GETCONF=$ac_cv_prog_GETCONF
6989 if test -n "$GETCONF"; then
6990   echo "$as_me:$LINENO: result: $GETCONF" >&5
6991 echo "${ECHO_T}$GETCONF" >&6
6992 else
6993   echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6
6995 fi
6996
6997 fi
6998 if test -z "$ac_cv_prog_GETCONF"; then
6999   ac_ct_GETCONF=$GETCONF
7000   # Extract the first word of "getconf", so it can be a program name with args.
7001 set dummy getconf; ac_word=$2
7002 echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7004 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007   if test -n "$ac_ct_GETCONF"; then
7008   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015   for ac_exec_ext in '' $ac_executable_extensions; do
7016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017     ac_cv_prog_ac_ct_GETCONF="getconf"
7018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022 done
7023
7024 fi
7025 fi
7026 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7027 if test -n "$ac_ct_GETCONF"; then
7028   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7029 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7030 else
7031   echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6
7033 fi
7034
7035   GETCONF=$ac_ct_GETCONF
7036 else
7037   GETCONF="$ac_cv_prog_GETCONF"
7038 fi
7039
7040      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7041 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7042 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7046         ac_cv_sys_largefile_CFLAGS=no
7047         case "$host_os" in
7048            # IRIX 6.2 and later require cc -n32.
7049            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7050              if test "$GCC" != yes; then
7051                ac_cv_sys_largefile_CFLAGS=-n32
7052              fi
7053              ac_save_CC="$CC"
7054              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7055              cat >conftest.$ac_ext <<_ACEOF
7056 #line $LINENO "configure"
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062
7063 int
7064 main ()
7065 {
7066
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073   (eval $ac_link) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } &&
7077          { ac_try='test -s conftest$ac_exeext'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   :
7084 else
7085   echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088 ac_cv_sys_largefile_CFLAGS=no
7089 fi
7090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7091              CC="$ac_save_CC"
7092            esac
7093       }
7094 fi
7095 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7096 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7097      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7098 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7099 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7103         ac_cv_sys_largefile_LDFLAGS=no
7104
7105       }
7106 fi
7107 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7108 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7109      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7110 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7111 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7115         ac_cv_sys_largefile_LIBS=no
7116
7117       }
7118 fi
7119 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7120 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7121
7122      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7123        case "$ac_flag" in
7124        no) ;;
7125        -D_FILE_OFFSET_BITS=*) ;;
7126        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7127        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7128        -D?* | -I?*)
7129          case "$ac_flag" in
7130    no) ;;
7131    ?*)
7132      case "$CPPFLAGS" in
7133      '') CPPFLAGS="$ac_flag" ;;
7134      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7135      esac ;;
7136    esac ;;
7137        *)
7138          case "$ac_flag" in
7139    no) ;;
7140    ?*)
7141      case "$CFLAGS" in
7142      '') CFLAGS="$ac_flag" ;;
7143      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7144      esac ;;
7145    esac ;;
7146        esac
7147      done
7148      case "$ac_cv_sys_largefile_LDFLAGS" in
7149    no) ;;
7150    ?*)
7151      case "$LDFLAGS" in
7152      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7153      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7154      esac ;;
7155    esac
7156      case "$ac_cv_sys_largefile_LIBS" in
7157    no) ;;
7158    ?*)
7159      case "$LIBS" in
7160      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7161      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7162      esac ;;
7163    esac
7164      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7165 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7166 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   ac_cv_sys_file_offset_bits=no
7170       case "$host_os" in
7171         # HP-UX 10.20 and later
7172         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7173           ac_cv_sys_file_offset_bits=64 ;;
7174         esac
7175       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7176         case "$ac_flag" in
7177         -D_FILE_OFFSET_BITS)
7178           ac_cv_sys_file_offset_bits=1 ;;
7179         -D_FILE_OFFSET_BITS=*)
7180           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7181         esac
7182       done
7183
7184 fi
7185 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7186 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7187    if test "$ac_cv_sys_file_offset_bits" != no; then
7188
7189 cat >>confdefs.h <<_ACEOF
7190 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7191 _ACEOF
7192
7193    fi
7194      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7195 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7196 if test "${ac_cv_sys_largefile_source+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   ac_cv_sys_largefile_source=no
7200       case "$host_os" in
7201         # HP-UX 10.20 and later
7202         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7203           ac_cv_sys_largefile_source=1 ;;
7204         esac
7205       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7206         case "$ac_flag" in
7207         -D_LARGEFILE_SOURCE)
7208           ac_cv_sys_largefile_source=1 ;;
7209         -D_LARGEFILE_SOURCE=*)
7210           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7211         esac
7212       done
7213
7214 fi
7215 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7216 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7217    if test "$ac_cv_sys_largefile_source" != no; then
7218
7219 cat >>confdefs.h <<_ACEOF
7220 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7221 _ACEOF
7222
7223    fi
7224      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7225 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7226 if test "${ac_cv_sys_large_files+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   ac_cv_sys_large_files=no
7230       case "$host_os" in
7231         # AIX 4.2 and later
7232         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7233           ac_cv_sys_large_files=1 ;;
7234         esac
7235       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7236         case "$ac_flag" in
7237         -D_LARGE_FILES)
7238           ac_cv_sys_large_files=1 ;;
7239         -D_LARGE_FILES=*)
7240           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7241         esac
7242       done
7243
7244 fi
7245 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7246 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7247    if test "$ac_cv_sys_large_files" != no; then
7248
7249 cat >>confdefs.h <<_ACEOF
7250 #define _LARGE_FILES $ac_cv_sys_large_files
7251 _ACEOF
7252
7253    fi
7254    fi
7255
7256
7257
7258 echo "$as_me:$LINENO: checking for X" >&5
7259 echo $ECHO_N "checking for X... $ECHO_C" >&6
7260
7261
7262 # Check whether --with-x or --without-x was given.
7263 if test "${with_x+set}" = set; then
7264   withval="$with_x"
7265
7266 fi;
7267 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7268 if test "x$with_x" = xno; then
7269   # The user explicitly disabled X.
7270   have_x=disabled
7271 else
7272   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7273     # Both variables are already set.
7274     have_x=yes
7275   else
7276     if test "${ac_cv_have_x+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   # One or both of the vars are not set, and there is no cached value.
7280 ac_x_includes=no ac_x_libraries=no
7281 rm -fr conftest.dir
7282 if mkdir conftest.dir; then
7283   cd conftest.dir
7284   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7285   cat >Imakefile <<'_ACEOF'
7286 acfindx:
7287         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7288 _ACEOF
7289   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7290     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7291     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7292     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7293     for ac_extension in a so sl; do
7294       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7295          test -f $ac_im_libdir/libX11.$ac_extension; then
7296         ac_im_usrlibdir=$ac_im_libdir; break
7297       fi
7298     done
7299     # Screen out bogus values from the imake configuration.  They are
7300     # bogus both because they are the default anyway, and because
7301     # using them would break gcc on systems where it needs fixed includes.
7302     case $ac_im_incroot in
7303         /usr/include) ;;
7304         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7305     esac
7306     case $ac_im_usrlibdir in
7307         /usr/lib | /lib) ;;
7308         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7309     esac
7310   fi
7311   cd ..
7312   rm -fr conftest.dir
7313 fi
7314
7315 # Standard set of common directories for X headers.
7316 # Check X11 before X11Rn because it is often a symlink to the current release.
7317 ac_x_header_dirs='
7318 /usr/X11/include
7319 /usr/X11R6/include
7320 /usr/X11R5/include
7321 /usr/X11R4/include
7322
7323 /usr/include/X11
7324 /usr/include/X11R6
7325 /usr/include/X11R5
7326 /usr/include/X11R4
7327
7328 /usr/local/X11/include
7329 /usr/local/X11R6/include
7330 /usr/local/X11R5/include
7331 /usr/local/X11R4/include
7332
7333 /usr/local/include/X11
7334 /usr/local/include/X11R6
7335 /usr/local/include/X11R5
7336 /usr/local/include/X11R4
7337
7338 /usr/X386/include
7339 /usr/x386/include
7340 /usr/XFree86/include/X11
7341
7342 /usr/include
7343 /usr/local/include
7344 /usr/unsupported/include
7345 /usr/athena/include
7346 /usr/local/x11r5/include
7347 /usr/lpp/Xamples/include
7348
7349 /usr/openwin/include
7350 /usr/openwin/share/include'
7351
7352 if test "$ac_x_includes" = no; then
7353   # Guess where to find include files, by looking for Intrinsic.h.
7354   # First, try using that file with no special directory specified.
7355   cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 /* confdefs.h.  */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h.  */
7362 #include <X11/Intrinsic.h>
7363 _ACEOF
7364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7366   ac_status=$?
7367   grep -v '^ *+' conftest.er1 >conftest.err
7368   rm -f conftest.er1
7369   cat conftest.err >&5
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); } >/dev/null; then
7372   if test -s conftest.err; then
7373     ac_cpp_err=$ac_c_preproc_warn_flag
7374   else
7375     ac_cpp_err=
7376   fi
7377 else
7378   ac_cpp_err=yes
7379 fi
7380 if test -z "$ac_cpp_err"; then
7381   # We can compile using X headers with no special include directory.
7382 ac_x_includes=
7383 else
7384   echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387   for ac_dir in $ac_x_header_dirs; do
7388   if test -r "$ac_dir/X11/Intrinsic.h"; then
7389     ac_x_includes=$ac_dir
7390     break
7391   fi
7392 done
7393 fi
7394 rm -f conftest.err conftest.$ac_ext
7395 fi # $ac_x_includes = no
7396
7397 if test "$ac_x_libraries" = no; then
7398   # Check for the libraries.
7399   # See if we find them without any special options.
7400   # Don't add to $LIBS permanently.
7401   ac_save_LIBS=$LIBS
7402   LIBS="-lXt $LIBS"
7403   cat >conftest.$ac_ext <<_ACEOF
7404 #line $LINENO "configure"
7405 /* confdefs.h.  */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h.  */
7410 #include <X11/Intrinsic.h>
7411 int
7412 main ()
7413 {
7414 XtMalloc (0)
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421   (eval $ac_link) 2>&5
7422   ac_status=$?
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } &&
7425          { ac_try='test -s conftest$ac_exeext'
7426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427   (eval $ac_try) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; }; then
7431   LIBS=$ac_save_LIBS
7432 # We can link X programs with no special library path.
7433 ac_x_libraries=
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438 LIBS=$ac_save_LIBS
7439 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7440 do
7441   # Don't even attempt the hair of trying to link an X program!
7442   for ac_extension in a so sl; do
7443     if test -r $ac_dir/libXt.$ac_extension; then
7444       ac_x_libraries=$ac_dir
7445       break 2
7446     fi
7447   done
7448 done
7449 fi
7450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7451 fi # $ac_x_libraries = no
7452
7453 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7454   # Didn't find X anywhere.  Cache the known absence of X.
7455   ac_cv_have_x="have_x=no"
7456 else
7457   # Record where we found X for the cache.
7458   ac_cv_have_x="have_x=yes \
7459                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7460 fi
7461 fi
7462
7463   fi
7464   eval "$ac_cv_have_x"
7465 fi # $with_x != no
7466
7467 if test "$have_x" != yes; then
7468   echo "$as_me:$LINENO: result: $have_x" >&5
7469 echo "${ECHO_T}$have_x" >&6
7470   no_x=yes
7471 else
7472   # If each of the values was on the command line, it overrides each guess.
7473   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7474   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7475   # Update the cache value to reflect the command line values.
7476   ac_cv_have_x="have_x=yes \
7477                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7478   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7479 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7480 fi
7481
7482 if test "$no_x" = yes; then
7483   # Not all programs may use this symbol, but it does not hurt to define it.
7484
7485 cat >>confdefs.h <<\_ACEOF
7486 #define X_DISPLAY_MISSING 1
7487 _ACEOF
7488
7489   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7490 else
7491   if test -n "$x_includes"; then
7492     X_CFLAGS="$X_CFLAGS -I$x_includes"
7493   fi
7494
7495   # It would also be nice to do this for all -L options, not just this one.
7496   if test -n "$x_libraries"; then
7497     X_LIBS="$X_LIBS -L$x_libraries"
7498     # For Solaris; some versions of Sun CC require a space after -R and
7499     # others require no space.  Words are not sufficient . . . .
7500     case `(uname -sr) 2>/dev/null` in
7501     "SunOS 5"*)
7502       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7503 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7504       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7505       cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512
7513 int
7514 main ()
7515 {
7516
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7523   (eval $ac_link) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); } &&
7527          { ac_try='test -s conftest$ac_exeext'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; }; then
7533   ac_R_nospace=yes
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 ac_R_nospace=no
7539 fi
7540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7541       if test $ac_R_nospace = yes; then
7542         echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7544         X_LIBS="$X_LIBS -R$x_libraries"
7545       else
7546         LIBS="$ac_xsave_LIBS -R $x_libraries"
7547         cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554
7555 int
7556 main ()
7557 {
7558
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565   (eval $ac_link) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); } &&
7569          { ac_try='test -s conftest$ac_exeext'
7570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571   (eval $ac_try) 2>&5
7572   ac_status=$?
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); }; }; then
7575   ac_R_space=yes
7576 else
7577   echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 ac_R_space=no
7581 fi
7582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7583         if test $ac_R_space = yes; then
7584           echo "$as_me:$LINENO: result: yes" >&5
7585 echo "${ECHO_T}yes" >&6
7586           X_LIBS="$X_LIBS -R $x_libraries"
7587         else
7588           echo "$as_me:$LINENO: result: neither works" >&5
7589 echo "${ECHO_T}neither works" >&6
7590         fi
7591       fi
7592       LIBS=$ac_xsave_LIBS
7593     esac
7594   fi
7595
7596   # Check for system-dependent libraries X programs must link with.
7597   # Do this before checking for the system-independent R6 libraries
7598   # (-lICE), since we may need -lsocket or whatever for X linking.
7599
7600   if test "$ISC" = yes; then
7601     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7602   else
7603     # Martyn Johnson says this is needed for Ultrix, if the X
7604     # libraries were built with DECnet support.  And Karl Berry says
7605     # the Alpha needs dnet_stub (dnet does not exist).
7606     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7607     cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614
7615 /* Override any gcc2 internal prototype to avoid an error.  */
7616 #ifdef __cplusplus
7617 extern "C"
7618 #endif
7619 /* We use char because int might match the return type of a gcc2
7620    builtin and then its argument prototype would still apply.  */
7621 char XOpenDisplay ();
7622 int
7623 main ()
7624 {
7625 XOpenDisplay ();
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632   (eval $ac_link) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } &&
7636          { ac_try='test -s conftest$ac_exeext'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642   :
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7648 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7649 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   ac_check_lib_save_LIBS=$LIBS
7653 LIBS="-ldnet  $LIBS"
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line $LINENO "configure"
7656 /* confdefs.h.  */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h.  */
7661
7662 /* Override any gcc2 internal prototype to avoid an error.  */
7663 #ifdef __cplusplus
7664 extern "C"
7665 #endif
7666 /* We use char because int might match the return type of a gcc2
7667    builtin and then its argument prototype would still apply.  */
7668 char dnet_ntoa ();
7669 int
7670 main ()
7671 {
7672 dnet_ntoa ();
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679   (eval $ac_link) 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } &&
7683          { ac_try='test -s conftest$ac_exeext'
7684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685   (eval $ac_try) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; }; then
7689   ac_cv_lib_dnet_dnet_ntoa=yes
7690 else
7691   echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 ac_cv_lib_dnet_dnet_ntoa=no
7695 fi
7696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7697 LIBS=$ac_check_lib_save_LIBS
7698 fi
7699 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7700 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7701 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7702   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7703 fi
7704
7705     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7706       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7707 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7708 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   ac_check_lib_save_LIBS=$LIBS
7712 LIBS="-ldnet_stub  $LIBS"
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7715 /* confdefs.h.  */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h.  */
7720
7721 /* Override any gcc2 internal prototype to avoid an error.  */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 /* We use char because int might match the return type of a gcc2
7726    builtin and then its argument prototype would still apply.  */
7727 char dnet_ntoa ();
7728 int
7729 main ()
7730 {
7731 dnet_ntoa ();
7732   ;
7733   return 0;
7734 }
7735 _ACEOF
7736 rm -f conftest.$ac_objext conftest$ac_exeext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7738   (eval $ac_link) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } &&
7742          { ac_try='test -s conftest$ac_exeext'
7743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744   (eval $ac_try) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); }; }; then
7748   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7749 else
7750   echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753 ac_cv_lib_dnet_stub_dnet_ntoa=no
7754 fi
7755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7759 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7760 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7761   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7762 fi
7763
7764     fi
7765 fi
7766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7767     LIBS="$ac_xsave_LIBS"
7768
7769     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7770     # to get the SysV transport functions.
7771     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7772     # needs -lnsl.
7773     # The nsl library prevents programs from opening the X display
7774     # on Irix 5.2, according to T.E. Dickey.
7775     # The functions gethostbyname, getservbyname, and inet_addr are
7776     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7777     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7778 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7779 if test "${ac_cv_func_gethostbyname+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783 #line $LINENO "configure"
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 /* System header to define __stub macros and hopefully few prototypes,
7790     which can conflict with char gethostbyname (); below.
7791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792     <limits.h> exists even on freestanding compilers.  */
7793 #ifdef __STDC__
7794 # include <limits.h>
7795 #else
7796 # include <assert.h>
7797 #endif
7798 /* Override any gcc2 internal prototype to avoid an error.  */
7799 #ifdef __cplusplus
7800 extern "C"
7801 {
7802 #endif
7803 /* We use char because int might match the return type of a gcc2
7804    builtin and then its argument prototype would still apply.  */
7805 char gethostbyname ();
7806 /* The GNU C library defines this for functions which it implements
7807     to always fail with ENOSYS.  Some functions are actually named
7808     something starting with __ and the normal name is an alias.  */
7809 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7810 choke me
7811 #else
7812 char (*f) () = gethostbyname;
7813 #endif
7814 #ifdef __cplusplus
7815 }
7816 #endif
7817
7818 int
7819 main ()
7820 {
7821 return f != gethostbyname;
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828   (eval $ac_link) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } &&
7832          { ac_try='test -s conftest$ac_exeext'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   ac_cv_func_gethostbyname=yes
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 ac_cv_func_gethostbyname=no
7844 fi
7845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7846 fi
7847 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7848 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7849
7850     if test $ac_cv_func_gethostbyname = no; then
7851       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7852 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7853 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   ac_check_lib_save_LIBS=$LIBS
7857 LIBS="-lnsl  $LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line $LINENO "configure"
7860 /* confdefs.h.  */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h.  */
7865
7866 /* Override any gcc2 internal prototype to avoid an error.  */
7867 #ifdef __cplusplus
7868 extern "C"
7869 #endif
7870 /* We use char because int might match the return type of a gcc2
7871    builtin and then its argument prototype would still apply.  */
7872 char gethostbyname ();
7873 int
7874 main ()
7875 {
7876 gethostbyname ();
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883   (eval $ac_link) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); } &&
7887          { ac_try='test -s conftest$ac_exeext'
7888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889   (eval $ac_try) 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; }; then
7893   ac_cv_lib_nsl_gethostbyname=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 ac_cv_lib_nsl_gethostbyname=no
7899 fi
7900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7904 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7905 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7906   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7907 fi
7908
7909       if test $ac_cv_lib_nsl_gethostbyname = no; then
7910         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7911 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7912 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   ac_check_lib_save_LIBS=$LIBS
7916 LIBS="-lbsd  $LIBS"
7917 cat >conftest.$ac_ext <<_ACEOF
7918 #line $LINENO "configure"
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924
7925 /* Override any gcc2 internal prototype to avoid an error.  */
7926 #ifdef __cplusplus
7927 extern "C"
7928 #endif
7929 /* We use char because int might match the return type of a gcc2
7930    builtin and then its argument prototype would still apply.  */
7931 char gethostbyname ();
7932 int
7933 main ()
7934 {
7935 gethostbyname ();
7936   ;
7937   return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942   (eval $ac_link) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } &&
7946          { ac_try='test -s conftest$ac_exeext'
7947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948   (eval $ac_try) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; }; then
7952   ac_cv_lib_bsd_gethostbyname=yes
7953 else
7954   echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 ac_cv_lib_bsd_gethostbyname=no
7958 fi
7959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7960 LIBS=$ac_check_lib_save_LIBS
7961 fi
7962 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7963 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7964 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7965   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7966 fi
7967
7968       fi
7969     fi
7970
7971     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7972     # socket/setsockopt and other routines are undefined under SCO ODT
7973     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7974     # on later versions), says Simon Leinen: it contains gethostby*
7975     # variants that don't use the name server (or something).  -lsocket
7976     # must be given before -lnsl if both are needed.  We assume that
7977     # if connect needs -lnsl, so does gethostbyname.
7978     echo "$as_me:$LINENO: checking for connect" >&5
7979 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7980 if test "${ac_cv_func_connect+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 #line $LINENO "configure"
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990 /* System header to define __stub macros and hopefully few prototypes,
7991     which can conflict with char connect (); below.
7992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7993     <limits.h> exists even on freestanding compilers.  */
7994 #ifdef __STDC__
7995 # include <limits.h>
7996 #else
7997 # include <assert.h>
7998 #endif
7999 /* Override any gcc2 internal prototype to avoid an error.  */
8000 #ifdef __cplusplus
8001 extern "C"
8002 {
8003 #endif
8004 /* We use char because int might match the return type of a gcc2
8005    builtin and then its argument prototype would still apply.  */
8006 char connect ();
8007 /* The GNU C library defines this for functions which it implements
8008     to always fail with ENOSYS.  Some functions are actually named
8009     something starting with __ and the normal name is an alias.  */
8010 #if defined (__stub_connect) || defined (__stub___connect)
8011 choke me
8012 #else
8013 char (*f) () = connect;
8014 #endif
8015 #ifdef __cplusplus
8016 }
8017 #endif
8018
8019 int
8020 main ()
8021 {
8022 return f != connect;
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8029   (eval $ac_link) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -s conftest$ac_exeext'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; }; then
8039   ac_cv_func_connect=yes
8040 else
8041   echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8043
8044 ac_cv_func_connect=no
8045 fi
8046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8047 fi
8048 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8049 echo "${ECHO_T}$ac_cv_func_connect" >&6
8050
8051     if test $ac_cv_func_connect = no; then
8052       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8053 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8054 if test "${ac_cv_lib_socket_connect+set}" = set; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057   ac_check_lib_save_LIBS=$LIBS
8058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8059 cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8061 /* confdefs.h.  */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h.  */
8066
8067 /* Override any gcc2 internal prototype to avoid an error.  */
8068 #ifdef __cplusplus
8069 extern "C"
8070 #endif
8071 /* We use char because int might match the return type of a gcc2
8072    builtin and then its argument prototype would still apply.  */
8073 char connect ();
8074 int
8075 main ()
8076 {
8077 connect ();
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084   (eval $ac_link) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } &&
8088          { ac_try='test -s conftest$ac_exeext'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; }; then
8094   ac_cv_lib_socket_connect=yes
8095 else
8096   echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 ac_cv_lib_socket_connect=no
8100 fi
8101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8102 LIBS=$ac_check_lib_save_LIBS
8103 fi
8104 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8105 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8106 if test $ac_cv_lib_socket_connect = yes; then
8107   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8108 fi
8109
8110     fi
8111
8112     # Guillermo Gomez says -lposix is necessary on A/UX.
8113     echo "$as_me:$LINENO: checking for remove" >&5
8114 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8115 if test "${ac_cv_func_remove+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 /* System header to define __stub macros and hopefully few prototypes,
8126     which can conflict with char remove (); below.
8127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128     <limits.h> exists even on freestanding compilers.  */
8129 #ifdef __STDC__
8130 # include <limits.h>
8131 #else
8132 # include <assert.h>
8133 #endif
8134 /* Override any gcc2 internal prototype to avoid an error.  */
8135 #ifdef __cplusplus
8136 extern "C"
8137 {
8138 #endif
8139 /* We use char because int might match the return type of a gcc2
8140    builtin and then its argument prototype would still apply.  */
8141 char remove ();
8142 /* The GNU C library defines this for functions which it implements
8143     to always fail with ENOSYS.  Some functions are actually named
8144     something starting with __ and the normal name is an alias.  */
8145 #if defined (__stub_remove) || defined (__stub___remove)
8146 choke me
8147 #else
8148 char (*f) () = remove;
8149 #endif
8150 #ifdef __cplusplus
8151 }
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 return f != remove;
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   ac_cv_func_remove=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ac_cv_func_remove=no
8180 fi
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8182 fi
8183 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8184 echo "${ECHO_T}$ac_cv_func_remove" >&6
8185
8186     if test $ac_cv_func_remove = no; then
8187       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8188 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8189 if test "${ac_cv_lib_posix_remove+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   ac_check_lib_save_LIBS=$LIBS
8193 LIBS="-lposix  $LIBS"
8194 cat >conftest.$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8196 /* confdefs.h.  */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h.  */
8201
8202 /* Override any gcc2 internal prototype to avoid an error.  */
8203 #ifdef __cplusplus
8204 extern "C"
8205 #endif
8206 /* We use char because int might match the return type of a gcc2
8207    builtin and then its argument prototype would still apply.  */
8208 char remove ();
8209 int
8210 main ()
8211 {
8212 remove ();
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219   (eval $ac_link) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -s conftest$ac_exeext'
8224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; }; then
8229   ac_cv_lib_posix_remove=yes
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 ac_cv_lib_posix_remove=no
8235 fi
8236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8238 fi
8239 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8240 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8241 if test $ac_cv_lib_posix_remove = yes; then
8242   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8243 fi
8244
8245     fi
8246
8247     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8248     echo "$as_me:$LINENO: checking for shmat" >&5
8249 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8250 if test "${ac_cv_func_shmat+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   cat >conftest.$ac_ext <<_ACEOF
8254 #line $LINENO "configure"
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 /* System header to define __stub macros and hopefully few prototypes,
8261     which can conflict with char shmat (); below.
8262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8263     <limits.h> exists even on freestanding compilers.  */
8264 #ifdef __STDC__
8265 # include <limits.h>
8266 #else
8267 # include <assert.h>
8268 #endif
8269 /* Override any gcc2 internal prototype to avoid an error.  */
8270 #ifdef __cplusplus
8271 extern "C"
8272 {
8273 #endif
8274 /* We use char because int might match the return type of a gcc2
8275    builtin and then its argument prototype would still apply.  */
8276 char shmat ();
8277 /* The GNU C library defines this for functions which it implements
8278     to always fail with ENOSYS.  Some functions are actually named
8279     something starting with __ and the normal name is an alias.  */
8280 #if defined (__stub_shmat) || defined (__stub___shmat)
8281 choke me
8282 #else
8283 char (*f) () = shmat;
8284 #endif
8285 #ifdef __cplusplus
8286 }
8287 #endif
8288
8289 int
8290 main ()
8291 {
8292 return f != shmat;
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299   (eval $ac_link) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -s conftest$ac_exeext'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   ac_cv_func_shmat=yes
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ac_cv_func_shmat=no
8315 fi
8316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8317 fi
8318 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8319 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8320
8321     if test $ac_cv_func_shmat = no; then
8322       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8323 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8324 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-lipc  $LIBS"
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336
8337 /* Override any gcc2 internal prototype to avoid an error.  */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 /* We use char because int might match the return type of a gcc2
8342    builtin and then its argument prototype would still apply.  */
8343 char shmat ();
8344 int
8345 main ()
8346 {
8347 shmat ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354   (eval $ac_link) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -s conftest$ac_exeext'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_cv_lib_ipc_shmat=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_cv_lib_ipc_shmat=no
8370 fi
8371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8373 fi
8374 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8375 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8376 if test $ac_cv_lib_ipc_shmat = yes; then
8377   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8378 fi
8379
8380     fi
8381   fi
8382
8383   # Check for libraries that X11R6 Xt/Xaw programs need.
8384   ac_save_LDFLAGS=$LDFLAGS
8385   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8386   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8387   # check for ICE first), but we must link in the order -lSM -lICE or
8388   # we get undefined symbols.  So assume we have SM if we have ICE.
8389   # These have to be linked with before -lX11, unlike the other
8390   # libraries we check for below, so use a different variable.
8391   # John Interrante, Karl Berry
8392   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8393 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8394 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   ac_check_lib_save_LIBS=$LIBS
8398 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406
8407 /* Override any gcc2 internal prototype to avoid an error.  */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412    builtin and then its argument prototype would still apply.  */
8413 char IceConnectionNumber ();
8414 int
8415 main ()
8416 {
8417 IceConnectionNumber ();
8418   ;
8419   return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424   (eval $ac_link) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   ac_cv_lib_ICE_IceConnectionNumber=yes
8435 else
8436   echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 ac_cv_lib_ICE_IceConnectionNumber=no
8440 fi
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442 LIBS=$ac_check_lib_save_LIBS
8443 fi
8444 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8445 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8446 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8447   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8448 fi
8449
8450   LDFLAGS=$ac_save_LDFLAGS
8451
8452 fi
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477 for ac_header in \
8478         assert.h \
8479         fcntl.h \
8480         grp.h \
8481         pwd.h \
8482         libc.h \
8483         limits.h \
8484         stdarg.h \
8485         stdlib.h \
8486         stdint.h \
8487         string.h \
8488         termios.h \
8489         unistd.h \
8490         sys/byteorder.h \
8491         sys/ioctl.h \
8492         sys/select.h \
8493         sys/sockio.h \
8494         sys/time.h \
8495         sys/socket.h \
8496         arpa/nameser.h \
8497         resolv.h \
8498         mtio.h \
8499         sys/mtio.h \
8500
8501 do
8502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8504   echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 fi
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511 else
8512   # Is the header compilable?
8513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line $LINENO "configure"
8517 /* confdefs.h.  */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h.  */
8522 $ac_includes_default
8523 #include <$ac_header>
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527   (eval $ac_compile) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } &&
8531          { ac_try='test -s conftest.$ac_objext'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; }; then
8537   ac_header_compiler=yes
8538 else
8539   echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 ac_header_compiler=no
8543 fi
8544 rm -f conftest.$ac_objext conftest.$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8546 echo "${ECHO_T}$ac_header_compiler" >&6
8547
8548 # Is the header present?
8549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8551 cat >conftest.$ac_ext <<_ACEOF
8552 #line $LINENO "configure"
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558 #include <$ac_header>
8559 _ACEOF
8560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8562   ac_status=$?
8563   grep -v '^ *+' conftest.er1 >conftest.err
8564   rm -f conftest.er1
8565   cat conftest.err >&5
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } >/dev/null; then
8568   if test -s conftest.err; then
8569     ac_cpp_err=$ac_c_preproc_warn_flag
8570   else
8571     ac_cpp_err=
8572   fi
8573 else
8574   ac_cpp_err=yes
8575 fi
8576 if test -z "$ac_cpp_err"; then
8577   ac_header_preproc=yes
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582   ac_header_preproc=no
8583 fi
8584 rm -f conftest.err conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8586 echo "${ECHO_T}$ac_header_preproc" >&6
8587
8588 # So?  What about this header?
8589 case $ac_header_compiler:$ac_header_preproc in
8590   yes:no )
8591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8595     (
8596       cat <<\_ASBOX
8597 ## ------------------------------------ ##
8598 ## Report this to bug-autoconf@gnu.org. ##
8599 ## ------------------------------------ ##
8600 _ASBOX
8601     ) |
8602       sed "s/^/$as_me: WARNING:     /" >&2
8603     ;;
8604   no:yes )
8605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8607     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8611     (
8612       cat <<\_ASBOX
8613 ## ------------------------------------ ##
8614 ## Report this to bug-autoconf@gnu.org. ##
8615 ## ------------------------------------ ##
8616 _ASBOX
8617     ) |
8618       sed "s/^/$as_me: WARNING:     /" >&2
8619     ;;
8620 esac
8621 echo "$as_me:$LINENO: checking for $ac_header" >&5
8622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8624   echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626   eval "$as_ac_Header=$ac_header_preproc"
8627 fi
8628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8630
8631 fi
8632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8633   cat >>confdefs.h <<_ACEOF
8634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8635 _ACEOF
8636
8637 fi
8638
8639 done
8640
8641 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8643 if test "${ac_cv_header_stdc+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653 #include <stdlib.h>
8654 #include <stdarg.h>
8655 #include <string.h>
8656 #include <float.h>
8657
8658 int
8659 main ()
8660 {
8661
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8668   (eval $ac_compile) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } &&
8672          { ac_try='test -s conftest.$ac_objext'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; }; then
8678   ac_cv_header_stdc=yes
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_cv_header_stdc=no
8684 fi
8685 rm -f conftest.$ac_objext conftest.$ac_ext
8686
8687 if test $ac_cv_header_stdc = yes; then
8688   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8689   cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696 #include <string.h>
8697
8698 _ACEOF
8699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8700   $EGREP "memchr" >/dev/null 2>&1; then
8701   :
8702 else
8703   ac_cv_header_stdc=no
8704 fi
8705 rm -f conftest*
8706
8707 fi
8708
8709 if test $ac_cv_header_stdc = yes; then
8710   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8711   cat >conftest.$ac_ext <<_ACEOF
8712 #line $LINENO "configure"
8713 /* confdefs.h.  */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h.  */
8718 #include <stdlib.h>
8719
8720 _ACEOF
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722   $EGREP "free" >/dev/null 2>&1; then
8723   :
8724 else
8725   ac_cv_header_stdc=no
8726 fi
8727 rm -f conftest*
8728
8729 fi
8730
8731 if test $ac_cv_header_stdc = yes; then
8732   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8733   if test "$cross_compiling" = yes; then
8734   :
8735 else
8736   cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743 #include <ctype.h>
8744 #if ((' ' & 0x0FF) == 0x020)
8745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8747 #else
8748 # define ISLOWER(c) \
8749                    (('a' <= (c) && (c) <= 'i') \
8750                      || ('j' <= (c) && (c) <= 'r') \
8751                      || ('s' <= (c) && (c) <= 'z'))
8752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8753 #endif
8754
8755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8756 int
8757 main ()
8758 {
8759   int i;
8760   for (i = 0; i < 256; i++)
8761     if (XOR (islower (i), ISLOWER (i))
8762         || toupper (i) != TOUPPER (i))
8763       exit(2);
8764   exit (0);
8765 }
8766 _ACEOF
8767 rm -f conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769   (eval $ac_link) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   :
8779 else
8780   echo "$as_me: program exited with status $ac_status" >&5
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ( exit $ac_status )
8785 ac_cv_header_stdc=no
8786 fi
8787 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8788 fi
8789 fi
8790 fi
8791 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8792 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8793 if test $ac_cv_header_stdc = yes; then
8794
8795 cat >>confdefs.h <<\_ACEOF
8796 #define STDC_HEADERS 1
8797 _ACEOF
8798
8799 fi
8800
8801 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8802 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8803 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8804   echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806   cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 #include <sys/types.h>
8814 int
8815 main ()
8816 {
8817 return makedev(0, 0);
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824   (eval $ac_link) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); } &&
8828          { ac_try='test -s conftest$ac_exeext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   ac_cv_header_sys_types_h_makedev=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_header_sys_types_h_makedev=no
8840 fi
8841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8842
8843 fi
8844 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8845 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8846
8847 if test $ac_cv_header_sys_types_h_makedev = no; then
8848 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8849   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8850 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8851 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 fi
8854 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8855 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8856 else
8857   # Is the header compilable?
8858 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8859 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8860 cat >conftest.$ac_ext <<_ACEOF
8861 #line $LINENO "configure"
8862 /* confdefs.h.  */
8863 _ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h.  */
8867 $ac_includes_default
8868 #include <sys/mkdev.h>
8869 _ACEOF
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872   (eval $ac_compile) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -s conftest.$ac_objext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   ac_header_compiler=yes
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 ac_header_compiler=no
8888 fi
8889 rm -f conftest.$ac_objext conftest.$ac_ext
8890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8891 echo "${ECHO_T}$ac_header_compiler" >&6
8892
8893 # Is the header present?
8894 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8895 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8896 cat >conftest.$ac_ext <<_ACEOF
8897 #line $LINENO "configure"
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903 #include <sys/mkdev.h>
8904 _ACEOF
8905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8907   ac_status=$?
8908   grep -v '^ *+' conftest.er1 >conftest.err
8909   rm -f conftest.er1
8910   cat conftest.err >&5
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } >/dev/null; then
8913   if test -s conftest.err; then
8914     ac_cpp_err=$ac_c_preproc_warn_flag
8915   else
8916     ac_cpp_err=
8917   fi
8918 else
8919   ac_cpp_err=yes
8920 fi
8921 if test -z "$ac_cpp_err"; then
8922   ac_header_preproc=yes
8923 else
8924   echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927   ac_header_preproc=no
8928 fi
8929 rm -f conftest.err conftest.$ac_ext
8930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8931 echo "${ECHO_T}$ac_header_preproc" >&6
8932
8933 # So?  What about this header?
8934 case $ac_header_compiler:$ac_header_preproc in
8935   yes:no )
8936     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8937 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8938     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8939 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8940     (
8941       cat <<\_ASBOX
8942 ## ------------------------------------ ##
8943 ## Report this to bug-autoconf@gnu.org. ##
8944 ## ------------------------------------ ##
8945 _ASBOX
8946     ) |
8947       sed "s/^/$as_me: WARNING:     /" >&2
8948     ;;
8949   no:yes )
8950     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8951 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8952     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8953 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8954     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8955 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8956     (
8957       cat <<\_ASBOX
8958 ## ------------------------------------ ##
8959 ## Report this to bug-autoconf@gnu.org. ##
8960 ## ------------------------------------ ##
8961 _ASBOX
8962     ) |
8963       sed "s/^/$as_me: WARNING:     /" >&2
8964     ;;
8965 esac
8966 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8967 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8968 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8969   echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971   ac_cv_header_sys_mkdev_h=$ac_header_preproc
8972 fi
8973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8974 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8975
8976 fi
8977 if test $ac_cv_header_sys_mkdev_h = yes; then
8978
8979 cat >>confdefs.h <<\_ACEOF
8980 #define MAJOR_IN_MKDEV 1
8981 _ACEOF
8982
8983 fi
8984
8985
8986
8987   if test $ac_cv_header_sys_mkdev_h = no; then
8988     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8989   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8990 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8991 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 fi
8994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8995 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8996 else
8997   # Is the header compilable?
8998 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8999 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9001 #line $LINENO "configure"
9002 /* confdefs.h.  */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h.  */
9007 $ac_includes_default
9008 #include <sys/sysmacros.h>
9009 _ACEOF
9010 rm -f conftest.$ac_objext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9012   (eval $ac_compile) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } &&
9016          { ac_try='test -s conftest.$ac_objext'
9017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018   (eval $ac_try) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   ac_header_compiler=yes
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 ac_header_compiler=no
9028 fi
9029 rm -f conftest.$ac_objext conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9031 echo "${ECHO_T}$ac_header_compiler" >&6
9032
9033 # Is the header present?
9034 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9035 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9038 /* confdefs.h.  */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h.  */
9043 #include <sys/sysmacros.h>
9044 _ACEOF
9045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9047   ac_status=$?
9048   grep -v '^ *+' conftest.er1 >conftest.err
9049   rm -f conftest.er1
9050   cat conftest.err >&5
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } >/dev/null; then
9053   if test -s conftest.err; then
9054     ac_cpp_err=$ac_c_preproc_warn_flag
9055   else
9056     ac_cpp_err=
9057   fi
9058 else
9059   ac_cpp_err=yes
9060 fi
9061 if test -z "$ac_cpp_err"; then
9062   ac_header_preproc=yes
9063 else
9064   echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067   ac_header_preproc=no
9068 fi
9069 rm -f conftest.err conftest.$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9071 echo "${ECHO_T}$ac_header_preproc" >&6
9072
9073 # So?  What about this header?
9074 case $ac_header_compiler:$ac_header_preproc in
9075   yes:no )
9076     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9077 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9078     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9079 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9080     (
9081       cat <<\_ASBOX
9082 ## ------------------------------------ ##
9083 ## Report this to bug-autoconf@gnu.org. ##
9084 ## ------------------------------------ ##
9085 _ASBOX
9086     ) |
9087       sed "s/^/$as_me: WARNING:     /" >&2
9088     ;;
9089   no:yes )
9090     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9091 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9092     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9093 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9094     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9095 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9096     (
9097       cat <<\_ASBOX
9098 ## ------------------------------------ ##
9099 ## Report this to bug-autoconf@gnu.org. ##
9100 ## ------------------------------------ ##
9101 _ASBOX
9102     ) |
9103       sed "s/^/$as_me: WARNING:     /" >&2
9104     ;;
9105 esac
9106 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9107 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9108 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9112 fi
9113 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9114 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9115
9116 fi
9117 if test $ac_cv_header_sys_sysmacros_h = yes; then
9118
9119 cat >>confdefs.h <<\_ACEOF
9120 #define MAJOR_IN_SYSMACROS 1
9121 _ACEOF
9122
9123 fi
9124
9125
9126   fi
9127 fi
9128
9129
9130
9131
9132
9133
9134 ac_header_dirent=no
9135 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9136   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9137 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9138 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9140   echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142   cat >conftest.$ac_ext <<_ACEOF
9143 #line $LINENO "configure"
9144 /* confdefs.h.  */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h.  */
9149 #include <sys/types.h>
9150 #include <$ac_hdr>
9151
9152 int
9153 main ()
9154 {
9155 if ((DIR *) 0)
9156 return 0;
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163   (eval $ac_compile) 2>&5
9164   ac_status=$?
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); } &&
9167          { ac_try='test -s conftest.$ac_objext'
9168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169   (eval $ac_try) 2>&5
9170   ac_status=$?
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); }; }; then
9173   eval "$as_ac_Header=yes"
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178 eval "$as_ac_Header=no"
9179 fi
9180 rm -f conftest.$ac_objext conftest.$ac_ext
9181 fi
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9185   cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9187 _ACEOF
9188
9189 ac_header_dirent=$ac_hdr; break
9190 fi
9191
9192 done
9193 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9194 if test $ac_header_dirent = dirent.h; then
9195   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9196 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9197 if test "${ac_cv_search_opendir+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   ac_func_search_save_LIBS=$LIBS
9201 ac_cv_search_opendir=no
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209
9210 /* Override any gcc2 internal prototype to avoid an error.  */
9211 #ifdef __cplusplus
9212 extern "C"
9213 #endif
9214 /* We use char because int might match the return type of a gcc2
9215    builtin and then its argument prototype would still apply.  */
9216 char opendir ();
9217 int
9218 main ()
9219 {
9220 opendir ();
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227   (eval $ac_link) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } &&
9231          { ac_try='test -s conftest$ac_exeext'
9232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233   (eval $ac_try) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237   ac_cv_search_opendir="none required"
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 fi
9243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9244 if test "$ac_cv_search_opendir" = no; then
9245   for ac_lib in dir; do
9246     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9247     cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9249 /* confdefs.h.  */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h.  */
9254
9255 /* Override any gcc2 internal prototype to avoid an error.  */
9256 #ifdef __cplusplus
9257 extern "C"
9258 #endif
9259 /* We use char because int might match the return type of a gcc2
9260    builtin and then its argument prototype would still apply.  */
9261 char opendir ();
9262 int
9263 main ()
9264 {
9265 opendir ();
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9272   (eval $ac_link) 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } &&
9276          { ac_try='test -s conftest$ac_exeext'
9277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278   (eval $ac_try) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; }; then
9282   ac_cv_search_opendir="-l$ac_lib"
9283 break
9284 else
9285   echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 fi
9289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9290   done
9291 fi
9292 LIBS=$ac_func_search_save_LIBS
9293 fi
9294 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9295 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9296 if test "$ac_cv_search_opendir" != no; then
9297   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9298
9299 fi
9300
9301 else
9302   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9303 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9304 if test "${ac_cv_search_opendir+set}" = set; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307   ac_func_search_save_LIBS=$LIBS
9308 ac_cv_search_opendir=no
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316
9317 /* Override any gcc2 internal prototype to avoid an error.  */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 /* We use char because int might match the return type of a gcc2
9322    builtin and then its argument prototype would still apply.  */
9323 char opendir ();
9324 int
9325 main ()
9326 {
9327 opendir ();
9328   ;
9329   return 0;
9330 }
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334   (eval $ac_link) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); } &&
9338          { ac_try='test -s conftest$ac_exeext'
9339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340   (eval $ac_try) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); }; }; then
9344   ac_cv_search_opendir="none required"
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 fi
9350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9351 if test "$ac_cv_search_opendir" = no; then
9352   for ac_lib in x; do
9353     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9354     cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361
9362 /* Override any gcc2 internal prototype to avoid an error.  */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 /* We use char because int might match the return type of a gcc2
9367    builtin and then its argument prototype would still apply.  */
9368 char opendir ();
9369 int
9370 main ()
9371 {
9372 opendir ();
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379   (eval $ac_link) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } &&
9383          { ac_try='test -s conftest$ac_exeext'
9384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385   (eval $ac_try) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); }; }; then
9389   ac_cv_search_opendir="-l$ac_lib"
9390 break
9391 else
9392   echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 fi
9396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9397   done
9398 fi
9399 LIBS=$ac_func_search_save_LIBS
9400 fi
9401 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9402 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9403 if test "$ac_cv_search_opendir" != no; then
9404   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9405
9406 fi
9407
9408 fi
9409
9410 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9411 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9412 if test "${ac_cv_header_stat_broken+set}" = set; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   cat >conftest.$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 #include <sys/types.h>
9423 #include <sys/stat.h>
9424
9425 #if defined(S_ISBLK) && defined(S_IFDIR)
9426 # if S_ISBLK (S_IFDIR)
9427 You lose.
9428 # endif
9429 #endif
9430
9431 #if defined(S_ISBLK) && defined(S_IFCHR)
9432 # if S_ISBLK (S_IFCHR)
9433 You lose.
9434 # endif
9435 #endif
9436
9437 #if defined(S_ISLNK) && defined(S_IFREG)
9438 # if S_ISLNK (S_IFREG)
9439 You lose.
9440 # endif
9441 #endif
9442
9443 #if defined(S_ISSOCK) && defined(S_IFREG)
9444 # if S_ISSOCK (S_IFREG)
9445 You lose.
9446 # endif
9447 #endif
9448
9449 _ACEOF
9450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9451   $EGREP "You lose" >/dev/null 2>&1; then
9452   ac_cv_header_stat_broken=yes
9453 else
9454   ac_cv_header_stat_broken=no
9455 fi
9456 rm -f conftest*
9457
9458 fi
9459 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9460 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9461 if test $ac_cv_header_stat_broken = yes; then
9462
9463 cat >>confdefs.h <<\_ACEOF
9464 #define STAT_MACROS_BROKEN 1
9465 _ACEOF
9466
9467 fi
9468
9469 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9470 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9471 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 /* confdefs.h.  */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h.  */
9481 #include <sys/types.h>
9482 #include <sys/wait.h>
9483 #ifndef WEXITSTATUS
9484 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9485 #endif
9486 #ifndef WIFEXITED
9487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9488 #endif
9489
9490 int
9491 main ()
9492 {
9493   int s;
9494   wait (&s);
9495   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9496   ;
9497   return 0;
9498 }
9499 _ACEOF
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502   (eval $ac_compile) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } &&
9506          { ac_try='test -s conftest.$ac_objext'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   ac_cv_header_sys_wait_h=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_cv_header_sys_wait_h=no
9518 fi
9519 rm -f conftest.$ac_objext conftest.$ac_ext
9520 fi
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9523 if test $ac_cv_header_sys_wait_h = yes; then
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_SYS_WAIT_H 1
9527 _ACEOF
9528
9529 fi
9530
9531 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9533 if test "${ac_cv_header_time+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   cat >conftest.$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9538 /* confdefs.h.  */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h.  */
9543 #include <sys/types.h>
9544 #include <sys/time.h>
9545 #include <time.h>
9546
9547 int
9548 main ()
9549 {
9550 if ((struct tm *) 0)
9551 return 0;
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558   (eval $ac_compile) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -s conftest.$ac_objext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_header_time=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 ac_cv_header_time=no
9574 fi
9575 rm -f conftest.$ac_objext conftest.$ac_ext
9576 fi
9577 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9578 echo "${ECHO_T}$ac_cv_header_time" >&6
9579 if test $ac_cv_header_time = yes; then
9580
9581 cat >>confdefs.h <<\_ACEOF
9582 #define TIME_WITH_SYS_TIME 1
9583 _ACEOF
9584
9585 fi
9586
9587
9588 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9589 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9590 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593   cat >conftest.$ac_ext <<_ACEOF
9594 #line $LINENO "configure"
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600 $ac_includes_default
9601 int
9602 main ()
9603 {
9604 static struct stat ac_aggr;
9605 if (ac_aggr.st_blksize)
9606 return 0;
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613   (eval $ac_compile) 2>&5
9614   ac_status=$?
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); } &&
9617          { ac_try='test -s conftest.$ac_objext'
9618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619   (eval $ac_try) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; }; then
9623   ac_cv_member_struct_stat_st_blksize=yes
9624 else
9625   echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 cat >conftest.$ac_ext <<_ACEOF
9629 #line $LINENO "configure"
9630 /* confdefs.h.  */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h.  */
9635 $ac_includes_default
9636 int
9637 main ()
9638 {
9639 static struct stat ac_aggr;
9640 if (sizeof ac_aggr.st_blksize)
9641 return 0;
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9648   (eval $ac_compile) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } &&
9652          { ac_try='test -s conftest.$ac_objext'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; }; then
9658   ac_cv_member_struct_stat_st_blksize=yes
9659 else
9660   echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_cv_member_struct_stat_st_blksize=no
9664 fi
9665 rm -f conftest.$ac_objext conftest.$ac_ext
9666 fi
9667 rm -f conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9670 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9671 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9672
9673 cat >>confdefs.h <<_ACEOF
9674 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9675 _ACEOF
9676
9677
9678 cat >>confdefs.h <<\_ACEOF
9679 #define HAVE_ST_BLKSIZE 1
9680 _ACEOF
9681
9682 fi
9683
9684
9685 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9686 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9687 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 #line $LINENO "configure"
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697 $ac_includes_default
9698 int
9699 main ()
9700 {
9701 static struct stat ac_aggr;
9702 if (ac_aggr.st_blocks)
9703 return 0;
9704   ;
9705   return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710   (eval $ac_compile) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); } &&
9714          { ac_try='test -s conftest.$ac_objext'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; }; then
9720   ac_cv_member_struct_stat_st_blocks=yes
9721 else
9722   echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 $ac_includes_default
9733 int
9734 main ()
9735 {
9736 static struct stat ac_aggr;
9737 if (sizeof ac_aggr.st_blocks)
9738 return 0;
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745   (eval $ac_compile) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -s conftest.$ac_objext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_cv_member_struct_stat_st_blocks=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_cv_member_struct_stat_st_blocks=no
9761 fi
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9763 fi
9764 rm -f conftest.$ac_objext conftest.$ac_ext
9765 fi
9766 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9767 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9768 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9769
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9772 _ACEOF
9773
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_ST_BLOCKS 1
9777 _ACEOF
9778
9779 else
9780   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9781 fi
9782
9783
9784 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9785 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9786 if test "${ac_cv_struct_tm+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796 #include <sys/types.h>
9797 #include <time.h>
9798
9799 int
9800 main ()
9801 {
9802 struct tm *tp; tp->tm_sec;
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } &&
9813          { ac_try='test -s conftest.$ac_objext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   ac_cv_struct_tm=time.h
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_cv_struct_tm=sys/time.h
9825 fi
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9829 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9830 if test $ac_cv_struct_tm = sys/time.h; then
9831
9832 cat >>confdefs.h <<\_ACEOF
9833 #define TM_IN_SYS_TIME 1
9834 _ACEOF
9835
9836 fi
9837
9838 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9839 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9840 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9841   echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843   cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850 #include <sys/types.h>
9851 #include <$ac_cv_struct_tm>
9852
9853
9854 int
9855 main ()
9856 {
9857 static struct tm ac_aggr;
9858 if (ac_aggr.tm_zone)
9859 return 0;
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866   (eval $ac_compile) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); } &&
9870          { ac_try='test -s conftest.$ac_objext'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876   ac_cv_member_struct_tm_tm_zone=yes
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 #include <sys/types.h>
9889 #include <$ac_cv_struct_tm>
9890
9891
9892 int
9893 main ()
9894 {
9895 static struct tm ac_aggr;
9896 if (sizeof ac_aggr.tm_zone)
9897 return 0;
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904   (eval $ac_compile) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9914   ac_cv_member_struct_tm_tm_zone=yes
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919 ac_cv_member_struct_tm_tm_zone=no
9920 fi
9921 rm -f conftest.$ac_objext conftest.$ac_ext
9922 fi
9923 rm -f conftest.$ac_objext conftest.$ac_ext
9924 fi
9925 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9926 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9927 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9928
9929 cat >>confdefs.h <<_ACEOF
9930 #define HAVE_STRUCT_TM_TM_ZONE 1
9931 _ACEOF
9932
9933
9934 fi
9935
9936 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9937
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_TM_ZONE 1
9940 _ACEOF
9941
9942 else
9943   echo "$as_me:$LINENO: checking for tzname" >&5
9944 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9945 if test "${ac_cv_var_tzname+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 #line $LINENO "configure"
9950 /* confdefs.h.  */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h.  */
9955 #include <time.h>
9956 #ifndef tzname /* For SGI.  */
9957 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9958 #endif
9959
9960 int
9961 main ()
9962 {
9963 atoi(*tzname);
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970   (eval $ac_link) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } &&
9974          { ac_try='test -s conftest$ac_exeext'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_cv_var_tzname=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_cv_var_tzname=no
9986 fi
9987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9988 fi
9989 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9990 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9991   if test $ac_cv_var_tzname = yes; then
9992
9993 cat >>confdefs.h <<\_ACEOF
9994 #define HAVE_TZNAME 1
9995 _ACEOF
9996
9997   fi
9998 fi
9999
10000
10001 echo "$as_me:$LINENO: checking for utime.h" >&5
10002 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10003 if test "${ba_cv_header_utime_h+set}" = set; then
10004   echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006   cat >conftest.$ac_ext <<_ACEOF
10007 #line $LINENO "configure"
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013
10014 #include <sys/types.h>
10015 #include <utime.h>
10016 int
10017 main ()
10018 {
10019 struct utimbuf foo
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026   (eval $ac_compile) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -s conftest.$ac_objext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ba_cv_header_utime_h=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ba_cv_header_utime_h=no
10042 fi
10043 rm -f conftest.$ac_objext conftest.$ac_ext
10044 fi
10045 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10046 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10047 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_UTIME_H 1
10049 _ACEOF
10050
10051
10052 echo "$as_me:$LINENO: checking for socklen_t" >&5
10053 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10054 if test "${ba_cv_header_socklen_t+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   cat >conftest.$ac_ext <<_ACEOF
10058 #line $LINENO "configure"
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064
10065 #include <sys/types.h>
10066 #include <sys/socket.h>
10067 int
10068 main ()
10069 {
10070 socklen_t x
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077   (eval $ac_compile) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); } &&
10081          { ac_try='test -s conftest.$ac_objext'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ba_cv_header_socklen_t=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ba_cv_header_socklen_t=no
10093 fi
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10095 fi
10096 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10097 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10098 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_SOCKLEN_T 1
10100 _ACEOF
10101
10102
10103 echo "$as_me:$LINENO: checking for bigendian" >&5
10104 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10105 if test "${ba_cv_bigendian+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   if test "$cross_compiling" = yes; then
10109   ba_cv_bigendian=no
10110 else
10111   cat >conftest.$ac_ext <<_ACEOF
10112 #line $LINENO "configure"
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10119 _ACEOF
10120 rm -f conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122   (eval $ac_link) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ba_cv_bigendian=yes
10132 else
10133   echo "$as_me: program exited with status $ac_status" >&5
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137 ( exit $ac_status )
10138 ba_cv_bigendian=no
10139 fi
10140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10141 fi
10142 fi
10143 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10144 echo "${ECHO_T}$ba_cv_bigendian" >&6
10145 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_BIGENDIAN 1
10147 _ACEOF
10148
10149
10150
10151 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10152 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10153 if test "${ac_cv_c_const+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   cat >conftest.$ac_ext <<_ACEOF
10157 #line $LINENO "configure"
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163
10164 int
10165 main ()
10166 {
10167 /* FIXME: Include the comments suggested by Paul. */
10168 #ifndef __cplusplus
10169   /* Ultrix mips cc rejects this.  */
10170   typedef int charset[2];
10171   const charset x;
10172   /* SunOS 4.1.1 cc rejects this.  */
10173   char const *const *ccp;
10174   char **p;
10175   /* NEC SVR4.0.2 mips cc rejects this.  */
10176   struct point {int x, y;};
10177   static struct point const zero = {0,0};
10178   /* AIX XL C 1.02.0.0 rejects this.
10179      It does not let you subtract one const X* pointer from another in
10180      an arm of an if-expression whose if-part is not a constant
10181      expression */
10182   const char *g = "string";
10183   ccp = &g + (g ? g-g : 0);
10184   /* HPUX 7.0 cc rejects these. */
10185   ++ccp;
10186   p = (char**) ccp;
10187   ccp = (char const *const *) p;
10188   { /* SCO 3.2v4 cc rejects this.  */
10189     char *t;
10190     char const *s = 0 ? (char *) 0 : (char const *) 0;
10191
10192     *t++ = 0;
10193   }
10194   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10195     int x[] = {25, 17};
10196     const int *foo = &x[0];
10197     ++foo;
10198   }
10199   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10200     typedef const int *iptr;
10201     iptr p = 0;
10202     ++p;
10203   }
10204   { /* AIX XL C 1.02.0.0 rejects this saying
10205        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10206     struct s { int j; const int *ap[3]; };
10207     struct s *b; b->j = 5;
10208   }
10209   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10210     const int foo = 10;
10211   }
10212 #endif
10213
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220   (eval $ac_compile) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } &&
10224          { ac_try='test -s conftest.$ac_objext'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; }; then
10230   ac_cv_c_const=yes
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 ac_cv_c_const=no
10236 fi
10237 rm -f conftest.$ac_objext conftest.$ac_ext
10238 fi
10239 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10240 echo "${ECHO_T}$ac_cv_c_const" >&6
10241 if test $ac_cv_c_const = no; then
10242
10243 cat >>confdefs.h <<\_ACEOF
10244 #define const
10245 _ACEOF
10246
10247 fi
10248
10249
10250
10251 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10252 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10253 fstype=no
10254 # The order of these tests is important.
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262 #include <sys/statvfs.h>
10263 #include <sys/fstyp.h>
10264 _ACEOF
10265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10267   ac_status=$?
10268   grep -v '^ *+' conftest.er1 >conftest.err
10269   rm -f conftest.er1
10270   cat conftest.err >&5
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); } >/dev/null; then
10273   if test -s conftest.err; then
10274     ac_cpp_err=$ac_c_preproc_warn_flag
10275   else
10276     ac_cpp_err=
10277   fi
10278 else
10279   ac_cpp_err=yes
10280 fi
10281 if test -z "$ac_cpp_err"; then
10282   cat >>confdefs.h <<\_ACEOF
10283 #define FSTYPE_STATVFS 1
10284 _ACEOF
10285  fstype=SVR4
10286 else
10287   echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290
10291 fi
10292 rm -f conftest.err conftest.$ac_ext
10293 if test $fstype = no; then
10294 cat >conftest.$ac_ext <<_ACEOF
10295 #line $LINENO "configure"
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301 #include <sys/statfs.h>
10302 #include <sys/fstyp.h>
10303 _ACEOF
10304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10306   ac_status=$?
10307   grep -v '^ *+' conftest.er1 >conftest.err
10308   rm -f conftest.er1
10309   cat conftest.err >&5
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); } >/dev/null; then
10312   if test -s conftest.err; then
10313     ac_cpp_err=$ac_c_preproc_warn_flag
10314   else
10315     ac_cpp_err=
10316   fi
10317 else
10318   ac_cpp_err=yes
10319 fi
10320 if test -z "$ac_cpp_err"; then
10321   cat >>confdefs.h <<\_ACEOF
10322 #define FSTYPE_USG_STATFS 1
10323 _ACEOF
10324  fstype=SVR3
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329
10330 fi
10331 rm -f conftest.err conftest.$ac_ext
10332 fi
10333 if test $fstype = no; then
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10336 /* confdefs.h.  */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h.  */
10341 #include <sys/statfs.h>
10342 #include <sys/vmount.h>
10343 _ACEOF
10344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } >/dev/null; then
10352   if test -s conftest.err; then
10353     ac_cpp_err=$ac_c_preproc_warn_flag
10354   else
10355     ac_cpp_err=
10356   fi
10357 else
10358   ac_cpp_err=yes
10359 fi
10360 if test -z "$ac_cpp_err"; then
10361   cat >>confdefs.h <<\_ACEOF
10362 #define FSTYPE_AIX_STATFS 1
10363 _ACEOF
10364  fstype=AIX
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369
10370 fi
10371 rm -f conftest.err conftest.$ac_ext
10372 fi
10373 if test $fstype = no; then
10374 cat >conftest.$ac_ext <<_ACEOF
10375 #line $LINENO "configure"
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381 #include <mntent.h>
10382 _ACEOF
10383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10385   ac_status=$?
10386   grep -v '^ *+' conftest.er1 >conftest.err
10387   rm -f conftest.er1
10388   cat conftest.err >&5
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); } >/dev/null; then
10391   if test -s conftest.err; then
10392     ac_cpp_err=$ac_c_preproc_warn_flag
10393   else
10394     ac_cpp_err=
10395   fi
10396 else
10397   ac_cpp_err=yes
10398 fi
10399 if test -z "$ac_cpp_err"; then
10400   cat >>confdefs.h <<\_ACEOF
10401 #define FSTYPE_MNTENT 1
10402 _ACEOF
10403  fstype=4.3BSD
10404 else
10405   echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408
10409 fi
10410 rm -f conftest.err conftest.$ac_ext
10411 fi
10412 if test $fstype = no; then
10413 cat >conftest.$ac_ext <<_ACEOF
10414 #line $LINENO "configure"
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420 #include <sys/mount.h>
10421
10422 _ACEOF
10423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10424   $EGREP "f_type;" >/dev/null 2>&1; then
10425   cat >>confdefs.h <<\_ACEOF
10426 #define FSTYPE_STATFS 1
10427 _ACEOF
10428  fstype=4.4BSD/OSF1
10429 fi
10430 rm -f conftest*
10431
10432 fi
10433 if test $fstype = no; then
10434 cat >conftest.$ac_ext <<_ACEOF
10435 #line $LINENO "configure"
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441 #include <sys/mount.h>
10442 #include <sys/fs_types.h>
10443 _ACEOF
10444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10446   ac_status=$?
10447   grep -v '^ *+' conftest.er1 >conftest.err
10448   rm -f conftest.er1
10449   cat conftest.err >&5
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } >/dev/null; then
10452   if test -s conftest.err; then
10453     ac_cpp_err=$ac_c_preproc_warn_flag
10454   else
10455     ac_cpp_err=
10456   fi
10457 else
10458   ac_cpp_err=yes
10459 fi
10460 if test -z "$ac_cpp_err"; then
10461   cat >>confdefs.h <<\_ACEOF
10462 #define FSTYPE_GETMNT 1
10463 _ACEOF
10464  fstype=Ultrix
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469
10470 fi
10471 rm -f conftest.err conftest.$ac_ext
10472 fi
10473 echo "$as_me:$LINENO: result: $fstype" >&5
10474 echo "${ECHO_T}$fstype" >&6
10475
10476 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10477 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10478 if test "${ac_cv_type_signal+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   cat >conftest.$ac_ext <<_ACEOF
10482 #line $LINENO "configure"
10483 /* confdefs.h.  */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h.  */
10488 #include <sys/types.h>
10489 #include <signal.h>
10490 #ifdef signal
10491 # undef signal
10492 #endif
10493 #ifdef __cplusplus
10494 extern "C" void (*signal (int, void (*)(int)))(int);
10495 #else
10496 void (*signal ()) ();
10497 #endif
10498
10499 int
10500 main ()
10501 {
10502 int i;
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509   (eval $ac_compile) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } &&
10513          { ac_try='test -s conftest.$ac_objext'
10514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515   (eval $ac_try) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; }; then
10519   ac_cv_type_signal=void
10520 else
10521   echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10523
10524 ac_cv_type_signal=int
10525 fi
10526 rm -f conftest.$ac_objext conftest.$ac_ext
10527 fi
10528 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10529 echo "${ECHO_T}$ac_cv_type_signal" >&6
10530
10531 cat >>confdefs.h <<_ACEOF
10532 #define RETSIGTYPE $ac_cv_type_signal
10533 _ACEOF
10534
10535
10536
10537 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10538 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10539 if test "${bash_cv_signal_vintage+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542
10543   cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 #include <signal.h>
10551 int
10552 main ()
10553 {
10554
10555     sigset_t ss;
10556     struct sigaction sa;
10557     sigemptyset(&ss); sigsuspend(&ss);
10558     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10559     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10560
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567   (eval $ac_link) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } &&
10571          { ac_try='test -s conftest$ac_exeext'
10572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573   (eval $ac_try) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; }; then
10577   bash_cv_signal_vintage=posix
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582
10583     cat >conftest.$ac_ext <<_ACEOF
10584 #line $LINENO "configure"
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <signal.h>
10591 int
10592 main ()
10593 {
10594
10595         int mask = sigmask(SIGINT);
10596         sigsetmask(mask); sigblock(mask); sigpause(mask);
10597
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604   (eval $ac_link) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -s conftest$ac_exeext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   bash_cv_signal_vintage=4.2bsd
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619
10620       cat >conftest.$ac_ext <<_ACEOF
10621 #line $LINENO "configure"
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627
10628         #include <signal.h>
10629         RETSIGTYPE foo() { }
10630 int
10631 main ()
10632 {
10633
10634                 int mask = sigmask(SIGINT);
10635                 sigset(SIGINT, foo); sigrelse(SIGINT);
10636                 sighold(SIGINT); sigpause(SIGINT);
10637
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644   (eval $ac_link) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } &&
10648          { ac_try='test -s conftest$ac_exeext'
10649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650   (eval $ac_try) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; }; then
10654   bash_cv_signal_vintage=svr3
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659 bash_cv_signal_vintage=v7
10660
10661 fi
10662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10663
10664 fi
10665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666
10667 fi
10668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10669
10670 fi
10671
10672 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10673 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10674 if test "$bash_cv_signal_vintage" = posix; then
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_POSIX_SIGNALS 1
10677 _ACEOF
10678
10679 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_BSD_SIGNALS 1
10682 _ACEOF
10683
10684 elif test "$bash_cv_signal_vintage" = svr3; then
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_USG_SIGHOLD 1
10687 _ACEOF
10688
10689 fi
10690
10691 echo "$as_me:$LINENO: checking for mode_t" >&5
10692 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10693 if test "${ac_cv_type_mode_t+set}" = set; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10698 /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703 $ac_includes_default
10704 int
10705 main ()
10706 {
10707 if ((mode_t *) 0)
10708   return 0;
10709 if (sizeof (mode_t))
10710   return 0;
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717   (eval $ac_compile) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); } &&
10721          { ac_try='test -s conftest.$ac_objext'
10722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723   (eval $ac_try) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; }; then
10727   ac_cv_type_mode_t=yes
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 ac_cv_type_mode_t=no
10733 fi
10734 rm -f conftest.$ac_objext conftest.$ac_ext
10735 fi
10736 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10737 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10738 if test $ac_cv_type_mode_t = yes; then
10739   :
10740 else
10741
10742 cat >>confdefs.h <<_ACEOF
10743 #define mode_t int
10744 _ACEOF
10745
10746 fi
10747
10748 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10749 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10750 if test "${ac_cv_type_uid_t+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 #line $LINENO "configure"
10755 /* confdefs.h.  */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h.  */
10760 #include <sys/types.h>
10761
10762 _ACEOF
10763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10764   $EGREP "uid_t" >/dev/null 2>&1; then
10765   ac_cv_type_uid_t=yes
10766 else
10767   ac_cv_type_uid_t=no
10768 fi
10769 rm -f conftest*
10770
10771 fi
10772 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10773 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10774 if test $ac_cv_type_uid_t = no; then
10775
10776 cat >>confdefs.h <<\_ACEOF
10777 #define uid_t int
10778 _ACEOF
10779
10780
10781 cat >>confdefs.h <<\_ACEOF
10782 #define gid_t int
10783 _ACEOF
10784
10785 fi
10786
10787 echo "$as_me:$LINENO: checking for size_t" >&5
10788 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10789 if test "${ac_cv_type_size_t+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10799 $ac_includes_default
10800 int
10801 main ()
10802 {
10803 if ((size_t *) 0)
10804   return 0;
10805 if (sizeof (size_t))
10806   return 0;
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 rm -f conftest.$ac_objext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813   (eval $ac_compile) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -s conftest.$ac_objext'
10818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819   (eval $ac_try) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   ac_cv_type_size_t=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ac_cv_type_size_t=no
10829 fi
10830 rm -f conftest.$ac_objext conftest.$ac_ext
10831 fi
10832 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10833 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10834 if test $ac_cv_type_size_t = yes; then
10835   :
10836 else
10837
10838 cat >>confdefs.h <<_ACEOF
10839 #define size_t unsigned
10840 _ACEOF
10841
10842 fi
10843
10844 echo "$as_me:$LINENO: checking for pid_t" >&5
10845 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10846 if test "${ac_cv_type_pid_t+set}" = set; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   cat >conftest.$ac_ext <<_ACEOF
10850 #line $LINENO "configure"
10851 /* confdefs.h.  */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h.  */
10856 $ac_includes_default
10857 int
10858 main ()
10859 {
10860 if ((pid_t *) 0)
10861   return 0;
10862 if (sizeof (pid_t))
10863   return 0;
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870   (eval $ac_compile) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); } &&
10874          { ac_try='test -s conftest.$ac_objext'
10875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876   (eval $ac_try) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); }; }; then
10880   ac_cv_type_pid_t=yes
10881 else
10882   echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 ac_cv_type_pid_t=no
10886 fi
10887 rm -f conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10890 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10891 if test $ac_cv_type_pid_t = yes; then
10892   :
10893 else
10894
10895 cat >>confdefs.h <<_ACEOF
10896 #define pid_t int
10897 _ACEOF
10898
10899 fi
10900
10901 echo "$as_me:$LINENO: checking for off_t" >&5
10902 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10903 if test "${ac_cv_type_off_t+set}" = set; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   cat >conftest.$ac_ext <<_ACEOF
10907 #line $LINENO "configure"
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 $ac_includes_default
10914 int
10915 main ()
10916 {
10917 if ((off_t *) 0)
10918   return 0;
10919 if (sizeof (off_t))
10920   return 0;
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927   (eval $ac_compile) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -s conftest.$ac_objext'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; }; then
10937   ac_cv_type_off_t=yes
10938 else
10939   echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_type_off_t=no
10943 fi
10944 rm -f conftest.$ac_objext conftest.$ac_ext
10945 fi
10946 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10947 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10948 if test $ac_cv_type_off_t = yes; then
10949   :
10950 else
10951
10952 cat >>confdefs.h <<_ACEOF
10953 #define off_t long
10954 _ACEOF
10955
10956 fi
10957
10958 echo "$as_me:$LINENO: checking for ino_t" >&5
10959 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
10960 if test "${ac_cv_type_ino_t+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 $ac_includes_default
10971 int
10972 main ()
10973 {
10974 if ((ino_t *) 0)
10975   return 0;
10976 if (sizeof (ino_t))
10977   return 0;
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984   (eval $ac_compile) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } &&
10988          { ac_try='test -s conftest.$ac_objext'
10989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990   (eval $ac_try) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; }; then
10994   ac_cv_type_ino_t=yes
10995 else
10996   echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10998
10999 ac_cv_type_ino_t=no
11000 fi
11001 rm -f conftest.$ac_objext conftest.$ac_ext
11002 fi
11003 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11004 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11005 if test $ac_cv_type_ino_t = yes; then
11006   :
11007 else
11008
11009 cat >>confdefs.h <<_ACEOF
11010 #define ino_t unsigned long
11011 _ACEOF
11012
11013 fi
11014
11015 echo "$as_me:$LINENO: checking for dev_t" >&5
11016 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11017 if test "${ac_cv_type_dev_t+set}" = set; then
11018   echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020   cat >conftest.$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 $ac_includes_default
11028 int
11029 main ()
11030 {
11031 if ((dev_t *) 0)
11032   return 0;
11033 if (sizeof (dev_t))
11034   return 0;
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041   (eval $ac_compile) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } &&
11045          { ac_try='test -s conftest.$ac_objext'
11046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047   (eval $ac_try) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; }; then
11051   ac_cv_type_dev_t=yes
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_cv_type_dev_t=no
11057 fi
11058 rm -f conftest.$ac_objext conftest.$ac_ext
11059 fi
11060 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11061 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11062 if test $ac_cv_type_dev_t = yes; then
11063   :
11064 else
11065
11066 cat >>confdefs.h <<_ACEOF
11067 #define dev_t unsigned long
11068 _ACEOF
11069
11070 fi
11071
11072 echo "$as_me:$LINENO: checking for daddr_t" >&5
11073 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11074 if test "${ac_cv_type_daddr_t+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084 $ac_includes_default
11085 int
11086 main ()
11087 {
11088 if ((daddr_t *) 0)
11089   return 0;
11090 if (sizeof (daddr_t))
11091   return 0;
11092   ;
11093   return 0;
11094 }
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098   (eval $ac_compile) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } &&
11102          { ac_try='test -s conftest.$ac_objext'
11103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104   (eval $ac_try) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; }; then
11108   ac_cv_type_daddr_t=yes
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 ac_cv_type_daddr_t=no
11114 fi
11115 rm -f conftest.$ac_objext conftest.$ac_ext
11116 fi
11117 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11118 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11119 if test $ac_cv_type_daddr_t = yes; then
11120   :
11121 else
11122
11123 cat >>confdefs.h <<_ACEOF
11124 #define daddr_t long
11125 _ACEOF
11126
11127 fi
11128
11129 echo "$as_me:$LINENO: checking for major_t" >&5
11130 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11131 if test "${ac_cv_type_major_t+set}" = set; then
11132   echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134   cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11136 /* confdefs.h.  */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h.  */
11141 $ac_includes_default
11142 int
11143 main ()
11144 {
11145 if ((major_t *) 0)
11146   return 0;
11147 if (sizeof (major_t))
11148   return 0;
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155   (eval $ac_compile) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -s conftest.$ac_objext'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   ac_cv_type_major_t=yes
11166 else
11167   echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 ac_cv_type_major_t=no
11171 fi
11172 rm -f conftest.$ac_objext conftest.$ac_ext
11173 fi
11174 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11175 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11176 if test $ac_cv_type_major_t = yes; then
11177   :
11178 else
11179
11180 cat >>confdefs.h <<_ACEOF
11181 #define major_t int
11182 _ACEOF
11183
11184 fi
11185
11186 echo "$as_me:$LINENO: checking for minor_t" >&5
11187 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11188 if test "${ac_cv_type_minor_t+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198 $ac_includes_default
11199 int
11200 main ()
11201 {
11202 if ((minor_t *) 0)
11203   return 0;
11204 if (sizeof (minor_t))
11205   return 0;
11206   ;
11207   return 0;
11208 }
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212   (eval $ac_compile) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } &&
11216          { ac_try='test -s conftest.$ac_objext'
11217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218   (eval $ac_try) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; }; then
11222   ac_cv_type_minor_t=yes
11223 else
11224   echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_cv_type_minor_t=no
11228 fi
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11230 fi
11231 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11232 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11233 if test $ac_cv_type_minor_t = yes; then
11234   :
11235 else
11236
11237 cat >>confdefs.h <<_ACEOF
11238 #define minor_t int
11239 _ACEOF
11240
11241 fi
11242
11243 echo "$as_me:$LINENO: checking for ssize_t" >&5
11244 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11245 if test "${ac_cv_type_ssize_t+set}" = set; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 $ac_includes_default
11256 int
11257 main ()
11258 {
11259 if ((ssize_t *) 0)
11260   return 0;
11261 if (sizeof (ssize_t))
11262   return 0;
11263   ;
11264   return 0;
11265 }
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269   (eval $ac_compile) 2>&5
11270   ac_status=$?
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -s conftest.$ac_objext'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; }; then
11279   ac_cv_type_ssize_t=yes
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 ac_cv_type_ssize_t=no
11285 fi
11286 rm -f conftest.$ac_objext conftest.$ac_ext
11287 fi
11288 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11289 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11290 if test $ac_cv_type_ssize_t = yes; then
11291   :
11292 else
11293
11294 cat >>confdefs.h <<_ACEOF
11295 #define ssize_t int
11296 _ACEOF
11297
11298 fi
11299
11300 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11301 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11302 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305   cat >conftest.$ac_ext <<_ACEOF
11306 #line $LINENO "configure"
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 $ac_includes_default
11313 int
11314 main ()
11315 {
11316 static struct stat ac_aggr;
11317 if (ac_aggr.st_blocks)
11318 return 0;
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11325   (eval $ac_compile) 2>&5
11326   ac_status=$?
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); } &&
11329          { ac_try='test -s conftest.$ac_objext'
11330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331   (eval $ac_try) 2>&5
11332   ac_status=$?
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); }; }; then
11335   ac_cv_member_struct_stat_st_blocks=yes
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 $ac_includes_default
11348 int
11349 main ()
11350 {
11351 static struct stat ac_aggr;
11352 if (sizeof ac_aggr.st_blocks)
11353 return 0;
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 rm -f conftest.$ac_objext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11360   (eval $ac_compile) 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); } &&
11364          { ac_try='test -s conftest.$ac_objext'
11365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366   (eval $ac_try) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }; then
11370   ac_cv_member_struct_stat_st_blocks=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_cv_member_struct_stat_st_blocks=no
11376 fi
11377 rm -f conftest.$ac_objext conftest.$ac_ext
11378 fi
11379 rm -f conftest.$ac_objext conftest.$ac_ext
11380 fi
11381 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11382 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11383 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11384
11385 cat >>confdefs.h <<_ACEOF
11386 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11387 _ACEOF
11388
11389
11390 cat >>confdefs.h <<\_ACEOF
11391 #define HAVE_ST_BLOCKS 1
11392 _ACEOF
11393
11394 else
11395   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11396 fi
11397
11398
11399
11400 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11401 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11402 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412 $ac_includes_default
11413 int
11414 main ()
11415 {
11416 static struct stat ac_aggr;
11417 if (ac_aggr.st_rdev)
11418 return 0;
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425   (eval $ac_compile) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); } &&
11429          { ac_try='test -s conftest.$ac_objext'
11430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431   (eval $ac_try) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   ac_cv_member_struct_stat_st_rdev=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 $ac_includes_default
11448 int
11449 main ()
11450 {
11451 static struct stat ac_aggr;
11452 if (sizeof ac_aggr.st_rdev)
11453 return 0;
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460   (eval $ac_compile) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } &&
11464          { ac_try='test -s conftest.$ac_objext'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   ac_cv_member_struct_stat_st_rdev=yes
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_cv_member_struct_stat_st_rdev=no
11476 fi
11477 rm -f conftest.$ac_objext conftest.$ac_ext
11478 fi
11479 rm -f conftest.$ac_objext conftest.$ac_ext
11480 fi
11481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11482 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11483 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11484
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_STRUCT_STAT_ST_RDEV 1
11487 _ACEOF
11488
11489
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_ST_RDEV 1
11492 _ACEOF
11493
11494 fi
11495
11496
11497 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11498 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11499 if test "${ac_cv_struct_tm+set}" = set; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502   cat >conftest.$ac_ext <<_ACEOF
11503 #line $LINENO "configure"
11504 /* confdefs.h.  */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h.  */
11509 #include <sys/types.h>
11510 #include <time.h>
11511
11512 int
11513 main ()
11514 {
11515 struct tm *tp; tp->tm_sec;
11516   ;
11517   return 0;
11518 }
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522   (eval $ac_compile) 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } &&
11526          { ac_try='test -s conftest.$ac_objext'
11527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528   (eval $ac_try) 2>&5
11529   ac_status=$?
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); }; }; then
11532   ac_cv_struct_tm=time.h
11533 else
11534   echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537 ac_cv_struct_tm=sys/time.h
11538 fi
11539 rm -f conftest.$ac_objext conftest.$ac_ext
11540 fi
11541 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11542 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11543 if test $ac_cv_struct_tm = sys/time.h; then
11544
11545 cat >>confdefs.h <<\_ACEOF
11546 #define TM_IN_SYS_TIME 1
11547 _ACEOF
11548
11549 fi
11550
11551 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11552 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11553 if test "${ac_cv_c_const+set}" = set; then
11554   echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556   cat >conftest.$ac_ext <<_ACEOF
11557 #line $LINENO "configure"
11558 /* confdefs.h.  */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h.  */
11563
11564 int
11565 main ()
11566 {
11567 /* FIXME: Include the comments suggested by Paul. */
11568 #ifndef __cplusplus
11569   /* Ultrix mips cc rejects this.  */
11570   typedef int charset[2];
11571   const charset x;
11572   /* SunOS 4.1.1 cc rejects this.  */
11573   char const *const *ccp;
11574   char **p;
11575   /* NEC SVR4.0.2 mips cc rejects this.  */
11576   struct point {int x, y;};
11577   static struct point const zero = {0,0};
11578   /* AIX XL C 1.02.0.0 rejects this.
11579      It does not let you subtract one const X* pointer from another in
11580      an arm of an if-expression whose if-part is not a constant
11581      expression */
11582   const char *g = "string";
11583   ccp = &g + (g ? g-g : 0);
11584   /* HPUX 7.0 cc rejects these. */
11585   ++ccp;
11586   p = (char**) ccp;
11587   ccp = (char const *const *) p;
11588   { /* SCO 3.2v4 cc rejects this.  */
11589     char *t;
11590     char const *s = 0 ? (char *) 0 : (char const *) 0;
11591
11592     *t++ = 0;
11593   }
11594   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11595     int x[] = {25, 17};
11596     const int *foo = &x[0];
11597     ++foo;
11598   }
11599   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11600     typedef const int *iptr;
11601     iptr p = 0;
11602     ++p;
11603   }
11604   { /* AIX XL C 1.02.0.0 rejects this saying
11605        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11606     struct s { int j; const int *ap[3]; };
11607     struct s *b; b->j = 5;
11608   }
11609   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11610     const int foo = 10;
11611   }
11612 #endif
11613
11614   ;
11615   return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620   (eval $ac_compile) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); } &&
11624          { ac_try='test -s conftest.$ac_objext'
11625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626   (eval $ac_try) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); }; }; then
11630   ac_cv_c_const=yes
11631 else
11632   echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11634
11635 ac_cv_c_const=no
11636 fi
11637 rm -f conftest.$ac_objext conftest.$ac_ext
11638 fi
11639 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11640 echo "${ECHO_T}$ac_cv_c_const" >&6
11641 if test $ac_cv_c_const = no; then
11642
11643 cat >>confdefs.h <<\_ACEOF
11644 #define const
11645 _ACEOF
11646
11647 fi
11648
11649
11650
11651 echo "$as_me:$LINENO: checking for char" >&5
11652 echo $ECHO_N "checking for char... $ECHO_C" >&6
11653 if test "${ac_cv_type_char+set}" = set; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656   cat >conftest.$ac_ext <<_ACEOF
11657 #line $LINENO "configure"
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663 $ac_includes_default
11664 int
11665 main ()
11666 {
11667 if ((char *) 0)
11668   return 0;
11669 if (sizeof (char))
11670   return 0;
11671   ;
11672   return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677   (eval $ac_compile) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -s conftest.$ac_objext'
11682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683   (eval $ac_try) 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   ac_cv_type_char=yes
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_cv_type_char=no
11693 fi
11694 rm -f conftest.$ac_objext conftest.$ac_ext
11695 fi
11696 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11697 echo "${ECHO_T}$ac_cv_type_char" >&6
11698
11699 echo "$as_me:$LINENO: checking size of char" >&5
11700 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11701 if test "${ac_cv_sizeof_char+set}" = set; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704   if test "$ac_cv_type_char" = yes; then
11705   # The cast to unsigned long works around a bug in the HP C Compiler
11706   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11707   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11708   # This bug is HP SR number 8606223364.
11709   if test "$cross_compiling" = yes; then
11710   # Depending upon the size, compute the lo and hi bounds.
11711 cat >conftest.$ac_ext <<_ACEOF
11712 #line $LINENO "configure"
11713 /* confdefs.h.  */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h.  */
11718 $ac_includes_default
11719 int
11720 main ()
11721 {
11722 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11723 test_array [0] = 0
11724
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 rm -f conftest.$ac_objext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11731   (eval $ac_compile) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } &&
11735          { ac_try='test -s conftest.$ac_objext'
11736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737   (eval $ac_try) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; }; then
11741   ac_lo=0 ac_mid=0
11742   while :; do
11743     cat >conftest.$ac_ext <<_ACEOF
11744 #line $LINENO "configure"
11745 /* confdefs.h.  */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h.  */
11750 $ac_includes_default
11751 int
11752 main ()
11753 {
11754 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11755 test_array [0] = 0
11756
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763   (eval $ac_compile) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -s conftest.$ac_objext'
11768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769   (eval $ac_try) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; }; then
11773   ac_hi=$ac_mid; break
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_lo=`expr $ac_mid + 1`
11779                     if test $ac_lo -le $ac_mid; then
11780                       ac_lo= ac_hi=
11781                       break
11782                     fi
11783                     ac_mid=`expr 2 '*' $ac_mid + 1`
11784 fi
11785 rm -f conftest.$ac_objext conftest.$ac_ext
11786   done
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 cat >conftest.$ac_ext <<_ACEOF
11792 #line $LINENO "configure"
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798 $ac_includes_default
11799 int
11800 main ()
11801 {
11802 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11803 test_array [0] = 0
11804
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811   (eval $ac_compile) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -s conftest.$ac_objext'
11816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817   (eval $ac_try) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; }; then
11821   ac_hi=-1 ac_mid=-1
11822   while :; do
11823     cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 $ac_includes_default
11831 int
11832 main ()
11833 {
11834 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11835 test_array [0] = 0
11836
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11843   (eval $ac_compile) 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } &&
11847          { ac_try='test -s conftest.$ac_objext'
11848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849   (eval $ac_try) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   ac_lo=$ac_mid; break
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858 ac_hi=`expr '(' $ac_mid ')' - 1`
11859                        if test $ac_mid -le $ac_hi; then
11860                          ac_lo= ac_hi=
11861                          break
11862                        fi
11863                        ac_mid=`expr 2 '*' $ac_mid`
11864 fi
11865 rm -f conftest.$ac_objext conftest.$ac_ext
11866   done
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 ac_lo= ac_hi=
11872 fi
11873 rm -f conftest.$ac_objext conftest.$ac_ext
11874 fi
11875 rm -f conftest.$ac_objext conftest.$ac_ext
11876 # Binary search between lo and hi bounds.
11877 while test "x$ac_lo" != "x$ac_hi"; do
11878   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11879   cat >conftest.$ac_ext <<_ACEOF
11880 #line $LINENO "configure"
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886 $ac_includes_default
11887 int
11888 main ()
11889 {
11890 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11891 test_array [0] = 0
11892
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899   (eval $ac_compile) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -s conftest.$ac_objext'
11904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905   (eval $ac_try) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; }; then
11909   ac_hi=$ac_mid
11910 else
11911   echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_lo=`expr '(' $ac_mid ')' + 1`
11915 fi
11916 rm -f conftest.$ac_objext conftest.$ac_ext
11917 done
11918 case $ac_lo in
11919 ?*) ac_cv_sizeof_char=$ac_lo;;
11920 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11921 See \`config.log' for more details." >&5
11922 echo "$as_me: error: cannot compute sizeof (char), 77
11923 See \`config.log' for more details." >&2;}
11924    { (exit 1); exit 1; }; } ;;
11925 esac
11926 else
11927   if test "$cross_compiling" = yes; then
11928   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11929 See \`config.log' for more details." >&5
11930 echo "$as_me: error: cannot run test program while cross compiling
11931 See \`config.log' for more details." >&2;}
11932    { (exit 1); exit 1; }; }
11933 else
11934   cat >conftest.$ac_ext <<_ACEOF
11935 #line $LINENO "configure"
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 $ac_includes_default
11942 long longval () { return (long) (sizeof (char)); }
11943 unsigned long ulongval () { return (long) (sizeof (char)); }
11944 #include <stdio.h>
11945 #include <stdlib.h>
11946 int
11947 main ()
11948 {
11949
11950   FILE *f = fopen ("conftest.val", "w");
11951   if (! f)
11952     exit (1);
11953   if (((long) (sizeof (char))) < 0)
11954     {
11955       long i = longval ();
11956       if (i != ((long) (sizeof (char))))
11957         exit (1);
11958       fprintf (f, "%ld\n", i);
11959     }
11960   else
11961     {
11962       unsigned long i = ulongval ();
11963       if (i != ((long) (sizeof (char))))
11964         exit (1);
11965       fprintf (f, "%lu\n", i);
11966     }
11967   exit (ferror (f) || fclose (f) != 0);
11968
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975   (eval $ac_link) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   ac_cv_sizeof_char=`cat conftest.val`
11985 else
11986   echo "$as_me: program exited with status $ac_status" >&5
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ( exit $ac_status )
11991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11992 See \`config.log' for more details." >&5
11993 echo "$as_me: error: cannot compute sizeof (char), 77
11994 See \`config.log' for more details." >&2;}
11995    { (exit 1); exit 1; }; }
11996 fi
11997 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11998 fi
11999 fi
12000 rm -f conftest.val
12001 else
12002   ac_cv_sizeof_char=0
12003 fi
12004 fi
12005 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12006 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12007 cat >>confdefs.h <<_ACEOF
12008 #define SIZEOF_CHAR $ac_cv_sizeof_char
12009 _ACEOF
12010
12011
12012 echo "$as_me:$LINENO: checking for short int" >&5
12013 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12014 if test "${ac_cv_type_short_int+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 $ac_includes_default
12025 int
12026 main ()
12027 {
12028 if ((short int *) 0)
12029   return 0;
12030 if (sizeof (short int))
12031   return 0;
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038   (eval $ac_compile) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -s conftest.$ac_objext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   ac_cv_type_short_int=yes
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 ac_cv_type_short_int=no
12054 fi
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12058 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12059
12060 echo "$as_me:$LINENO: checking size of short int" >&5
12061 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12062 if test "${ac_cv_sizeof_short_int+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   if test "$ac_cv_type_short_int" = yes; then
12066   # The cast to unsigned long works around a bug in the HP C Compiler
12067   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12068   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12069   # This bug is HP SR number 8606223364.
12070   if test "$cross_compiling" = yes; then
12071   # Depending upon the size, compute the lo and hi bounds.
12072 cat >conftest.$ac_ext <<_ACEOF
12073 #line $LINENO "configure"
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079 $ac_includes_default
12080 int
12081 main ()
12082 {
12083 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12084 test_array [0] = 0
12085
12086   ;
12087   return 0;
12088 }
12089 _ACEOF
12090 rm -f conftest.$ac_objext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092   (eval $ac_compile) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); } &&
12096          { ac_try='test -s conftest.$ac_objext'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; }; then
12102   ac_lo=0 ac_mid=0
12103   while :; do
12104     cat >conftest.$ac_ext <<_ACEOF
12105 #line $LINENO "configure"
12106 /* confdefs.h.  */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h.  */
12111 $ac_includes_default
12112 int
12113 main ()
12114 {
12115 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12116 test_array [0] = 0
12117
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124   (eval $ac_compile) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -s conftest.$ac_objext'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   ac_hi=$ac_mid; break
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_lo=`expr $ac_mid + 1`
12140                     if test $ac_lo -le $ac_mid; then
12141                       ac_lo= ac_hi=
12142                       break
12143                     fi
12144                     ac_mid=`expr 2 '*' $ac_mid + 1`
12145 fi
12146 rm -f conftest.$ac_objext conftest.$ac_ext
12147   done
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 cat >conftest.$ac_ext <<_ACEOF
12153 #line $LINENO "configure"
12154 /* confdefs.h.  */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h.  */
12159 $ac_includes_default
12160 int
12161 main ()
12162 {
12163 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12164 test_array [0] = 0
12165
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12172   (eval $ac_compile) 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); } &&
12176          { ac_try='test -s conftest.$ac_objext'
12177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178   (eval $ac_try) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; }; then
12182   ac_hi=-1 ac_mid=-1
12183   while :; do
12184     cat >conftest.$ac_ext <<_ACEOF
12185 #line $LINENO "configure"
12186 /* confdefs.h.  */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h.  */
12191 $ac_includes_default
12192 int
12193 main ()
12194 {
12195 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12196 test_array [0] = 0
12197
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204   (eval $ac_compile) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -s conftest.$ac_objext'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; }; then
12214   ac_lo=$ac_mid; break
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_hi=`expr '(' $ac_mid ')' - 1`
12220                        if test $ac_mid -le $ac_hi; then
12221                          ac_lo= ac_hi=
12222                          break
12223                        fi
12224                        ac_mid=`expr 2 '*' $ac_mid`
12225 fi
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12227   done
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 ac_lo= ac_hi=
12233 fi
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12235 fi
12236 rm -f conftest.$ac_objext conftest.$ac_ext
12237 # Binary search between lo and hi bounds.
12238 while test "x$ac_lo" != "x$ac_hi"; do
12239   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12240   cat >conftest.$ac_ext <<_ACEOF
12241 #line $LINENO "configure"
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 $ac_includes_default
12248 int
12249 main ()
12250 {
12251 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12252 test_array [0] = 0
12253
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260   (eval $ac_compile) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); } &&
12264          { ac_try='test -s conftest.$ac_objext'
12265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266   (eval $ac_try) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   ac_hi=$ac_mid
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 ac_lo=`expr '(' $ac_mid ')' + 1`
12276 fi
12277 rm -f conftest.$ac_objext conftest.$ac_ext
12278 done
12279 case $ac_lo in
12280 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12282 See \`config.log' for more details." >&5
12283 echo "$as_me: error: cannot compute sizeof (short int), 77
12284 See \`config.log' for more details." >&2;}
12285    { (exit 1); exit 1; }; } ;;
12286 esac
12287 else
12288   if test "$cross_compiling" = yes; then
12289   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12290 See \`config.log' for more details." >&5
12291 echo "$as_me: error: cannot run test program while cross compiling
12292 See \`config.log' for more details." >&2;}
12293    { (exit 1); exit 1; }; }
12294 else
12295   cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12297 /* confdefs.h.  */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h.  */
12302 $ac_includes_default
12303 long longval () { return (long) (sizeof (short int)); }
12304 unsigned long ulongval () { return (long) (sizeof (short int)); }
12305 #include <stdio.h>
12306 #include <stdlib.h>
12307 int
12308 main ()
12309 {
12310
12311   FILE *f = fopen ("conftest.val", "w");
12312   if (! f)
12313     exit (1);
12314   if (((long) (sizeof (short int))) < 0)
12315     {
12316       long i = longval ();
12317       if (i != ((long) (sizeof (short int))))
12318         exit (1);
12319       fprintf (f, "%ld\n", i);
12320     }
12321   else
12322     {
12323       unsigned long i = ulongval ();
12324       if (i != ((long) (sizeof (short int))))
12325         exit (1);
12326       fprintf (f, "%lu\n", i);
12327     }
12328   exit (ferror (f) || fclose (f) != 0);
12329
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336   (eval $ac_link) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; }; then
12345   ac_cv_sizeof_short_int=`cat conftest.val`
12346 else
12347   echo "$as_me: program exited with status $ac_status" >&5
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351 ( exit $ac_status )
12352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12353 See \`config.log' for more details." >&5
12354 echo "$as_me: error: cannot compute sizeof (short int), 77
12355 See \`config.log' for more details." >&2;}
12356    { (exit 1); exit 1; }; }
12357 fi
12358 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12359 fi
12360 fi
12361 rm -f conftest.val
12362 else
12363   ac_cv_sizeof_short_int=0
12364 fi
12365 fi
12366 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12367 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12368 cat >>confdefs.h <<_ACEOF
12369 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12370 _ACEOF
12371
12372
12373 echo "$as_me:$LINENO: checking for int" >&5
12374 echo $ECHO_N "checking for int... $ECHO_C" >&6
12375 if test "${ac_cv_type_int+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   cat >conftest.$ac_ext <<_ACEOF
12379 #line $LINENO "configure"
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 $ac_includes_default
12386 int
12387 main ()
12388 {
12389 if ((int *) 0)
12390   return 0;
12391 if (sizeof (int))
12392   return 0;
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 rm -f conftest.$ac_objext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12399   (eval $ac_compile) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); } &&
12403          { ac_try='test -s conftest.$ac_objext'
12404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405   (eval $ac_try) 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); }; }; then
12409   ac_cv_type_int=yes
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 ac_cv_type_int=no
12415 fi
12416 rm -f conftest.$ac_objext conftest.$ac_ext
12417 fi
12418 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12419 echo "${ECHO_T}$ac_cv_type_int" >&6
12420
12421 echo "$as_me:$LINENO: checking size of int" >&5
12422 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12423 if test "${ac_cv_sizeof_int+set}" = set; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   if test "$ac_cv_type_int" = yes; then
12427   # The cast to unsigned long works around a bug in the HP C Compiler
12428   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12429   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12430   # This bug is HP SR number 8606223364.
12431   if test "$cross_compiling" = yes; then
12432   # Depending upon the size, compute the lo and hi bounds.
12433 cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 $ac_includes_default
12441 int
12442 main ()
12443 {
12444 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12445 test_array [0] = 0
12446
12447   ;
12448   return 0;
12449 }
12450 _ACEOF
12451 rm -f conftest.$ac_objext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12453   (eval $ac_compile) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } &&
12457          { ac_try='test -s conftest.$ac_objext'
12458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459   (eval $ac_try) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; }; then
12463   ac_lo=0 ac_mid=0
12464   while :; do
12465     cat >conftest.$ac_ext <<_ACEOF
12466 #line $LINENO "configure"
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472 $ac_includes_default
12473 int
12474 main ()
12475 {
12476 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12477 test_array [0] = 0
12478
12479   ;
12480   return 0;
12481 }
12482 _ACEOF
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485   (eval $ac_compile) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -s conftest.$ac_objext'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; }; then
12495   ac_hi=$ac_mid; break
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500 ac_lo=`expr $ac_mid + 1`
12501                     if test $ac_lo -le $ac_mid; then
12502                       ac_lo= ac_hi=
12503                       break
12504                     fi
12505                     ac_mid=`expr 2 '*' $ac_mid + 1`
12506 fi
12507 rm -f conftest.$ac_objext conftest.$ac_ext
12508   done
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 cat >conftest.$ac_ext <<_ACEOF
12514 #line $LINENO "configure"
12515 /* confdefs.h.  */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h.  */
12520 $ac_includes_default
12521 int
12522 main ()
12523 {
12524 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12525 test_array [0] = 0
12526
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533   (eval $ac_compile) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -s conftest.$ac_objext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   ac_hi=-1 ac_mid=-1
12544   while :; do
12545     cat >conftest.$ac_ext <<_ACEOF
12546 #line $LINENO "configure"
12547 /* confdefs.h.  */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h.  */
12552 $ac_includes_default
12553 int
12554 main ()
12555 {
12556 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12557 test_array [0] = 0
12558
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12565   (eval $ac_compile) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -s conftest.$ac_objext'
12570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571   (eval $ac_try) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; }; then
12575   ac_lo=$ac_mid; break
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580 ac_hi=`expr '(' $ac_mid ')' - 1`
12581                        if test $ac_mid -le $ac_hi; then
12582                          ac_lo= ac_hi=
12583                          break
12584                        fi
12585                        ac_mid=`expr 2 '*' $ac_mid`
12586 fi
12587 rm -f conftest.$ac_objext conftest.$ac_ext
12588   done
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 ac_lo= ac_hi=
12594 fi
12595 rm -f conftest.$ac_objext conftest.$ac_ext
12596 fi
12597 rm -f conftest.$ac_objext conftest.$ac_ext
12598 # Binary search between lo and hi bounds.
12599 while test "x$ac_lo" != "x$ac_hi"; do
12600   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12601   cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 $ac_includes_default
12609 int
12610 main ()
12611 {
12612 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12613 test_array [0] = 0
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621   (eval $ac_compile) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -s conftest.$ac_objext'
12626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627   (eval $ac_try) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; }; then
12631   ac_hi=$ac_mid
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_lo=`expr '(' $ac_mid ')' + 1`
12637 fi
12638 rm -f conftest.$ac_objext conftest.$ac_ext
12639 done
12640 case $ac_lo in
12641 ?*) ac_cv_sizeof_int=$ac_lo;;
12642 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12643 See \`config.log' for more details." >&5
12644 echo "$as_me: error: cannot compute sizeof (int), 77
12645 See \`config.log' for more details." >&2;}
12646    { (exit 1); exit 1; }; } ;;
12647 esac
12648 else
12649   if test "$cross_compiling" = yes; then
12650   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12651 See \`config.log' for more details." >&5
12652 echo "$as_me: error: cannot run test program while cross compiling
12653 See \`config.log' for more details." >&2;}
12654    { (exit 1); exit 1; }; }
12655 else
12656   cat >conftest.$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12658 /* confdefs.h.  */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h.  */
12663 $ac_includes_default
12664 long longval () { return (long) (sizeof (int)); }
12665 unsigned long ulongval () { return (long) (sizeof (int)); }
12666 #include <stdio.h>
12667 #include <stdlib.h>
12668 int
12669 main ()
12670 {
12671
12672   FILE *f = fopen ("conftest.val", "w");
12673   if (! f)
12674     exit (1);
12675   if (((long) (sizeof (int))) < 0)
12676     {
12677       long i = longval ();
12678       if (i != ((long) (sizeof (int))))
12679         exit (1);
12680       fprintf (f, "%ld\n", i);
12681     }
12682   else
12683     {
12684       unsigned long i = ulongval ();
12685       if (i != ((long) (sizeof (int))))
12686         exit (1);
12687       fprintf (f, "%lu\n", i);
12688     }
12689   exit (ferror (f) || fclose (f) != 0);
12690
12691   ;
12692   return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest$ac_exeext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697   (eval $ac_link) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702   (eval $ac_try) 2>&5
12703   ac_status=$?
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; }; then
12706   ac_cv_sizeof_int=`cat conftest.val`
12707 else
12708   echo "$as_me: program exited with status $ac_status" >&5
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12711
12712 ( exit $ac_status )
12713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12714 See \`config.log' for more details." >&5
12715 echo "$as_me: error: cannot compute sizeof (int), 77
12716 See \`config.log' for more details." >&2;}
12717    { (exit 1); exit 1; }; }
12718 fi
12719 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12720 fi
12721 fi
12722 rm -f conftest.val
12723 else
12724   ac_cv_sizeof_int=0
12725 fi
12726 fi
12727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12728 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12729 cat >>confdefs.h <<_ACEOF
12730 #define SIZEOF_INT $ac_cv_sizeof_int
12731 _ACEOF
12732
12733
12734 echo "$as_me:$LINENO: checking for long int" >&5
12735 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12736 if test "${ac_cv_type_long_int+set}" = set; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   cat >conftest.$ac_ext <<_ACEOF
12740 #line $LINENO "configure"
12741 /* confdefs.h.  */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h.  */
12746 $ac_includes_default
12747 int
12748 main ()
12749 {
12750 if ((long int *) 0)
12751   return 0;
12752 if (sizeof (long int))
12753   return 0;
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760   (eval $ac_compile) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -s conftest.$ac_objext'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; }; then
12770   ac_cv_type_long_int=yes
12771 else
12772   echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 ac_cv_type_long_int=no
12776 fi
12777 rm -f conftest.$ac_objext conftest.$ac_ext
12778 fi
12779 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12780 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12781
12782 echo "$as_me:$LINENO: checking size of long int" >&5
12783 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12784 if test "${ac_cv_sizeof_long_int+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   if test "$ac_cv_type_long_int" = yes; then
12788   # The cast to unsigned long works around a bug in the HP C Compiler
12789   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12790   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12791   # This bug is HP SR number 8606223364.
12792   if test "$cross_compiling" = yes; then
12793   # Depending upon the size, compute the lo and hi bounds.
12794 cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 $ac_includes_default
12802 int
12803 main ()
12804 {
12805 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12806 test_array [0] = 0
12807
12808   ;
12809   return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814   (eval $ac_compile) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); } &&
12818          { ac_try='test -s conftest.$ac_objext'
12819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820   (eval $ac_try) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; }; then
12824   ac_lo=0 ac_mid=0
12825   while :; do
12826     cat >conftest.$ac_ext <<_ACEOF
12827 #line $LINENO "configure"
12828 /* confdefs.h.  */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h.  */
12833 $ac_includes_default
12834 int
12835 main ()
12836 {
12837 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12838 test_array [0] = 0
12839
12840   ;
12841   return 0;
12842 }
12843 _ACEOF
12844 rm -f conftest.$ac_objext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846   (eval $ac_compile) 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); } &&
12850          { ac_try='test -s conftest.$ac_objext'
12851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852   (eval $ac_try) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; }; then
12856   ac_hi=$ac_mid; break
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 ac_lo=`expr $ac_mid + 1`
12862                     if test $ac_lo -le $ac_mid; then
12863                       ac_lo= ac_hi=
12864                       break
12865                     fi
12866                     ac_mid=`expr 2 '*' $ac_mid + 1`
12867 fi
12868 rm -f conftest.$ac_objext conftest.$ac_ext
12869   done
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 cat >conftest.$ac_ext <<_ACEOF
12875 #line $LINENO "configure"
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 $ac_includes_default
12882 int
12883 main ()
12884 {
12885 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12886 test_array [0] = 0
12887
12888   ;
12889   return 0;
12890 }
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894   (eval $ac_compile) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -s conftest.$ac_objext'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_hi=-1 ac_mid=-1
12905   while :; do
12906     cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 /* confdefs.h.  */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h.  */
12913 $ac_includes_default
12914 int
12915 main ()
12916 {
12917 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
12918 test_array [0] = 0
12919
12920   ;
12921   return 0;
12922 }
12923 _ACEOF
12924 rm -f conftest.$ac_objext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926   (eval $ac_compile) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } &&
12930          { ac_try='test -s conftest.$ac_objext'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   ac_lo=$ac_mid; break
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_hi=`expr '(' $ac_mid ')' - 1`
12942                        if test $ac_mid -le $ac_hi; then
12943                          ac_lo= ac_hi=
12944                          break
12945                        fi
12946                        ac_mid=`expr 2 '*' $ac_mid`
12947 fi
12948 rm -f conftest.$ac_objext conftest.$ac_ext
12949   done
12950 else
12951   echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 ac_lo= ac_hi=
12955 fi
12956 rm -f conftest.$ac_objext conftest.$ac_ext
12957 fi
12958 rm -f conftest.$ac_objext conftest.$ac_ext
12959 # Binary search between lo and hi bounds.
12960 while test "x$ac_lo" != "x$ac_hi"; do
12961   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12962   cat >conftest.$ac_ext <<_ACEOF
12963 #line $LINENO "configure"
12964 /* confdefs.h.  */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h.  */
12969 $ac_includes_default
12970 int
12971 main ()
12972 {
12973 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12974 test_array [0] = 0
12975
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982   (eval $ac_compile) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); } &&
12986          { ac_try='test -s conftest.$ac_objext'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; }; then
12992   ac_hi=$ac_mid
12993 else
12994   echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 ac_lo=`expr '(' $ac_mid ')' + 1`
12998 fi
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13000 done
13001 case $ac_lo in
13002 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13003 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13004 See \`config.log' for more details." >&5
13005 echo "$as_me: error: cannot compute sizeof (long int), 77
13006 See \`config.log' for more details." >&2;}
13007    { (exit 1); exit 1; }; } ;;
13008 esac
13009 else
13010   if test "$cross_compiling" = yes; then
13011   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13012 See \`config.log' for more details." >&5
13013 echo "$as_me: error: cannot run test program while cross compiling
13014 See \`config.log' for more details." >&2;}
13015    { (exit 1); exit 1; }; }
13016 else
13017   cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024 $ac_includes_default
13025 long longval () { return (long) (sizeof (long int)); }
13026 unsigned long ulongval () { return (long) (sizeof (long int)); }
13027 #include <stdio.h>
13028 #include <stdlib.h>
13029 int
13030 main ()
13031 {
13032
13033   FILE *f = fopen ("conftest.val", "w");
13034   if (! f)
13035     exit (1);
13036   if (((long) (sizeof (long int))) < 0)
13037     {
13038       long i = longval ();
13039       if (i != ((long) (sizeof (long int))))
13040         exit (1);
13041       fprintf (f, "%ld\n", i);
13042     }
13043   else
13044     {
13045       unsigned long i = ulongval ();
13046       if (i != ((long) (sizeof (long int))))
13047         exit (1);
13048       fprintf (f, "%lu\n", i);
13049     }
13050   exit (ferror (f) || fclose (f) != 0);
13051
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058   (eval $ac_link) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063   (eval $ac_try) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; }; then
13067   ac_cv_sizeof_long_int=`cat conftest.val`
13068 else
13069   echo "$as_me: program exited with status $ac_status" >&5
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ( exit $ac_status )
13074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13075 See \`config.log' for more details." >&5
13076 echo "$as_me: error: cannot compute sizeof (long int), 77
13077 See \`config.log' for more details." >&2;}
13078    { (exit 1); exit 1; }; }
13079 fi
13080 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13081 fi
13082 fi
13083 rm -f conftest.val
13084 else
13085   ac_cv_sizeof_long_int=0
13086 fi
13087 fi
13088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13089 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13090 cat >>confdefs.h <<_ACEOF
13091 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13092 _ACEOF
13093
13094
13095 echo "$as_me:$LINENO: checking for long long int" >&5
13096 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13097 if test "${ac_cv_type_long_long_int+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13102 /* confdefs.h.  */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h.  */
13107 $ac_includes_default
13108 int
13109 main ()
13110 {
13111 if ((long long int *) 0)
13112   return 0;
13113 if (sizeof (long long int))
13114   return 0;
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 rm -f conftest.$ac_objext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121   (eval $ac_compile) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); } &&
13125          { ac_try='test -s conftest.$ac_objext'
13126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127   (eval $ac_try) 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; }; then
13131   ac_cv_type_long_long_int=yes
13132 else
13133   echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13135
13136 ac_cv_type_long_long_int=no
13137 fi
13138 rm -f conftest.$ac_objext conftest.$ac_ext
13139 fi
13140 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13141 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13142
13143 echo "$as_me:$LINENO: checking size of long long int" >&5
13144 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13145 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13146   echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148   if test "$ac_cv_type_long_long_int" = yes; then
13149   # The cast to unsigned long works around a bug in the HP C Compiler
13150   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13151   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13152   # This bug is HP SR number 8606223364.
13153   if test "$cross_compiling" = yes; then
13154   # Depending upon the size, compute the lo and hi bounds.
13155 cat >conftest.$ac_ext <<_ACEOF
13156 #line $LINENO "configure"
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162 $ac_includes_default
13163 int
13164 main ()
13165 {
13166 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13167 test_array [0] = 0
13168
13169   ;
13170   return 0;
13171 }
13172 _ACEOF
13173 rm -f conftest.$ac_objext
13174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13175   (eval $ac_compile) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } &&
13179          { ac_try='test -s conftest.$ac_objext'
13180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181   (eval $ac_try) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; }; then
13185   ac_lo=0 ac_mid=0
13186   while :; do
13187     cat >conftest.$ac_ext <<_ACEOF
13188 #line $LINENO "configure"
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194 $ac_includes_default
13195 int
13196 main ()
13197 {
13198 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13199 test_array [0] = 0
13200
13201   ;
13202   return 0;
13203 }
13204 _ACEOF
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207   (eval $ac_compile) 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } &&
13211          { ac_try='test -s conftest.$ac_objext'
13212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213   (eval $ac_try) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; }; then
13217   ac_hi=$ac_mid; break
13218 else
13219   echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13221
13222 ac_lo=`expr $ac_mid + 1`
13223                     if test $ac_lo -le $ac_mid; then
13224                       ac_lo= ac_hi=
13225                       break
13226                     fi
13227                     ac_mid=`expr 2 '*' $ac_mid + 1`
13228 fi
13229 rm -f conftest.$ac_objext conftest.$ac_ext
13230   done
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 cat >conftest.$ac_ext <<_ACEOF
13236 #line $LINENO "configure"
13237 /* confdefs.h.  */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h.  */
13242 $ac_includes_default
13243 int
13244 main ()
13245 {
13246 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13247 test_array [0] = 0
13248
13249   ;
13250   return 0;
13251 }
13252 _ACEOF
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255   (eval $ac_compile) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } &&
13259          { ac_try='test -s conftest.$ac_objext'
13260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261   (eval $ac_try) 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); }; }; then
13265   ac_hi=-1 ac_mid=-1
13266   while :; do
13267     cat >conftest.$ac_ext <<_ACEOF
13268 #line $LINENO "configure"
13269 /* confdefs.h.  */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h.  */
13274 $ac_includes_default
13275 int
13276 main ()
13277 {
13278 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13279 test_array [0] = 0
13280
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287   (eval $ac_compile) 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); } &&
13291          { ac_try='test -s conftest.$ac_objext'
13292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293   (eval $ac_try) 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; }; then
13297   ac_lo=$ac_mid; break
13298 else
13299   echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302 ac_hi=`expr '(' $ac_mid ')' - 1`
13303                        if test $ac_mid -le $ac_hi; then
13304                          ac_lo= ac_hi=
13305                          break
13306                        fi
13307                        ac_mid=`expr 2 '*' $ac_mid`
13308 fi
13309 rm -f conftest.$ac_objext conftest.$ac_ext
13310   done
13311 else
13312   echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13314
13315 ac_lo= ac_hi=
13316 fi
13317 rm -f conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13320 # Binary search between lo and hi bounds.
13321 while test "x$ac_lo" != "x$ac_hi"; do
13322   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13323   cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330 $ac_includes_default
13331 int
13332 main ()
13333 {
13334 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13335 test_array [0] = 0
13336
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343   (eval $ac_compile) 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); } &&
13347          { ac_try='test -s conftest.$ac_objext'
13348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349   (eval $ac_try) 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); }; }; then
13353   ac_hi=$ac_mid
13354 else
13355   echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358 ac_lo=`expr '(' $ac_mid ')' + 1`
13359 fi
13360 rm -f conftest.$ac_objext conftest.$ac_ext
13361 done
13362 case $ac_lo in
13363 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13364 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13365 See \`config.log' for more details." >&5
13366 echo "$as_me: error: cannot compute sizeof (long long int), 77
13367 See \`config.log' for more details." >&2;}
13368    { (exit 1); exit 1; }; } ;;
13369 esac
13370 else
13371   if test "$cross_compiling" = yes; then
13372   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13373 See \`config.log' for more details." >&5
13374 echo "$as_me: error: cannot run test program while cross compiling
13375 See \`config.log' for more details." >&2;}
13376    { (exit 1); exit 1; }; }
13377 else
13378   cat >conftest.$ac_ext <<_ACEOF
13379 #line $LINENO "configure"
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385 $ac_includes_default
13386 long longval () { return (long) (sizeof (long long int)); }
13387 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13388 #include <stdio.h>
13389 #include <stdlib.h>
13390 int
13391 main ()
13392 {
13393
13394   FILE *f = fopen ("conftest.val", "w");
13395   if (! f)
13396     exit (1);
13397   if (((long) (sizeof (long long int))) < 0)
13398     {
13399       long i = longval ();
13400       if (i != ((long) (sizeof (long long int))))
13401         exit (1);
13402       fprintf (f, "%ld\n", i);
13403     }
13404   else
13405     {
13406       unsigned long i = ulongval ();
13407       if (i != ((long) (sizeof (long long int))))
13408         exit (1);
13409       fprintf (f, "%lu\n", i);
13410     }
13411   exit (ferror (f) || fclose (f) != 0);
13412
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 rm -f conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419   (eval $ac_link) 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428   ac_cv_sizeof_long_long_int=`cat conftest.val`
13429 else
13430   echo "$as_me: program exited with status $ac_status" >&5
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 ( exit $ac_status )
13435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13436 See \`config.log' for more details." >&5
13437 echo "$as_me: error: cannot compute sizeof (long long int), 77
13438 See \`config.log' for more details." >&2;}
13439    { (exit 1); exit 1; }; }
13440 fi
13441 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13442 fi
13443 fi
13444 rm -f conftest.val
13445 else
13446   ac_cv_sizeof_long_long_int=0
13447 fi
13448 fi
13449 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13450 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13451 cat >>confdefs.h <<_ACEOF
13452 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13453 _ACEOF
13454
13455
13456 echo "$as_me:$LINENO: checking for int *" >&5
13457 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13458 if test "${ac_cv_type_int_p+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   cat >conftest.$ac_ext <<_ACEOF
13462 #line $LINENO "configure"
13463 /* confdefs.h.  */
13464 _ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h.  */
13468 $ac_includes_default
13469 int
13470 main ()
13471 {
13472 if ((int * *) 0)
13473   return 0;
13474 if (sizeof (int *))
13475   return 0;
13476   ;
13477   return 0;
13478 }
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482   (eval $ac_compile) 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } &&
13486          { ac_try='test -s conftest.$ac_objext'
13487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488   (eval $ac_try) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   ac_cv_type_int_p=yes
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_cv_type_int_p=no
13498 fi
13499 rm -f conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13502 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13503
13504 echo "$as_me:$LINENO: checking size of int *" >&5
13505 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13506 if test "${ac_cv_sizeof_int_p+set}" = set; then
13507   echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509   if test "$ac_cv_type_int_p" = yes; then
13510   # The cast to unsigned long works around a bug in the HP C Compiler
13511   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13512   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13513   # This bug is HP SR number 8606223364.
13514   if test "$cross_compiling" = yes; then
13515   # Depending upon the size, compute the lo and hi bounds.
13516 cat >conftest.$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13518 /* confdefs.h.  */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h.  */
13523 $ac_includes_default
13524 int
13525 main ()
13526 {
13527 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13528 test_array [0] = 0
13529
13530   ;
13531   return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536   (eval $ac_compile) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } &&
13540          { ac_try='test -s conftest.$ac_objext'
13541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542   (eval $ac_try) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_lo=0 ac_mid=0
13547   while :; do
13548     cat >conftest.$ac_ext <<_ACEOF
13549 #line $LINENO "configure"
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 $ac_includes_default
13556 int
13557 main ()
13558 {
13559 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13560 test_array [0] = 0
13561
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568   (eval $ac_compile) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -s conftest.$ac_objext'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; }; then
13578   ac_hi=$ac_mid; break
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583 ac_lo=`expr $ac_mid + 1`
13584                     if test $ac_lo -le $ac_mid; then
13585                       ac_lo= ac_hi=
13586                       break
13587                     fi
13588                     ac_mid=`expr 2 '*' $ac_mid + 1`
13589 fi
13590 rm -f conftest.$ac_objext conftest.$ac_ext
13591   done
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 cat >conftest.$ac_ext <<_ACEOF
13597 #line $LINENO "configure"
13598 /* confdefs.h.  */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h.  */
13603 $ac_includes_default
13604 int
13605 main ()
13606 {
13607 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13608 test_array [0] = 0
13609
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616   (eval $ac_compile) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } &&
13620          { ac_try='test -s conftest.$ac_objext'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; }; then
13626   ac_hi=-1 ac_mid=-1
13627   while :; do
13628     cat >conftest.$ac_ext <<_ACEOF
13629 #line $LINENO "configure"
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635 $ac_includes_default
13636 int
13637 main ()
13638 {
13639 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13640 test_array [0] = 0
13641
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648   (eval $ac_compile) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -s conftest.$ac_objext'
13653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654   (eval $ac_try) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); }; }; then
13658   ac_lo=$ac_mid; break
13659 else
13660   echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663 ac_hi=`expr '(' $ac_mid ')' - 1`
13664                        if test $ac_mid -le $ac_hi; then
13665                          ac_lo= ac_hi=
13666                          break
13667                        fi
13668                        ac_mid=`expr 2 '*' $ac_mid`
13669 fi
13670 rm -f conftest.$ac_objext conftest.$ac_ext
13671   done
13672 else
13673   echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 ac_lo= ac_hi=
13677 fi
13678 rm -f conftest.$ac_objext conftest.$ac_ext
13679 fi
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13681 # Binary search between lo and hi bounds.
13682 while test "x$ac_lo" != "x$ac_hi"; do
13683   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13684   cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691 $ac_includes_default
13692 int
13693 main ()
13694 {
13695 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13696 test_array [0] = 0
13697
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 rm -f conftest.$ac_objext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704   (eval $ac_compile) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } &&
13708          { ac_try='test -s conftest.$ac_objext'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; }; then
13714   ac_hi=$ac_mid
13715 else
13716   echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13718
13719 ac_lo=`expr '(' $ac_mid ')' + 1`
13720 fi
13721 rm -f conftest.$ac_objext conftest.$ac_ext
13722 done
13723 case $ac_lo in
13724 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13726 See \`config.log' for more details." >&5
13727 echo "$as_me: error: cannot compute sizeof (int *), 77
13728 See \`config.log' for more details." >&2;}
13729    { (exit 1); exit 1; }; } ;;
13730 esac
13731 else
13732   if test "$cross_compiling" = yes; then
13733   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13734 See \`config.log' for more details." >&5
13735 echo "$as_me: error: cannot run test program while cross compiling
13736 See \`config.log' for more details." >&2;}
13737    { (exit 1); exit 1; }; }
13738 else
13739   cat >conftest.$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746 $ac_includes_default
13747 long longval () { return (long) (sizeof (int *)); }
13748 unsigned long ulongval () { return (long) (sizeof (int *)); }
13749 #include <stdio.h>
13750 #include <stdlib.h>
13751 int
13752 main ()
13753 {
13754
13755   FILE *f = fopen ("conftest.val", "w");
13756   if (! f)
13757     exit (1);
13758   if (((long) (sizeof (int *))) < 0)
13759     {
13760       long i = longval ();
13761       if (i != ((long) (sizeof (int *))))
13762         exit (1);
13763       fprintf (f, "%ld\n", i);
13764     }
13765   else
13766     {
13767       unsigned long i = ulongval ();
13768       if (i != ((long) (sizeof (int *))))
13769         exit (1);
13770       fprintf (f, "%lu\n", i);
13771     }
13772   exit (ferror (f) || fclose (f) != 0);
13773
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780   (eval $ac_link) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
13789   ac_cv_sizeof_int_p=`cat conftest.val`
13790 else
13791   echo "$as_me: program exited with status $ac_status" >&5
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 ( exit $ac_status )
13796 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13797 See \`config.log' for more details." >&5
13798 echo "$as_me: error: cannot compute sizeof (int *), 77
13799 See \`config.log' for more details." >&2;}
13800    { (exit 1); exit 1; }; }
13801 fi
13802 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13803 fi
13804 fi
13805 rm -f conftest.val
13806 else
13807   ac_cv_sizeof_int_p=0
13808 fi
13809 fi
13810 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13811 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13812 cat >>confdefs.h <<_ACEOF
13813 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13814 _ACEOF
13815
13816
13817
13818 # Check for sys/types.h types
13819 echo "$as_me:$LINENO: checking for u_int type" >&5
13820 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13821 if test "${ac_cv_have_u_int+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824
13825     cat >conftest.$ac_ext <<_ACEOF
13826 #line $LINENO "configure"
13827 /* confdefs.h.  */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h.  */
13832  #include <sys/types.h>
13833 int
13834 main ()
13835 {
13836  u_int a; a = 1;
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843   (eval $ac_compile) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); } &&
13847          { ac_try='test -s conftest.$ac_objext'
13848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849   (eval $ac_try) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; }; then
13853    ac_cv_have_u_int="yes"
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858  ac_cv_have_u_int="no"
13859
13860 fi
13861 rm -f conftest.$ac_objext conftest.$ac_ext
13862
13863 fi
13864 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13865 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13866 if test "x$ac_cv_have_u_int" = "xyes" ; then
13867    cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_U_INT 1
13869 _ACEOF
13870
13871    have_u_int=1
13872 fi
13873
13874 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13875 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13876 if test "${ac_cv_have_intmax_t+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879
13880    cat >conftest.$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13882 /* confdefs.h.  */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h.  */
13887  #include <sys/types.h>
13888 int
13889 main ()
13890 {
13891  intmax_t a; a = 1;
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898   (eval $ac_compile) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); } &&
13902          { ac_try='test -s conftest.$ac_objext'
13903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904   (eval $ac_try) 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; }; then
13908    ac_cv_have_intmax_t="yes"
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913
13914          cat >conftest.$ac_ext <<_ACEOF
13915 #line $LINENO "configure"
13916 /* confdefs.h.  */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h.  */
13921  #include <stdint.h>
13922 int
13923 main ()
13924 {
13925  intmax_t a; a = 1;
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932   (eval $ac_compile) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -s conftest.$ac_objext'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; }; then
13942    ac_cv_have_intmax_t="yes"
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13946
13947  ac_cv_have_intmax_t="no"
13948
13949 fi
13950 rm -f conftest.$ac_objext conftest.$ac_ext
13951
13952
13953 fi
13954 rm -f conftest.$ac_objext conftest.$ac_ext
13955
13956
13957 fi
13958 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
13959 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
13960 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
13961    cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_INTMAX_T 1
13963 _ACEOF
13964
13965    have_intmax_t=1
13966 fi
13967
13968
13969 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
13970 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
13971 if test "${ac_cv_have_u_intmax_t+set}" = set; then
13972   echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974
13975    cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982  #include <sys/types.h>
13983 int
13984 main ()
13985 {
13986  u_intmax_t a; a = 1;
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993   (eval $ac_compile) 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); } &&
13997          { ac_try='test -s conftest.$ac_objext'
13998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999   (eval $ac_try) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; }; then
14003    ac_cv_have_u_intmax_t="yes"
14004 else
14005   echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008
14009          cat >conftest.$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016  #include <stdint.h>
14017 int
14018 main ()
14019 {
14020  u_intmax_t a; a = 1;
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027   (eval $ac_compile) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -s conftest.$ac_objext'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; }; then
14037    ac_cv_have_u_intmax_t="yes"
14038 else
14039   echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042  ac_cv_have_u_intmax_t="no"
14043
14044 fi
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14046
14047
14048 fi
14049 rm -f conftest.$ac_objext conftest.$ac_ext
14050
14051 fi
14052 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14053 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14054 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14055    cat >>confdefs.h <<\_ACEOF
14056 #define HAVE_U_INTMAX_T 1
14057 _ACEOF
14058
14059    have_u_intmax_t=1
14060 fi
14061
14062
14063 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14064 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14065 if test "${ac_cv_have_intxx_t+set}" = set; then
14066   echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068
14069    cat >conftest.$ac_ext <<_ACEOF
14070 #line $LINENO "configure"
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076  #include <sys/types.h>
14077 int
14078 main ()
14079 {
14080  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14081   ;
14082   return 0;
14083 }
14084 _ACEOF
14085 rm -f conftest.$ac_objext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14087   (eval $ac_compile) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); } &&
14091          { ac_try='test -s conftest.$ac_objext'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; }; then
14097    ac_cv_have_intxx_t="yes"
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102  ac_cv_have_intxx_t="no"
14103
14104 fi
14105 rm -f conftest.$ac_objext conftest.$ac_ext
14106
14107 fi
14108 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14109 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14110 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14111    cat >>confdefs.h <<\_ACEOF
14112 #define HAVE_INTXX_T 1
14113 _ACEOF
14114
14115    have_intxx_t=1
14116 fi
14117
14118 echo "$as_me:$LINENO: checking for int64_t type" >&5
14119 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14120 if test "${ac_cv_have_int64_t+set}" = set; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123
14124    cat >conftest.$ac_ext <<_ACEOF
14125 #line $LINENO "configure"
14126 /* confdefs.h.  */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h.  */
14131  #include <sys/types.h>
14132 int
14133 main ()
14134 {
14135  int64_t a; a = 1;
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142   (eval $ac_compile) 2>&5
14143   ac_status=$?
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -s conftest.$ac_objext'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }; then
14152    ac_cv_have_int64_t="yes"
14153 else
14154   echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14156
14157  ac_cv_have_int64_t="no"
14158
14159 fi
14160 rm -f conftest.$ac_objext conftest.$ac_ext
14161
14162 fi
14163 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14164 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14165 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14166    cat >>confdefs.h <<\_ACEOF
14167 #define HAVE_INT64_T 1
14168 _ACEOF
14169
14170    have_int64_t=1
14171 fi
14172
14173 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14174 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14175 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178
14179    cat >conftest.$ac_ext <<_ACEOF
14180 #line $LINENO "configure"
14181 /* confdefs.h.  */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h.  */
14186  #include <sys/types.h>
14187 int
14188 main ()
14189 {
14190  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197   (eval $ac_compile) 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } &&
14201          { ac_try='test -s conftest.$ac_objext'
14202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203   (eval $ac_try) 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); }; }; then
14207    ac_cv_have_u_intxx_t="yes"
14208 else
14209   echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14211
14212  ac_cv_have_u_intxx_t="no"
14213
14214 fi
14215 rm -f conftest.$ac_objext conftest.$ac_ext
14216
14217 fi
14218 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14219 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14220 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14221    cat >>confdefs.h <<\_ACEOF
14222 #define HAVE_U_INTXX_T 1
14223 _ACEOF
14224
14225    have_u_intxx_t=1
14226 fi
14227
14228 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14229 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14230 if test "${ac_cv_have_u_int64_t+set}" = set; then
14231   echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233
14234    cat >conftest.$ac_ext <<_ACEOF
14235 #line $LINENO "configure"
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241  #include <sys/types.h>
14242 int
14243 main ()
14244 {
14245  u_int64_t a; a = 1;
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252   (eval $ac_compile) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); } &&
14256          { ac_try='test -s conftest.$ac_objext'
14257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258   (eval $ac_try) 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; }; then
14262    ac_cv_have_u_int64_t="yes"
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267  ac_cv_have_u_int64_t="no"
14268
14269 fi
14270 rm -f conftest.$ac_objext conftest.$ac_ext
14271
14272 fi
14273 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14274 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14275 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14276    cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_U_INT64_T 1
14278 _ACEOF
14279
14280    have_u_int64_t=1
14281 fi
14282
14283 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14284            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14285 then
14286    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14287 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14288    cat >conftest.$ac_ext <<_ACEOF
14289 #line $LINENO "configure"
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295  #include <sys/bitypes.h>
14296 int
14297 main ()
14298 {
14299  int8_t a; int16_t b; int32_t c;
14300         u_int8_t e; u_int16_t f; u_int32_t g;
14301         a = b = c = e = f = g = 1;
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308   (eval $ac_compile) 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } &&
14312          { ac_try='test -s conftest.$ac_objext'
14313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314   (eval $ac_try) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; }; then
14318    cat >>confdefs.h <<\_ACEOF
14319 #define HAVE_U_INTXX_T 1
14320 _ACEOF
14321
14322         cat >>confdefs.h <<\_ACEOF
14323 #define HAVE_INTXX_T 1
14324 _ACEOF
14325
14326         cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_SYS_BITYPES_H 1
14328 _ACEOF
14329
14330         echo "$as_me:$LINENO: result: yes" >&5
14331 echo "${ECHO_T}yes" >&6
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336  echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6
14338
14339 fi
14340 rm -f conftest.$ac_objext conftest.$ac_ext
14341 fi
14342
14343 if test -z "$have_u_intxx_t" ; then
14344    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14345 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14346 if test "${ac_cv_have_uintxx_t+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349
14350       cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357  #include <sys/types.h>
14358 int
14359 main ()
14360 {
14361  uint8_t a; uint16_t b;
14362            uint32_t c; a = b = c = 1;
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369   (eval $ac_compile) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -s conftest.$ac_objext'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379    ac_cv_have_uintxx_t="yes"
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384  ac_cv_have_uintxx_t="no"
14385
14386 fi
14387 rm -f conftest.$ac_objext conftest.$ac_ext
14388
14389 fi
14390 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14391 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14392    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14393       cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_UINTXX_T 1
14395 _ACEOF
14396
14397    fi
14398 fi
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414 for ac_func in \
14415         fork \
14416         getcwd \
14417         gethostname \
14418         getpid \
14419         gettimeofday \
14420         setpgid \
14421         setpgrp \
14422         setsid \
14423         signal \
14424         strerror \
14425         strncmp \
14426         strncpy \
14427         vfprintf \
14428
14429 do
14430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14431 echo "$as_me:$LINENO: checking for $ac_func" >&5
14432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14433 if eval "test \"\${$as_ac_var+set}\" = set"; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   cat >conftest.$ac_ext <<_ACEOF
14437 #line $LINENO "configure"
14438 /* confdefs.h.  */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h.  */
14443 /* System header to define __stub macros and hopefully few prototypes,
14444     which can conflict with char $ac_func (); below.
14445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14446     <limits.h> exists even on freestanding compilers.  */
14447 #ifdef __STDC__
14448 # include <limits.h>
14449 #else
14450 # include <assert.h>
14451 #endif
14452 /* Override any gcc2 internal prototype to avoid an error.  */
14453 #ifdef __cplusplus
14454 extern "C"
14455 {
14456 #endif
14457 /* We use char because int might match the return type of a gcc2
14458    builtin and then its argument prototype would still apply.  */
14459 char $ac_func ();
14460 /* The GNU C library defines this for functions which it implements
14461     to always fail with ENOSYS.  Some functions are actually named
14462     something starting with __ and the normal name is an alias.  */
14463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14464 choke me
14465 #else
14466 char (*f) () = $ac_func;
14467 #endif
14468 #ifdef __cplusplus
14469 }
14470 #endif
14471
14472 int
14473 main ()
14474 {
14475 return f != $ac_func;
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14482   (eval $ac_link) 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } &&
14486          { ac_try='test -s conftest$ac_exeext'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492   eval "$as_ac_var=yes"
14493 else
14494   echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497 eval "$as_ac_var=no"
14498 fi
14499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14500 fi
14501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14503 if test `eval echo '${'$as_ac_var'}'` = yes; then
14504   cat >>confdefs.h <<_ACEOF
14505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14506 _ACEOF
14507
14508 else
14509   echo 'configure: cannot find needed function.'; exit 1
14510
14511 fi
14512 done
14513
14514
14515
14516 for ac_func in fchdir
14517 do
14518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14519 echo "$as_me:$LINENO: checking for $ac_func" >&5
14520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14521 if eval "test \"\${$as_ac_var+set}\" = set"; then
14522   echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524   cat >conftest.$ac_ext <<_ACEOF
14525 #line $LINENO "configure"
14526 /* confdefs.h.  */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h.  */
14531 /* System header to define __stub macros and hopefully few prototypes,
14532     which can conflict with char $ac_func (); below.
14533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534     <limits.h> exists even on freestanding compilers.  */
14535 #ifdef __STDC__
14536 # include <limits.h>
14537 #else
14538 # include <assert.h>
14539 #endif
14540 /* Override any gcc2 internal prototype to avoid an error.  */
14541 #ifdef __cplusplus
14542 extern "C"
14543 {
14544 #endif
14545 /* We use char because int might match the return type of a gcc2
14546    builtin and then its argument prototype would still apply.  */
14547 char $ac_func ();
14548 /* The GNU C library defines this for functions which it implements
14549     to always fail with ENOSYS.  Some functions are actually named
14550     something starting with __ and the normal name is an alias.  */
14551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14552 choke me
14553 #else
14554 char (*f) () = $ac_func;
14555 #endif
14556 #ifdef __cplusplus
14557 }
14558 #endif
14559
14560 int
14561 main ()
14562 {
14563 return f != $ac_func;
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570   (eval $ac_link) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); } &&
14574          { ac_try='test -s conftest$ac_exeext'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }; then
14580   eval "$as_ac_var=yes"
14581 else
14582   echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 eval "$as_ac_var=no"
14586 fi
14587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14588 fi
14589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14591 if test `eval echo '${'$as_ac_var'}'` = yes; then
14592   cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14594 _ACEOF
14595  cat >>confdefs.h <<\_ACEOF
14596 #define HAVE_FCHDIR 1
14597 _ACEOF
14598
14599 fi
14600 done
14601
14602
14603 for ac_func in strtoll
14604 do
14605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14606 echo "$as_me:$LINENO: checking for $ac_func" >&5
14607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14608 if eval "test \"\${$as_ac_var+set}\" = set"; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   cat >conftest.$ac_ext <<_ACEOF
14612 #line $LINENO "configure"
14613 /* confdefs.h.  */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h.  */
14618 /* System header to define __stub macros and hopefully few prototypes,
14619     which can conflict with char $ac_func (); below.
14620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14621     <limits.h> exists even on freestanding compilers.  */
14622 #ifdef __STDC__
14623 # include <limits.h>
14624 #else
14625 # include <assert.h>
14626 #endif
14627 /* Override any gcc2 internal prototype to avoid an error.  */
14628 #ifdef __cplusplus
14629 extern "C"
14630 {
14631 #endif
14632 /* We use char because int might match the return type of a gcc2
14633    builtin and then its argument prototype would still apply.  */
14634 char $ac_func ();
14635 /* The GNU C library defines this for functions which it implements
14636     to always fail with ENOSYS.  Some functions are actually named
14637     something starting with __ and the normal name is an alias.  */
14638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14639 choke me
14640 #else
14641 char (*f) () = $ac_func;
14642 #endif
14643 #ifdef __cplusplus
14644 }
14645 #endif
14646
14647 int
14648 main ()
14649 {
14650 return f != $ac_func;
14651   ;
14652   return 0;
14653 }
14654 _ACEOF
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14657   (eval $ac_link) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } &&
14661          { ac_try='test -s conftest$ac_exeext'
14662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663   (eval $ac_try) 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; }; then
14667   eval "$as_ac_var=yes"
14668 else
14669   echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14671
14672 eval "$as_ac_var=no"
14673 fi
14674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14675 fi
14676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14678 if test `eval echo '${'$as_ac_var'}'` = yes; then
14679   cat >>confdefs.h <<_ACEOF
14680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681 _ACEOF
14682  cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_STRTOLL 1
14684 _ACEOF
14685
14686 fi
14687 done
14688
14689
14690
14691 for ac_func in chflags
14692 do
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699   cat >conftest.$ac_ext <<_ACEOF
14700 #line $LINENO "configure"
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 /* System header to define __stub macros and hopefully few prototypes,
14707     which can conflict with char $ac_func (); below.
14708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709     <limits.h> exists even on freestanding compilers.  */
14710 #ifdef __STDC__
14711 # include <limits.h>
14712 #else
14713 # include <assert.h>
14714 #endif
14715 /* Override any gcc2 internal prototype to avoid an error.  */
14716 #ifdef __cplusplus
14717 extern "C"
14718 {
14719 #endif
14720 /* We use char because int might match the return type of a gcc2
14721    builtin and then its argument prototype would still apply.  */
14722 char $ac_func ();
14723 /* The GNU C library defines this for functions which it implements
14724     to always fail with ENOSYS.  Some functions are actually named
14725     something starting with __ and the normal name is an alias.  */
14726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14727 choke me
14728 #else
14729 char (*f) () = $ac_func;
14730 #endif
14731 #ifdef __cplusplus
14732 }
14733 #endif
14734
14735 int
14736 main ()
14737 {
14738 return f != $ac_func;
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745   (eval $ac_link) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -s conftest$ac_exeext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   eval "$as_ac_var=yes"
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 eval "$as_ac_var=no"
14761 fi
14762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14763 fi
14764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14766 if test `eval echo '${'$as_ac_var'}'` = yes; then
14767   cat >>confdefs.h <<_ACEOF
14768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14769 _ACEOF
14770
14771 fi
14772 done
14773
14774
14775
14776
14777
14778
14779 for ac_func in snprintf vsnprintf gethostid getdomainname
14780 do
14781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14782 echo "$as_me:$LINENO: checking for $ac_func" >&5
14783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14784 if eval "test \"\${$as_ac_var+set}\" = set"; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   cat >conftest.$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14789 /* confdefs.h.  */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h.  */
14794 /* System header to define __stub macros and hopefully few prototypes,
14795     which can conflict with char $ac_func (); below.
14796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14797     <limits.h> exists even on freestanding compilers.  */
14798 #ifdef __STDC__
14799 # include <limits.h>
14800 #else
14801 # include <assert.h>
14802 #endif
14803 /* Override any gcc2 internal prototype to avoid an error.  */
14804 #ifdef __cplusplus
14805 extern "C"
14806 {
14807 #endif
14808 /* We use char because int might match the return type of a gcc2
14809    builtin and then its argument prototype would still apply.  */
14810 char $ac_func ();
14811 /* The GNU C library defines this for functions which it implements
14812     to always fail with ENOSYS.  Some functions are actually named
14813     something starting with __ and the normal name is an alias.  */
14814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14815 choke me
14816 #else
14817 char (*f) () = $ac_func;
14818 #endif
14819 #ifdef __cplusplus
14820 }
14821 #endif
14822
14823 int
14824 main ()
14825 {
14826 return f != $ac_func;
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833   (eval $ac_link) 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -s conftest$ac_exeext'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843   eval "$as_ac_var=yes"
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 eval "$as_ac_var=no"
14849 fi
14850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14851 fi
14852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14854 if test `eval echo '${'$as_ac_var'}'` = yes; then
14855   cat >>confdefs.h <<_ACEOF
14856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14857 _ACEOF
14858
14859 fi
14860 done
14861
14862
14863
14864
14865
14866
14867 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14868 do
14869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14870 echo "$as_me:$LINENO: checking for $ac_func" >&5
14871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14872 if eval "test \"\${$as_ac_var+set}\" = set"; then
14873   echo $ECHO_N "(cached) $ECHO_C" >&6
14874 else
14875   cat >conftest.$ac_ext <<_ACEOF
14876 #line $LINENO "configure"
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 /* System header to define __stub macros and hopefully few prototypes,
14883     which can conflict with char $ac_func (); below.
14884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14885     <limits.h> exists even on freestanding compilers.  */
14886 #ifdef __STDC__
14887 # include <limits.h>
14888 #else
14889 # include <assert.h>
14890 #endif
14891 /* Override any gcc2 internal prototype to avoid an error.  */
14892 #ifdef __cplusplus
14893 extern "C"
14894 {
14895 #endif
14896 /* We use char because int might match the return type of a gcc2
14897    builtin and then its argument prototype would still apply.  */
14898 char $ac_func ();
14899 /* The GNU C library defines this for functions which it implements
14900     to always fail with ENOSYS.  Some functions are actually named
14901     something starting with __ and the normal name is an alias.  */
14902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14903 choke me
14904 #else
14905 char (*f) () = $ac_func;
14906 #endif
14907 #ifdef __cplusplus
14908 }
14909 #endif
14910
14911 int
14912 main ()
14913 {
14914 return f != $ac_func;
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921   (eval $ac_link) 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } &&
14925          { ac_try='test -s conftest$ac_exeext'
14926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927   (eval $ac_try) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); }; }; then
14931   eval "$as_ac_var=yes"
14932 else
14933   echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 eval "$as_ac_var=no"
14937 fi
14938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14939 fi
14940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14942 if test `eval echo '${'$as_ac_var'}'` = yes; then
14943   cat >>confdefs.h <<_ACEOF
14944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14945 _ACEOF
14946
14947 fi
14948 done
14949
14950
14951 # If resolver functions are not in libc check for -lnsl or -lresolv.
14952 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14953 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14954 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   cat >conftest.$ac_ext <<_ACEOF
14958 #line $LINENO "configure"
14959 /* confdefs.h.  */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h.  */
14964 /* System header to define __stub macros and hopefully few prototypes,
14965     which can conflict with char gethostbyname_r (); below.
14966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14967     <limits.h> exists even on freestanding compilers.  */
14968 #ifdef __STDC__
14969 # include <limits.h>
14970 #else
14971 # include <assert.h>
14972 #endif
14973 /* Override any gcc2 internal prototype to avoid an error.  */
14974 #ifdef __cplusplus
14975 extern "C"
14976 {
14977 #endif
14978 /* We use char because int might match the return type of a gcc2
14979    builtin and then its argument prototype would still apply.  */
14980 char gethostbyname_r ();
14981 /* The GNU C library defines this for functions which it implements
14982     to always fail with ENOSYS.  Some functions are actually named
14983     something starting with __ and the normal name is an alias.  */
14984 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14985 choke me
14986 #else
14987 char (*f) () = gethostbyname_r;
14988 #endif
14989 #ifdef __cplusplus
14990 }
14991 #endif
14992
14993 int
14994 main ()
14995 {
14996 return f != gethostbyname_r;
14997   ;
14998   return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15003   (eval $ac_link) 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } &&
15007          { ac_try='test -s conftest$ac_exeext'
15008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009   (eval $ac_try) 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); }; }; then
15013   ac_cv_func_gethostbyname_r=yes
15014 else
15015   echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15017
15018 ac_cv_func_gethostbyname_r=no
15019 fi
15020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15021 fi
15022 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15023 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15024 if test $ac_cv_func_gethostbyname_r = yes; then
15025   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15026 echo "${ECHO_T}using libc's resolver" >&6
15027 else
15028
15029 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15030 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15031 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15032   echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034   ac_check_lib_save_LIBS=$LIBS
15035 LIBS="-lnsl  $LIBS"
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15038 /* confdefs.h.  */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h.  */
15043
15044 /* Override any gcc2 internal prototype to avoid an error.  */
15045 #ifdef __cplusplus
15046 extern "C"
15047 #endif
15048 /* We use char because int might match the return type of a gcc2
15049    builtin and then its argument prototype would still apply.  */
15050 char gethostbyname_r ();
15051 int
15052 main ()
15053 {
15054 gethostbyname_r ();
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15061   (eval $ac_link) 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } &&
15065          { ac_try='test -s conftest$ac_exeext'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; }; then
15071   ac_cv_lib_nsl_gethostbyname_r=yes
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 ac_cv_lib_nsl_gethostbyname_r=no
15077 fi
15078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15080 fi
15081 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15082 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15083 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15084   cat >>confdefs.h <<_ACEOF
15085 #define HAVE_LIBNSL 1
15086 _ACEOF
15087
15088   LIBS="-lnsl $LIBS"
15089
15090 fi
15091
15092
15093 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15094 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15095 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   ac_check_lib_save_LIBS=$LIBS
15099 LIBS="-lresolv  $LIBS"
15100 cat >conftest.$ac_ext <<_ACEOF
15101 #line $LINENO "configure"
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107
15108 /* Override any gcc2 internal prototype to avoid an error.  */
15109 #ifdef __cplusplus
15110 extern "C"
15111 #endif
15112 /* We use char because int might match the return type of a gcc2
15113    builtin and then its argument prototype would still apply.  */
15114 char gethostbyname_r ();
15115 int
15116 main ()
15117 {
15118 gethostbyname_r ();
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125   (eval $ac_link) 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); } &&
15129          { ac_try='test -s conftest$ac_exeext'
15130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131   (eval $ac_try) 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); }; }; then
15135   ac_cv_lib_resolv_gethostbyname_r=yes
15136 else
15137   echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_cv_lib_resolv_gethostbyname_r=no
15141 fi
15142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS
15144 fi
15145 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15146 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15147 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15148   cat >>confdefs.h <<_ACEOF
15149 #define HAVE_LIBRESOLV 1
15150 _ACEOF
15151
15152   LIBS="-lresolv $LIBS"
15153
15154 fi
15155
15156 fi
15157
15158
15159
15160 # Find where sockets are (especially for Solaris)
15161 echo "$as_me:$LINENO: checking for socket" >&5
15162 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15163 if test "${ac_cv_func_socket+set}" = set; then
15164   echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166   cat >conftest.$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 /* System header to define __stub macros and hopefully few prototypes,
15174     which can conflict with char socket (); below.
15175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15176     <limits.h> exists even on freestanding compilers.  */
15177 #ifdef __STDC__
15178 # include <limits.h>
15179 #else
15180 # include <assert.h>
15181 #endif
15182 /* Override any gcc2 internal prototype to avoid an error.  */
15183 #ifdef __cplusplus
15184 extern "C"
15185 {
15186 #endif
15187 /* We use char because int might match the return type of a gcc2
15188    builtin and then its argument prototype would still apply.  */
15189 char socket ();
15190 /* The GNU C library defines this for functions which it implements
15191     to always fail with ENOSYS.  Some functions are actually named
15192     something starting with __ and the normal name is an alias.  */
15193 #if defined (__stub_socket) || defined (__stub___socket)
15194 choke me
15195 #else
15196 char (*f) () = socket;
15197 #endif
15198 #ifdef __cplusplus
15199 }
15200 #endif
15201
15202 int
15203 main ()
15204 {
15205 return f != socket;
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15212   (eval $ac_link) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } &&
15216          { ac_try='test -s conftest$ac_exeext'
15217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218   (eval $ac_try) 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; }; then
15222   ac_cv_func_socket=yes
15223 else
15224   echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.$ac_ext >&5
15226
15227 ac_cv_func_socket=no
15228 fi
15229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15230 fi
15231 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15232 echo "${ECHO_T}$ac_cv_func_socket" >&6
15233 if test $ac_cv_func_socket = yes; then
15234   echo "$as_me:$LINENO: result: using libc's socket" >&5
15235 echo "${ECHO_T}using libc's socket" >&6
15236 else
15237
15238 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15239 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15240 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15241   echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243   ac_check_lib_save_LIBS=$LIBS
15244 LIBS="-lxnet  $LIBS"
15245 cat >conftest.$ac_ext <<_ACEOF
15246 #line $LINENO "configure"
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252
15253 /* Override any gcc2 internal prototype to avoid an error.  */
15254 #ifdef __cplusplus
15255 extern "C"
15256 #endif
15257 /* We use char because int might match the return type of a gcc2
15258    builtin and then its argument prototype would still apply.  */
15259 char socket ();
15260 int
15261 main ()
15262 {
15263 socket ();
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 rm -f conftest.$ac_objext conftest$ac_exeext
15269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15270   (eval $ac_link) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } &&
15274          { ac_try='test -s conftest$ac_exeext'
15275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276   (eval $ac_try) 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; }; then
15280   ac_cv_lib_xnet_socket=yes
15281 else
15282   echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 ac_cv_lib_xnet_socket=no
15286 fi
15287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15288 LIBS=$ac_check_lib_save_LIBS
15289 fi
15290 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15291 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15292 if test $ac_cv_lib_xnet_socket = yes; then
15293   cat >>confdefs.h <<_ACEOF
15294 #define HAVE_LIBXNET 1
15295 _ACEOF
15296
15297   LIBS="-lxnet $LIBS"
15298
15299 fi
15300
15301
15302 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15303 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15304 if test "${ac_cv_lib_socket_socket+set}" = set; then
15305   echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307   ac_check_lib_save_LIBS=$LIBS
15308 LIBS="-lsocket  $LIBS"
15309 cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15311 /* confdefs.h.  */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h.  */
15316
15317 /* Override any gcc2 internal prototype to avoid an error.  */
15318 #ifdef __cplusplus
15319 extern "C"
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322    builtin and then its argument prototype would still apply.  */
15323 char socket ();
15324 int
15325 main ()
15326 {
15327 socket ();
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334   (eval $ac_link) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340   (eval $ac_try) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344   ac_cv_lib_socket_socket=yes
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 ac_cv_lib_socket_socket=no
15350 fi
15351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15352 LIBS=$ac_check_lib_save_LIBS
15353 fi
15354 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15355 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15356 if test $ac_cv_lib_socket_socket = yes; then
15357   cat >>confdefs.h <<_ACEOF
15358 #define HAVE_LIBSOCKET 1
15359 _ACEOF
15360
15361   LIBS="-lsocket $LIBS"
15362
15363 fi
15364
15365
15366 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15367 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15368 if test "${ac_cv_lib_inet_socket+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   ac_check_lib_save_LIBS=$LIBS
15372 LIBS="-linet  $LIBS"
15373 cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15375 /* confdefs.h.  */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h.  */
15380
15381 /* Override any gcc2 internal prototype to avoid an error.  */
15382 #ifdef __cplusplus
15383 extern "C"
15384 #endif
15385 /* We use char because int might match the return type of a gcc2
15386    builtin and then its argument prototype would still apply.  */
15387 char socket ();
15388 int
15389 main ()
15390 {
15391 socket ();
15392   ;
15393   return 0;
15394 }
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15398   (eval $ac_link) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } &&
15402          { ac_try='test -s conftest$ac_exeext'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   ac_cv_lib_inet_socket=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413 ac_cv_lib_inet_socket=no
15414 fi
15415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15416 LIBS=$ac_check_lib_save_LIBS
15417 fi
15418 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15419 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15420 if test $ac_cv_lib_inet_socket = yes; then
15421   cat >>confdefs.h <<_ACEOF
15422 #define HAVE_LIBINET 1
15423 _ACEOF
15424
15425   LIBS="-linet $LIBS"
15426
15427 fi
15428
15429 fi
15430
15431
15432
15433 for ac_func in inet_pton
15434 do
15435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 echo "$as_me:$LINENO: checking for $ac_func" >&5
15437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_var+set}\" = set"; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   cat >conftest.$ac_ext <<_ACEOF
15442 #line $LINENO "configure"
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448 /* System header to define __stub macros and hopefully few prototypes,
15449     which can conflict with char $ac_func (); below.
15450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15451     <limits.h> exists even on freestanding compilers.  */
15452 #ifdef __STDC__
15453 # include <limits.h>
15454 #else
15455 # include <assert.h>
15456 #endif
15457 /* Override any gcc2 internal prototype to avoid an error.  */
15458 #ifdef __cplusplus
15459 extern "C"
15460 {
15461 #endif
15462 /* We use char because int might match the return type of a gcc2
15463    builtin and then its argument prototype would still apply.  */
15464 char $ac_func ();
15465 /* The GNU C library defines this for functions which it implements
15466     to always fail with ENOSYS.  Some functions are actually named
15467     something starting with __ and the normal name is an alias.  */
15468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15469 choke me
15470 #else
15471 char (*f) () = $ac_func;
15472 #endif
15473 #ifdef __cplusplus
15474 }
15475 #endif
15476
15477 int
15478 main ()
15479 {
15480 return f != $ac_func;
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487   (eval $ac_link) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); } &&
15491          { ac_try='test -s conftest$ac_exeext'
15492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493   (eval $ac_try) 2>&5
15494   ac_status=$?
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); }; }; then
15497   eval "$as_ac_var=yes"
15498 else
15499   echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 eval "$as_ac_var=no"
15503 fi
15504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15505 fi
15506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15508 if test `eval echo '${'$as_ac_var'}'` = yes; then
15509   cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511 _ACEOF
15512  cat >>confdefs.h <<\_ACEOF
15513 #define HAVE_INET_PTON 1
15514 _ACEOF
15515
15516 fi
15517 done
15518
15519
15520
15521 for ac_func in strftime
15522 do
15523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15524 echo "$as_me:$LINENO: checking for $ac_func" >&5
15525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15526 if eval "test \"\${$as_ac_var+set}\" = set"; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529   cat >conftest.$ac_ext <<_ACEOF
15530 #line $LINENO "configure"
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536 /* System header to define __stub macros and hopefully few prototypes,
15537     which can conflict with char $ac_func (); below.
15538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15539     <limits.h> exists even on freestanding compilers.  */
15540 #ifdef __STDC__
15541 # include <limits.h>
15542 #else
15543 # include <assert.h>
15544 #endif
15545 /* Override any gcc2 internal prototype to avoid an error.  */
15546 #ifdef __cplusplus
15547 extern "C"
15548 {
15549 #endif
15550 /* We use char because int might match the return type of a gcc2
15551    builtin and then its argument prototype would still apply.  */
15552 char $ac_func ();
15553 /* The GNU C library defines this for functions which it implements
15554     to always fail with ENOSYS.  Some functions are actually named
15555     something starting with __ and the normal name is an alias.  */
15556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15557 choke me
15558 #else
15559 char (*f) () = $ac_func;
15560 #endif
15561 #ifdef __cplusplus
15562 }
15563 #endif
15564
15565 int
15566 main ()
15567 {
15568 return f != $ac_func;
15569   ;
15570   return 0;
15571 }
15572 _ACEOF
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575   (eval $ac_link) 2>&5
15576   ac_status=$?
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } &&
15579          { ac_try='test -s conftest$ac_exeext'
15580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581   (eval $ac_try) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); }; }; then
15585   eval "$as_ac_var=yes"
15586 else
15587   echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590 eval "$as_ac_var=no"
15591 fi
15592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15593 fi
15594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15596 if test `eval echo '${'$as_ac_var'}'` = yes; then
15597   cat >>confdefs.h <<_ACEOF
15598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15599 _ACEOF
15600
15601 else
15602   # strftime is in -lintl on SCO UNIX.
15603 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15604 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15605 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15606   echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608   ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-lintl  $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15611 #line $LINENO "configure"
15612 /* confdefs.h.  */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h.  */
15617
15618 /* Override any gcc2 internal prototype to avoid an error.  */
15619 #ifdef __cplusplus
15620 extern "C"
15621 #endif
15622 /* We use char because int might match the return type of a gcc2
15623    builtin and then its argument prototype would still apply.  */
15624 char strftime ();
15625 int
15626 main ()
15627 {
15628 strftime ();
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15635   (eval $ac_link) 2>&5
15636   ac_status=$?
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } &&
15639          { ac_try='test -s conftest$ac_exeext'
15640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641   (eval $ac_try) 2>&5
15642   ac_status=$?
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); }; }; then
15645   ac_cv_lib_intl_strftime=yes
15646 else
15647   echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650 ac_cv_lib_intl_strftime=no
15651 fi
15652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15653 LIBS=$ac_check_lib_save_LIBS
15654 fi
15655 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15656 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15657 if test $ac_cv_lib_intl_strftime = yes; then
15658   cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_STRFTIME 1
15660 _ACEOF
15661
15662 LIBS="-lintl $LIBS"
15663 fi
15664
15665 fi
15666 done
15667
15668
15669 for ac_func in vprintf
15670 do
15671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15672 echo "$as_me:$LINENO: checking for $ac_func" >&5
15673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15674 if eval "test \"\${$as_ac_var+set}\" = set"; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   cat >conftest.$ac_ext <<_ACEOF
15678 #line $LINENO "configure"
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684 /* System header to define __stub macros and hopefully few prototypes,
15685     which can conflict with char $ac_func (); below.
15686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15687     <limits.h> exists even on freestanding compilers.  */
15688 #ifdef __STDC__
15689 # include <limits.h>
15690 #else
15691 # include <assert.h>
15692 #endif
15693 /* Override any gcc2 internal prototype to avoid an error.  */
15694 #ifdef __cplusplus
15695 extern "C"
15696 {
15697 #endif
15698 /* We use char because int might match the return type of a gcc2
15699    builtin and then its argument prototype would still apply.  */
15700 char $ac_func ();
15701 /* The GNU C library defines this for functions which it implements
15702     to always fail with ENOSYS.  Some functions are actually named
15703     something starting with __ and the normal name is an alias.  */
15704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15705 choke me
15706 #else
15707 char (*f) () = $ac_func;
15708 #endif
15709 #ifdef __cplusplus
15710 }
15711 #endif
15712
15713 int
15714 main ()
15715 {
15716 return f != $ac_func;
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723   (eval $ac_link) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); } &&
15727          { ac_try='test -s conftest$ac_exeext'
15728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729   (eval $ac_try) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; }; then
15733   eval "$as_ac_var=yes"
15734 else
15735   echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738 eval "$as_ac_var=no"
15739 fi
15740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15741 fi
15742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15744 if test `eval echo '${'$as_ac_var'}'` = yes; then
15745   cat >>confdefs.h <<_ACEOF
15746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15747 _ACEOF
15748
15749 echo "$as_me:$LINENO: checking for _doprnt" >&5
15750 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15751 if test "${ac_cv_func__doprnt+set}" = set; then
15752   echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754   cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761 /* System header to define __stub macros and hopefully few prototypes,
15762     which can conflict with char _doprnt (); below.
15763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15764     <limits.h> exists even on freestanding compilers.  */
15765 #ifdef __STDC__
15766 # include <limits.h>
15767 #else
15768 # include <assert.h>
15769 #endif
15770 /* Override any gcc2 internal prototype to avoid an error.  */
15771 #ifdef __cplusplus
15772 extern "C"
15773 {
15774 #endif
15775 /* We use char because int might match the return type of a gcc2
15776    builtin and then its argument prototype would still apply.  */
15777 char _doprnt ();
15778 /* The GNU C library defines this for functions which it implements
15779     to always fail with ENOSYS.  Some functions are actually named
15780     something starting with __ and the normal name is an alias.  */
15781 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15782 choke me
15783 #else
15784 char (*f) () = _doprnt;
15785 #endif
15786 #ifdef __cplusplus
15787 }
15788 #endif
15789
15790 int
15791 main ()
15792 {
15793 return f != _doprnt;
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800   (eval $ac_link) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } &&
15804          { ac_try='test -s conftest$ac_exeext'
15805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806   (eval $ac_try) 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); }; }; then
15810   ac_cv_func__doprnt=yes
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 ac_cv_func__doprnt=no
15816 fi
15817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15818 fi
15819 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15820 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15821 if test $ac_cv_func__doprnt = yes; then
15822
15823 cat >>confdefs.h <<\_ACEOF
15824 #define HAVE_DOPRNT 1
15825 _ACEOF
15826
15827 fi
15828
15829 fi
15830 done
15831
15832
15833 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15834 # for constant arguments.  Useless!
15835 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15836 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15837 if test "${ac_cv_working_alloca_h+set}" = set; then
15838   echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840   cat >conftest.$ac_ext <<_ACEOF
15841 #line $LINENO "configure"
15842 /* confdefs.h.  */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h.  */
15847 #include <alloca.h>
15848 int
15849 main ()
15850 {
15851 char *p = (char *) alloca (2 * sizeof (int));
15852   ;
15853   return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858   (eval $ac_link) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } &&
15862          { ac_try='test -s conftest$ac_exeext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   ac_cv_working_alloca_h=yes
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 ac_cv_working_alloca_h=no
15874 fi
15875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15876 fi
15877 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15878 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15879 if test $ac_cv_working_alloca_h = yes; then
15880
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE_ALLOCA_H 1
15883 _ACEOF
15884
15885 fi
15886
15887 echo "$as_me:$LINENO: checking for alloca" >&5
15888 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15889 if test "${ac_cv_func_alloca_works+set}" = set; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   cat >conftest.$ac_ext <<_ACEOF
15893 #line $LINENO "configure"
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899 #ifdef __GNUC__
15900 # define alloca __builtin_alloca
15901 #else
15902 # ifdef _MSC_VER
15903 #  include <malloc.h>
15904 #  define alloca _alloca
15905 # else
15906 #  if HAVE_ALLOCA_H
15907 #   include <alloca.h>
15908 #  else
15909 #   ifdef _AIX
15910  #pragma alloca
15911 #   else
15912 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15913 char *alloca ();
15914 #    endif
15915 #   endif
15916 #  endif
15917 # endif
15918 #endif
15919
15920 int
15921 main ()
15922 {
15923 char *p = (char *) alloca (1);
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930   (eval $ac_link) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } &&
15934          { ac_try='test -s conftest$ac_exeext'
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_cv_func_alloca_works=yes
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ac_cv_func_alloca_works=no
15946 fi
15947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15948 fi
15949 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15950 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15951
15952 if test $ac_cv_func_alloca_works = yes; then
15953
15954 cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_ALLOCA 1
15956 _ACEOF
15957
15958 else
15959   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15960 # that cause trouble.  Some versions do not even contain alloca or
15961 # contain a buggy version.  If you still want to use their alloca,
15962 # use ar to extract alloca.o from them instead of compiling alloca.c.
15963
15964 ALLOCA=alloca.$ac_objext
15965
15966 cat >>confdefs.h <<\_ACEOF
15967 #define C_ALLOCA 1
15968 _ACEOF
15969
15970
15971 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15972 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15973 if test "${ac_cv_os_cray+set}" = set; then
15974   echo $ECHO_N "(cached) $ECHO_C" >&6
15975 else
15976   cat >conftest.$ac_ext <<_ACEOF
15977 #line $LINENO "configure"
15978 /* confdefs.h.  */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h.  */
15983 #if defined(CRAY) && ! defined(CRAY2)
15984 webecray
15985 #else
15986 wenotbecray
15987 #endif
15988
15989 _ACEOF
15990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15991   $EGREP "webecray" >/dev/null 2>&1; then
15992   ac_cv_os_cray=yes
15993 else
15994   ac_cv_os_cray=no
15995 fi
15996 rm -f conftest*
15997
15998 fi
15999 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16000 echo "${ECHO_T}$ac_cv_os_cray" >&6
16001 if test $ac_cv_os_cray = yes; then
16002   for ac_func in _getb67 GETB67 getb67; do
16003     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16004 echo "$as_me:$LINENO: checking for $ac_func" >&5
16005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_var+set}\" = set"; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 /* confdefs.h.  */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h.  */
16016 /* System header to define __stub macros and hopefully few prototypes,
16017     which can conflict with char $ac_func (); below.
16018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019     <limits.h> exists even on freestanding compilers.  */
16020 #ifdef __STDC__
16021 # include <limits.h>
16022 #else
16023 # include <assert.h>
16024 #endif
16025 /* Override any gcc2 internal prototype to avoid an error.  */
16026 #ifdef __cplusplus
16027 extern "C"
16028 {
16029 #endif
16030 /* We use char because int might match the return type of a gcc2
16031    builtin and then its argument prototype would still apply.  */
16032 char $ac_func ();
16033 /* The GNU C library defines this for functions which it implements
16034     to always fail with ENOSYS.  Some functions are actually named
16035     something starting with __ and the normal name is an alias.  */
16036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16037 choke me
16038 #else
16039 char (*f) () = $ac_func;
16040 #endif
16041 #ifdef __cplusplus
16042 }
16043 #endif
16044
16045 int
16046 main ()
16047 {
16048 return f != $ac_func;
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055   (eval $ac_link) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } &&
16059          { ac_try='test -s conftest$ac_exeext'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   eval "$as_ac_var=yes"
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 eval "$as_ac_var=no"
16071 fi
16072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16073 fi
16074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16076 if test `eval echo '${'$as_ac_var'}'` = yes; then
16077
16078 cat >>confdefs.h <<_ACEOF
16079 #define CRAY_STACKSEG_END $ac_func
16080 _ACEOF
16081
16082     break
16083 fi
16084
16085   done
16086 fi
16087
16088 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16089 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16090 if test "${ac_cv_c_stack_direction+set}" = set; then
16091   echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093   if test "$cross_compiling" = yes; then
16094   ac_cv_c_stack_direction=0
16095 else
16096   cat >conftest.$ac_ext <<_ACEOF
16097 #line $LINENO "configure"
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 int
16104 find_stack_direction ()
16105 {
16106   static char *addr = 0;
16107   auto char dummy;
16108   if (addr == 0)
16109     {
16110       addr = &dummy;
16111       return find_stack_direction ();
16112     }
16113   else
16114     return (&dummy > addr) ? 1 : -1;
16115 }
16116
16117 int
16118 main ()
16119 {
16120   exit (find_stack_direction () < 0);
16121 }
16122 _ACEOF
16123 rm -f conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125   (eval $ac_link) 2>&5
16126   ac_status=$?
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; }; then
16134   ac_cv_c_stack_direction=1
16135 else
16136   echo "$as_me: program exited with status $ac_status" >&5
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 ( exit $ac_status )
16141 ac_cv_c_stack_direction=-1
16142 fi
16143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16144 fi
16145 fi
16146 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16147 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16148
16149 cat >>confdefs.h <<_ACEOF
16150 #define STACK_DIRECTION $ac_cv_c_stack_direction
16151 _ACEOF
16152
16153
16154 fi
16155
16156 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16157 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16158 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16159 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16160   echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162   ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-lsun  $LIBS"
16164 cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16166 /* confdefs.h.  */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h.  */
16171
16172 /* Override any gcc2 internal prototype to avoid an error.  */
16173 #ifdef __cplusplus
16174 extern "C"
16175 #endif
16176 /* We use char because int might match the return type of a gcc2
16177    builtin and then its argument prototype would still apply.  */
16178 char getmntent ();
16179 int
16180 main ()
16181 {
16182 getmntent ();
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189   (eval $ac_link) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } &&
16193          { ac_try='test -s conftest$ac_exeext'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; }; then
16199   ac_cv_lib_sun_getmntent=yes
16200 else
16201   echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_cv_lib_sun_getmntent=no
16205 fi
16206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16208 fi
16209 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16210 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16211 if test $ac_cv_lib_sun_getmntent = yes; then
16212   LIBS="-lsun $LIBS"
16213 else
16214   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16215 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16216 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   ac_check_lib_save_LIBS=$LIBS
16220 LIBS="-lseq  $LIBS"
16221 cat >conftest.$ac_ext <<_ACEOF
16222 #line $LINENO "configure"
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228
16229 /* Override any gcc2 internal prototype to avoid an error.  */
16230 #ifdef __cplusplus
16231 extern "C"
16232 #endif
16233 /* We use char because int might match the return type of a gcc2
16234    builtin and then its argument prototype would still apply.  */
16235 char getmntent ();
16236 int
16237 main ()
16238 {
16239 getmntent ();
16240   ;
16241   return 0;
16242 }
16243 _ACEOF
16244 rm -f conftest.$ac_objext conftest$ac_exeext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246   (eval $ac_link) 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } &&
16250          { ac_try='test -s conftest$ac_exeext'
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_cv_lib_seq_getmntent=yes
16257 else
16258   echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ac_cv_lib_seq_getmntent=no
16262 fi
16263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16265 fi
16266 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16267 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16268 if test $ac_cv_lib_seq_getmntent = yes; then
16269   LIBS="-lseq $LIBS"
16270 else
16271   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16272 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16273 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276   ac_check_lib_save_LIBS=$LIBS
16277 LIBS="-lgen  $LIBS"
16278 cat >conftest.$ac_ext <<_ACEOF
16279 #line $LINENO "configure"
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285
16286 /* Override any gcc2 internal prototype to avoid an error.  */
16287 #ifdef __cplusplus
16288 extern "C"
16289 #endif
16290 /* We use char because int might match the return type of a gcc2
16291    builtin and then its argument prototype would still apply.  */
16292 char getmntent ();
16293 int
16294 main ()
16295 {
16296 getmntent ();
16297   ;
16298   return 0;
16299 }
16300 _ACEOF
16301 rm -f conftest.$ac_objext conftest$ac_exeext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16303   (eval $ac_link) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } &&
16307          { ac_try='test -s conftest$ac_exeext'
16308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309   (eval $ac_try) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; }; then
16313   ac_cv_lib_gen_getmntent=yes
16314 else
16315   echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_cv_lib_gen_getmntent=no
16319 fi
16320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16321 LIBS=$ac_check_lib_save_LIBS
16322 fi
16323 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16324 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16325 if test $ac_cv_lib_gen_getmntent = yes; then
16326   LIBS="-lgen $LIBS"
16327 fi
16328
16329 fi
16330
16331 fi
16332
16333
16334 for ac_func in getmntent
16335 do
16336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16339 if eval "test \"\${$as_ac_var+set}\" = set"; then
16340   echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342   cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349 /* System header to define __stub macros and hopefully few prototypes,
16350     which can conflict with char $ac_func (); below.
16351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352     <limits.h> exists even on freestanding compilers.  */
16353 #ifdef __STDC__
16354 # include <limits.h>
16355 #else
16356 # include <assert.h>
16357 #endif
16358 /* Override any gcc2 internal prototype to avoid an error.  */
16359 #ifdef __cplusplus
16360 extern "C"
16361 {
16362 #endif
16363 /* We use char because int might match the return type of a gcc2
16364    builtin and then its argument prototype would still apply.  */
16365 char $ac_func ();
16366 /* The GNU C library defines this for functions which it implements
16367     to always fail with ENOSYS.  Some functions are actually named
16368     something starting with __ and the normal name is an alias.  */
16369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16370 choke me
16371 #else
16372 char (*f) () = $ac_func;
16373 #endif
16374 #ifdef __cplusplus
16375 }
16376 #endif
16377
16378 int
16379 main ()
16380 {
16381 return f != $ac_func;
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388   (eval $ac_link) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -s conftest$ac_exeext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   eval "$as_ac_var=yes"
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 eval "$as_ac_var=no"
16404 fi
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16406 fi
16407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16409 if test `eval echo '${'$as_ac_var'}'` = yes; then
16410   cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16412 _ACEOF
16413
16414 fi
16415 done
16416
16417
16418 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16419 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16420 if test "${ac_cv_func_closedir_void+set}" = set; then
16421   echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423   if test "$cross_compiling" = yes; then
16424   ac_cv_func_closedir_void=yes
16425 else
16426   cat >conftest.$ac_ext <<_ACEOF
16427 #line $LINENO "configure"
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 $ac_includes_default
16434 #include <$ac_header_dirent>
16435 #ifndef __cplusplus
16436 int closedir ();
16437 #endif
16438
16439 int
16440 main ()
16441 {
16442 exit (closedir (opendir (".")) != 0);
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 rm -f conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449   (eval $ac_link) 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458   ac_cv_func_closedir_void=no
16459 else
16460   echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464 ( exit $ac_status )
16465 ac_cv_func_closedir_void=yes
16466 fi
16467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16468 fi
16469 fi
16470 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16471 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16472 if test $ac_cv_func_closedir_void = yes; then
16473
16474 cat >>confdefs.h <<\_ACEOF
16475 #define CLOSEDIR_VOID 1
16476 _ACEOF
16477
16478 fi
16479
16480 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16481 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16482 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16483   echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485   if test "$cross_compiling" = yes; then
16486   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16487 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16488    { (exit 1); exit 1; }; }
16489 else
16490   cat >conftest.$ac_ext <<_ACEOF
16491 #line $LINENO "configure"
16492 /* confdefs.h.  */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h.  */
16497 #if HAVE_UNISTD_H
16498 # include <unistd.h>
16499 #endif
16500
16501 int
16502 main ()
16503 {
16504 /* If this system has a BSD-style setpgrp which takes arguments,
16505   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16506   exit successfully. */
16507   exit (setpgrp (1,1) == -1 ? 0 : 1);
16508   ;
16509   return 0;
16510 }
16511 _ACEOF
16512 rm -f conftest$ac_exeext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514   (eval $ac_link) 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   ac_cv_func_setpgrp_void=no
16524 else
16525   echo "$as_me: program exited with status $ac_status" >&5
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16528
16529 ( exit $ac_status )
16530 ac_cv_func_setpgrp_void=yes
16531 fi
16532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16533 fi
16534 fi
16535 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16536 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16537 if test $ac_cv_func_setpgrp_void = yes; then
16538
16539 cat >>confdefs.h <<\_ACEOF
16540 #define SETPGRP_VOID 1
16541 _ACEOF
16542
16543 fi
16544                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16545 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16546 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16547   echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549   # Some versions of Solaris, SCO, and the GNU C Library
16550    # have a broken or incompatible fnmatch.
16551    # So we run a test program.  If we are cross-compiling, take no chance.
16552    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16553    if test "$cross_compiling" = yes; then
16554   ac_cv_func_fnmatch_works=cross
16555 else
16556   cat >conftest.$ac_ext <<_ACEOF
16557 #line $LINENO "configure"
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 #include <fnmatch.h>
16564 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16565 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16566
16567 int
16568 main ()
16569 {
16570 exit
16571            (!(y ("a*", "abc", 0)
16572               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16573               && y ("a\\\\bc", "abc", 0)
16574               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16575               && y ("*x", ".x", 0)
16576               && n ("*x", ".x", FNM_PERIOD)
16577               && 1));
16578   ;
16579   return 0;
16580 }
16581 _ACEOF
16582 rm -f conftest$ac_exeext
16583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16584   (eval $ac_link) 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589   (eval $ac_try) 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); }; }; then
16593   ac_cv_func_fnmatch_works=yes
16594 else
16595   echo "$as_me: program exited with status $ac_status" >&5
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16598
16599 ( exit $ac_status )
16600 ac_cv_func_fnmatch_works=no
16601 fi
16602 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16603 fi
16604 fi
16605 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16606 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16607 if test $ac_cv_func_fnmatch_works = yes; then
16608
16609 cat >>confdefs.h <<\_ACEOF
16610 #define HAVE_FNMATCH 1
16611 _ACEOF
16612
16613 fi
16614
16615
16616
16617
16618
16619 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16620 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16621 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16622   echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624   ac_check_lib_save_LIBS=$LIBS
16625 LIBS="-lxpg4  $LIBS"
16626 cat >conftest.$ac_ext <<_ACEOF
16627 #line $LINENO "configure"
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633
16634 /* Override any gcc2 internal prototype to avoid an error.  */
16635 #ifdef __cplusplus
16636 extern "C"
16637 #endif
16638 /* We use char because int might match the return type of a gcc2
16639    builtin and then its argument prototype would still apply.  */
16640 char setlocale ();
16641 int
16642 main ()
16643 {
16644 setlocale ();
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651   (eval $ac_link) 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } &&
16655          { ac_try='test -s conftest$ac_exeext'
16656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657   (eval $ac_try) 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; }; then
16661   ac_cv_lib_xpg4_setlocale=yes
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666 ac_cv_lib_xpg4_setlocale=no
16667 fi
16668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16670 fi
16671 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16672 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16673 if test $ac_cv_lib_xpg4_setlocale = yes; then
16674   LIBS="$LIBS -lxpg4"
16675 fi
16676
16677
16678
16679
16680 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16681 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16682 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-lsun  $LIBS"
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694
16695 /* Override any gcc2 internal prototype to avoid an error.  */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 /* We use char because int might match the return type of a gcc2
16700    builtin and then its argument prototype would still apply.  */
16701 char getpwnam ();
16702 int
16703 main ()
16704 {
16705 getpwnam ();
16706   ;
16707   return 0;
16708 }
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712   (eval $ac_link) 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } &&
16716          { ac_try='test -s conftest$ac_exeext'
16717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718   (eval $ac_try) 2>&5
16719   ac_status=$?
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }; }; then
16722   ac_cv_lib_sun_getpwnam=yes
16723 else
16724   echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16726
16727 ac_cv_lib_sun_getpwnam=no
16728 fi
16729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16730 LIBS=$ac_check_lib_save_LIBS
16731 fi
16732 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16733 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16734 if test $ac_cv_lib_sun_getpwnam = yes; then
16735   cat >>confdefs.h <<_ACEOF
16736 #define HAVE_LIBSUN 1
16737 _ACEOF
16738
16739   LIBS="-lsun $LIBS"
16740
16741 fi
16742
16743
16744
16745 for ac_header in zlib.h
16746 do
16747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16749   echo "$as_me:$LINENO: checking for $ac_header" >&5
16750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 fi
16754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16756 else
16757   # Is the header compilable?
16758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16760 cat >conftest.$ac_ext <<_ACEOF
16761 #line $LINENO "configure"
16762 /* confdefs.h.  */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h.  */
16767 $ac_includes_default
16768 #include <$ac_header>
16769 _ACEOF
16770 rm -f conftest.$ac_objext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772   (eval $ac_compile) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); } &&
16776          { ac_try='test -s conftest.$ac_objext'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; }; then
16782   ac_header_compiler=yes
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787 ac_header_compiler=no
16788 fi
16789 rm -f conftest.$ac_objext conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16791 echo "${ECHO_T}$ac_header_compiler" >&6
16792
16793 # Is the header present?
16794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16796 cat >conftest.$ac_ext <<_ACEOF
16797 #line $LINENO "configure"
16798 /* confdefs.h.  */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h.  */
16803 #include <$ac_header>
16804 _ACEOF
16805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16807   ac_status=$?
16808   grep -v '^ *+' conftest.er1 >conftest.err
16809   rm -f conftest.er1
16810   cat conftest.err >&5
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } >/dev/null; then
16813   if test -s conftest.err; then
16814     ac_cpp_err=$ac_c_preproc_warn_flag
16815   else
16816     ac_cpp_err=
16817   fi
16818 else
16819   ac_cpp_err=yes
16820 fi
16821 if test -z "$ac_cpp_err"; then
16822   ac_header_preproc=yes
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827   ac_header_preproc=no
16828 fi
16829 rm -f conftest.err conftest.$ac_ext
16830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16831 echo "${ECHO_T}$ac_header_preproc" >&6
16832
16833 # So?  What about this header?
16834 case $ac_header_compiler:$ac_header_preproc in
16835   yes:no )
16836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16840     (
16841       cat <<\_ASBOX
16842 ## ------------------------------------ ##
16843 ## Report this to bug-autoconf@gnu.org. ##
16844 ## ------------------------------------ ##
16845 _ASBOX
16846     ) |
16847       sed "s/^/$as_me: WARNING:     /" >&2
16848     ;;
16849   no:yes )
16850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16852     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16856     (
16857       cat <<\_ASBOX
16858 ## ------------------------------------ ##
16859 ## Report this to bug-autoconf@gnu.org. ##
16860 ## ------------------------------------ ##
16861 _ASBOX
16862     ) |
16863       sed "s/^/$as_me: WARNING:     /" >&2
16864     ;;
16865 esac
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   eval "$as_ac_Header=$ac_header_preproc"
16872 fi
16873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16875
16876 fi
16877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16878   cat >>confdefs.h <<_ACEOF
16879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16880 _ACEOF
16881
16882 fi
16883
16884 done
16885
16886 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16887 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16888 if test "${ac_cv_lib_z_deflate+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   ac_check_lib_save_LIBS=$LIBS
16892 LIBS="-lz  $LIBS"
16893 cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900
16901 /* Override any gcc2 internal prototype to avoid an error.  */
16902 #ifdef __cplusplus
16903 extern "C"
16904 #endif
16905 /* We use char because int might match the return type of a gcc2
16906    builtin and then its argument prototype would still apply.  */
16907 char deflate ();
16908 int
16909 main ()
16910 {
16911 deflate ();
16912   ;
16913   return 0;
16914 }
16915 _ACEOF
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918   (eval $ac_link) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); } &&
16922          { ac_try='test -s conftest$ac_exeext'
16923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924   (eval $ac_try) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   ac_cv_lib_z_deflate=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_cv_lib_z_deflate=no
16934 fi
16935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16937 fi
16938 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
16939 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
16940 if test $ac_cv_lib_z_deflate = yes; then
16941   FDLIBS="-lz"
16942 fi
16943
16944 have_zlib=no
16945 if test x$FDLIBS = x-lz; then
16946   cat >>confdefs.h <<\_ACEOF
16947 #define HAVE_LIBZ 1
16948 _ACEOF
16949
16950   have_zlib=yes
16951 fi
16952
16953 PTHREAD_LIB=""
16954 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16955 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
16956 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16957   echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959   ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-lpthread  $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16962 #line $LINENO "configure"
16963 /* confdefs.h.  */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h.  */
16968
16969 /* Override any gcc2 internal prototype to avoid an error.  */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 /* We use char because int might match the return type of a gcc2
16974    builtin and then its argument prototype would still apply.  */
16975 char pthread_create ();
16976 int
16977 main ()
16978 {
16979 pthread_create ();
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986   (eval $ac_link) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } &&
16990          { ac_try='test -s conftest$ac_exeext'
16991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992   (eval $ac_try) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); }; }; then
16996   ac_cv_lib_pthread_pthread_create=yes
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_cv_lib_pthread_pthread_create=no
17002 fi
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17005 fi
17006 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17007 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17008 if test $ac_cv_lib_pthread_pthread_create = yes; then
17009   PTHREAD_LIB="-lpthread"
17010 else
17011   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17012 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17013 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-lpthreads  $LIBS"
17018 cat >conftest.$ac_ext <<_ACEOF
17019 #line $LINENO "configure"
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026 /* Override any gcc2 internal prototype to avoid an error.  */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 /* We use char because int might match the return type of a gcc2
17031    builtin and then its argument prototype would still apply.  */
17032 char pthread_create ();
17033 int
17034 main ()
17035 {
17036 pthread_create ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043   (eval $ac_link) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } &&
17047          { ac_try='test -s conftest$ac_exeext'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053   ac_cv_lib_pthreads_pthread_create=yes
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_lib_pthreads_pthread_create=no
17059 fi
17060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17062 fi
17063 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17064 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17065 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17066   PTHREAD_LIB="-lpthreads"
17067 else
17068   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17069 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17070 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-lc_r  $LIBS"
17075 cat >conftest.$ac_ext <<_ACEOF
17076 #line $LINENO "configure"
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082
17083 /* Override any gcc2 internal prototype to avoid an error.  */
17084 #ifdef __cplusplus
17085 extern "C"
17086 #endif
17087 /* We use char because int might match the return type of a gcc2
17088    builtin and then its argument prototype would still apply.  */
17089 char pthread_create ();
17090 int
17091 main ()
17092 {
17093 pthread_create ();
17094   ;
17095   return 0;
17096 }
17097 _ACEOF
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17100   (eval $ac_link) 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } &&
17104          { ac_try='test -s conftest$ac_exeext'
17105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106   (eval $ac_try) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }; }; then
17110   ac_cv_lib_c_r_pthread_create=yes
17111 else
17112   echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115 ac_cv_lib_c_r_pthread_create=no
17116 fi
17117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17118 LIBS=$ac_check_lib_save_LIBS
17119 fi
17120 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17121 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17122 if test $ac_cv_lib_c_r_pthread_create = yes; then
17123   PTHREAD_LIB="-lc_r"
17124 else
17125   echo "$as_me:$LINENO: checking for pthread_create" >&5
17126 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17127 if test "${ac_cv_func_pthread_create+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   cat >conftest.$ac_ext <<_ACEOF
17131 #line $LINENO "configure"
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 /* System header to define __stub macros and hopefully few prototypes,
17138     which can conflict with char pthread_create (); below.
17139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17140     <limits.h> exists even on freestanding compilers.  */
17141 #ifdef __STDC__
17142 # include <limits.h>
17143 #else
17144 # include <assert.h>
17145 #endif
17146 /* Override any gcc2 internal prototype to avoid an error.  */
17147 #ifdef __cplusplus
17148 extern "C"
17149 {
17150 #endif
17151 /* We use char because int might match the return type of a gcc2
17152    builtin and then its argument prototype would still apply.  */
17153 char pthread_create ();
17154 /* The GNU C library defines this for functions which it implements
17155     to always fail with ENOSYS.  Some functions are actually named
17156     something starting with __ and the normal name is an alias.  */
17157 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17158 choke me
17159 #else
17160 char (*f) () = pthread_create;
17161 #endif
17162 #ifdef __cplusplus
17163 }
17164 #endif
17165
17166 int
17167 main ()
17168 {
17169 return f != pthread_create;
17170   ;
17171   return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.$ac_objext conftest$ac_exeext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17176   (eval $ac_link) 2>&5
17177   ac_status=$?
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); } &&
17180          { ac_try='test -s conftest$ac_exeext'
17181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182   (eval $ac_try) 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; }; then
17186   ac_cv_func_pthread_create=yes
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 ac_cv_func_pthread_create=no
17192 fi
17193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17194 fi
17195 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17196 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17197
17198
17199 fi
17200
17201
17202 fi
17203
17204
17205 fi
17206
17207
17208
17209 cat >>confdefs.h <<\_ACEOF
17210 #define FDLIBS 1
17211 _ACEOF
17212
17213
17214
17215 CFLAGS=${CFLAGS--O}
17216 LDFLAGS=${LDFLAGS--O}
17217 DB_LIBS="${SQL_LFLAGS}"
17218
17219 CPPFLAGS="$CPPFLAGS"
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234 OBJLIST=
17235
17236
17237 lld="lld"
17238 llu="llu"
17239
17240 WCFLAGS=
17241 WLDFLAGS=
17242
17243 #
17244 # Finally we set appropriate distribution specific
17245 #  variables and defaults
17246 #
17247 # PFILES are platform specific files
17248 PFILES="platforms/Makefile"
17249 PSCMD="ps -e"
17250 WIN32=
17251 hostname=`uname -n`
17252 case "$DISTNAME" in
17253 aix)
17254         DISTVER=`uname -r`
17255         PSCMD="ps -e -o pid,comm"
17256         PFILES="${PFILES} \
17257            platforms/aix/Makefile"
17258         TAPEDRIVE="/dev/rmt0.1"
17259   ;;
17260 alpha)
17261         DISTVER=`uname -r`
17262         PTHREAD_LIB="-lpthread -lexc"
17263         if test "${CC}" = "gcc" ; then
17264            lld="lld"
17265            llu="llu"
17266         else
17267            lld="ld"
17268            llu="lu"
17269         fi
17270         TAPEDRIVE="/dev/nrmt0"
17271   ;;
17272 bsdi)
17273         DISTVER=`uname -a |awk '{print $3}'`
17274         TAPEDRIVE="/dev/nrmt0"
17275         PTHREAD_LIB="-pthread"
17276         CFLAGS="${CFLAGS} -pthread"
17277         PSCMD="ps -x -o pid,command"
17278         lld="qd"
17279         llu="qu"
17280         PFILES="${PFILES} \
17281             platforms/bsdi/Makefile \
17282             platforms/bsdi/bacula-fd \
17283             platforms/bsdi/bacula-sd \
17284             platforms/bsdi/bacula-dir"
17285         hostname=`hostname -s`
17286         largefile_support="yes"
17287   ;;
17288 cygwin)
17289         DISTVER=`uname -a |awk '{print $3}'`
17290         TAPEDRIVE="/dev/nrst0"
17291         WIN32=win32
17292         WCFLAGS="-mwindows"
17293         WLDFLAGS="-mwindows"
17294   ;;
17295 darwin)
17296         DISTVER=`uname -r`
17297         TAPEDRIVE="/dev/nst0"
17298         PSCMD="ps -e -o pid,command"
17299         hostname=`hostname -s`
17300         PFILES="${PFILES} \
17301            platforms/darwin/Makefile"
17302   ;;
17303 debian)
17304         DISTVER=`cat /etc/debian_version`
17305         TAPEDRIVE="/dev/nrst0"
17306         PSCMD="ps -e -o pid,command"
17307         hostname=`hostname -s`
17308   ;;
17309 freebsd)
17310         DISTVER=`uname -a |awk '{print $3}'`
17311         VER=`echo $DISTVER | cut -c 1`
17312         if test x$VER = x4 ; then
17313            PTHREAD_LIB="-pthread"
17314            CFLAGS="${CFLAGS} -pthread"
17315         fi
17316         lld="qd"
17317         llu="qu"
17318         TAPEDRIVE="/dev/nrsa0"
17319         PSCMD="ps -x -o pid,command"
17320         PFILES="${PFILES} \
17321             platforms/freebsd/Makefile \
17322             platforms/freebsd/bacula-fd \
17323             platforms/freebsd/bacula-sd \
17324             platforms/freebsd/bacula-dir"
17325         hostname=`hostname -s`
17326         largefile_support="yes"
17327   ;;
17328 hpux)
17329         DISTVER=`uname -r`
17330         TAPEDRIVE="/dev/rmt/0hnb"
17331   ;;
17332 irix)
17333         DISTVER=`uname -r`
17334         TAPEDRIVE="/dev/rmt/0cbn"
17335         PSCMD="ps -e -o pid,comm"
17336         PFILES="${PFILES} \
17337             platforms/irix/Makefile \
17338             platforms/irix/bacula-fd \
17339             platforms/irix/bacula-sd \
17340             platforms/irix/bacula-dir"
17341   ;;
17342 netbsd)
17343         DISTVER=`uname -a |awk '{print $3}'`
17344         lld="qd"
17345         llu="qu"
17346         TAPEDRIVE="/dev/nrst0"
17347         PSCMD="ps -a -o pid,command"
17348         PTHREAD_LIB="-pthread"
17349         CFLAGS="${CFLAGS} -pthread"
17350   ;;
17351 openbsd)
17352         DISTVER=`uname -a |awk '{print $3}'`
17353         lld="qd"
17354         llu="qu"
17355         TAPEDRIVE="/dev/nrst0"
17356         PSCMD="ps -a -o pid,command"
17357         PTHREAD_LIB="-pthread"
17358         CFLAGS="${CFLAGS} -pthread"
17359         PFILES="${PFILES} \
17360             platforms/openbsd/Makefile \
17361             platforms/openbsd/bacula-fd \
17362             platforms/openbsd/bacula-sd \
17363             platforms/openbsd/bacula-dir"
17364   ;;
17365 redhat)
17366         DISTVER=`cat /etc/redhat-release | grep release |\
17367            cut -f 5 -d ' '`
17368         TAPEDRIVE="/dev/nst0"
17369         PSCMD="ps -e -o pid,command"
17370         PFILES="${PFILES} \
17371             platforms/redhat/Makefile \
17372             platforms/redhat/bacula-fd \
17373             platforms/redhat/bacula-sd \
17374             platforms/redhat/bacula-dir \
17375             platforms/redhat/bacula.spec \
17376             "
17377         hostname=`hostname -s`
17378   ;;
17379 mandrake)
17380         DISTVER=`cat /etc/mandrake-release | grep release |\
17381            cut -f 5 -d ' '`
17382         TAPEDRIVE="/dev/nst0"
17383         PSCMD="ps -e -o pid,command"
17384         PFILES="${PFILES} \
17385             platforms/mandrake/Makefile \
17386             platforms/mandrake/bacula-fd \
17387             platforms/mandrake/bacula-sd \
17388             platforms/mandrake/bacula-dir \
17389             platforms/mandrake/bacula.spec \
17390             "
17391         hostname=`hostname -s`
17392   ;;
17393 gentoo)
17394         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17395         TAPEDRIVE="/dev/nst0"
17396         PSCMD="ps -e -o pid,command"
17397         PFILES="${PFILES} \
17398             platforms/gentoo/Makefile \
17399             platforms/gentoo/bacula-fd \
17400             platforms/gentoo/bacula-sd \
17401             platforms/gentoo/bacula-dir"
17402         hostname=`hostname -s`
17403   ;;
17404
17405 slackware)
17406         DISTVER=`cat /etc/slackware-version`
17407         TAPEDRIVE="/dev/nst0"
17408         PSCMD="ps -e -o pid,command"
17409         hostname=`hostname -s`
17410   ;;
17411 solaris)
17412         DISTVER=`uname -r`
17413         TAPEDRIVE="/dev/rmt/0cbn"
17414         PSCMD="ps -e -o pid,comm"
17415         PFILES="${PFILES} \
17416             platforms/solaris/Makefile \
17417             platforms/solaris/bacula-fd \
17418             platforms/solaris/bacula-sd \
17419             platforms/solaris/bacula-dir"
17420         if test x$DISTVER = x5.6 ; then
17421             cat >>confdefs.h <<\_ACEOF
17422 #define HAVE_OLD_SOCKOPT 1
17423 _ACEOF
17424
17425         fi
17426   ;;
17427 suse)
17428         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17429             cut -f 3 -d ' '`
17430         TAPEDRIVE="/dev/nst0"
17431         PSCMD="ps -e -o pid,command"
17432         hostname=`hostname -s`
17433   ;;
17434 suse5)
17435         DISTNAME=suse
17436         DISTVER=5.x
17437         TAPEDRIVE="/dev/nst0"
17438         PSCMD="ps -e -o pid,command"
17439         hostname=`hostname -s`
17440   ;;
17441 unknown)
17442         DISTVER=unknown
17443         TAPEDRIVE="/dev/nst0"
17444   ;;
17445 *)
17446   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17447   ;;
17448 esac
17449
17450
17451
17452 LIBS="$PTHREAD_LIB $LIBS"
17453
17454 cat >>confdefs.h <<_ACEOF
17455 #define lld "$lld"
17456 _ACEOF
17457
17458 cat >>confdefs.h <<_ACEOF
17459 #define llu "$llu"
17460 _ACEOF
17461
17462
17463
17464
17465
17466
17467
17468 MCOMMON=./autoconf/Make.common
17469
17470
17471 if test "x${subsysdir}" = "x${sbindir}" ; then
17472    echo " "
17473    echo " "
17474    echo "You have set both --sbindir and --with-subsys-dir"
17475    echo "  equal to: ${subsysdir} "
17476    echo "This is not permitted. Please reconfigure."
17477    echo " "
17478    echo "Aborting configuration ..."
17479    echo " "
17480    echo " "
17481    exit 1
17482 fi
17483
17484                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/console scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/console.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile 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/alter_mysql_tables src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/alter_sqlite_tables src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17485           ac_config_commands="$ac_config_commands default"
17486 cat >confcache <<\_ACEOF
17487 # This file is a shell script that caches the results of configure
17488 # tests run on this system so they can be shared between configure
17489 # scripts and configure runs, see configure's option --config-cache.
17490 # It is not useful on other systems.  If it contains results you don't
17491 # want to keep, you may remove or edit it.
17492 #
17493 # config.status only pays attention to the cache file if you give it
17494 # the --recheck option to rerun configure.
17495 #
17496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17498 # following values.
17499
17500 _ACEOF
17501
17502 # The following way of writing the cache mishandles newlines in values,
17503 # but we know of no workaround that is simple, portable, and efficient.
17504 # So, don't put newlines in cache variables' values.
17505 # Ultrix sh set writes to stderr and can't be redirected directly,
17506 # and sets the high bit in the cache file unless we assign to the vars.
17507 {
17508   (set) 2>&1 |
17509     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17510     *ac_space=\ *)
17511       # `set' does not quote correctly, so add quotes (double-quote
17512       # substitution turns \\\\ into \\, and sed turns \\ into \).
17513       sed -n \
17514         "s/'/'\\\\''/g;
17515           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17516       ;;
17517     *)
17518       # `set' quotes correctly as required by POSIX, so do not add quotes.
17519       sed -n \
17520         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17521       ;;
17522     esac;
17523 } |
17524   sed '
17525      t clear
17526      : clear
17527      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17528      t end
17529      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17530      : end' >>confcache
17531 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17532   if test -w $cache_file; then
17533     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17534     cat confcache >$cache_file
17535   else
17536     echo "not updating unwritable cache $cache_file"
17537   fi
17538 fi
17539 rm -f confcache
17540
17541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17542 # Let make expand exec_prefix.
17543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17544
17545 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17546 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17547 # trailing colons and then remove the whole line if VPATH becomes empty
17548 # (actually we leave an empty line to preserve line numbers).
17549 if test "x$srcdir" = x.; then
17550   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17551 s/:*\$(srcdir):*/:/;
17552 s/:*\${srcdir}:*/:/;
17553 s/:*@srcdir@:*/:/;
17554 s/^\([^=]*=[    ]*\):*/\1/;
17555 s/:*$//;
17556 s/^[^=]*=[      ]*$//;
17557 }'
17558 fi
17559
17560 DEFS=-DHAVE_CONFIG_H
17561
17562 ac_libobjs=
17563 ac_ltlibobjs=
17564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17565   # 1. Remove the extension, and $U if already installed.
17566   ac_i=`echo "$ac_i" |
17567          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17568   # 2. Add them.
17569   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17570   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17571 done
17572 LIBOBJS=$ac_libobjs
17573
17574 LTLIBOBJS=$ac_ltlibobjs
17575
17576
17577
17578 : ${CONFIG_STATUS=./config.status}
17579 ac_clean_files_save=$ac_clean_files
17580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17581 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17582 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17583 cat >$CONFIG_STATUS <<_ACEOF
17584 #! $SHELL
17585 # Generated by $as_me.
17586 # Run this file to recreate the current configuration.
17587 # Compiler output produced by configure, useful for debugging
17588 # configure, is in config.log if it exists.
17589
17590 debug=false
17591 ac_cs_recheck=false
17592 ac_cs_silent=false
17593 SHELL=\${CONFIG_SHELL-$SHELL}
17594 _ACEOF
17595
17596 cat >>$CONFIG_STATUS <<\_ACEOF
17597 ## --------------------- ##
17598 ## M4sh Initialization.  ##
17599 ## --------------------- ##
17600
17601 # Be Bourne compatible
17602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17603   emulate sh
17604   NULLCMD=:
17605   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17606   # is contrary to our usage.  Disable this feature.
17607   alias -g '${1+"$@"}'='"$@"'
17608 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17609   set -o posix
17610 fi
17611
17612 # Support unset when possible.
17613 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17614   as_unset=unset
17615 else
17616   as_unset=false
17617 fi
17618
17619
17620 # Work around bugs in pre-3.0 UWIN ksh.
17621 $as_unset ENV MAIL MAILPATH
17622 PS1='$ '
17623 PS2='> '
17624 PS4='+ '
17625
17626 # NLS nuisances.
17627 for as_var in \
17628   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17629   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17630   LC_TELEPHONE LC_TIME
17631 do
17632   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17633     eval $as_var=C; export $as_var
17634   else
17635     $as_unset $as_var
17636   fi
17637 done
17638
17639 # Required to use basename.
17640 if expr a : '\(a\)' >/dev/null 2>&1; then
17641   as_expr=expr
17642 else
17643   as_expr=false
17644 fi
17645
17646 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17647   as_basename=basename
17648 else
17649   as_basename=false
17650 fi
17651
17652
17653 # Name of the executable.
17654 as_me=`$as_basename "$0" ||
17655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17656          X"$0" : 'X\(//\)$' \| \
17657          X"$0" : 'X\(/\)$' \| \
17658          .     : '\(.\)' 2>/dev/null ||
17659 echo X/"$0" |
17660     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17661           /^X\/\(\/\/\)$/{ s//\1/; q; }
17662           /^X\/\(\/\).*/{ s//\1/; q; }
17663           s/.*/./; q'`
17664
17665
17666 # PATH needs CR, and LINENO needs CR and PATH.
17667 # Avoid depending upon Character Ranges.
17668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17671 as_cr_digits='0123456789'
17672 as_cr_alnum=$as_cr_Letters$as_cr_digits
17673
17674 # The user is always right.
17675 if test "${PATH_SEPARATOR+set}" != set; then
17676   echo "#! /bin/sh" >conf$$.sh
17677   echo  "exit 0"   >>conf$$.sh
17678   chmod +x conf$$.sh
17679   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17680     PATH_SEPARATOR=';'
17681   else
17682     PATH_SEPARATOR=:
17683   fi
17684   rm -f conf$$.sh
17685 fi
17686
17687
17688   as_lineno_1=$LINENO
17689   as_lineno_2=$LINENO
17690   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17691   test "x$as_lineno_1" != "x$as_lineno_2" &&
17692   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17693   # Find who we are.  Look in the path if we contain no path at all
17694   # relative or not.
17695   case $0 in
17696     *[\\/]* ) as_myself=$0 ;;
17697     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17698 for as_dir in $PATH
17699 do
17700   IFS=$as_save_IFS
17701   test -z "$as_dir" && as_dir=.
17702   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17703 done
17704
17705        ;;
17706   esac
17707   # We did not find ourselves, most probably we were run as `sh COMMAND'
17708   # in which case we are not to be found in the path.
17709   if test "x$as_myself" = x; then
17710     as_myself=$0
17711   fi
17712   if test ! -f "$as_myself"; then
17713     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17714 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17715    { (exit 1); exit 1; }; }
17716   fi
17717   case $CONFIG_SHELL in
17718   '')
17719     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17720 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17721 do
17722   IFS=$as_save_IFS
17723   test -z "$as_dir" && as_dir=.
17724   for as_base in sh bash ksh sh5; do
17725          case $as_dir in
17726          /*)
17727            if ("$as_dir/$as_base" -c '
17728   as_lineno_1=$LINENO
17729   as_lineno_2=$LINENO
17730   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17731   test "x$as_lineno_1" != "x$as_lineno_2" &&
17732   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17733              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17734              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17735              CONFIG_SHELL=$as_dir/$as_base
17736              export CONFIG_SHELL
17737              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17738            fi;;
17739          esac
17740        done
17741 done
17742 ;;
17743   esac
17744
17745   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17746   # uniformly replaced by the line number.  The first 'sed' inserts a
17747   # line-number line before each line; the second 'sed' does the real
17748   # work.  The second script uses 'N' to pair each line-number line
17749   # with the numbered line, and appends trailing '-' during
17750   # substitution so that $LINENO is not a special case at line end.
17751   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17752   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17753   sed '=' <$as_myself |
17754     sed '
17755       N
17756       s,$,-,
17757       : loop
17758       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17759       t loop
17760       s,-$,,
17761       s,^['$as_cr_digits']*\n,,
17762     ' >$as_me.lineno &&
17763   chmod +x $as_me.lineno ||
17764     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17765 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17766    { (exit 1); exit 1; }; }
17767
17768   # Don't try to exec as it changes $[0], causing all sort of problems
17769   # (the dirname of $[0] is not the place where we might find the
17770   # original and so on.  Autoconf is especially sensible to this).
17771   . ./$as_me.lineno
17772   # Exit status is that of the last command.
17773   exit
17774 }
17775
17776
17777 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17778   *c*,-n*) ECHO_N= ECHO_C='
17779 ' ECHO_T='      ' ;;
17780   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17781   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17782 esac
17783
17784 if expr a : '\(a\)' >/dev/null 2>&1; then
17785   as_expr=expr
17786 else
17787   as_expr=false
17788 fi
17789
17790 rm -f conf$$ conf$$.exe conf$$.file
17791 echo >conf$$.file
17792 if ln -s conf$$.file conf$$ 2>/dev/null; then
17793   # We could just check for DJGPP; but this test a) works b) is more generic
17794   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17795   if test -f conf$$.exe; then
17796     # Don't use ln at all; we don't have any links
17797     as_ln_s='cp -p'
17798   else
17799     as_ln_s='ln -s'
17800   fi
17801 elif ln conf$$.file conf$$ 2>/dev/null; then
17802   as_ln_s=ln
17803 else
17804   as_ln_s='cp -p'
17805 fi
17806 rm -f conf$$ conf$$.exe conf$$.file
17807
17808 if mkdir -p . 2>/dev/null; then
17809   as_mkdir_p=:
17810 else
17811   as_mkdir_p=false
17812 fi
17813
17814 as_executable_p="test -f"
17815
17816 # Sed expression to map a string onto a valid CPP name.
17817 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17818
17819 # Sed expression to map a string onto a valid variable name.
17820 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17821
17822
17823 # IFS
17824 # We need space, tab and new line, in precisely that order.
17825 as_nl='
17826 '
17827 IFS="   $as_nl"
17828
17829 # CDPATH.
17830 $as_unset CDPATH
17831
17832 exec 6>&1
17833
17834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17835 # report actual input values of CONFIG_FILES etc. instead of their
17836 # values after options handling.  Logging --version etc. is OK.
17837 exec 5>>config.log
17838 {
17839   echo
17840   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17841 ## Running $as_me. ##
17842 _ASBOX
17843 } >&5
17844 cat >&5 <<_CSEOF
17845
17846 This file was extended by $as_me, which was
17847 generated by GNU Autoconf 2.57.  Invocation command line was
17848
17849   CONFIG_FILES    = $CONFIG_FILES
17850   CONFIG_HEADERS  = $CONFIG_HEADERS
17851   CONFIG_LINKS    = $CONFIG_LINKS
17852   CONFIG_COMMANDS = $CONFIG_COMMANDS
17853   $ $0 $@
17854
17855 _CSEOF
17856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17857 echo >&5
17858 _ACEOF
17859
17860 # Files that config.status was made for.
17861 if test -n "$ac_config_files"; then
17862   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17863 fi
17864
17865 if test -n "$ac_config_headers"; then
17866   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17867 fi
17868
17869 if test -n "$ac_config_links"; then
17870   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17871 fi
17872
17873 if test -n "$ac_config_commands"; then
17874   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17875 fi
17876
17877 cat >>$CONFIG_STATUS <<\_ACEOF
17878
17879 ac_cs_usage="\
17880 \`$as_me' instantiates files from templates according to the
17881 current configuration.
17882
17883 Usage: $0 [OPTIONS] [FILE]...
17884
17885   -h, --help       print this help, then exit
17886   -V, --version    print version number, then exit
17887   -q, --quiet      do not print progress messages
17888   -d, --debug      don't remove temporary files
17889       --recheck    update $as_me by reconfiguring in the same conditions
17890   --file=FILE[:TEMPLATE]
17891                    instantiate the configuration file FILE
17892   --header=FILE[:TEMPLATE]
17893                    instantiate the configuration header FILE
17894
17895 Configuration files:
17896 $config_files
17897
17898 Configuration headers:
17899 $config_headers
17900
17901 Configuration commands:
17902 $config_commands
17903
17904 Report bugs to <bug-autoconf@gnu.org>."
17905 _ACEOF
17906
17907 cat >>$CONFIG_STATUS <<_ACEOF
17908 ac_cs_version="\\
17909 config.status
17910 configured by $0, generated by GNU Autoconf 2.57,
17911   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17912
17913 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17914 Free Software Foundation, Inc.
17915 This config.status script is free software; the Free Software Foundation
17916 gives unlimited permission to copy, distribute and modify it."
17917 srcdir=$srcdir
17918 INSTALL="$INSTALL"
17919 _ACEOF
17920
17921 cat >>$CONFIG_STATUS <<\_ACEOF
17922 # If no file are specified by the user, then we need to provide default
17923 # value.  By we need to know if files were specified by the user.
17924 ac_need_defaults=:
17925 while test $# != 0
17926 do
17927   case $1 in
17928   --*=*)
17929     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17930     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17931     ac_shift=:
17932     ;;
17933   -*)
17934     ac_option=$1
17935     ac_optarg=$2
17936     ac_shift=shift
17937     ;;
17938   *) # This is not an option, so the user has probably given explicit
17939      # arguments.
17940      ac_option=$1
17941      ac_need_defaults=false;;
17942   esac
17943
17944   case $ac_option in
17945   # Handling of the options.
17946 _ACEOF
17947 cat >>$CONFIG_STATUS <<\_ACEOF
17948   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17949     ac_cs_recheck=: ;;
17950   --version | --vers* | -V )
17951     echo "$ac_cs_version"; exit 0 ;;
17952   --he | --h)
17953     # Conflict between --help and --header
17954     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17955 Try \`$0 --help' for more information." >&5
17956 echo "$as_me: error: ambiguous option: $1
17957 Try \`$0 --help' for more information." >&2;}
17958    { (exit 1); exit 1; }; };;
17959   --help | --hel | -h )
17960     echo "$ac_cs_usage"; exit 0 ;;
17961   --debug | --d* | -d )
17962     debug=: ;;
17963   --file | --fil | --fi | --f )
17964     $ac_shift
17965     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17966     ac_need_defaults=false;;
17967   --header | --heade | --head | --hea )
17968     $ac_shift
17969     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17970     ac_need_defaults=false;;
17971   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17972   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17973     ac_cs_silent=: ;;
17974
17975   # This is an error.
17976   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17977 Try \`$0 --help' for more information." >&5
17978 echo "$as_me: error: unrecognized option: $1
17979 Try \`$0 --help' for more information." >&2;}
17980    { (exit 1); exit 1; }; } ;;
17981
17982   *) ac_config_targets="$ac_config_targets $1" ;;
17983
17984   esac
17985   shift
17986 done
17987
17988 ac_configure_extra_args=
17989
17990 if $ac_cs_silent; then
17991   exec 6>/dev/null
17992   ac_configure_extra_args="$ac_configure_extra_args --silent"
17993 fi
17994
17995 _ACEOF
17996 cat >>$CONFIG_STATUS <<_ACEOF
17997 if \$ac_cs_recheck; then
17998   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17999   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18000 fi
18001
18002 _ACEOF
18003
18004
18005
18006
18007
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18009 for ac_config_target in $ac_config_targets
18010 do
18011   case "$ac_config_target" in
18012   # Handling of arguments.
18013   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18014   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18015   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18016   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18017   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18018   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18019   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18020   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18021   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18022   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18023   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18024   "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18025   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18026   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18027   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18028   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18029   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18030   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18031   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18032   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18033   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18034   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18035   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18036   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18037   "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18038   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18039   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18040   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18041   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18042   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18043   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18044   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18045   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18046   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18047   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18048   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18049   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18050   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18051   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18052   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18053   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18054   "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
18055   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18056   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18057   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18058   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18059   "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18060   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18061   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18062   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18063   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18064   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18065   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18066   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18067   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18068   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18069   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18070   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18071   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18072   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18073   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18074   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18075   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18077    { (exit 1); exit 1; }; };;
18078   esac
18079 done
18080
18081 # If the user did not use the arguments to specify the items to instantiate,
18082 # then the envvar interface is used.  Set only those that are not.
18083 # We use the long form for the default assignment because of an extremely
18084 # bizarre bug on SunOS 4.1.3.
18085 if $ac_need_defaults; then
18086   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18087   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18088   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18089 fi
18090
18091 # Have a temporary directory for convenience.  Make it in the build tree
18092 # simply because there is no reason to put it here, and in addition,
18093 # creating and moving files from /tmp can sometimes cause problems.
18094 # Create a temporary directory, and hook for its removal unless debugging.
18095 $debug ||
18096 {
18097   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18098   trap '{ (exit 1); exit 1; }' 1 2 13 15
18099 }
18100
18101 # Create a (secure) tmp directory for tmp files.
18102
18103 {
18104   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18105   test -n "$tmp" && test -d "$tmp"
18106 }  ||
18107 {
18108   tmp=./confstat$$-$RANDOM
18109   (umask 077 && mkdir $tmp)
18110 } ||
18111 {
18112    echo "$me: cannot create a temporary directory in ." >&2
18113    { (exit 1); exit 1; }
18114 }
18115
18116 _ACEOF
18117
18118 cat >>$CONFIG_STATUS <<_ACEOF
18119
18120 #
18121 # CONFIG_FILES section.
18122 #
18123
18124 # No need to generate the scripts if there are no CONFIG_FILES.
18125 # This happens for instance when ./config.status config.h
18126 if test -n "\$CONFIG_FILES"; then
18127   # Protect against being on the right side of a sed subst in config.status.
18128   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18129    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18130 s,@SHELL@,$SHELL,;t t
18131 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18132 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18133 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18134 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18135 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18136 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18137 s,@exec_prefix@,$exec_prefix,;t t
18138 s,@prefix@,$prefix,;t t
18139 s,@program_transform_name@,$program_transform_name,;t t
18140 s,@bindir@,$bindir,;t t
18141 s,@sbindir@,$sbindir,;t t
18142 s,@libexecdir@,$libexecdir,;t t
18143 s,@datadir@,$datadir,;t t
18144 s,@sysconfdir@,$sysconfdir,;t t
18145 s,@sharedstatedir@,$sharedstatedir,;t t
18146 s,@localstatedir@,$localstatedir,;t t
18147 s,@libdir@,$libdir,;t t
18148 s,@includedir@,$includedir,;t t
18149 s,@oldincludedir@,$oldincludedir,;t t
18150 s,@infodir@,$infodir,;t t
18151 s,@mandir@,$mandir,;t t
18152 s,@build_alias@,$build_alias,;t t
18153 s,@host_alias@,$host_alias,;t t
18154 s,@target_alias@,$target_alias,;t t
18155 s,@DEFS@,$DEFS,;t t
18156 s,@ECHO_C@,$ECHO_C,;t t
18157 s,@ECHO_N@,$ECHO_N,;t t
18158 s,@ECHO_T@,$ECHO_T,;t t
18159 s,@LIBS@,$LIBS,;t t
18160 s,@BUILD_DIR@,$BUILD_DIR,;t t
18161 s,@TRUEPRG@,$TRUEPRG,;t t
18162 s,@FALSEPRG@,$FALSEPRG,;t t
18163 s,@build@,$build,;t t
18164 s,@build_cpu@,$build_cpu,;t t
18165 s,@build_vendor@,$build_vendor,;t t
18166 s,@build_os@,$build_os,;t t
18167 s,@host@,$host,;t t
18168 s,@host_cpu@,$host_cpu,;t t
18169 s,@host_vendor@,$host_vendor,;t t
18170 s,@host_os@,$host_os,;t t
18171 s,@VERSION@,$VERSION,;t t
18172 s,@DATE@,$DATE,;t t
18173 s,@LSMDATE@,$LSMDATE,;t t
18174 s,@CC@,$CC,;t t
18175 s,@CFLAGS@,$CFLAGS,;t t
18176 s,@LDFLAGS@,$LDFLAGS,;t t
18177 s,@CPPFLAGS@,$CPPFLAGS,;t t
18178 s,@ac_ct_CC@,$ac_ct_CC,;t t
18179 s,@EXEEXT@,$EXEEXT,;t t
18180 s,@OBJEXT@,$OBJEXT,;t t
18181 s,@CXX@,$CXX,;t t
18182 s,@CXXFLAGS@,$CXXFLAGS,;t t
18183 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18184 s,@CPP@,$CPP,;t t
18185 s,@EGREP@,$EGREP,;t t
18186 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18187 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18188 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18189 s,@RANLIB@,$RANLIB,;t t
18190 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18191 s,@MV@,$MV,;t t
18192 s,@RM@,$RM,;t t
18193 s,@CP@,$CP,;t t
18194 s,@SED@,$SED,;t t
18195 s,@AWK@,$AWK,;t t
18196 s,@ECHO@,$ECHO,;t t
18197 s,@CMP@,$CMP,;t t
18198 s,@TBL@,$TBL,;t t
18199 s,@AR@,$AR,;t t
18200 s,@OPENSSL@,$OPENSSL,;t t
18201 s,@MTX@,$MTX,;t t
18202 s,@PKGCONFIG@,$PKGCONFIG,;t t
18203 s,@ARFLAGS@,$ARFLAGS,;t t
18204 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18205 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18206 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18207 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18208 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18209 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18210 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18211 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18212 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18213 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18214 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18215 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18216 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18217 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18218 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18219 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18220 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18221 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18222 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18223 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18224 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18225 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18226 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18227 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18228 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18229 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18230 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18231 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18232 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18233 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18234 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18235 s,@MSGFMT@,$MSGFMT,;t t
18236 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18237 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18238 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18239 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18240 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18241 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18242 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18243 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18244 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18245 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18246 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18247 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18248 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18249 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18250 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18251 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18252 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18253 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18254 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18255 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18256 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18257 s,@GNOME_DIR@,$GNOME_DIR,;t t
18258 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18259 s,@STATIC_FD@,$STATIC_FD,;t t
18260 s,@STATIC_SD@,$STATIC_SD,;t t
18261 s,@STATIC_DIR@,$STATIC_DIR,;t t
18262 s,@STATIC_CONS@,$STATIC_CONS,;t t
18263 s,@ALL_DIRS@,$ALL_DIRS,;t t
18264 s,@CONS_INC@,$CONS_INC,;t t
18265 s,@CONS_LIBS@,$CONS_LIBS,;t t
18266 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18267 s,@READLINE_SRC@,$READLINE_SRC,;t t
18268 s,@working_dir@,$working_dir,;t t
18269 s,@scriptdir@,$scriptdir,;t t
18270 s,@dump_email@,$dump_email,;t t
18271 s,@job_email@,$job_email,;t t
18272 s,@smtp_host@,$smtp_host,;t t
18273 s,@piddir@,$piddir,;t t
18274 s,@subsysdir@,$subsysdir,;t t
18275 s,@baseport@,$baseport,;t t
18276 s,@dir_port@,$dir_port,;t t
18277 s,@fd_port@,$fd_port,;t t
18278 s,@sd_port@,$sd_port,;t t
18279 s,@dir_password@,$dir_password,;t t
18280 s,@fd_password@,$fd_password,;t t
18281 s,@sd_password@,$sd_password,;t t
18282 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18283 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18284 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18285 s,@cats@,$cats,;t t
18286 s,@DB_NAME@,$DB_NAME,;t t
18287 s,@GETCONF@,$GETCONF,;t t
18288 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18289 s,@X_CFLAGS@,$X_CFLAGS,;t t
18290 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18291 s,@X_LIBS@,$X_LIBS,;t t
18292 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18293 s,@LIBOBJS@,$LIBOBJS,;t t
18294 s,@ALLOCA@,$ALLOCA,;t t
18295 s,@FDLIBS@,$FDLIBS,;t t
18296 s,@DEBUG@,$DEBUG,;t t
18297 s,@DINCLUDE@,$DINCLUDE,;t t
18298 s,@DLIB@,$DLIB,;t t
18299 s,@DB_LIBS@,$DB_LIBS,;t t
18300 s,@WCFLAGS@,$WCFLAGS,;t t
18301 s,@WLDFLAGS@,$WLDFLAGS,;t t
18302 s,@OBJLIST@,$OBJLIST,;t t
18303 s,@hostname@,$hostname,;t t
18304 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18305 s,@PSCMD@,$PSCMD,;t t
18306 s,@WIN32@,$WIN32,;t t
18307 s,@DISTNAME@,$DISTNAME,;t t
18308 s,@DISTVER@,$DISTVER,;t t
18309 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18310 /@MCOMMON@/r $MCOMMON
18311 s,@MCOMMON@,,;t t
18312 CEOF
18313
18314 _ACEOF
18315
18316   cat >>$CONFIG_STATUS <<\_ACEOF
18317   # Split the substitutions into bite-sized pieces for seds with
18318   # small command number limits, like on Digital OSF/1 and HP-UX.
18319   ac_max_sed_lines=48
18320   ac_sed_frag=1 # Number of current file.
18321   ac_beg=1 # First line for current file.
18322   ac_end=$ac_max_sed_lines # Line after last line for current file.
18323   ac_more_lines=:
18324   ac_sed_cmds=
18325   while $ac_more_lines; do
18326     if test $ac_beg -gt 1; then
18327       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18328     else
18329       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18330     fi
18331     if test ! -s $tmp/subs.frag; then
18332       ac_more_lines=false
18333     else
18334       # The purpose of the label and of the branching condition is to
18335       # speed up the sed processing (if there are no `@' at all, there
18336       # is no need to browse any of the substitutions).
18337       # These are the two extra sed commands mentioned above.
18338       (echo ':t
18339   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18340       if test -z "$ac_sed_cmds"; then
18341         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18342       else
18343         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18344       fi
18345       ac_sed_frag=`expr $ac_sed_frag + 1`
18346       ac_beg=$ac_end
18347       ac_end=`expr $ac_end + $ac_max_sed_lines`
18348     fi
18349   done
18350   if test -z "$ac_sed_cmds"; then
18351     ac_sed_cmds=cat
18352   fi
18353 fi # test -n "$CONFIG_FILES"
18354
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<\_ACEOF
18357 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18358   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18359   case $ac_file in
18360   - | *:- | *:-:* ) # input from stdin
18361         cat >$tmp/stdin
18362         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18363         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18364   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18365         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18366   * )   ac_file_in=$ac_file.in ;;
18367   esac
18368
18369   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18370   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18372          X"$ac_file" : 'X\(//\)[^/]' \| \
18373          X"$ac_file" : 'X\(//\)$' \| \
18374          X"$ac_file" : 'X\(/\)' \| \
18375          .     : '\(.\)' 2>/dev/null ||
18376 echo X"$ac_file" |
18377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18379           /^X\(\/\/\)$/{ s//\1/; q; }
18380           /^X\(\/\).*/{ s//\1/; q; }
18381           s/.*/./; q'`
18382   { if $as_mkdir_p; then
18383     mkdir -p "$ac_dir"
18384   else
18385     as_dir="$ac_dir"
18386     as_dirs=
18387     while test ! -d "$as_dir"; do
18388       as_dirs="$as_dir $as_dirs"
18389       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18391          X"$as_dir" : 'X\(//\)[^/]' \| \
18392          X"$as_dir" : 'X\(//\)$' \| \
18393          X"$as_dir" : 'X\(/\)' \| \
18394          .     : '\(.\)' 2>/dev/null ||
18395 echo X"$as_dir" |
18396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18398           /^X\(\/\/\)$/{ s//\1/; q; }
18399           /^X\(\/\).*/{ s//\1/; q; }
18400           s/.*/./; q'`
18401     done
18402     test ! -n "$as_dirs" || mkdir $as_dirs
18403   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18404 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18405    { (exit 1); exit 1; }; }; }
18406
18407   ac_builddir=.
18408
18409 if test "$ac_dir" != .; then
18410   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18411   # A "../" for each directory in $ac_dir_suffix.
18412   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18413 else
18414   ac_dir_suffix= ac_top_builddir=
18415 fi
18416
18417 case $srcdir in
18418   .)  # No --srcdir option.  We are building in place.
18419     ac_srcdir=.
18420     if test -z "$ac_top_builddir"; then
18421        ac_top_srcdir=.
18422     else
18423        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18424     fi ;;
18425   [\\/]* | ?:[\\/]* )  # Absolute path.
18426     ac_srcdir=$srcdir$ac_dir_suffix;
18427     ac_top_srcdir=$srcdir ;;
18428   *) # Relative path.
18429     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18430     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18431 esac
18432 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18433 # absolute.
18434 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18435 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18436 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18437 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18438
18439
18440   case $INSTALL in
18441   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18442   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18443   esac
18444
18445   if test x"$ac_file" != x-; then
18446     { echo "$as_me:$LINENO: creating $ac_file" >&5
18447 echo "$as_me: creating $ac_file" >&6;}
18448     rm -f "$ac_file"
18449   fi
18450   # Let's still pretend it is `configure' which instantiates (i.e., don't
18451   # use $as_me), people would be surprised to read:
18452   #    /* config.h.  Generated by config.status.  */
18453   if test x"$ac_file" = x-; then
18454     configure_input=
18455   else
18456     configure_input="$ac_file.  "
18457   fi
18458   configure_input=$configure_input"Generated from `echo $ac_file_in |
18459                                      sed 's,.*/,,'` by configure."
18460
18461   # First look for the input files in the build tree, otherwise in the
18462   # src tree.
18463   ac_file_inputs=`IFS=:
18464     for f in $ac_file_in; do
18465       case $f in
18466       -) echo $tmp/stdin ;;
18467       [\\/$]*)
18468          # Absolute (can't be DOS-style, as IFS=:)
18469          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18470 echo "$as_me: error: cannot find input file: $f" >&2;}
18471    { (exit 1); exit 1; }; }
18472          echo $f;;
18473       *) # Relative
18474          if test -f "$f"; then
18475            # Build tree
18476            echo $f
18477          elif test -f "$srcdir/$f"; then
18478            # Source tree
18479            echo $srcdir/$f
18480          else
18481            # /dev/null tree
18482            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18483 echo "$as_me: error: cannot find input file: $f" >&2;}
18484    { (exit 1); exit 1; }; }
18485          fi;;
18486       esac
18487     done` || { (exit 1); exit 1; }
18488 _ACEOF
18489 cat >>$CONFIG_STATUS <<_ACEOF
18490   sed "$ac_vpsub
18491 $extrasub
18492 _ACEOF
18493 cat >>$CONFIG_STATUS <<\_ACEOF
18494 :t
18495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18496 s,@configure_input@,$configure_input,;t t
18497 s,@srcdir@,$ac_srcdir,;t t
18498 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18499 s,@top_srcdir@,$ac_top_srcdir,;t t
18500 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18501 s,@builddir@,$ac_builddir,;t t
18502 s,@abs_builddir@,$ac_abs_builddir,;t t
18503 s,@top_builddir@,$ac_top_builddir,;t t
18504 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18505 s,@INSTALL@,$ac_INSTALL,;t t
18506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18507   rm -f $tmp/stdin
18508   if test x"$ac_file" != x-; then
18509     mv $tmp/out $ac_file
18510   else
18511     cat $tmp/out
18512     rm -f $tmp/out
18513   fi
18514
18515 done
18516 _ACEOF
18517 cat >>$CONFIG_STATUS <<\_ACEOF
18518
18519 #
18520 # CONFIG_HEADER section.
18521 #
18522
18523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18525 #
18526 # ac_d sets the value in "#define NAME VALUE" lines.
18527 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18528 ac_dB='[        ].*$,\1#\2'
18529 ac_dC=' '
18530 ac_dD=',;t'
18531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18532 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18533 ac_uB='$,\1#\2define\3'
18534 ac_uC=' '
18535 ac_uD=',;t'
18536
18537 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18538   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18539   case $ac_file in
18540   - | *:- | *:-:* ) # input from stdin
18541         cat >$tmp/stdin
18542         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18543         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18544   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18545         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18546   * )   ac_file_in=$ac_file.in ;;
18547   esac
18548
18549   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18550 echo "$as_me: creating $ac_file" >&6;}
18551
18552   # First look for the input files in the build tree, otherwise in the
18553   # src tree.
18554   ac_file_inputs=`IFS=:
18555     for f in $ac_file_in; do
18556       case $f in
18557       -) echo $tmp/stdin ;;
18558       [\\/$]*)
18559          # Absolute (can't be DOS-style, as IFS=:)
18560          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18561 echo "$as_me: error: cannot find input file: $f" >&2;}
18562    { (exit 1); exit 1; }; }
18563          echo $f;;
18564       *) # Relative
18565          if test -f "$f"; then
18566            # Build tree
18567            echo $f
18568          elif test -f "$srcdir/$f"; then
18569            # Source tree
18570            echo $srcdir/$f
18571          else
18572            # /dev/null tree
18573            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18574 echo "$as_me: error: cannot find input file: $f" >&2;}
18575    { (exit 1); exit 1; }; }
18576          fi;;
18577       esac
18578     done` || { (exit 1); exit 1; }
18579   # Remove the trailing spaces.
18580   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18581
18582 _ACEOF
18583
18584 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18585 # `conftest.undefs', that substitutes the proper values into
18586 # config.h.in to produce config.h.  The first handles `#define'
18587 # templates, and the second `#undef' templates.
18588 # And first: Protect against being on the right side of a sed subst in
18589 # config.status.  Protect against being in an unquoted here document
18590 # in config.status.
18591 rm -f conftest.defines conftest.undefs
18592 # Using a here document instead of a string reduces the quoting nightmare.
18593 # Putting comments in sed scripts is not portable.
18594 #
18595 # `end' is used to avoid that the second main sed command (meant for
18596 # 0-ary CPP macros) applies to n-ary macro definitions.
18597 # See the Autoconf documentation for `clear'.
18598 cat >confdef2sed.sed <<\_ACEOF
18599 s/[\\&,]/\\&/g
18600 s,[\\$`],\\&,g
18601 t clear
18602 : clear
18603 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18604 t end
18605 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18606 : end
18607 _ACEOF
18608 # If some macros were called several times there might be several times
18609 # the same #defines, which is useless.  Nevertheless, we may not want to
18610 # sort them, since we want the *last* AC-DEFINE to be honored.
18611 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18612 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18613 rm -f confdef2sed.sed
18614
18615 # This sed command replaces #undef with comments.  This is necessary, for
18616 # example, in the case of _POSIX_SOURCE, which is predefined and required
18617 # on some systems where configure will not decide to define it.
18618 cat >>conftest.undefs <<\_ACEOF
18619 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18620 _ACEOF
18621
18622 # Break up conftest.defines because some shells have a limit on the size
18623 # of here documents, and old seds have small limits too (100 cmds).
18624 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18625 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18626 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18627 echo '  :' >>$CONFIG_STATUS
18628 rm -f conftest.tail
18629 while grep . conftest.defines >/dev/null
18630 do
18631   # Write a limited-size here document to $tmp/defines.sed.
18632   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18633   # Speed up: don't consider the non `#define' lines.
18634   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18635   # Work around the forget-to-reset-the-flag bug.
18636   echo 't clr' >>$CONFIG_STATUS
18637   echo ': clr' >>$CONFIG_STATUS
18638   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18639   echo 'CEOF
18640   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18641   rm -f $tmp/in
18642   mv $tmp/out $tmp/in
18643 ' >>$CONFIG_STATUS
18644   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18645   rm -f conftest.defines
18646   mv conftest.tail conftest.defines
18647 done
18648 rm -f conftest.defines
18649 echo '  fi # grep' >>$CONFIG_STATUS
18650 echo >>$CONFIG_STATUS
18651
18652 # Break up conftest.undefs because some shells have a limit on the size
18653 # of here documents, and old seds have small limits too (100 cmds).
18654 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18655 rm -f conftest.tail
18656 while grep . conftest.undefs >/dev/null
18657 do
18658   # Write a limited-size here document to $tmp/undefs.sed.
18659   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18660   # Speed up: don't consider the non `#undef'
18661   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18662   # Work around the forget-to-reset-the-flag bug.
18663   echo 't clr' >>$CONFIG_STATUS
18664   echo ': clr' >>$CONFIG_STATUS
18665   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18666   echo 'CEOF
18667   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18668   rm -f $tmp/in
18669   mv $tmp/out $tmp/in
18670 ' >>$CONFIG_STATUS
18671   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18672   rm -f conftest.undefs
18673   mv conftest.tail conftest.undefs
18674 done
18675 rm -f conftest.undefs
18676
18677 cat >>$CONFIG_STATUS <<\_ACEOF
18678   # Let's still pretend it is `configure' which instantiates (i.e., don't
18679   # use $as_me), people would be surprised to read:
18680   #    /* config.h.  Generated by config.status.  */
18681   if test x"$ac_file" = x-; then
18682     echo "/* Generated by configure.  */" >$tmp/config.h
18683   else
18684     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18685   fi
18686   cat $tmp/in >>$tmp/config.h
18687   rm -f $tmp/in
18688   if test x"$ac_file" != x-; then
18689     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18690       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18691 echo "$as_me: $ac_file is unchanged" >&6;}
18692     else
18693       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18695          X"$ac_file" : 'X\(//\)[^/]' \| \
18696          X"$ac_file" : 'X\(//\)$' \| \
18697          X"$ac_file" : 'X\(/\)' \| \
18698          .     : '\(.\)' 2>/dev/null ||
18699 echo X"$ac_file" |
18700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18702           /^X\(\/\/\)$/{ s//\1/; q; }
18703           /^X\(\/\).*/{ s//\1/; q; }
18704           s/.*/./; q'`
18705       { if $as_mkdir_p; then
18706     mkdir -p "$ac_dir"
18707   else
18708     as_dir="$ac_dir"
18709     as_dirs=
18710     while test ! -d "$as_dir"; do
18711       as_dirs="$as_dir $as_dirs"
18712       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18714          X"$as_dir" : 'X\(//\)[^/]' \| \
18715          X"$as_dir" : 'X\(//\)$' \| \
18716          X"$as_dir" : 'X\(/\)' \| \
18717          .     : '\(.\)' 2>/dev/null ||
18718 echo X"$as_dir" |
18719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18721           /^X\(\/\/\)$/{ s//\1/; q; }
18722           /^X\(\/\).*/{ s//\1/; q; }
18723           s/.*/./; q'`
18724     done
18725     test ! -n "$as_dirs" || mkdir $as_dirs
18726   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18727 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18728    { (exit 1); exit 1; }; }; }
18729
18730       rm -f $ac_file
18731       mv $tmp/config.h $ac_file
18732     fi
18733   else
18734     cat $tmp/config.h
18735     rm -f $tmp/config.h
18736   fi
18737 done
18738 _ACEOF
18739 cat >>$CONFIG_STATUS <<\_ACEOF
18740
18741 #
18742 # CONFIG_COMMANDS section.
18743 #
18744 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18745   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18746   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18747   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18748 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18749          X"$ac_dest" : 'X\(//\)[^/]' \| \
18750          X"$ac_dest" : 'X\(//\)$' \| \
18751          X"$ac_dest" : 'X\(/\)' \| \
18752          .     : '\(.\)' 2>/dev/null ||
18753 echo X"$ac_dest" |
18754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18756           /^X\(\/\/\)$/{ s//\1/; q; }
18757           /^X\(\/\).*/{ s//\1/; q; }
18758           s/.*/./; q'`
18759   ac_builddir=.
18760
18761 if test "$ac_dir" != .; then
18762   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18763   # A "../" for each directory in $ac_dir_suffix.
18764   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18765 else
18766   ac_dir_suffix= ac_top_builddir=
18767 fi
18768
18769 case $srcdir in
18770   .)  # No --srcdir option.  We are building in place.
18771     ac_srcdir=.
18772     if test -z "$ac_top_builddir"; then
18773        ac_top_srcdir=.
18774     else
18775        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18776     fi ;;
18777   [\\/]* | ?:[\\/]* )  # Absolute path.
18778     ac_srcdir=$srcdir$ac_dir_suffix;
18779     ac_top_srcdir=$srcdir ;;
18780   *) # Relative path.
18781     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18782     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18783 esac
18784 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18785 # absolute.
18786 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18787 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18788 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18789 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18790
18791
18792   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18793 echo "$as_me: executing $ac_dest commands" >&6;}
18794   case $ac_dest in
18795     default ) (echo "Doing make of dependencies"; make depend;)
18796  ;;
18797   esac
18798 done
18799 _ACEOF
18800
18801 cat >>$CONFIG_STATUS <<\_ACEOF
18802
18803 { (exit 0); exit 0; }
18804 _ACEOF
18805 chmod +x $CONFIG_STATUS
18806 ac_clean_files=$ac_clean_files_save
18807
18808
18809 # configure is writing to config.log, and then calls config.status.
18810 # config.status does its own redirection, appending to config.log.
18811 # Unfortunately, on DOS this fails, as config.log is still kept open
18812 # by configure, so config.status won't be able to write to it; its
18813 # output is simply discarded.  So we exec the FD to /dev/null,
18814 # effectively closing config.log, so it can be properly (re)opened and
18815 # appended to by config.status.  When coming back to configure, we
18816 # need to make the FD available again.
18817 if test "$no_create" != yes; then
18818   ac_cs_success=:
18819   ac_config_status_args=
18820   test "$silent" = yes &&
18821     ac_config_status_args="$ac_config_status_args --quiet"
18822   exec 5>/dev/null
18823   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18824   exec 5>>config.log
18825   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18826   # would make configure fail if this is the last instruction.
18827   $ac_cs_success || { (exit 1); exit 1; }
18828 fi
18829
18830
18831 cd scripts
18832 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18833 chmod 755 console gconsole mtx-changer
18834 cd ..
18835 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18836 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18837 chmod 755 src/cats/create_mysql_database
18838 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18839 chmod 755 src/cats/alter_mysql_tables
18840 chmod 755 src/cats/grant_mysql_privileges
18841 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18842 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18843 chmod 755 src/cats/create_sqlite_database
18844 chmod 755 src/cats/alter_sqlite_tables
18845 chmod 755 src/cats/sqlite
18846 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18847 chmod 755 src/cats/create_bdb_database
18848
18849 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18850    largefile_support="yes"
18851 fi
18852
18853 #
18854 # A whole lot of hand springs to get the compiler version.
18855 #  This is because gcc changed the output in version 3.0
18856 #
18857 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18858 if test "x${CCVERSION}" = "x" ; then
18859   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18860 fi
18861 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18862 if test x"${CXXVERSION}" = x ; then
18863   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18864 fi
18865
18866 if test "x${subsysdir}" = "x${sbindir}" ; then
18867    echo " "
18868    echo " "
18869    echo "You have set --sbindir and --with-subsys-dir"
18870    echo "  both equal to: ${subsysdir} "
18871    echo "  This is not permitted. Please reconfigure."
18872    echo "Aborting configuration ..."
18873    echo " "
18874    echo " "
18875    exit 1
18876 fi
18877
18878 echo "
18879 Configuration on `date`:
18880
18881   Host:                       $host -- ${DISTNAME} ${DISTVER}
18882   Bacula version:             ${VERSION} (${DATE})
18883   Source code location:       ${srcdir}
18884   Install binaries:           ${sbindir}
18885   Install config files:       ${sysconfdir}
18886   Scripts directory:          ${scriptdir}
18887   Working directory:          ${working_dir}
18888   PID directory:              ${piddir}
18889   Subsys directory:           ${subsysdir}
18890   C Compiler:                 ${CC} ${CCVERSION}
18891   C++ Compiler:               ${CXX} ${CXXVERSION}
18892   Compiler flags:             ${WCFLAGS} ${CFLAGS}
18893   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
18894   Libraries:                  ${LIBS}
18895   Statically Linked Tools:    ${support_static_tools}
18896   Statically Linked FD:       ${support_static_fd}
18897   Statically Linked SD:       ${support_static_sd}
18898   Statically Linked DIR:      ${support_static_dir}
18899   Statically Linked CONS:     ${support_static_cons}
18900   Database type:              ${db_name}
18901   Database lib:               ${DB_LIBS}
18902
18903   Job Output Email:           ${job_email}
18904   Traceback Email:            ${dump_email}
18905   SMTP Host Address:          ${smtp_host}
18906   Director Port               ${dir_port}
18907   File daemon Port            ${fd_port}
18908   Storage daemon Port         ${sd_port}
18909   SQL binaries Directory      ${SQL_BINDIR}
18910
18911   Large file support:         $largefile_support
18912   readline support:           ${got_readline} ${PRTREADLINE_SRC}
18913   TCP Wrappers support:       ${TCPW_MSG}
18914   ZLIB support:               ${have_zlib}
18915   enable-smartalloc:          ${support_smartalloc}
18916   enable-gnome:               ${support_gnome}
18917   client-only:                ${build_client_only}
18918
18919   " > config.out
18920
18921 cat config.out
18922
18923 # old stuff
18924 # cweb support:               ${got_cweb} ${CWEB_SRC}
18925 # gmp support:                ${got_gmp} ${GMP_SRC}