]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
bdc681a0bba12b8bea8193d399e6d96a6fdd244f
[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 STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC 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 dir_user dir_group sd_user sd_group fd_user fd_group 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-conio            disable conio support enabled
867
868   --disable-readline      disable readline support disable
869
870   --disable-largefile     omit support for large files
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-gnome-includes   Specify location of GNOME headers
876   --with-gnome-libs       Specify location of GNOME libs
877   --with-gnome            Specify prefix for GNOME files
878  --with-readline=DIR             specify readline library directory
879   --with-tcp-wrappers=DIR        enable tcpwrappers support
880   --with-working-dir=PATH        specify path of Bacula working directory
881   --with-scriptdir=PATH    specify path of Bacula scripts directory
882   --with-dump-email=EMAIL        dump email address
883   --with-job-email=EMAIL         job output email address
884   --with-smtp-host=HOST          SMTP mail host address
885   --with-pid-dir=PATH            specify location of Bacula pid files
886   --with-subsys-dir=PATH         specify location of Bacula subsys file
887   --with-baseport=PORT           specify base port address for daemons
888   --with-dir-password=PASSWORD   specify Director's password
889   --with-fd-password=PASSWORD    specify Client's password
890   --with-sd-password=PASSWORD    specify Storage daemon's password
891   --with-dir-user=USER           specify user for Director daemon
892   --with-dir-group=GROUP                 specify group for Director daemon
893   --with-sd-user=USER            specify user for Storage daemon
894   --with-sd-group=GROUP          specify group for Storage daemon
895   --with-fd-user=USER            specify user for File daemon
896   --with-fd-group=GROUP          specify group for File daemon
897   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
898                           base install directory, defaults to /usr/local/pgsql
899
900 Which DBMS do you want to use (please select only one):
901   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
902                           install directory, default is to search through
903                           a number of common places for the MySQL files.
904
905 Which DBMS do you want to use (please select only one):
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910 Which DBMS do you want to use (please select only one):
911   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
912                           install directory, default is to search through
913                           a number of common places for the SQLite files.
914   --with-x                use the X Window System
915
916 Some influential environment variables:
917   CC          C compiler command
918   CFLAGS      C compiler flags
919   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
920               nonstandard directory <lib dir>
921   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
922               headers in a nonstandard directory <include dir>
923   CXX         C++ compiler command
924   CXXFLAGS    C++ compiler flags
925   CPP         C preprocessor
926
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
929
930 _ACEOF
931 fi
932
933 if test "$ac_init_help" = "recursive"; then
934   # If there are subdirs, report their specific --help.
935   ac_popdir=`pwd`
936   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937     test -d $ac_dir || continue
938     ac_builddir=.
939
940 if test "$ac_dir" != .; then
941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942   # A "../" for each directory in $ac_dir_suffix.
943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945   ac_dir_suffix= ac_top_builddir=
946 fi
947
948 case $srcdir in
949   .)  # No --srcdir option.  We are building in place.
950     ac_srcdir=.
951     if test -z "$ac_top_builddir"; then
952        ac_top_srcdir=.
953     else
954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955     fi ;;
956   [\\/]* | ?:[\\/]* )  # Absolute path.
957     ac_srcdir=$srcdir$ac_dir_suffix;
958     ac_top_srcdir=$srcdir ;;
959   *) # Relative path.
960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 # absolute.
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969
970     cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973       echo
974       $SHELL $ac_srcdir/configure.gnu  --help=recursive
975     elif test -f $ac_srcdir/configure; then
976       echo
977       $SHELL $ac_srcdir/configure  --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979            test -f $ac_srcdir/configure.in; then
980       echo
981       $ac_configure --help
982     else
983       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986   done
987 fi
988
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
991   cat <<\_ACEOF
992
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core core.* *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 BUILD_DIR=`pwd`
1334 cd ..
1335 TOP_DIR=`pwd`
1336 cd ${BUILD_DIR}
1337
1338 ac_aux_dir=
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1364
1365
1366
1367
1368
1369 for ac_prog in true
1370 do
1371   # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376   echo $ECHO_N "(cached) $ECHO_C" >&6
1377 else
1378   case $TRUEPRG in
1379   [\\/]* | ?:[\\/]*)
1380   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381   ;;
1382   *)
1383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1385 do
1386   IFS=$as_save_IFS
1387   test -z "$as_dir" && as_dir=.
1388   for ac_exec_ext in '' $ac_executable_extensions; do
1389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392     break 2
1393   fi
1394 done
1395 done
1396
1397   ;;
1398 esac
1399 fi
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1401
1402 if test -n "$TRUEPRG"; then
1403   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1405 else
1406   echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410   test -n "$TRUEPRG" && break
1411 done
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1413
1414 for ac_prog in false
1415 do
1416   # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   case $FALSEPRG in
1424   [\\/]* | ?:[\\/]*)
1425   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426   ;;
1427   *)
1428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   for ac_exec_ext in '' $ac_executable_extensions; do
1434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437     break 2
1438   fi
1439 done
1440 done
1441
1442   ;;
1443 esac
1444 fi
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1446
1447 if test -n "$FALSEPRG"; then
1448   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455   test -n "$FALSEPRG" && break
1456 done
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1458
1459
1460 # Make sure we can run config.sub.
1461 $ac_config_sub sun4 >/dev/null 2>&1 ||
1462   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1463 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1464    { (exit 1); exit 1; }; }
1465
1466 echo "$as_me:$LINENO: checking build system type" >&5
1467 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1468 if test "${ac_cv_build+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   ac_cv_build_alias=$build_alias
1472 test -z "$ac_cv_build_alias" &&
1473   ac_cv_build_alias=`$ac_config_guess`
1474 test -z "$ac_cv_build_alias" &&
1475   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1476 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1477    { (exit 1); exit 1; }; }
1478 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1479   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1480 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1481    { (exit 1); exit 1; }; }
1482
1483 fi
1484 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1485 echo "${ECHO_T}$ac_cv_build" >&6
1486 build=$ac_cv_build
1487 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490
1491
1492 echo "$as_me:$LINENO: checking host system type" >&5
1493 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1494 if test "${ac_cv_host+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   ac_cv_host_alias=$host_alias
1498 test -z "$ac_cv_host_alias" &&
1499   ac_cv_host_alias=$ac_cv_build_alias
1500 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1501   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1502 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1503    { (exit 1); exit 1; }; }
1504
1505 fi
1506 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1507 echo "${ECHO_T}$ac_cv_host" >&6
1508 host=$ac_cv_host
1509 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1510 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1511 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512
1513
1514
1515 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 echo "configuring for bacula $VERSION ($DATE)"
1519
1520
1521
1522 ac_ext=c
1523 ac_cpp='$CPP $CPPFLAGS'
1524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 if test -n "$ac_tool_prefix"; then
1528   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533   echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535   if test -n "$CC"; then
1536   ac_cv_prog_CC="$CC" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541   IFS=$as_save_IFS
1542   test -z "$as_dir" && as_dir=.
1543   for ac_exec_ext in '' $ac_executable_extensions; do
1544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547     break 2
1548   fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 CC=$ac_cv_prog_CC
1555 if test -n "$CC"; then
1556   echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563 fi
1564 if test -z "$ac_cv_prog_CC"; then
1565   ac_ct_CC=$CC
1566   # Extract the first word of "gcc", so it can be a program name with args.
1567 set dummy gcc; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   if test -n "$ac_ct_CC"; then
1574   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1575 else
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1578 do
1579   IFS=$as_save_IFS
1580   test -z "$as_dir" && as_dir=.
1581   for ac_exec_ext in '' $ac_executable_extensions; do
1582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583     ac_cv_prog_ac_ct_CC="gcc"
1584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585     break 2
1586   fi
1587 done
1588 done
1589
1590 fi
1591 fi
1592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1593 if test -n "$ac_ct_CC"; then
1594   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1595 echo "${ECHO_T}$ac_ct_CC" >&6
1596 else
1597   echo "$as_me:$LINENO: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1599 fi
1600
1601   CC=$ac_ct_CC
1602 else
1603   CC="$ac_cv_prog_CC"
1604 fi
1605
1606 if test -z "$CC"; then
1607   if test -n "$ac_tool_prefix"; then
1608   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}cc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   if test -n "$CC"; then
1616   ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   for ac_exec_ext in '' $ac_executable_extensions; do
1624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625     ac_cv_prog_CC="${ac_tool_prefix}cc"
1626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627     break 2
1628   fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636   echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639   echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$ac_cv_prog_CC"; then
1645   ac_ct_CC=$CC
1646   # Extract the first word of "cc", so it can be a program name with args.
1647 set dummy cc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   if test -n "$ac_ct_CC"; then
1654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     ac_cv_prog_ac_ct_CC="cc"
1664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665     break 2
1666   fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681   CC=$ac_ct_CC
1682 else
1683   CC="$ac_cv_prog_CC"
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   # Extract the first word of "cc", so it can be a program name with args.
1689 set dummy cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$CC"; then
1696   ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698   ac_prog_rejected=no
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1707        ac_prog_rejected=yes
1708        continue
1709      fi
1710     ac_cv_prog_CC="cc"
1711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712     break 2
1713   fi
1714 done
1715 done
1716
1717 if test $ac_prog_rejected = yes; then
1718   # We found a bogon in the path, so make sure we never use it.
1719   set dummy $ac_cv_prog_CC
1720   shift
1721   if test $# != 0; then
1722     # We chose a different compiler from the bogus one.
1723     # However, it has the same basename, so the bogon will be chosen
1724     # first if we set CC to just the basename; use the full file name.
1725     shift
1726     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1727   fi
1728 fi
1729 fi
1730 fi
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733   echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736   echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740 fi
1741 if test -z "$CC"; then
1742   if test -n "$ac_tool_prefix"; then
1743   for ac_prog in cl
1744   do
1745     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$CC"; then
1753   ac_cv_prog_CC="$CC" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 CC=$ac_cv_prog_CC
1772 if test -n "$CC"; then
1773   echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780     test -n "$CC" && break
1781   done
1782 fi
1783 if test -z "$CC"; then
1784   ac_ct_CC=$CC
1785   for ac_prog in cl
1786 do
1787   # Extract the first word of "$ac_prog", so it can be a program name with args.
1788 set dummy $ac_prog; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   if test -n "$ac_ct_CC"; then
1795   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1799 do
1800   IFS=$as_save_IFS
1801   test -z "$as_dir" && as_dir=.
1802   for ac_exec_ext in '' $ac_executable_extensions; do
1803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804     ac_cv_prog_ac_ct_CC="$ac_prog"
1805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806     break 2
1807   fi
1808 done
1809 done
1810
1811 fi
1812 fi
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1817 else
1818   echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820 fi
1821
1822   test -n "$ac_ct_CC" && break
1823 done
1824
1825   CC=$ac_ct_CC
1826 fi
1827
1828 fi
1829
1830
1831 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: no acceptable C compiler found in \$PATH
1834 See \`config.log' for more details." >&2;}
1835    { (exit 1); exit 1; }; }
1836
1837 # Provide some information about the compiler.
1838 echo "$as_me:$LINENO:" \
1839      "checking for C compiler version" >&5
1840 ac_compiler=`set X $ac_compile; echo $2`
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1842   (eval $ac_compiler --version </dev/null >&5) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }
1846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1847   (eval $ac_compiler -v </dev/null >&5) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1852   (eval $ac_compiler -V </dev/null >&5) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }
1856
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line $LINENO "configure"
1859 /* confdefs.h.  */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h.  */
1864
1865 int
1866 main ()
1867 {
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1879 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882   (eval $ac_link_default) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # Find the output, starting from the most likely.  This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1889
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895 do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899         ;;
1900     conftest.$ac_ext )
1901         # This is the source file.
1902         ;;
1903     [ab].out )
1904         # We found the default executable, but exeext='' is most
1905         # certainly right.
1906         break;;
1907     *.* )
1908         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909         # FIXME: I believe we export ac_cv_exeext for Libtool,
1910         # but it would be cool to find out if it's true.  Does anybody
1911         # maintain Libtool? --akim.
1912         export ac_cv_exeext
1913         break;;
1914     * )
1915         break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926    { (exit 77); exit 77; }; }
1927 fi
1928
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1932
1933 # Check the compiler produces executables we can run.  If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940   if { ac_try='./$ac_file'
1941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946     cross_compiling=no
1947   else
1948     if test "$cross_compiling" = maybe; then
1949         cross_compiling=yes
1950     else
1951         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958     fi
1959   fi
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run.  If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1972
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976   (eval $ac_link) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985   test -f "$ac_file" || continue
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989           export ac_cv_exeext
1990           break;;
1991     * ) break;;
1992   esac
1993 done
1994 else
1995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2005
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2016 /* confdefs.h.  */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h.  */
2021
2022 int
2023 main ()
2024 {
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.o conftest.obj
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }; then
2036   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037   case $ac_file in
2038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040        break;;
2041   esac
2042 done
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050 See \`config.log' for more details." >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057 echo "${ECHO_T}$ac_cv_objext" >&6
2058 OBJEXT=$ac_cv_objext
2059 ac_objext=$OBJEXT
2060 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2061 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 /* confdefs.h.  */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h.  */
2072
2073 int
2074 main ()
2075 {
2076 #ifndef __GNUC__
2077        choke me
2078 #endif
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_compiler_gnu=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_compiler_gnu=no
2102 fi
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2105
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2112 CFLAGS="-g"
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   cat >conftest.$ac_ext <<_ACEOF
2119 #line $LINENO "configure"
2120 /* confdefs.h.  */
2121 _ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h.  */
2125
2126 int
2127 main ()
2128 {
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 rm -f conftest.$ac_objext
2135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136   (eval $ac_compile) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); } &&
2140          { ac_try='test -s conftest.$ac_objext'
2141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142   (eval $ac_try) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }; }; then
2146   ac_cv_prog_cc_g=yes
2147 else
2148   echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_cv_prog_cc_g=no
2152 fi
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2156 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2157 if test "$ac_test_CFLAGS" = set; then
2158   CFLAGS=$ac_save_CFLAGS
2159 elif test $ac_cv_prog_cc_g = yes; then
2160   if test "$GCC" = yes; then
2161     CFLAGS="-g -O2"
2162   else
2163     CFLAGS="-g"
2164   fi
2165 else
2166   if test "$GCC" = yes; then
2167     CFLAGS="-O2"
2168   else
2169     CFLAGS=
2170   fi
2171 fi
2172 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2173 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2174 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   ac_cv_prog_cc_stdc=no
2178 ac_save_CC=$CC
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 /* confdefs.h.  */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h.  */
2186 #include <stdarg.h>
2187 #include <stdio.h>
2188 #include <sys/types.h>
2189 #include <sys/stat.h>
2190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2191 struct buf { int x; };
2192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2193 static char *e (p, i)
2194      char **p;
2195      int i;
2196 {
2197   return p[i];
2198 }
2199 static char *f (char * (*g) (char **, int), char **p, ...)
2200 {
2201   char *s;
2202   va_list v;
2203   va_start (v,p);
2204   s = g (p, va_arg (v,int));
2205   va_end (v);
2206   return s;
2207 }
2208 int test (int i, double x);
2209 struct s1 {int (*f) (int a);};
2210 struct s2 {int (*f) (double a);};
2211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2212 int argc;
2213 char **argv;
2214 int
2215 main ()
2216 {
2217 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 # Don't try gcc -ansi; that turns off useful extensions and
2223 # breaks some systems' header files.
2224 # AIX                   -qlanglvl=ansi
2225 # Ultrix and OSF/1      -std1
2226 # HP-UX 10.20 and later -Ae
2227 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2228 # SVR4                  -Xc -D__EXTENSIONS__
2229 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2230 do
2231   CC="$ac_save_CC $ac_arg"
2232   rm -f conftest.$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234   (eval $ac_compile) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); } &&
2238          { ac_try='test -s conftest.$ac_objext'
2239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240   (eval $ac_try) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; }; then
2244   ac_cv_prog_cc_stdc=$ac_arg
2245 break
2246 else
2247   echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 fi
2251 rm -f conftest.$ac_objext
2252 done
2253 rm -f conftest.$ac_ext conftest.$ac_objext
2254 CC=$ac_save_CC
2255
2256 fi
2257
2258 case "x$ac_cv_prog_cc_stdc" in
2259   x|xno)
2260     echo "$as_me:$LINENO: result: none needed" >&5
2261 echo "${ECHO_T}none needed" >&6 ;;
2262   *)
2263     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2264 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2265     CC="$CC $ac_cv_prog_cc_stdc" ;;
2266 esac
2267
2268 # Some people use a C++ compiler to compile C.  Since we use `exit',
2269 # in C++ we need to declare it.  In case someone uses the same compiler
2270 # for both compiling C and C++ we need to have the C++ compiler decide
2271 # the declaration of exit, since it's the most demanding environment.
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #ifndef __cplusplus
2274   choke me
2275 #endif
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279   (eval $ac_compile) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   for ac_declaration in \
2290    ''\
2291    '#include <stdlib.h>' \
2292    'extern "C" void std::exit (int) throw (); using std::exit;' \
2293    'extern "C" void std::exit (int); using std::exit;' \
2294    'extern "C" void exit (int) throw ();' \
2295    'extern "C" void exit (int);' \
2296    'void exit (int);'
2297 do
2298   cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305 #include <stdlib.h>
2306 $ac_declaration
2307 int
2308 main ()
2309 {
2310 exit (42);
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317   (eval $ac_compile) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   :
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 continue
2333 fi
2334 rm -f conftest.$ac_objext conftest.$ac_ext
2335   cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342 $ac_declaration
2343 int
2344 main ()
2345 {
2346 exit (42);
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   break
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 fi
2369 rm -f conftest.$ac_objext conftest.$ac_ext
2370 done
2371 rm -f conftest*
2372 if test -n "$ac_declaration"; then
2373   echo '#ifdef __cplusplus' >>confdefs.h
2374   echo $ac_declaration      >>confdefs.h
2375   echo '#endif'             >>confdefs.h
2376 fi
2377
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 fi
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390 ac_ext=cc
2391 ac_cpp='$CXXCPP $CPPFLAGS'
2392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2395 if test -n "$ac_tool_prefix"; then
2396   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2397   do
2398     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_prog_CXX+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -n "$CXX"; then
2406   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411   IFS=$as_save_IFS
2412   test -z "$as_dir" && as_dir=.
2413   for ac_exec_ext in '' $ac_executable_extensions; do
2414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417     break 2
2418   fi
2419 done
2420 done
2421
2422 fi
2423 fi
2424 CXX=$ac_cv_prog_CXX
2425 if test -n "$CXX"; then
2426   echo "$as_me:$LINENO: result: $CXX" >&5
2427 echo "${ECHO_T}$CXX" >&6
2428 else
2429   echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2431 fi
2432
2433     test -n "$CXX" && break
2434   done
2435 fi
2436 if test -z "$CXX"; then
2437   ac_ct_CXX=$CXX
2438   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2439 do
2440   # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy $ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   if test -n "$ac_ct_CXX"; then
2448   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   for ac_exec_ext in '' $ac_executable_extensions; do
2456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457     ac_cv_prog_ac_ct_CXX="$ac_prog"
2458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459     break 2
2460   fi
2461 done
2462 done
2463
2464 fi
2465 fi
2466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2467 if test -n "$ac_ct_CXX"; then
2468   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2469 echo "${ECHO_T}$ac_ct_CXX" >&6
2470 else
2471   echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2473 fi
2474
2475   test -n "$ac_ct_CXX" && break
2476 done
2477 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2478
2479   CXX=$ac_ct_CXX
2480 fi
2481
2482
2483 # Provide some information about the compiler.
2484 echo "$as_me:$LINENO:" \
2485      "checking for C++ compiler version" >&5
2486 ac_compiler=`set X $ac_compile; echo $2`
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2488   (eval $ac_compiler --version </dev/null >&5) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2493   (eval $ac_compiler -v </dev/null >&5) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2498   (eval $ac_compiler -V </dev/null >&5) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }
2502
2503 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2504 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2505 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519 #ifndef __GNUC__
2520        choke me
2521 #endif
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_compiler_gnu=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_compiler_gnu=no
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2548
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2552 GXX=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CXXFLAGS=${CXXFLAGS+set}
2554 ac_save_CXXFLAGS=$CXXFLAGS
2555 CXXFLAGS="-g"
2556 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2557 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2558 if test "${ac_cv_prog_cxx_g+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579   (eval $ac_compile) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   ac_cv_prog_cxx_g=yes
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 ac_cv_prog_cxx_g=no
2595 fi
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 fi
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2600 if test "$ac_test_CXXFLAGS" = set; then
2601   CXXFLAGS=$ac_save_CXXFLAGS
2602 elif test $ac_cv_prog_cxx_g = yes; then
2603   if test "$GXX" = yes; then
2604     CXXFLAGS="-g -O2"
2605   else
2606     CXXFLAGS="-g"
2607   fi
2608 else
2609   if test "$GXX" = yes; then
2610     CXXFLAGS="-O2"
2611   else
2612     CXXFLAGS=
2613   fi
2614 fi
2615 for ac_declaration in \
2616    ''\
2617    '#include <stdlib.h>' \
2618    'extern "C" void std::exit (int) throw (); using std::exit;' \
2619    'extern "C" void std::exit (int); using std::exit;' \
2620    'extern "C" void exit (int) throw ();' \
2621    'extern "C" void exit (int);' \
2622    'void exit (int);'
2623 do
2624   cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631 #include <stdlib.h>
2632 $ac_declaration
2633 int
2634 main ()
2635 {
2636 exit (42);
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -s conftest.$ac_objext'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; }; then
2653   :
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 continue
2659 fi
2660 rm -f conftest.$ac_objext conftest.$ac_ext
2661   cat >conftest.$ac_ext <<_ACEOF
2662 #line $LINENO "configure"
2663 /* confdefs.h.  */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h.  */
2668 $ac_declaration
2669 int
2670 main ()
2671 {
2672 exit (42);
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679   (eval $ac_compile) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); } &&
2683          { ac_try='test -s conftest.$ac_objext'
2684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685   (eval $ac_try) 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; }; then
2689   break
2690 else
2691   echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 fi
2695 rm -f conftest.$ac_objext conftest.$ac_ext
2696 done
2697 rm -f conftest*
2698 if test -n "$ac_declaration"; then
2699   echo '#ifdef __cplusplus' >>confdefs.h
2700   echo $ac_declaration      >>confdefs.h
2701   echo '#endif'             >>confdefs.h
2702 fi
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710 if test "x$CC" != xcc; then
2711   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2713 else
2714   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2716 fi
2717 set dummy $CC; ac_cc=`echo $2 |
2718                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 # Make sure it works both with $CC and with simple cc.
2739 # We do the test twice because some compilers refuse to overwrite an
2740 # existing .o file with -o, though they will create one.
2741 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2742 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747    test -f conftest.$ac_objext && { (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); };
2752 then
2753   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2754   if test "x$CC" != xcc; then
2755     # Test first that cc exists at all.
2756     if { ac_try='cc -c conftest.$ac_ext >&5'
2757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758   (eval $ac_try) 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2763       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764   (eval $ac_try) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); };
2773       then
2774         # cc works too.
2775         :
2776       else
2777         # cc exists but doesn't like -o.
2778         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2779       fi
2780     fi
2781   fi
2782 else
2783   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2784 fi
2785 rm -f conftest*
2786
2787 fi
2788 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2789   echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2791 else
2792   echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794
2795 cat >>confdefs.h <<\_ACEOF
2796 #define NO_MINUS_C_MINUS_O 1
2797 _ACEOF
2798
2799 fi
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2810   CPP=
2811 fi
2812 if test -z "$CPP"; then
2813   if test "${ac_cv_prog_CPP+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816       # Double quotes because CPP needs to be expanded
2817     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818     do
2819       ac_preproc_ok=false
2820 for ac_c_preproc_warn_flag in '' yes
2821 do
2822   # Use a header file that comes with gcc, so configuring glibc
2823   # with a fresh cross-compiler works.
2824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825   # <limits.h> exists even on freestanding compilers.
2826   # On the NeXT, cc -E runs the code through the compiler's parser,
2827   # not just through cpp. "Syntax error" is here to catch this case.
2828   cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835 #ifdef __STDC__
2836 # include <limits.h>
2837 #else
2838 # include <assert.h>
2839 #endif
2840                      Syntax error
2841 _ACEOF
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } >/dev/null; then
2850   if test -s conftest.err; then
2851     ac_cpp_err=$ac_c_preproc_warn_flag
2852   else
2853     ac_cpp_err=
2854   fi
2855 else
2856   ac_cpp_err=yes
2857 fi
2858 if test -z "$ac_cpp_err"; then
2859   :
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864   # Broken: fails on valid input.
2865 continue
2866 fi
2867 rm -f conftest.err conftest.$ac_ext
2868
2869   # OK, works on sane cases.  Now check whether non-existent headers
2870   # can be detected and how.
2871   cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 #include <ac_nonexistent.h>
2879 _ACEOF
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } >/dev/null; then
2888   if test -s conftest.err; then
2889     ac_cpp_err=$ac_c_preproc_warn_flag
2890   else
2891     ac_cpp_err=
2892   fi
2893 else
2894   ac_cpp_err=yes
2895 fi
2896 if test -z "$ac_cpp_err"; then
2897   # Broken: success on invalid input.
2898 continue
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903   # Passes both tests.
2904 ac_preproc_ok=:
2905 break
2906 fi
2907 rm -f conftest.err conftest.$ac_ext
2908
2909 done
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2913   break
2914 fi
2915
2916     done
2917     ac_cv_prog_CPP=$CPP
2918
2919 fi
2920   CPP=$ac_cv_prog_CPP
2921 else
2922   ac_cv_prog_CPP=$CPP
2923 fi
2924 echo "$as_me:$LINENO: result: $CPP" >&5
2925 echo "${ECHO_T}$CPP" >&6
2926 ac_preproc_ok=false
2927 for ac_c_preproc_warn_flag in '' yes
2928 do
2929   # Use a header file that comes with gcc, so configuring glibc
2930   # with a fresh cross-compiler works.
2931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932   # <limits.h> exists even on freestanding compilers.
2933   # On the NeXT, cc -E runs the code through the compiler's parser,
2934   # not just through cpp. "Syntax error" is here to catch this case.
2935   cat >conftest.$ac_ext <<_ACEOF
2936 #line $LINENO "configure"
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   :
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971   # Broken: fails on valid input.
2972 continue
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976   # OK, works on sane cases.  Now check whether non-existent headers
2977   # can be detected and how.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997   else
2998     ac_cpp_err=
2999   fi
3000 else
3001   ac_cpp_err=yes
3002 fi
3003 if test -z "$ac_cpp_err"; then
3004   # Broken: success on invalid input.
3005 continue
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010   # Passes both tests.
3011 ac_preproc_ok=:
3012 break
3013 fi
3014 rm -f conftest.err conftest.$ac_ext
3015
3016 done
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3020   :
3021 else
3022   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&2;}
3026    { (exit 1); exit 1; }; }
3027 fi
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034
3035
3036 echo "$as_me:$LINENO: checking for egrep" >&5
3037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3038 if test "${ac_cv_prog_egrep+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3042     then ac_cv_prog_egrep='grep -E'
3043     else ac_cv_prog_egrep='egrep'
3044     fi
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3047 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3048  EGREP=$ac_cv_prog_egrep
3049
3050
3051 if test $ac_cv_c_compiler_gnu = yes; then
3052     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3053 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3054 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057     ac_pattern="Autoconf.*'x'"
3058   cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #include <sgtty.h>
3066 Autoconf TIOCGETP
3067 _ACEOF
3068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3069   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3070   ac_cv_prog_gcc_traditional=yes
3071 else
3072   ac_cv_prog_gcc_traditional=no
3073 fi
3074 rm -f conftest*
3075
3076
3077   if test $ac_cv_prog_gcc_traditional = no; then
3078     cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085 #include <termio.h>
3086 Autoconf TCGETA
3087 _ACEOF
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3090   ac_cv_prog_gcc_traditional=yes
3091 fi
3092 rm -f conftest*
3093
3094   fi
3095 fi
3096 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3097 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3098   if test $ac_cv_prog_gcc_traditional = yes; then
3099     CC="$CC -traditional"
3100   fi
3101 fi
3102
3103 if test x$CC = xgcc
3104 then
3105    cat >>confdefs.h <<\_ACEOF
3106 #define HAVE_GCC 1
3107 _ACEOF
3108
3109 fi
3110
3111 # Find a good install program.  We prefer a C program (faster),
3112 # so one script is as good as another.  But avoid the broken or
3113 # incompatible versions:
3114 # SysV /etc/install, /usr/sbin/install
3115 # SunOS /usr/etc/install
3116 # IRIX /sbin/install
3117 # AIX /bin/install
3118 # AmigaOS /C/install, which installs bootblocks on floppy discs
3119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3125 if test -z "$INSTALL"; then
3126 if test "${ac_cv_path_install+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134   # Account for people who put trailing slashes in PATH elements.
3135 case $as_dir/ in
3136   ./ | .// | /cC/* | \
3137   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3138   /usr/ucb/* ) ;;
3139   *)
3140     # OSF1 and SCO ODT 3.0 have their own names for install.
3141     # Don't use installbsd from OSF since it installs stuff as root
3142     # by default.
3143     for ac_prog in ginstall scoinst install; do
3144       for ac_exec_ext in '' $ac_executable_extensions; do
3145         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3146           if test $ac_prog = install &&
3147             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148             # AIX install.  It has an incompatible calling convention.
3149             :
3150           elif test $ac_prog = install &&
3151             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3152             # program-specific install script used by HP pwplus--don't use.
3153             :
3154           else
3155             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3156             break 3
3157           fi
3158         fi
3159       done
3160     done
3161     ;;
3162 esac
3163 done
3164
3165
3166 fi
3167   if test "${ac_cv_path_install+set}" = set; then
3168     INSTALL=$ac_cv_path_install
3169   else
3170     # As a last resort, use the slow shell script.  We don't cache a
3171     # path for INSTALL within a source directory, because that will
3172     # break other packages using the cache if that directory is
3173     # removed, or if the path is relative.
3174     INSTALL=$ac_install_sh
3175   fi
3176 fi
3177 echo "$as_me:$LINENO: result: $INSTALL" >&5
3178 echo "${ECHO_T}$INSTALL" >&6
3179
3180 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3181 # It thinks the first close brace ends the variable substitution.
3182 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3183
3184 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3185
3186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3187
3188 if test -n "$ac_tool_prefix"; then
3189   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_RANLIB+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$RANLIB"; then
3197   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212
3213 fi
3214 fi
3215 RANLIB=$ac_cv_prog_RANLIB
3216 if test -n "$RANLIB"; then
3217   echo "$as_me:$LINENO: result: $RANLIB" >&5
3218 echo "${ECHO_T}$RANLIB" >&6
3219 else
3220   echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3222 fi
3223
3224 fi
3225 if test -z "$ac_cv_prog_RANLIB"; then
3226   ac_ct_RANLIB=$RANLIB
3227   # Extract the first word of "ranlib", so it can be a program name with args.
3228 set dummy ranlib; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   if test -n "$ac_ct_RANLIB"; then
3235   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242   for ac_exec_ext in '' $ac_executable_extensions; do
3243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_prog_ac_ct_RANLIB="ranlib"
3245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249 done
3250
3251   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3252 fi
3253 fi
3254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3255 if test -n "$ac_ct_RANLIB"; then
3256   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3257 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3258 else
3259   echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6
3261 fi
3262
3263   RANLIB=$ac_ct_RANLIB
3264 else
3265   RANLIB="$ac_cv_prog_RANLIB"
3266 fi
3267
3268 # Extract the first word of "mv", so it can be a program name with args.
3269 set dummy mv; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_MV+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   case $MV in
3276   [\\/]* | ?:[\\/]*)
3277   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3278   ;;
3279   *)
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_exec_ext in '' $ac_executable_extensions; do
3286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292 done
3293
3294   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3295   ;;
3296 esac
3297 fi
3298 MV=$ac_cv_path_MV
3299
3300 if test -n "$MV"; then
3301   echo "$as_me:$LINENO: result: $MV" >&5
3302 echo "${ECHO_T}$MV" >&6
3303 else
3304   echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 # Extract the first word of "rm", so it can be a program name with args.
3309 set dummy rm; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_RM+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   case $RM in
3316   [\\/]* | ?:[\\/]*)
3317   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3318   ;;
3319   *)
3320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333
3334   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3335   ;;
3336 esac
3337 fi
3338 RM=$ac_cv_path_RM
3339
3340 if test -n "$RM"; then
3341   echo "$as_me:$LINENO: result: $RM" >&5
3342 echo "${ECHO_T}$RM" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 # Extract the first word of "cp", so it can be a program name with args.
3349 set dummy cp; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_CP+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   case $CP in
3356   [\\/]* | ?:[\\/]*)
3357   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3358   ;;
3359   *)
3360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3375   ;;
3376 esac
3377 fi
3378 CP=$ac_cv_path_CP
3379
3380 if test -n "$CP"; then
3381   echo "$as_me:$LINENO: result: $CP" >&5
3382 echo "${ECHO_T}$CP" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 # Extract the first word of "sed", so it can be a program name with args.
3389 set dummy sed; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_SED+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   case $SED in
3396   [\\/]* | ?:[\\/]*)
3397   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3398   ;;
3399   *)
3400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405   for ac_exec_ext in '' $ac_executable_extensions; do
3406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412 done
3413
3414   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3415   ;;
3416 esac
3417 fi
3418 SED=$ac_cv_path_SED
3419
3420 if test -n "$SED"; then
3421   echo "$as_me:$LINENO: result: $SED" >&5
3422 echo "${ECHO_T}$SED" >&6
3423 else
3424   echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3426 fi
3427
3428 # Extract the first word of "awk", so it can be a program name with args.
3429 set dummy awk; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_AWK+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   case $AWK in
3436   [\\/]* | ?:[\\/]*)
3437   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3438   ;;
3439   *)
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_exec_ext in '' $ac_executable_extensions; do
3446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452 done
3453
3454   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3455   ;;
3456 esac
3457 fi
3458 AWK=$ac_cv_path_AWK
3459
3460 if test -n "$AWK"; then
3461   echo "$as_me:$LINENO: result: $AWK" >&5
3462 echo "${ECHO_T}$AWK" >&6
3463 else
3464   echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468 # Extract the first word of "echo", so it can be a program name with args.
3469 set dummy echo; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_ECHO+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   case $ECHO in
3476   [\\/]* | ?:[\\/]*)
3477   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3478   ;;
3479   *)
3480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485   for ac_exec_ext in '' $ac_executable_extensions; do
3486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492 done
3493
3494   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3495   ;;
3496 esac
3497 fi
3498 ECHO=$ac_cv_path_ECHO
3499
3500 if test -n "$ECHO"; then
3501   echo "$as_me:$LINENO: result: $ECHO" >&5
3502 echo "${ECHO_T}$ECHO" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508 # Extract the first word of "cmp", so it can be a program name with args.
3509 set dummy cmp; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_CMP+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   case $CMP in
3516   [\\/]* | ?:[\\/]*)
3517   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3518   ;;
3519   *)
3520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525   for ac_exec_ext in '' $ac_executable_extensions; do
3526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532 done
3533
3534   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3535   ;;
3536 esac
3537 fi
3538 CMP=$ac_cv_path_CMP
3539
3540 if test -n "$CMP"; then
3541   echo "$as_me:$LINENO: result: $CMP" >&5
3542 echo "${ECHO_T}$CMP" >&6
3543 else
3544   echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548 # Extract the first word of "tbl", so it can be a program name with args.
3549 set dummy tbl; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_TBL+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   case $TBL in
3556   [\\/]* | ?:[\\/]*)
3557   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3558   ;;
3559   *)
3560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572 done
3573
3574   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3575   ;;
3576 esac
3577 fi
3578 TBL=$ac_cv_path_TBL
3579
3580 if test -n "$TBL"; then
3581   echo "$as_me:$LINENO: result: $TBL" >&5
3582 echo "${ECHO_T}$TBL" >&6
3583 else
3584   echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586 fi
3587
3588 # Extract the first word of "ar", so it can be a program name with args.
3589 set dummy ar; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_AR+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   case $AR in
3596   [\\/]* | ?:[\\/]*)
3597   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3598   ;;
3599   *)
3600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605   for ac_exec_ext in '' $ac_executable_extensions; do
3606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612 done
3613
3614   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3615   ;;
3616 esac
3617 fi
3618 AR=$ac_cv_path_AR
3619
3620 if test -n "$AR"; then
3621   echo "$as_me:$LINENO: result: $AR" >&5
3622 echo "${ECHO_T}$AR" >&6
3623 else
3624   echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3626 fi
3627
3628 # Extract the first word of "ranlib", so it can be a program name with args.
3629 set dummy ranlib; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_RANLIB+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   case $RANLIB in
3636   [\\/]* | ?:[\\/]*)
3637   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3638   ;;
3639   *)
3640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645   for ac_exec_ext in '' $ac_executable_extensions; do
3646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649     break 2
3650   fi
3651 done
3652 done
3653
3654   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3655   ;;
3656 esac
3657 fi
3658 RANLIB=$ac_cv_path_RANLIB
3659
3660 if test -n "$RANLIB"; then
3661   echo "$as_me:$LINENO: result: $RANLIB" >&5
3662 echo "${ECHO_T}$RANLIB" >&6
3663 else
3664   echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666 fi
3667
3668 # Extract the first word of "openssl", so it can be a program name with args.
3669 set dummy openssl; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_OPENSSL+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   case $OPENSSL in
3676   [\\/]* | ?:[\\/]*)
3677   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3678   ;;
3679   *)
3680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3695   ;;
3696 esac
3697 fi
3698 OPENSSL=$ac_cv_path_OPENSSL
3699
3700 if test -n "$OPENSSL"; then
3701   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3702 echo "${ECHO_T}$OPENSSL" >&6
3703 else
3704   echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3706 fi
3707
3708 # Extract the first word of "mtx", so it can be a program name with args.
3709 set dummy mtx; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_MTX+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   case $MTX in
3716   [\\/]* | ?:[\\/]*)
3717   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3718   ;;
3719   *)
3720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732 done
3733
3734   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3735   ;;
3736 esac
3737 fi
3738 MTX=$ac_cv_path_MTX
3739
3740 if test -n "$MTX"; then
3741   echo "$as_me:$LINENO: result: $MTX" >&5
3742 echo "${ECHO_T}$MTX" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748 # Extract the first word of "pkg-config", so it can be a program name with args.
3749 set dummy pkg-config; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   case $PKGCONFIG in
3756   [\\/]* | ?:[\\/]*)
3757   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3758   ;;
3759   *)
3760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for ac_exec_ext in '' $ac_executable_extensions; do
3766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769     break 2
3770   fi
3771 done
3772 done
3773
3774   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3775   ;;
3776 esac
3777 fi
3778 PKGCONFIG=$ac_cv_path_PKGCONFIG
3779
3780 if test -n "$PKGCONFIG"; then
3781   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3782 echo "${ECHO_T}$PKGCONFIG" >&6
3783 else
3784   echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 fi
3787
3788
3789 test -n "$ARFLAG" || ARFLAGS="cr"
3790
3791
3792 MAKE_SHELL=/bin/sh
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802 echo "$as_me:$LINENO: checking for Operating System" >&5
3803 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3804
3805 case $host_os in
3806   *cygwin* ) CYGWIN=yes;;
3807          * ) CYGWIN=no;;
3808 esac
3809
3810 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3811 then
3812
3813
3814 if $TRUEPRG; then
3815   HAVE_SUN_OS_TRUE=
3816   HAVE_SUN_OS_FALSE='#'
3817 else
3818   HAVE_SUN_OS_TRUE='#'
3819   HAVE_SUN_OS_FALSE=
3820 fi
3821         cat >>confdefs.h <<\_ACEOF
3822 #define HAVE_SUN_OS 1
3823 _ACEOF
3824
3825 else
3826
3827
3828 if $FALSEPRG; then
3829   HAVE_SUN_OS_TRUE=
3830   HAVE_SUN_OS_FALSE='#'
3831 else
3832   HAVE_SUN_OS_TRUE='#'
3833   HAVE_SUN_OS_FALSE=
3834 fi
3835 fi
3836
3837 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3838 then
3839
3840
3841 if $TRUEPRG; then
3842   HAVE_OSF1_OS_TRUE=
3843   HAVE_OSF1_OS_FALSE='#'
3844 else
3845   HAVE_OSF1_OS_TRUE='#'
3846   HAVE_OSF1_OS_FALSE=
3847 fi
3848         cat >>confdefs.h <<\_ACEOF
3849 #define HAVE_OSF1_OS 1
3850 _ACEOF
3851
3852 else
3853
3854
3855 if $FALSEPRG; then
3856   HAVE_OSF1_OS_TRUE=
3857   HAVE_OSF1_OS_FALSE='#'
3858 else
3859   HAVE_OSF1_OS_TRUE='#'
3860   HAVE_OSF1_OS_FALSE=
3861 fi
3862 fi
3863
3864 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3865 then
3866
3867
3868 if $TRUEPRG; then
3869   HAVE_AIX_OS_TRUE=
3870   HAVE_AIX_OS_FALSE='#'
3871 else
3872   HAVE_AIX_OS_TRUE='#'
3873   HAVE_AIX_OS_FALSE=
3874 fi
3875         cat >>confdefs.h <<\_ACEOF
3876 #define HAVE_AIX_OS 1
3877 _ACEOF
3878
3879 else
3880
3881
3882 if $FALSEPRG; then
3883   HAVE_AIX_OS_TRUE=
3884   HAVE_AIX_OS_FALSE='#'
3885 else
3886   HAVE_AIX_OS_TRUE='#'
3887   HAVE_AIX_OS_FALSE=
3888 fi
3889 fi
3890
3891 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3892 then
3893
3894
3895 if $TRUEPRG; then
3896   HAVE_HPUX_OS_TRUE=
3897   HAVE_HPUX_OS_FALSE='#'
3898 else
3899   HAVE_HPUX_OS_TRUE='#'
3900   HAVE_HPUX_OS_FALSE=
3901 fi
3902         cat >>confdefs.h <<\_ACEOF
3903 #define HAVE_HPUX_OS 1
3904 _ACEOF
3905
3906 else
3907
3908
3909 if $FALSEPRG; then
3910   HAVE_HPUX_OS_TRUE=
3911   HAVE_HPUX_OS_FALSE='#'
3912 else
3913   HAVE_HPUX_OS_TRUE='#'
3914   HAVE_HPUX_OS_FALSE=
3915 fi
3916 fi
3917
3918 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3919 then
3920
3921
3922 if $TRUEPRG; then
3923   HAVE_LINUX_OS_TRUE=
3924   HAVE_LINUX_OS_FALSE='#'
3925 else
3926   HAVE_LINUX_OS_TRUE='#'
3927   HAVE_LINUX_OS_FALSE=
3928 fi
3929         cat >>confdefs.h <<\_ACEOF
3930 #define HAVE_LINUX_OS 1
3931 _ACEOF
3932
3933 else
3934
3935
3936 if $FALSEPRG; then
3937   HAVE_LINUX_OS_TRUE=
3938   HAVE_LINUX_OS_FALSE='#'
3939 else
3940   HAVE_LINUX_OS_TRUE='#'
3941   HAVE_LINUX_OS_FALSE=
3942 fi
3943 fi
3944
3945 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3946 then
3947
3948
3949 if $TRUEPRG; then
3950   HAVE_FREEBSD_OS_TRUE=
3951   HAVE_FREEBSD_OS_FALSE='#'
3952 else
3953   HAVE_FREEBSD_OS_TRUE='#'
3954   HAVE_FREEBSD_OS_FALSE=
3955 fi
3956         cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_FREEBSD_OS 1
3958 _ACEOF
3959
3960 else
3961
3962
3963 if $FALSEPRG; then
3964   HAVE_FREEBSD_OS_TRUE=
3965   HAVE_FREEBSD_OS_FALSE='#'
3966 else
3967   HAVE_FREEBSD_OS_TRUE='#'
3968   HAVE_FREEBSD_OS_FALSE=
3969 fi
3970 fi
3971
3972 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3973 then
3974
3975
3976 if $TRUEPRG; then
3977   HAVE_NETBSD_OS_TRUE=
3978   HAVE_NETBSD_OS_FALSE='#'
3979 else
3980   HAVE_NETBSD_OS_TRUE='#'
3981   HAVE_NETBSD_OS_FALSE=
3982 fi
3983         cat >>confdefs.h <<\_ACEOF
3984 #define HAVE_NETBSD_OS 1
3985 _ACEOF
3986
3987 else
3988
3989
3990 if $FALSEPRG; then
3991   HAVE_NETBSD_OS_TRUE=
3992   HAVE_NETBSD_OS_FALSE='#'
3993 else
3994   HAVE_NETBSD_OS_TRUE='#'
3995   HAVE_NETBSD_OS_FALSE=
3996 fi
3997 fi
3998
3999 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4000 then
4001
4002
4003 if $TRUEPRG; then
4004   HAVE_OPENBSD_OS_TRUE=
4005   HAVE_OPENBSD_OS_FALSE='#'
4006 else
4007   HAVE_OPENBSD_OS_TRUE='#'
4008   HAVE_OPENBSD_OS_FALSE=
4009 fi
4010         cat >>confdefs.h <<\_ACEOF
4011 #define HAVE_OPENBSD_OS 1
4012 _ACEOF
4013
4014 else
4015
4016
4017 if $FALSEPRG; then
4018   HAVE_OPENBSD_OS_TRUE=
4019   HAVE_OPENBSD_OS_FALSE='#'
4020 else
4021   HAVE_OPENBSD_OS_TRUE='#'
4022   HAVE_OPENBSD_OS_FALSE=
4023 fi
4024 fi
4025
4026 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4027 then
4028
4029
4030 if $TRUEPRG; then
4031   HAVE_BSDI_OS_TRUE=
4032   HAVE_BSDI_OS_FALSE='#'
4033 else
4034   HAVE_BSDI_OS_TRUE='#'
4035   HAVE_BSDI_OS_FALSE=
4036 fi
4037         cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_BSDI_OS 1
4039 _ACEOF
4040
4041 else
4042
4043
4044 if $FALSEPRG; then
4045   HAVE_BSDI_OS_TRUE=
4046   HAVE_BSDI_OS_FALSE='#'
4047 else
4048   HAVE_BSDI_OS_TRUE='#'
4049   HAVE_BSDI_OS_FALSE=
4050 fi
4051 fi
4052
4053 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4054 then
4055
4056
4057 if $TRUEPRG; then
4058   HAVE_SGI_OS_TRUE=
4059   HAVE_SGI_OS_FALSE='#'
4060 else
4061   HAVE_SGI_OS_TRUE='#'
4062   HAVE_SGI_OS_FALSE=
4063 fi
4064         cat >>confdefs.h <<\_ACEOF
4065 #define HAVE_SGI_OS 1
4066 _ACEOF
4067
4068 else
4069
4070
4071 if $FALSEPRG; then
4072   HAVE_SGI_OS_TRUE=
4073   HAVE_SGI_OS_FALSE='#'
4074 else
4075   HAVE_SGI_OS_TRUE='#'
4076   HAVE_SGI_OS_FALSE=
4077 fi
4078 fi
4079
4080 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4081 then
4082
4083
4084 if $TRUEPRG; then
4085   HAVE_IRIX_OS_TRUE=
4086   HAVE_IRIX_OS_FALSE='#'
4087 else
4088   HAVE_IRIX_OS_TRUE='#'
4089   HAVE_IRIX_OS_FALSE=
4090 fi
4091         cat >>confdefs.h <<\_ACEOF
4092 #define HAVE_IRIX_OS 1
4093 _ACEOF
4094
4095 else
4096
4097
4098 if $FALSEPRG; then
4099   HAVE_IRIX_OS_TRUE=
4100   HAVE_IRIX_OS_FALSE='#'
4101 else
4102   HAVE_IRIX_OS_TRUE='#'
4103   HAVE_IRIX_OS_FALSE=
4104 fi
4105 fi
4106
4107 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4108 then
4109
4110
4111 if $TRUEPRG; then
4112   HAVE_DARWIN_OS_TRUE=
4113   HAVE_DARWIN_OS_FALSE='#'
4114 else
4115   HAVE_DARWIN_OS_TRUE='#'
4116   HAVE_DARWIN_OS_FALSE=
4117 fi
4118     cat >>confdefs.h <<\_ACEOF
4119 #define HAVE_DARWIN_OS 1
4120 _ACEOF
4121
4122 else
4123
4124
4125 if $FALSEPRG; then
4126   HAVE_DARWIN_OS_TRUE=
4127   HAVE_DARWIN_OS_FALSE='#'
4128 else
4129   HAVE_DARWIN_OS_TRUE='#'
4130   HAVE_DARWIN_OS_FALSE=
4131 fi
4132 fi
4133
4134 echo "$as_me:$LINENO: result: \" \"" >&5
4135 echo "${ECHO_T}\" \"" >&6
4136
4137
4138 # -----------------------------------------------------------
4139 # ----------------------------------------------------------
4140 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4141 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4142 if test "x$DISTNAME" != "x"
4143 then
4144         echo "distname set to $DISTNAME"
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4146 then
4147         DISTNAME=alpha
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4149 then
4150         DISTNAME=aix
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4152 then
4153         DISTNAME=hpux
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4155 then
4156         DISTNAME=solaris
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4158 then
4159         DISTNAME=freebsd
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4161 then
4162         DISTNAME=netbsd
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4164 then
4165         DISTNAME=openbsd
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4167 then
4168         DISTNAME=irix
4169 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4170 then
4171         DISTNAME=bsdi
4172 elif test -f /etc/SuSE-release
4173 then
4174         DISTNAME=suse
4175 elif test -d /etc/SuSEconfig
4176 then
4177         DISTNAME=suse5
4178 elif test -f /etc/mandrake-release
4179 then
4180         DISTNAME=mandrake
4181 elif test -f /etc/redhat-release
4182 then
4183         DISTNAME=redhat
4184 elif test -f /etc/gentoo-release
4185 then
4186         DISTNAME=gentoo
4187 elif test -f /etc/debian_version
4188 then
4189         DISTNAME=debian
4190 elif test -f /etc/slackware-version
4191 then
4192         DISTNAME=slackware
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4194 then
4195     DISTNAME=darwin
4196 elif test -f /etc/engarde-version
4197 then
4198         DISTNAME=engarde
4199 elif test "$CYGWIN" = yes
4200 then
4201         DISTNAME=cygwin
4202         cat >>confdefs.h <<\_ACEOF
4203 #define HAVE_CYGWIN 1
4204 _ACEOF
4205
4206 else
4207         DISTNAME=unknown
4208 fi
4209 echo "$as_me:$LINENO: result: \" \"" >&5
4210 echo "${ECHO_T}\" \"" >&6
4211
4212
4213 # -----------------------------------------------------------
4214 # ----------------------------------------------------------
4215
4216
4217
4218 if false; then
4219   INSIDE_GNOME_COMMON_TRUE=
4220   INSIDE_GNOME_COMMON_FALSE='#'
4221 else
4222   INSIDE_GNOME_COMMON_TRUE='#'
4223   INSIDE_GNOME_COMMON_FALSE=
4224 fi
4225
4226         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4227
4228         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4229
4230
4231 # ------------------------------------------------------------------
4232 #  If the user has not set --prefix, we set our default to nothing.
4233 #  In this case, if the user has not set --sysconfdir, we set it
4234 #  to the package default of /etc/bacula.  If either --prefix or
4235 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4236 # ------------------------------------------------------------------
4237 if test x${prefix} = xNONE ; then
4238     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4239         sysconfdir=/etc/bacula
4240     fi
4241     prefix=
4242 fi
4243 sysconfdir=`eval echo ${sysconfdir}`
4244
4245 # -------------------------------------------------------------------------
4246 #  If the user has not set --exec-prefix, we default to ${prefix}
4247 # -------------------------------------------------------------------------
4248 if test x${exec_prefix} = xNONE ; then
4249     exec_prefix=${prefix}
4250 fi
4251
4252 # ------------------------------------------------------------------
4253 # If the user has not set --sbindir, we set our default as /sbin
4254 # ------------------------------------------------------------------
4255 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4256     sbindir=${exec_prefix}/sbin
4257 fi
4258 sbindir=`eval echo ${sbindir}`
4259
4260 # ------------------------------------------------------------------
4261 # All list of languages for which a translation exist. Each
4262 #  language is separated by a space.
4263 # ------------------------------------------------------------------
4264 ALL_LINGUAS=""
4265
4266 for ac_prog in msgfmt
4267 do
4268   # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_path_MSGFMT+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   case $MSGFMT in
4276   [\\/]* | ?:[\\/]*)
4277   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4278   ;;
4279   *)
4280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_exec_ext in '' $ac_executable_extensions; do
4286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292 done
4293
4294   ;;
4295 esac
4296 fi
4297 MSGFMT=$ac_cv_path_MSGFMT
4298
4299 if test -n "$MSGFMT"; then
4300   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4301 echo "${ECHO_T}$MSGFMT" >&6
4302 else
4303   echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4305 fi
4306
4307   test -n "$MSGFMT" && break
4308 done
4309 test -n "$MSGFMT" || MSGFMT="no"
4310
4311 if test "$MSGFMT" = "no"
4312 then
4313    echo 'msgfmt program not found, disabling NLS !'
4314    USE_NLS=no
4315    USE_INCLUDED_LIBINTL=no
4316 #else
4317 #   AM_GNU_GETTEXT
4318 fi
4319
4320
4321 support_mysql=no
4322 support_sqlite=no
4323 support_postgresql=no
4324 support_smartalloc=yes
4325 support_readline=no
4326 support_conio=yes
4327 support_gnome=no
4328 gnome_version=
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4335 cats=
4336 db_name=Internal
4337 DB_NAME=bdb
4338
4339
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345   enableval="$enable_gnome"
4346   if test x$enableval = xyes; then
4347     support_gnome=yes
4348   fi
4349 fi;
4350
4351 GNOME_DIR=
4352 if test x$support_gnome = xyes; then
4353   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354   pkg=$?
4355   if test $pkg = 0; then
4356      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4357      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4358      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4359      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4360
4361
4362
4363
4364      GNOME_DIR=src/gnome2-console
4365      gnome_version="Version 2.x"
4366   else
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380   withval="$with_gnome_includes"
4381
4382         CFLAGS="$CFLAGS -I$withval"
4383
4384 fi;
4385
4386
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389   withval="$with_gnome_libs"
4390
4391         LDFLAGS="$LDFLAGS -L$withval"
4392         gnome_prefix=$withval
4393
4394 fi;
4395
4396
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399   withval="$with_gnome"
4400   if test x$withval = xyes; then
4401                         want_gnome=yes
4402                                                                         :
4403                 else
4404                         if test "x$withval" = xno; then
4405                                 want_gnome=no
4406                         else
4407                                 want_gnome=yes
4408                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4409                                 CFLAGS="$CFLAGS -I$withval/include"
4410                                 gnome_prefix=$withval/lib
4411                         fi
4412                 fi
4413 else
4414   want_gnome=yes
4415 fi;
4416
4417         if test "x$want_gnome" = xyes; then
4418
4419             # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $GNOME_CONFIG in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446   ;;
4447 esac
4448 fi
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450
4451 if test -n "$GNOME_CONFIG"; then
4452   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459             if test "$GNOME_CONFIG" = "no"; then
4460               no_gnome_config="yes"
4461             else
4462               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465                 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467
4468
4469         # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ORBIT_CONFIG in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496   ;;
4497 esac
4498 fi
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500
4501 if test -n "$ORBIT_CONFIG"; then
4502   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509         # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_IDL in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540
4541 if test -n "$ORBIT_IDL"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554
4555                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556                         gnome_cv_orbit_found=no
4557                 else
4558                         gnome_cv_orbit_found=yes
4559                 fi
4560
4561 fi
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564
4565
4566 if test x$gnome_cv_orbit_found = xyes; then
4567   HAVE_ORBIT_TRUE=
4568   HAVE_ORBIT_FALSE='#'
4569 else
4570   HAVE_ORBIT_TRUE='#'
4571   HAVE_ORBIT_FALSE=
4572 fi
4573         if test x$gnome_cv_orbit_found = xyes; then
4574
4575                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577
4578
4579         else
4580                 if test xfail = xfailure; then
4581                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583    { (exit 1); exit 1; }; }
4584                 fi
4585         fi
4586
4587         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592
4593                 gnome_cv_gnorba_found=no
4594                 if test x$gnome_cv_orbit_found = xyes; then
4595                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597                         if test -n "$GNORBA_LIBS"; then
4598                                 gnome_cv_gnorba_found=yes
4599                         fi
4600                 fi
4601
4602 fi
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605
4606
4607 if test x$gnome_cv_gnorba_found = xyes; then
4608   HAVE_GNORBA_TRUE=
4609   HAVE_GNORBA_FALSE='#'
4610 else
4611   HAVE_GNORBA_TRUE='#'
4612   HAVE_GNORBA_FALSE=
4613 fi
4614         if test x$gnome_cv_orbit_found = xyes; then
4615
4616                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618
4619
4620         else
4621                 if test xfail = xfailure; then
4622                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624    { (exit 1); exit 1; }; }
4625                 fi
4626         fi
4627
4628                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635
4636               else
4637                 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639                 no_gnome_config="yes"
4640               fi
4641             fi
4642
4643             if test x$exec_prefix = xNONE; then
4644                 if test x$prefix = xNONE; then
4645                     gnome_prefix=$ac_default_prefix/lib
4646                 else
4647                     gnome_prefix=$prefix/lib
4648                 fi
4649             else
4650                 gnome_prefix=`eval echo \`echo $libdir\``
4651             fi
4652
4653             if test "$no_gnome_config" = "yes"; then
4654               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656               if test -f $gnome_prefix/gnomeConf.sh; then
4657                 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659                 echo "loading gnome configuration from" \
4660                      "$gnome_prefix/gnomeConf.sh"
4661                 . $gnome_prefix/gnomeConf.sh
4662
4663               else
4664                 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666                 if test xfail = xfail; then
4667                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669    { (exit 1); exit 1; }; }
4670                 fi
4671               fi
4672             fi
4673         fi
4674
4675         if test -n ""; then
4676           n=""
4677           for i in $n; do
4678             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680             case $i in
4681               applets)
4682
4683                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686               docklets)
4687
4688                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691               capplet)
4692
4693                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696               *)
4697                 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4699             esac
4700             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4702           done
4703         fi
4704
4705
4706      GNOME_DIR=src/gnome-console
4707      gnome_version="Version 1.4"
4708   fi
4709 fi
4710
4711
4712
4713 # -------------------------------------------
4714 # smartalloc (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4717 if test "${enable_smartalloc+set}" = set; then
4718   enableval="$enable_smartalloc"
4719   if test x$enableval = xno; then
4720     support_smartalloc=no
4721   fi
4722 fi;
4723
4724 if test x$support_smartalloc = xyes; then
4725    cat >>confdefs.h <<\_ACEOF
4726 #define SMARTALLOC 1
4727 _ACEOF
4728
4729 fi
4730
4731 # -------------------------------------------
4732 # static-tools (default off)
4733 # -------------------------------------------
4734 # Check whether --enable-static-tools or --disable-static-tools was given.
4735 if test "${enable_static_tools+set}" = set; then
4736   enableval="$enable_static_tools"
4737   if test x$enableval = xyes; then
4738      support_static_tools=yes
4739    fi
4740 fi;
4741
4742 TTOOL_LDFLAGS=
4743 if test x$support_static_tools = xyes; then
4744    TTOOL_LDFLAGS="-static"
4745 fi
4746
4747
4748 # -------------------------------------------
4749 # static-fd    (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-static-fd or --disable-static-fd was given.
4752 if test "${enable_static_fd+set}" = set; then
4753   enableval="$enable_static_fd"
4754   if test x$enableval = xyes; then
4755      support_static_fd=yes
4756    fi
4757 fi;
4758
4759 STATIC_FD=
4760 if test x$support_static_fd = xyes; then
4761    STATIC_FD="static-bacula-fd"
4762 fi
4763
4764
4765 # -------------------------------------------
4766 # static-sd    (default off)
4767 # -------------------------------------------
4768 # Check whether --enable-static-sd or --disable-static-sd was given.
4769 if test "${enable_static_sd+set}" = set; then
4770   enableval="$enable_static_sd"
4771   if test x$enableval = xyes; then
4772      support_static_sd=yes
4773    fi
4774 fi;
4775
4776 STATIC_SD=
4777 if test x$support_static_sd = xyes; then
4778    STATIC_SD="static-bacula-sd"
4779 fi
4780
4781
4782 # -------------------------------------------
4783 # static-dir   (default off)
4784 # -------------------------------------------
4785 # Check whether --enable-static-dir or --disable-static-dir was given.
4786 if test "${enable_static_dir+set}" = set; then
4787   enableval="$enable_static_dir"
4788   if test x$enableval = xyes; then
4789      support_static_dir=yes
4790    fi
4791 fi;
4792
4793 STATIC_DIR=
4794 if test x$support_static_dir = xyes; then
4795    STATIC_DIR="static-bacula-dir"
4796 fi
4797
4798
4799 # -------------------------------------------
4800 # static-cons  (default off)
4801 # -------------------------------------------
4802 # Check whether --enable-static-cons or --disable-static-cons was given.
4803 if test "${enable_static_cons+set}" = set; then
4804   enableval="$enable_static_cons"
4805   if test x$enableval = xyes; then
4806      support_static_cons=yes
4807    fi
4808 fi;
4809
4810 STATIC_CONS=
4811 STATIC_GNOME_CONS=
4812 if test x$support_static_cons = xyes; then
4813    STATIC_CONS="static-bconsole"
4814    STATIC_GNOME_CONS="static-gnome-console"
4815 fi
4816
4817
4818
4819 # -------------------------------------------
4820 # client_only  (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-client-only or --disable-client-only was given.
4823 if test "${enable_client_only+set}" = set; then
4824   enableval="$enable_client_only"
4825   if test x$enableval = xyes; then
4826      build_client_only=yes
4827    fi
4828 fi;
4829 if test x$build_client_only = xno; then
4830    ALL_DIRS="subdirs"
4831 else
4832    ALL_DIRS=""
4833 fi
4834
4835
4836 # ---------------------------------------------------
4837 # Check for conio (Bacula readline substitute)(
4838 # ---------------------------------------------------
4839 # this allows you to turn it completely off
4840 # Check whether --enable-conio or --disable-conio was given.
4841 if test "${enable_conio+set}" = set; then
4842   enableval="$enable_conio"
4843   if test x$enableval = xno; then
4844     support_conio=no
4845   fi
4846 fi;
4847
4848 got_conio="no"
4849 if test x$support_conio = xyes; then
4850    CONS_OBJ="conio.o"
4851    CONS_SRC="conio.c"
4852    got_conio="yes"
4853    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4855 if test "${ac_cv_header_stdc+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4860 /* confdefs.h.  */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h.  */
4865 #include <stdlib.h>
4866 #include <stdarg.h>
4867 #include <string.h>
4868 #include <float.h>
4869
4870 int
4871 main ()
4872 {
4873
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880   (eval $ac_compile) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } &&
4884          { ac_try='test -s conftest.$ac_objext'
4885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886   (eval $ac_try) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; }; then
4890   ac_cv_header_stdc=yes
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ac_cv_header_stdc=no
4896 fi
4897 rm -f conftest.$ac_objext conftest.$ac_ext
4898
4899 if test $ac_cv_header_stdc = yes; then
4900   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4901   cat >conftest.$ac_ext <<_ACEOF
4902 #line $LINENO "configure"
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 #include <string.h>
4909
4910 _ACEOF
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912   $EGREP "memchr" >/dev/null 2>&1; then
4913   :
4914 else
4915   ac_cv_header_stdc=no
4916 fi
4917 rm -f conftest*
4918
4919 fi
4920
4921 if test $ac_cv_header_stdc = yes; then
4922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923   cat >conftest.$ac_ext <<_ACEOF
4924 #line $LINENO "configure"
4925 /* confdefs.h.  */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h.  */
4930 #include <stdlib.h>
4931
4932 _ACEOF
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934   $EGREP "free" >/dev/null 2>&1; then
4935   :
4936 else
4937   ac_cv_header_stdc=no
4938 fi
4939 rm -f conftest*
4940
4941 fi
4942
4943 if test $ac_cv_header_stdc = yes; then
4944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4945   if test "$cross_compiling" = yes; then
4946   :
4947 else
4948   cat >conftest.$ac_ext <<_ACEOF
4949 #line $LINENO "configure"
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #include <ctype.h>
4956 #if ((' ' & 0x0FF) == 0x020)
4957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4959 #else
4960 # define ISLOWER(c) \
4961                    (('a' <= (c) && (c) <= 'i') \
4962                      || ('j' <= (c) && (c) <= 'r') \
4963                      || ('s' <= (c) && (c) <= 'z'))
4964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4965 #endif
4966
4967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4968 int
4969 main ()
4970 {
4971   int i;
4972   for (i = 0; i < 256; i++)
4973     if (XOR (islower (i), ISLOWER (i))
4974         || toupper (i) != TOUPPER (i))
4975       exit(2);
4976   exit (0);
4977 }
4978 _ACEOF
4979 rm -f conftest$ac_exeext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981   (eval $ac_link) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; }; then
4990   :
4991 else
4992   echo "$as_me: program exited with status $ac_status" >&5
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 ( exit $ac_status )
4997 ac_cv_header_stdc=no
4998 fi
4999 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 fi
5002 fi
5003 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5004 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5005 if test $ac_cv_header_stdc = yes; then
5006
5007 cat >>confdefs.h <<\_ACEOF
5008 #define STDC_HEADERS 1
5009 _ACEOF
5010
5011 fi
5012
5013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5024                   inttypes.h stdint.h unistd.h
5025 do
5026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5027 echo "$as_me:$LINENO: checking for $ac_header" >&5
5028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 $ac_includes_default
5040
5041 #include <$ac_header>
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045   (eval $ac_compile) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } &&
5049          { ac_try='test -s conftest.$ac_objext'
5050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051   (eval $ac_try) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; }; then
5055   eval "$as_ac_Header=yes"
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 eval "$as_ac_Header=no"
5061 fi
5062 rm -f conftest.$ac_objext conftest.$ac_ext
5063 fi
5064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5067   cat >>confdefs.h <<_ACEOF
5068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5069 _ACEOF
5070
5071 fi
5072
5073 done
5074
5075
5076
5077 for ac_header in termcap.h
5078 do
5079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081   echo "$as_me:$LINENO: checking for $ac_header" >&5
5082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 fi
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5088 else
5089   # Is the header compilable?
5090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 $ac_includes_default
5100 #include <$ac_header>
5101 _ACEOF
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104   (eval $ac_compile) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } &&
5108          { ac_try='test -s conftest.$ac_objext'
5109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110   (eval $ac_try) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }; }; then
5114   ac_header_compiler=yes
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_compiler=no
5120 fi
5121 rm -f conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5123 echo "${ECHO_T}$ac_header_compiler" >&6
5124
5125 # Is the header present?
5126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135 #include <$ac_header>
5136 _ACEOF
5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5139   ac_status=$?
5140   grep -v '^ *+' conftest.er1 >conftest.err
5141   rm -f conftest.er1
5142   cat conftest.err >&5
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } >/dev/null; then
5145   if test -s conftest.err; then
5146     ac_cpp_err=$ac_c_preproc_warn_flag
5147   else
5148     ac_cpp_err=
5149   fi
5150 else
5151   ac_cpp_err=yes
5152 fi
5153 if test -z "$ac_cpp_err"; then
5154   ac_header_preproc=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159   ac_header_preproc=no
5160 fi
5161 rm -f conftest.err conftest.$ac_ext
5162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5163 echo "${ECHO_T}$ac_header_preproc" >&6
5164
5165 # So?  What about this header?
5166 case $ac_header_compiler:$ac_header_preproc in
5167   yes:no )
5168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5172     (
5173       cat <<\_ASBOX
5174 ## ------------------------------------ ##
5175 ## Report this to bug-autoconf@gnu.org. ##
5176 ## ------------------------------------ ##
5177 _ASBOX
5178     ) |
5179       sed "s/^/$as_me: WARNING:     /" >&2
5180     ;;
5181   no:yes )
5182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5184     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5188     (
5189       cat <<\_ASBOX
5190 ## ------------------------------------ ##
5191 ## Report this to bug-autoconf@gnu.org. ##
5192 ## ------------------------------------ ##
5193 _ASBOX
5194     ) |
5195       sed "s/^/$as_me: WARNING:     /" >&2
5196     ;;
5197 esac
5198 echo "$as_me:$LINENO: checking for $ac_header" >&5
5199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   eval "$as_ac_Header=$ac_header_preproc"
5204 fi
5205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5207
5208 fi
5209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5210   cat >>confdefs.h <<_ACEOF
5211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5212 _ACEOF
5213
5214 fi
5215
5216 done
5217
5218    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5219 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5220 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223   ac_check_lib_save_LIBS=$LIBS
5224 LIBS="-ltermcap  $LIBS"
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232
5233 /* Override any gcc2 internal prototype to avoid an error.  */
5234 #ifdef __cplusplus
5235 extern "C"
5236 #endif
5237 /* We use char because int might match the return type of a gcc2
5238    builtin and then its argument prototype would still apply.  */
5239 char tgetent ();
5240 int
5241 main ()
5242 {
5243 tgetent ();
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250   (eval $ac_link) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } &&
5254          { ac_try='test -s conftest$ac_exeext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   ac_cv_lib_termcap_tgetent=yes
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ac_cv_lib_termcap_tgetent=no
5266 fi
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5271 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5272 if test $ac_cv_lib_termcap_tgetent = yes; then
5273   CONS_LIBS="-ltermcap"
5274 fi
5275
5276    support_readline=no
5277
5278 cat >>confdefs.h <<\_ACEOF
5279 #define HAVE_CONIO 1
5280 _ACEOF
5281
5282 fi
5283
5284
5285 # ---------------------------------------------------
5286 # Check for readline support/directory (default off)
5287 # ---------------------------------------------------
5288 # this allows you to turn it completely off
5289 # Check whether --enable-readline or --disable-readline was given.
5290 if test "${enable_readline+set}" = set; then
5291   enableval="$enable_readline"
5292   if test x$enableval = xno; then
5293     support_readline=no
5294   fi
5295 fi;
5296
5297 got_readline="no"
5298 READLINE_SRC=
5299 if test x$support_readline = xyes; then
5300
5301 # Check whether --with-readline or --without-readline was given.
5302 if test "${with_readline+set}" = set; then
5303   withval="$with_readline"
5304
5305         case "$with_readline" in
5306         no) : ;;
5307         yes|*)
5308           if test "$with_readline" != "yes"; then
5309             CONS_INC="-I${with_readline}"
5310             CONS_LDFLAGS="-L$with_readline"
5311           else
5312              with_readline="/usr/include/readline"
5313           fi
5314           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5317 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 fi
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5323 else
5324   # Is the header compilable?
5325 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5326 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334 $ac_includes_default
5335 #include <${with_readline}/readline.h>
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339   (eval $ac_compile) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); } &&
5343          { ac_try='test -s conftest.$ac_objext'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; }; then
5349   ac_header_compiler=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_header_compiler=no
5355 fi
5356 rm -f conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5359
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5362 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <${with_readline}/readline.h>
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } >/dev/null; then
5380   if test -s conftest.err; then
5381     ac_cpp_err=$ac_c_preproc_warn_flag
5382   else
5383     ac_cpp_err=
5384   fi
5385 else
5386   ac_cpp_err=yes
5387 fi
5388 if test -z "$ac_cpp_err"; then
5389   ac_header_preproc=yes
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394   ac_header_preproc=no
5395 fi
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5399
5400 # So?  What about this header?
5401 case $ac_header_compiler:$ac_header_preproc in
5402   yes:no )
5403     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5406 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5407     (
5408       cat <<\_ASBOX
5409 ## ------------------------------------ ##
5410 ## Report this to bug-autoconf@gnu.org. ##
5411 ## ------------------------------------ ##
5412 _ASBOX
5413     ) |
5414       sed "s/^/$as_me: WARNING:     /" >&2
5415     ;;
5416   no:yes )
5417     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5418 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5419     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5420 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5421     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5422 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5423     (
5424       cat <<\_ASBOX
5425 ## ------------------------------------ ##
5426 ## Report this to bug-autoconf@gnu.org. ##
5427 ## ------------------------------------ ##
5428 _ASBOX
5429     ) |
5430       sed "s/^/$as_me: WARNING:     /" >&2
5431     ;;
5432 esac
5433 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5434 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   eval "$as_ac_Header=$ac_header_preproc"
5439 fi
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442
5443 fi
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445    cat >>confdefs.h <<\_ACEOF
5446 #define HAVE_READLINE 1
5447 _ACEOF
5448
5449                CONS_LIBS="-lreadline -ltermcap"
5450                got_readline="yes"
5451
5452 else
5453    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5454 echo "$as_me: error: *** readline library missing" >&2;}
5455    { (exit 1); exit 1; }; }
5456
5457
5458 fi
5459
5460
5461           ;;
5462         esac
5463
5464 else
5465
5466        # check for standard readline library
5467        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5468   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5469 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5470 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 fi
5473 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5474 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5475 else
5476   # Is the header compilable?
5477 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5478 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486 $ac_includes_default
5487 #include </usr/include/readline/readline.h>
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491   (eval $ac_compile) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -s conftest.$ac_objext'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; }; then
5501   ac_header_compiler=yes
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_header_compiler=no
5507 fi
5508 rm -f conftest.$ac_objext conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5510 echo "${ECHO_T}$ac_header_compiler" >&6
5511
5512 # Is the header present?
5513 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5514 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5515 cat >conftest.$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 #include </usr/include/readline/readline.h>
5523 _ACEOF
5524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } >/dev/null; then
5532   if test -s conftest.err; then
5533     ac_cpp_err=$ac_c_preproc_warn_flag
5534   else
5535     ac_cpp_err=
5536   fi
5537 else
5538   ac_cpp_err=yes
5539 fi
5540 if test -z "$ac_cpp_err"; then
5541   ac_header_preproc=yes
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546   ac_header_preproc=no
5547 fi
5548 rm -f conftest.err conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5550 echo "${ECHO_T}$ac_header_preproc" >&6
5551
5552 # So?  What about this header?
5553 case $ac_header_compiler:$ac_header_preproc in
5554   yes:no )
5555     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5556 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5557     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5558 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5559     (
5560       cat <<\_ASBOX
5561 ## ------------------------------------ ##
5562 ## Report this to bug-autoconf@gnu.org. ##
5563 ## ------------------------------------ ##
5564 _ASBOX
5565     ) |
5566       sed "s/^/$as_me: WARNING:     /" >&2
5567     ;;
5568   no:yes )
5569     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5570 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5571     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5572 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5573     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5574 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5575     (
5576       cat <<\_ASBOX
5577 ## ------------------------------------ ##
5578 ## Report this to bug-autoconf@gnu.org. ##
5579 ## ------------------------------------ ##
5580 _ASBOX
5581     ) |
5582       sed "s/^/$as_me: WARNING:     /" >&2
5583     ;;
5584 esac
5585 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5586 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5587 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5591 fi
5592 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5593 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5594
5595 fi
5596 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5597    cat >>confdefs.h <<\_ACEOF
5598 #define HAVE_READLINE 1
5599 _ACEOF
5600
5601            got_readline="yes"
5602            CONS_INC="-I/usr/include/readline"
5603            CONS_LIBS="-lreadline -ltermcap"
5604
5605 else
5606
5607            # Did not find standard library, so try Bacula's default
5608             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5611 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 fi
5615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5617 else
5618   # Is the header compilable?
5619 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5620 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 /* confdefs.h.  */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h.  */
5628 $ac_includes_default
5629 #include <${TOP_DIR}/depkgs/readline/readline.h>
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633   (eval $ac_compile) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -s conftest.$ac_objext'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; }; then
5643   ac_header_compiler=yes
5644 else
5645   echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_compiler=no
5649 fi
5650 rm -f conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5653
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5656 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 #include <${TOP_DIR}/depkgs/readline/readline.h>
5665 _ACEOF
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } >/dev/null; then
5674   if test -s conftest.err; then
5675     ac_cpp_err=$ac_c_preproc_warn_flag
5676   else
5677     ac_cpp_err=
5678   fi
5679 else
5680   ac_cpp_err=yes
5681 fi
5682 if test -z "$ac_cpp_err"; then
5683   ac_header_preproc=yes
5684 else
5685   echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688   ac_header_preproc=no
5689 fi
5690 rm -f conftest.err conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5693
5694 # So?  What about this header?
5695 case $ac_header_compiler:$ac_header_preproc in
5696   yes:no )
5697     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5701     (
5702       cat <<\_ASBOX
5703 ## ------------------------------------ ##
5704 ## Report this to bug-autoconf@gnu.org. ##
5705 ## ------------------------------------ ##
5706 _ASBOX
5707     ) |
5708       sed "s/^/$as_me: WARNING:     /" >&2
5709     ;;
5710   no:yes )
5711     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5712 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5713     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5714 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5715     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5716 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5717     (
5718       cat <<\_ASBOX
5719 ## ------------------------------------ ##
5720 ## Report this to bug-autoconf@gnu.org. ##
5721 ## ------------------------------------ ##
5722 _ASBOX
5723     ) |
5724       sed "s/^/$as_me: WARNING:     /" >&2
5725     ;;
5726 esac
5727 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5728 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   eval "$as_ac_Header=$ac_header_preproc"
5733 fi
5734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5736
5737 fi
5738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739    cat >>confdefs.h <<\_ACEOF
5740 #define HAVE_READLINE 1
5741 _ACEOF
5742
5743                  got_readline="yes"
5744                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5745                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5746                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5747                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5748
5749 else
5750    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5751 echo "$as_me: error: *** readline library missing" >&2;}
5752    { (exit 1); exit 1; }; }
5753
5754
5755 fi
5756
5757
5758
5759
5760 fi
5761
5762
5763
5764
5765 fi;
5766 fi
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777 # Minimal stuff for readline Makefile configuration
5778 MAKE_SHELL=/bin/sh
5779
5780
5781 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5782 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5783 if test "${ac_cv_header_stat_broken+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   cat >conftest.$ac_ext <<_ACEOF
5787 #line $LINENO "configure"
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 #include <sys/types.h>
5794 #include <sys/stat.h>
5795
5796 #if defined(S_ISBLK) && defined(S_IFDIR)
5797 # if S_ISBLK (S_IFDIR)
5798 You lose.
5799 # endif
5800 #endif
5801
5802 #if defined(S_ISBLK) && defined(S_IFCHR)
5803 # if S_ISBLK (S_IFCHR)
5804 You lose.
5805 # endif
5806 #endif
5807
5808 #if defined(S_ISLNK) && defined(S_IFREG)
5809 # if S_ISLNK (S_IFREG)
5810 You lose.
5811 # endif
5812 #endif
5813
5814 #if defined(S_ISSOCK) && defined(S_IFREG)
5815 # if S_ISSOCK (S_IFREG)
5816 You lose.
5817 # endif
5818 #endif
5819
5820 _ACEOF
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822   $EGREP "You lose" >/dev/null 2>&1; then
5823   ac_cv_header_stat_broken=yes
5824 else
5825   ac_cv_header_stat_broken=no
5826 fi
5827 rm -f conftest*
5828
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5831 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5832 if test $ac_cv_header_stat_broken = yes; then
5833
5834 cat >>confdefs.h <<\_ACEOF
5835 #define STAT_MACROS_BROKEN 1
5836 _ACEOF
5837
5838 fi
5839
5840
5841
5842
5843
5844
5845 ac_header_dirent=no
5846 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5847   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5848 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5849 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5855 /* confdefs.h.  */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h.  */
5860 #include <sys/types.h>
5861 #include <$ac_hdr>
5862
5863 int
5864 main ()
5865 {
5866 if ((DIR *) 0)
5867 return 0;
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874   (eval $ac_compile) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -s conftest.$ac_objext'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   eval "$as_ac_Header=yes"
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 eval "$as_ac_Header=no"
5890 fi
5891 rm -f conftest.$ac_objext conftest.$ac_ext
5892 fi
5893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5896   cat >>confdefs.h <<_ACEOF
5897 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5898 _ACEOF
5899
5900 ac_header_dirent=$ac_hdr; break
5901 fi
5902
5903 done
5904 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5905 if test $ac_header_dirent = dirent.h; then
5906   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5907 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5908 if test "${ac_cv_search_opendir+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   ac_func_search_save_LIBS=$LIBS
5912 ac_cv_search_opendir=no
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920
5921 /* Override any gcc2 internal prototype to avoid an error.  */
5922 #ifdef __cplusplus
5923 extern "C"
5924 #endif
5925 /* We use char because int might match the return type of a gcc2
5926    builtin and then its argument prototype would still apply.  */
5927 char opendir ();
5928 int
5929 main ()
5930 {
5931 opendir ();
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext conftest$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938   (eval $ac_link) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } &&
5942          { ac_try='test -s conftest$ac_exeext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_cv_search_opendir="none required"
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 fi
5954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5955 if test "$ac_cv_search_opendir" = no; then
5956   for ac_lib in dir; do
5957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5958     cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965
5966 /* Override any gcc2 internal prototype to avoid an error.  */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 /* We use char because int might match the return type of a gcc2
5971    builtin and then its argument prototype would still apply.  */
5972 char opendir ();
5973 int
5974 main ()
5975 {
5976 opendir ();
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983   (eval $ac_link) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -s conftest$ac_exeext'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; }; then
5993   ac_cv_search_opendir="-l$ac_lib"
5994 break
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 fi
6000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6001   done
6002 fi
6003 LIBS=$ac_func_search_save_LIBS
6004 fi
6005 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6006 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6007 if test "$ac_cv_search_opendir" != no; then
6008   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6009
6010 fi
6011
6012 else
6013   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6014 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6015 if test "${ac_cv_search_opendir+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   ac_func_search_save_LIBS=$LIBS
6019 ac_cv_search_opendir=no
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6022 /* confdefs.h.  */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h.  */
6027
6028 /* Override any gcc2 internal prototype to avoid an error.  */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 /* We use char because int might match the return type of a gcc2
6033    builtin and then its argument prototype would still apply.  */
6034 char opendir ();
6035 int
6036 main ()
6037 {
6038 opendir ();
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext conftest$ac_exeext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045   (eval $ac_link) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -s conftest$ac_exeext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_cv_search_opendir="none required"
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 fi
6061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_opendir" = no; then
6063   for ac_lib in x; do
6064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
6073 /* Override any gcc2 internal prototype to avoid an error.  */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 /* We use char because int might match the return type of a gcc2
6078    builtin and then its argument prototype would still apply.  */
6079 char opendir ();
6080 int
6081 main ()
6082 {
6083 opendir ();
6084   ;
6085   return 0;
6086 }
6087 _ACEOF
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090   (eval $ac_link) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); } &&
6094          { ac_try='test -s conftest$ac_exeext'
6095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096   (eval $ac_try) 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }; }; then
6100   ac_cv_search_opendir="-l$ac_lib"
6101 break
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 fi
6107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6108   done
6109 fi
6110 LIBS=$ac_func_search_save_LIBS
6111 fi
6112 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6113 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6114 if test "$ac_cv_search_opendir" != no; then
6115   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6116
6117 fi
6118
6119 fi
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6131 do
6132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6133 echo "$as_me:$LINENO: checking for $ac_func" >&5
6134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6135 if eval "test \"\${$as_ac_var+set}\" = set"; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 /* System header to define __stub macros and hopefully few prototypes,
6146     which can conflict with char $ac_func (); below.
6147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6148     <limits.h> exists even on freestanding compilers.  */
6149 #ifdef __STDC__
6150 # include <limits.h>
6151 #else
6152 # include <assert.h>
6153 #endif
6154 /* Override any gcc2 internal prototype to avoid an error.  */
6155 #ifdef __cplusplus
6156 extern "C"
6157 {
6158 #endif
6159 /* We use char because int might match the return type of a gcc2
6160    builtin and then its argument prototype would still apply.  */
6161 char $ac_func ();
6162 /* The GNU C library defines this for functions which it implements
6163     to always fail with ENOSYS.  Some functions are actually named
6164     something starting with __ and the normal name is an alias.  */
6165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6166 choke me
6167 #else
6168 char (*f) () = $ac_func;
6169 #endif
6170 #ifdef __cplusplus
6171 }
6172 #endif
6173
6174 int
6175 main ()
6176 {
6177 return f != $ac_func;
6178   ;
6179   return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184   (eval $ac_link) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } &&
6188          { ac_try='test -s conftest$ac_exeext'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; }; then
6194   eval "$as_ac_var=yes"
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 eval "$as_ac_var=no"
6200 fi
6201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6202 fi
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6205 if test `eval echo '${'$as_ac_var'}'` = yes; then
6206   cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6208 _ACEOF
6209
6210 fi
6211 done
6212
6213
6214 for ac_func in nanosleep
6215 do
6216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6217 echo "$as_me:$LINENO: checking for $ac_func" >&5
6218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6219 if eval "test \"\${$as_ac_var+set}\" = set"; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   cat >conftest.$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229 /* System header to define __stub macros and hopefully few prototypes,
6230     which can conflict with char $ac_func (); below.
6231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232     <limits.h> exists even on freestanding compilers.  */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6238 /* Override any gcc2 internal prototype to avoid an error.  */
6239 #ifdef __cplusplus
6240 extern "C"
6241 {
6242 #endif
6243 /* We use char because int might match the return type of a gcc2
6244    builtin and then its argument prototype would still apply.  */
6245 char $ac_func ();
6246 /* The GNU C library defines this for functions which it implements
6247     to always fail with ENOSYS.  Some functions are actually named
6248     something starting with __ and the normal name is an alias.  */
6249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6250 choke me
6251 #else
6252 char (*f) () = $ac_func;
6253 #endif
6254 #ifdef __cplusplus
6255 }
6256 #endif
6257
6258 int
6259 main ()
6260 {
6261 return f != $ac_func;
6262   ;
6263   return 0;
6264 }
6265 _ACEOF
6266 rm -f conftest.$ac_objext conftest$ac_exeext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268   (eval $ac_link) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } &&
6272          { ac_try='test -s conftest$ac_exeext'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; }; then
6278   eval "$as_ac_var=yes"
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 eval "$as_ac_var=no"
6284 fi
6285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6286 fi
6287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6289 if test `eval echo '${'$as_ac_var'}'` = yes; then
6290   cat >>confdefs.h <<_ACEOF
6291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6292 _ACEOF
6293
6294 fi
6295 done
6296
6297
6298
6299 for ac_header in varargs.h
6300 do
6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303   echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 fi
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 else
6311   # Is the header compilable?
6312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6314 cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 $ac_includes_default
6322 #include <$ac_header>
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326   (eval $ac_compile) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } &&
6330          { ac_try='test -s conftest.$ac_objext'
6331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332   (eval $ac_try) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   ac_header_compiler=yes
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 ac_header_compiler=no
6342 fi
6343 rm -f conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6345 echo "${ECHO_T}$ac_header_compiler" >&6
6346
6347 # Is the header present?
6348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line $LINENO "configure"
6352 /* confdefs.h.  */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h.  */
6357 #include <$ac_header>
6358 _ACEOF
6359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } >/dev/null; then
6367   if test -s conftest.err; then
6368     ac_cpp_err=$ac_c_preproc_warn_flag
6369   else
6370     ac_cpp_err=
6371   fi
6372 else
6373   ac_cpp_err=yes
6374 fi
6375 if test -z "$ac_cpp_err"; then
6376   ac_header_preproc=yes
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381   ac_header_preproc=no
6382 fi
6383 rm -f conftest.err conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6385 echo "${ECHO_T}$ac_header_preproc" >&6
6386
6387 # So?  What about this header?
6388 case $ac_header_compiler:$ac_header_preproc in
6389   yes:no )
6390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6394     (
6395       cat <<\_ASBOX
6396 ## ------------------------------------ ##
6397 ## Report this to bug-autoconf@gnu.org. ##
6398 ## ------------------------------------ ##
6399 _ASBOX
6400     ) |
6401       sed "s/^/$as_me: WARNING:     /" >&2
6402     ;;
6403   no:yes )
6404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6406     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6410     (
6411       cat <<\_ASBOX
6412 ## ------------------------------------ ##
6413 ## Report this to bug-autoconf@gnu.org. ##
6414 ## ------------------------------------ ##
6415 _ASBOX
6416     ) |
6417       sed "s/^/$as_me: WARNING:     /" >&2
6418     ;;
6419 esac
6420 echo "$as_me:$LINENO: checking for $ac_header" >&5
6421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   eval "$as_ac_Header=$ac_header_preproc"
6426 fi
6427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6429
6430 fi
6431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432   cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 _ACEOF
6435
6436 fi
6437
6438 done
6439
6440
6441 # End of readline/conio stuff
6442 # -----------------------------------------------------------------------
6443
6444
6445 # ---------------------------------------------------
6446 # Check for GMP support/directory
6447 # ---------------------------------------------------
6448 #GMP_SRC=
6449 #local_gmp="no"
6450 #AC_ARG_WITH(gmp,
6451 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6452 #  [
6453 #     case "$with_gmp" in
6454 #     no) : ;;
6455 #     yes|*)
6456 #       if test "$with_gmp" != "yes"; then
6457 #         GMP_INC="-I$with_gmp"
6458 #         GMP_LIBS="-lgmp"
6459 #         GMP_LDFLAGS="-L$with_gmp"
6460 #       else
6461 #          with_gmp="/usr/include"
6462 #       fi
6463 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6464 #          [ AC_MSG_RESULT(yes)
6465 #            AC_DEFINE(HAVE_GMP)
6466 #            GMP_LIBS="-lgmp"
6467 #            got_gmp="yes"
6468 #          ],
6469 #          [ AC_MSG_ERROR([*** gmp library missing])
6470 #          ]
6471 #       )
6472 #       ;;
6473 #     esac
6474 #  ],[
6475 #    # check for standard gmp library
6476 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6477 #    [ AC_MSG_RESULT(yes)
6478 #      AC_DEFINE(HAVE_GMP)
6479 #      got_gmp="yes"
6480 #      GMP_INC=
6481 #      GMP_LIBS="-lgmp"
6482 #    ], [
6483 #      # Did not find standard library, so use our own
6484 #      AC_MSG_RESULT(yes)
6485 #      AC_DEFINE(HAVE_GMP)
6486 #      got_gmp="yes"
6487 #      local_gmp="yes"
6488 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6489 #      GMP_LIBS="-lgmp"
6490 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6491 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6492 #    ])
6493 #  ]
6494 #)
6495 #AC_SUBST(GMP_INC)
6496 #AC_SUBST(GMP_LIBS)
6497 #AC_SUBST(GMP_LDFLAGS)
6498 #AC_SUBST(GMP_SRC)
6499
6500 # End of GMP stuff
6501 # -----------------------------------------------------------------------
6502
6503
6504 # ---------------------------------------------------
6505 # Check for CWEB support/directory
6506 # ---------------------------------------------------
6507 #CWEB_SRC=
6508 #CWEB=/bin
6509 #local_cweb="no"
6510 #AC_ARG_WITH(cweb,
6511 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6512 #  [
6513 #     case "$with_cweb" in
6514 #     no) : ;;
6515 #     yes|*)
6516 #       if test "$with_cweb" != "yes"; then
6517 #         CWEB_INC="-I$with_cweb"
6518 #         CWEB_LIBS="-lcweb"
6519 #         CWEB_LDFLAGS="-L$with_cweb"
6520 #       else
6521 #          with_cweb="/usr/include"
6522 #       fi
6523 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6524 #          [ AC_MSG_RESULT(yes)
6525 #            AC_DEFINE(HAVE_CWEB)
6526 #            CWEB_LIBS="-lcweb"
6527 #            got_cweb="yes"
6528 #          ],
6529 #          [ AC_MSG_ERROR([*** cweb library missing])
6530 #          ]
6531 #       )
6532 #       ;;
6533 #     esac
6534 #  ],[
6535 #    # check for standard cweb library
6536 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6537 #    [ AC_MSG_RESULT(yes)
6538 #      AC_DEFINE(HAVE_CWEB)
6539 #      got_cweb="yes"
6540 #      CWEB_INC=
6541 #      CWEB_LIBS="-lcweb"
6542 #    ], [
6543 #      # Did not find starndard library, so use our own
6544 #      AC_MSG_RESULT(yes)
6545 #      AC_DEFINE(HAVE_CWEB)
6546 #      got_cweb="yes"
6547 #      local_cweb="yes"
6548 #      CWEB=${TOP_DIR}/depkgs/cweb
6549 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6550 #      CWEB_LIBS="-lcweb"
6551 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6552 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6553 #    ])
6554 #  ]
6555 #)
6556 #AC_SUBST(CWEB)
6557 #AC_SUBST(CWEB_INC)
6558 #AC_SUBST(CWEB_LIBS)
6559 #AC_SUBST(CWEB_LDFLAGS)
6560 #AC_SUBST(CWEB_SRC)
6561
6562 # End of CWEB stuff
6563 # -----------------------------------------------------------------------
6564
6565
6566
6567 # -----------------------------------------------------------
6568 # Check whether user wants TCP wrappers support (default off)
6569 # -----------------------------------------------------------
6570 TCPW_MSG="no"
6571
6572 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6573 if test "${with_tcp_wrappers+set}" = set; then
6574   withval="$with_tcp_wrappers"
6575
6576     if test "x$withval" != "xno" ; then
6577        saved_LIBS="$LIBS"
6578        LIBS="$saved_LIBS -lwrap"
6579        echo "$as_me:$LINENO: checking for libwrap" >&5
6580 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6581        cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588  #include <tcpd.h>
6589              int deny_severity = 0;
6590              int allow_severity = 0;
6591              struct request_info *req;
6592 int
6593 main ()
6594 {
6595  hosts_access(req);
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602   (eval $ac_link) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612
6613             echo "$as_me:$LINENO: result: yes" >&5
6614 echo "${ECHO_T}yes" >&6
6615             cat >>confdefs.h <<\_ACEOF
6616 #define HAVE_LIBWRAP 1
6617 _ACEOF
6618
6619             TCPW_MSG="yes"
6620
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625
6626             LIBS="$saved_LIBS -lwrap -lnsl"
6627             cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634  #include <tcpd.h>
6635                  int deny_severity = 0;
6636                  int allow_severity = 0;
6637                  struct request_info *req;
6638 int
6639 main ()
6640 {
6641  hosts_access(req);
6642   ;
6643   return 0;
6644 }
6645 _ACEOF
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648   (eval $ac_link) 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); } &&
6652          { ac_try='test -s conftest$ac_exeext'
6653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654   (eval $ac_try) 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; }; then
6658
6659                  echo "$as_me:$LINENO: result: yes" >&5
6660 echo "${ECHO_T}yes" >&6
6661                  cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_LIBWRAP 1
6663 _ACEOF
6664
6665                  TCPW_MSG="yes"
6666
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6672 echo "$as_me: error: *** libwrap missing" >&2;}
6673    { (exit 1); exit 1; }; }
6674
6675 fi
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677
6678 fi
6679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6680     fi
6681
6682
6683 fi;
6684
6685 # ------------------------------------------
6686 # Where to place working dir
6687 # ------------------------------------------
6688 working_dir=`eval echo ${prefix}/var/bacula/working`
6689
6690 # Check whether --with-working-dir or --without-working-dir was given.
6691 if test "${with_working_dir+set}" = set; then
6692   withval="$with_working_dir"
6693
6694        if test "x$withval" != "xno" ; then
6695               working_dir=$withval
6696        fi
6697
6698
6699 fi;
6700
6701
6702
6703
6704 # ------------------------------------------
6705 # Where to place scriptdir (script files)
6706 # ------------------------------------------
6707 scriptdir=`eval echo ${sysconfdir}`
6708
6709 # Check whether --with-scriptdir or --without-scriptdir was given.
6710 if test "${with_scriptdir+set}" = set; then
6711   withval="$with_scriptdir"
6712
6713        if test "x$withval" != "xno" ; then
6714               scriptdir=$withval
6715        fi
6716
6717
6718 fi;
6719
6720
6721
6722
6723 # ------------------------------------------
6724 # Where to send dump email
6725 # ------------------------------------------
6726 dump_email=root@localhost
6727
6728 # Check whether --with-dump-email or --without-dump-email was given.
6729 if test "${with_dump_email+set}" = set; then
6730   withval="$with_dump_email"
6731
6732        if test "x$withval" != "xno" ; then
6733               dump_email=$withval
6734        fi
6735
6736
6737 fi;
6738
6739
6740
6741 # ------------------------------------------
6742 # Where to send job email
6743 # ------------------------------------------
6744 job_email=root@localhost
6745
6746 # Check whether --with-job-email or --without-job-email was given.
6747 if test "${with_job_email+set}" = set; then
6748   withval="$with_job_email"
6749
6750        if test "x$withval" != "xno" ; then
6751               job_email=$withval
6752        fi
6753
6754
6755 fi;
6756
6757
6758
6759 # ------------------------------------------
6760 # Where to find smtp host
6761 # ------------------------------------------
6762 smtp_host=localhost
6763
6764 # Check whether --with-smtp_host or --without-smtp_host was given.
6765 if test "${with_smtp_host+set}" = set; then
6766   withval="$with_smtp_host"
6767
6768        if test "x$withval" != "xno" ; then
6769               smtp_host=$withval
6770        fi
6771
6772
6773 fi;
6774
6775
6776
6777
6778 # ------------------------------------
6779 # Where to place pid files
6780 # ------------------------------------
6781 piddir=/var/run
6782
6783 # Check whether --with-pid-dir or --without-pid-dir was given.
6784 if test "${with_pid_dir+set}" = set; then
6785   withval="$with_pid_dir"
6786
6787         if test "x$withval" != "xno" ; then
6788             piddir=$withval
6789         fi
6790
6791
6792 fi;
6793
6794 cat >>confdefs.h <<_ACEOF
6795 #define _PATH_BACULA_PIDDIR "$piddir"
6796 _ACEOF
6797
6798
6799
6800
6801 # ------------------------------------
6802 # Where to place subsys "lock file"
6803 # ------------------------------------
6804 subsysdir=/var/run/subsys
6805
6806 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6807 if test "${with_subsys_dir+set}" = set; then
6808   withval="$with_subsys_dir"
6809
6810         if test "x$withval" != "xno" ; then
6811             subsysdir=$withval
6812         fi
6813
6814
6815 fi;
6816
6817
6818
6819
6820
6821 # ------------------------------------
6822 # Where to start assigning ports
6823 # ------------------------------------
6824 baseport=9101
6825
6826 # Check whether --with-baseport or --without-baseport was given.
6827 if test "${with_baseport+set}" = set; then
6828   withval="$with_baseport"
6829
6830         if test "x$withval" != "xno" ; then
6831              baseport=$withval
6832         fi
6833
6834
6835 fi;
6836
6837
6838 dir_port=`expr $baseport`
6839 fd_port=`expr $baseport + 1`
6840 sd_port=`expr $fd_port + 1`
6841
6842
6843
6844
6845
6846
6847 # ------------------------------------------
6848 # Generate passwords
6849 # ------------------------------------------
6850 dir_password=
6851
6852 # Check whether --with-dir-password or --without-dir-password was given.
6853 if test "${with_dir_password+set}" = set; then
6854   withval="$with_dir_password"
6855
6856        if test "x$withval" != "xno" ; then
6857            dir_password=$withval
6858        fi
6859
6860
6861 fi;
6862
6863 if test "x$dir_password" = "x" ; then
6864    if test "x$OPENSSL" = "xnone" ; then
6865 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6866       key=`autoconf/randpass 33`
6867    else
6868       key=`openssl rand -base64 33`
6869    fi
6870    dir_password=$key
6871 fi
6872
6873 fd_password=
6874
6875 # Check whether --with-fd-password or --without-fd-password was given.
6876 if test "${with_fd_password+set}" = set; then
6877   withval="$with_fd_password"
6878
6879        if test "x$withval" != "xno" ; then
6880            fd_password=$withval
6881        fi
6882
6883
6884 fi;
6885
6886 if test "x$fd_password" = "x" ; then
6887    if test "x$OPENSSL" = "xnone" ; then
6888 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6889       key=`autoconf/randpass 37`
6890    else
6891       key=`openssl rand -base64 33`
6892    fi
6893    fd_password=$key
6894 fi
6895
6896 sd_password=
6897
6898 # Check whether --with-sd-password or --without-sd-password was given.
6899 if test "${with_sd_password+set}" = set; then
6900   withval="$with_sd_password"
6901
6902        if test "x$withval" != "xno" ; then
6903            sd_password=$withval
6904        fi
6905
6906
6907 fi;
6908
6909 if test "x$sd_password" = "x" ; then
6910    if test "x$OPENSSL" = "xnone" ; then
6911 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6912       key=`autoconf/randpass 41`
6913    else
6914       key=`openssl rand -base64 33`
6915    fi
6916    sd_password=$key
6917 fi
6918
6919
6920
6921
6922
6923
6924
6925 #
6926 # Handle users and groups for each daemon
6927 #
6928 dir_user=
6929
6930 # Check whether --with-dir_user or --without-dir_user was given.
6931 if test "${with_dir_user+set}" = set; then
6932   withval="$with_dir_user"
6933
6934         if test "x$withval" != "x" ; then
6935              dir_user=$withval
6936         fi
6937
6938
6939 fi;
6940
6941 dir_group=
6942
6943 # Check whether --with-dir_group or --without-dir_group was given.
6944 if test "${with_dir_group+set}" = set; then
6945   withval="$with_dir_group"
6946
6947         if test "x$withval" != "x" ; then
6948              dir_group=$withval
6949         fi
6950
6951
6952 fi;
6953
6954 sd_user=
6955
6956 # Check whether --with-sd_user or --without-sd_user was given.
6957 if test "${with_sd_user+set}" = set; then
6958   withval="$with_sd_user"
6959
6960         if test "x$withval" != "x" ; then
6961              sd_user=$withval
6962         fi
6963
6964
6965 fi;
6966
6967 sd_group=
6968
6969 # Check whether --with-sd_group or --without-sd_group was given.
6970 if test "${with_sd_group+set}" = set; then
6971   withval="$with_sd_group"
6972
6973         if test "x$withval" != "x" ; then
6974              sd_group=$withval
6975         fi
6976
6977
6978 fi;
6979
6980 fd_user=
6981
6982 # Check whether --with-fd_user or --without-fd_user was given.
6983 if test "${with_fd_user+set}" = set; then
6984   withval="$with_fd_user"
6985
6986         if test "x$withval" != "x" ; then
6987              fd_user=$withval
6988         fi
6989
6990
6991 fi;
6992
6993 fd_group=
6994
6995 # Check whether --with-fd_group or --without-fd_group was given.
6996 if test "${with_fd_group+set}" = set; then
6997   withval="$with_fd_group"
6998
6999         if test "x$withval" != "x" ; then
7000              fd_group=$withval
7001         fi
7002
7003
7004 fi;
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 # ------------------------------------------------
7017 # Bacula check for various SQL database engines
7018 # ------------------------------------------------
7019
7020 db_found=no
7021 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7022 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7023
7024 # Check whether --with-postgresql or --without-postgresql was given.
7025 if test "${with_postgresql+set}" = set; then
7026   withval="$with_postgresql"
7027
7028   if test "$withval" != "no"; then
7029       if test "$db_found" = "yes"; then
7030           echo "$as_me:$LINENO: result: error" >&5
7031 echo "${ECHO_T}error" >&6
7032           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7033 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7034    { (exit 1); exit 1; }; };
7035       fi
7036       if test "$withval" = "yes"; then
7037           if test -f /usr/local/include/libpq-fe.h; then
7038               POSTGRESQL_INCDIR=/usr/local/include
7039               POSTGRESQL_LIBDIR=/usr/local/lib
7040               POSTGRESQL_BINDIR=/usr/local/bin
7041           elif test -f /usr/include/libpq-fe.h; then
7042               POSTGRESQL_INCDIR=/usr/include
7043               POSTGRESQL_LIBDIR=/usr/lib
7044               POSTGRESQL_BINDIR=/usr/bin
7045           elif test -f /usr/include/pgsql/libpq-fe.h; then
7046               POSTGRESQL_INCDIR=/usr/include/pgsql
7047               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7048               POSTGRESQL_BINDIR=/usr/bin
7049           else
7050               echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6
7052               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7053 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7054    { (exit 1); exit 1; }; }
7055           fi
7056       elif test -f $withval/libpq-fe.h; then
7057           POSTGRESQL_INCDIR=$withval
7058           POSTGRESQL_LIBDIR=$withval
7059           POSTGRESQL_BINDIR=$withval
7060       else
7061           echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6
7063           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7064 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7065    { (exit 1); exit 1; }; }
7066       fi
7067       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7068       echo "$as_me:$LINENO: checking for crypt" >&5
7069 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7070 if test "${ac_cv_func_crypt+set}" = set; then
7071   echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073   cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 /* System header to define __stub macros and hopefully few prototypes,
7081     which can conflict with char crypt (); below.
7082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7083     <limits.h> exists even on freestanding compilers.  */
7084 #ifdef __STDC__
7085 # include <limits.h>
7086 #else
7087 # include <assert.h>
7088 #endif
7089 /* Override any gcc2 internal prototype to avoid an error.  */
7090 #ifdef __cplusplus
7091 extern "C"
7092 {
7093 #endif
7094 /* We use char because int might match the return type of a gcc2
7095    builtin and then its argument prototype would still apply.  */
7096 char crypt ();
7097 /* The GNU C library defines this for functions which it implements
7098     to always fail with ENOSYS.  Some functions are actually named
7099     something starting with __ and the normal name is an alias.  */
7100 #if defined (__stub_crypt) || defined (__stub___crypt)
7101 choke me
7102 #else
7103 char (*f) () = crypt;
7104 #endif
7105 #ifdef __cplusplus
7106 }
7107 #endif
7108
7109 int
7110 main ()
7111 {
7112 return f != crypt;
7113   ;
7114   return 0;
7115 }
7116 _ACEOF
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119   (eval $ac_link) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } &&
7123          { ac_try='test -s conftest$ac_exeext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   ac_cv_func_crypt=yes
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ac_cv_func_crypt=no
7135 fi
7136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7137 fi
7138 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7139 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7140 if test $ac_cv_func_crypt = yes; then
7141   :
7142 else
7143   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7144 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7145 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lcrypt  $LIBS"
7150 cat >conftest.$ac_ext <<_ACEOF
7151 #line $LINENO "configure"
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157
7158 /* Override any gcc2 internal prototype to avoid an error.  */
7159 #ifdef __cplusplus
7160 extern "C"
7161 #endif
7162 /* We use char because int might match the return type of a gcc2
7163    builtin and then its argument prototype would still apply.  */
7164 char crypt ();
7165 int
7166 main ()
7167 {
7168 crypt ();
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175   (eval $ac_link) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } &&
7179          { ac_try='test -s conftest$ac_exeext'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; }; then
7185   ac_cv_lib_crypt_crypt=yes
7186 else
7187   echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ac_cv_lib_crypt_crypt=no
7191 fi
7192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7193 LIBS=$ac_check_lib_save_LIBS
7194 fi
7195 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7196 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7197 if test $ac_cv_lib_crypt_crypt = yes; then
7198   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7199 fi
7200
7201 fi
7202
7203       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7204       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7205       SQL_BINDIR=$POSTGRESQL_BINDIR
7206       cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_POSTGRESQL 1
7208 _ACEOF
7209
7210       echo "$as_me:$LINENO: result: yes" >&5
7211 echo "${ECHO_T}yes" >&6
7212       db_found=yes
7213       support_postgresql=yes
7214       db_name=PostgreSQL
7215       DB_NAME=postgresql
7216   else
7217       echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219   fi
7220
7221 else
7222
7223   echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6
7225
7226 fi;
7227
7228
7229
7230
7231
7232
7233
7234 db_found=no
7235 echo "$as_me:$LINENO: checking for MySQL support" >&5
7236 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7237
7238 # Check whether --with-mysql or --without-mysql was given.
7239 if test "${with_mysql+set}" = set; then
7240   withval="$with_mysql"
7241
7242   if test "$withval" != "no"; then
7243         if test "$withval" = "yes"; then
7244                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7245                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7246                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7247                         MYSQL_BINDIR=/usr/local/mysql/bin
7248                 elif test -f /usr/include/mysql/mysql.h; then
7249                         MYSQL_INCDIR=/usr/include/mysql
7250                         MYSQL_LIBDIR=/usr/lib/mysql
7251                         MYSQL_BINDIR=/usr/bin
7252                 elif test -f /usr/include/mysql.h; then
7253                         MYSQL_INCDIR=/usr/include
7254                         MYSQL_LIBDIR=/usr/lib
7255                         MYSQL_BINDIR=/usr/bin
7256                 elif test -f /usr/local/include/mysql/mysql.h; then
7257                         MYSQL_INCDIR=/usr/local/include/mysql
7258                         MYSQL_LIBDIR=/usr/local/lib/mysql
7259                         MYSQL_BINDIR=/usr/local/bin
7260                 elif test -f /usr/local/include/mysql.h; then
7261                         MYSQL_INCDIR=/usr/local/include
7262                         MYSQL_LIBDIR=/usr/local/lib
7263                         MYSQL_BINDIR=/usr/local/bin
7264                 else
7265                    echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6
7267                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7268 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7269    { (exit 1); exit 1; }; }
7270                 fi
7271         else
7272                 if test -f $withval/include/mysql/mysql.h; then
7273                         MYSQL_INCDIR=$withval/include/mysql
7274                         MYSQL_LIBDIR=$withval/lib/mysql
7275                         MYSQL_BINDIR=$withval/bin
7276                 elif test -f $withval/include/mysql.h; then
7277                         MYSQL_INCDIR=$withval/include
7278                         MYSQL_LIBDIR=$withval/lib
7279                         MYSQL_BINDIR=$withval/bin
7280                 else
7281                    echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7284 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7285    { (exit 1); exit 1; }; }
7286                 fi
7287         fi
7288     SQL_INCLUDE=-I$MYSQL_INCDIR
7289     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7290        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7291        cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_THREAD_SAFE_MYSQL 1
7293 _ACEOF
7294
7295     else
7296        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7297     fi
7298     SQL_BINDIR=$MYSQL_BINDIR
7299
7300     cat >>confdefs.h <<\_ACEOF
7301 #define HAVE_MYSQL 1
7302 _ACEOF
7303
7304     echo "$as_me:$LINENO: result: yes" >&5
7305 echo "${ECHO_T}yes" >&6
7306     db_found=yes
7307     support_mysql=yes
7308     db_name=MySQL
7309     DB_NAME=mysql
7310
7311   else
7312         echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6
7314   fi
7315
7316 else
7317
7318     echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6
7320
7321 fi;
7322
7323
7324 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7325 if test "${with_embedded_mysql+set}" = set; then
7326   withval="$with_embedded_mysql"
7327
7328   if test "$withval" != "no"; then
7329         if test "$withval" = "yes"; then
7330                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7331                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7332                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7333                         MYSQL_BINDIR=/usr/local/mysql/bin
7334                 elif test -f /usr/include/mysql/mysql.h; then
7335                         MYSQL_INCDIR=/usr/include/mysql
7336                         MYSQL_LIBDIR=/usr/lib/mysql
7337                         MYSQL_BINDIR=/usr/bin
7338                 elif test -f /usr/include/mysql.h; then
7339                         MYSQL_INCDIR=/usr/include
7340                         MYSQL_LIBDIR=/usr/lib
7341                         MYSQL_BINDIR=/usr/bin
7342                 elif test -f /usr/local/include/mysql/mysql.h; then
7343                         MYSQL_INCDIR=/usr/local/include/mysql
7344                         MYSQL_LIBDIR=/usr/local/lib/mysql
7345                         MYSQL_BINDIR=/usr/local/bin
7346                 elif test -f /usr/local/include/mysql.h; then
7347                         MYSQL_INCDIR=/usr/local/include
7348                         MYSQL_LIBDIR=/usr/local/lib
7349                         MYSQL_BINDIR=/usr/local/bin
7350                 else
7351                    echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6
7353                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7354 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7355    { (exit 1); exit 1; }; }
7356                 fi
7357         else
7358                 if test -f $withval/include/mysql/mysql.h; then
7359                         MYSQL_INCDIR=$withval/include/mysql
7360                         MYSQL_LIBDIR=$withval/lib/mysql
7361                         MYSQL_BINDIR=$withval/bin
7362                 elif test -f $withval/include/mysql.h; then
7363                         MYSQL_INCDIR=$withval/include
7364                         MYSQL_LIBDIR=$withval/lib
7365                         MYSQL_BINDIR=$withval/bin
7366                 else
7367                    echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6
7369                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7370 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7371    { (exit 1); exit 1; }; }
7372                 fi
7373         fi
7374     SQL_INCLUDE=-I$MYSQL_INCDIR
7375     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7376     SQL_BINDIR=$MYSQL_BINDIR
7377
7378     cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_MYSQL 1
7380 _ACEOF
7381
7382     cat >>confdefs.h <<\_ACEOF
7383 #define HAVE_EMBEDDED_MYSQL 1
7384 _ACEOF
7385
7386     echo "$as_me:$LINENO: result: yes" >&5
7387 echo "${ECHO_T}yes" >&6
7388     db_found=yes
7389     support_mysql=yes
7390     db_name=MySQL
7391     DB_NAME=mysql
7392
7393   else
7394         echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7396   fi
7397
7398 else
7399
7400   echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7402
7403 fi;
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 db_found=no
7414 echo "$as_me:$LINENO: checking for SQLite support" >&5
7415 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7416
7417 # Check whether --with-sqlite or --without-sqlite was given.
7418 if test "${with_sqlite+set}" = set; then
7419   withval="$with_sqlite"
7420
7421   if test "$withval" != "no"; then
7422         if test "$withval" = "yes"; then
7423                 if test -f /usr/local/include/sqlite.h; then
7424                         SQLITE_INCDIR=/usr/local/include
7425                         SQLITE_LIBDIR=/usr/local/lib
7426                         SQLITE_BINDIR=/usr/local/bin
7427                 elif test -f /usr/include/sqlite.h; then
7428                         SQLITE_INCDIR=/usr/include
7429                         SQLITE_LIBDIR=/usr/lib
7430                         SQLITE_BINDIR=/usr/bin
7431                 else
7432                    echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6
7434                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7435 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7436    { (exit 1); exit 1; }; }
7437                 fi
7438         else
7439                 if test -f $withval/sqlite.h; then
7440                         SQLITE_INCDIR=$withval
7441                         SQLITE_LIBDIR=$withval
7442                         SQLITE_BINDIR=$withval
7443                 else
7444                    echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7446                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7447 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7448    { (exit 1); exit 1; }; }
7449                 fi
7450         fi
7451     SQL_INCLUDE=-I$SQLITE_INCDIR
7452     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7453     SQL_BINDIR=$SQLITE_BINDIR
7454
7455     cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_SQLITE 1
7457 _ACEOF
7458
7459     echo "$as_me:$LINENO: result: yes" >&5
7460 echo "${ECHO_T}yes" >&6
7461     db_found=yes
7462     support_sqlite=yes
7463     db_name=SQLite
7464     DB_NAME=sqlite
7465
7466   else
7467         echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7469   fi
7470
7471 else
7472
7473   echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7475
7476 fi;
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 cat >>confdefs.h <<\_ACEOF
7487 #define PROTOTYPES 1
7488 _ACEOF
7489
7490
7491 if test -z "$CFLAGS"; then
7492     if test -z "$CCOPTS"; then
7493         CCOPTS='-g -O2'
7494     fi
7495     CFLAGS="$CCOPTS"
7496 fi
7497
7498
7499
7500
7501 largefile_support="no"
7502
7503    # Check whether --enable-largefile or --disable-largefile was given.
7504 if test "${enable_largefile+set}" = set; then
7505   enableval="$enable_largefile"
7506
7507 fi;
7508    if test "$enable_largefile" != no; then
7509      if test -n "$ac_tool_prefix"; then
7510   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7511 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7512 echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7514 if test "${ac_cv_prog_GETCONF+set}" = set; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   if test -n "$GETCONF"; then
7518   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525   for ac_exec_ext in '' $ac_executable_extensions; do
7526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532 done
7533
7534 fi
7535 fi
7536 GETCONF=$ac_cv_prog_GETCONF
7537 if test -n "$GETCONF"; then
7538   echo "$as_me:$LINENO: result: $GETCONF" >&5
7539 echo "${ECHO_T}$GETCONF" >&6
7540 else
7541   echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7543 fi
7544
7545 fi
7546 if test -z "$ac_cv_prog_GETCONF"; then
7547   ac_ct_GETCONF=$GETCONF
7548   # Extract the first word of "getconf", so it can be a program name with args.
7549 set dummy getconf; ac_word=$2
7550 echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7552 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   if test -n "$ac_ct_GETCONF"; then
7556   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565     ac_cv_prog_ac_ct_GETCONF="getconf"
7566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570 done
7571
7572 fi
7573 fi
7574 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7575 if test -n "$ac_ct_GETCONF"; then
7576   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7577 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7578 else
7579   echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7581 fi
7582
7583   GETCONF=$ac_ct_GETCONF
7584 else
7585   GETCONF="$ac_cv_prog_GETCONF"
7586 fi
7587
7588      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7589 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7590 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7594         ac_cv_sys_largefile_CFLAGS=no
7595         case "$host_os" in
7596            # IRIX 6.2 and later require cc -n32.
7597            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7598              if test "$GCC" != yes; then
7599                ac_cv_sys_largefile_CFLAGS=-n32
7600              fi
7601              ac_save_CC="$CC"
7602              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7603              cat >conftest.$ac_ext <<_ACEOF
7604 #line $LINENO "configure"
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610
7611 int
7612 main ()
7613 {
7614
7615   ;
7616   return 0;
7617 }
7618 _ACEOF
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621   (eval $ac_link) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } &&
7625          { ac_try='test -s conftest$ac_exeext'
7626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627   (eval $ac_try) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }; }; then
7631   :
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 ac_cv_sys_largefile_CFLAGS=no
7637 fi
7638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7639              CC="$ac_save_CC"
7640            esac
7641       }
7642 fi
7643 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7644 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7645      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7646 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7647 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7651         ac_cv_sys_largefile_LDFLAGS=no
7652
7653       }
7654 fi
7655 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7656 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7657      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7658 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7659 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7663         ac_cv_sys_largefile_LIBS=no
7664
7665       }
7666 fi
7667 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7668 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7669
7670      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7671        case "$ac_flag" in
7672        no) ;;
7673        -D_FILE_OFFSET_BITS=*) ;;
7674        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7675        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7676        -D?* | -I?*)
7677          case "$ac_flag" in
7678    no) ;;
7679    ?*)
7680      case "$CPPFLAGS" in
7681      '') CPPFLAGS="$ac_flag" ;;
7682      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7683      esac ;;
7684    esac ;;
7685        *)
7686          case "$ac_flag" in
7687    no) ;;
7688    ?*)
7689      case "$CFLAGS" in
7690      '') CFLAGS="$ac_flag" ;;
7691      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7692      esac ;;
7693    esac ;;
7694        esac
7695      done
7696      case "$ac_cv_sys_largefile_LDFLAGS" in
7697    no) ;;
7698    ?*)
7699      case "$LDFLAGS" in
7700      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7701      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7702      esac ;;
7703    esac
7704      case "$ac_cv_sys_largefile_LIBS" in
7705    no) ;;
7706    ?*)
7707      case "$LIBS" in
7708      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7709      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7710      esac ;;
7711    esac
7712      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7713 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7714 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   ac_cv_sys_file_offset_bits=no
7718       case "$host_os" in
7719         # HP-UX 10.20 and later
7720         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7721           ac_cv_sys_file_offset_bits=64 ;;
7722         esac
7723       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7724         case "$ac_flag" in
7725         -D_FILE_OFFSET_BITS)
7726           ac_cv_sys_file_offset_bits=1 ;;
7727         -D_FILE_OFFSET_BITS=*)
7728           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7729         esac
7730       done
7731
7732 fi
7733 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7734 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7735    if test "$ac_cv_sys_file_offset_bits" != no; then
7736
7737 cat >>confdefs.h <<_ACEOF
7738 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7739 _ACEOF
7740
7741    fi
7742      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7743 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7744 if test "${ac_cv_sys_largefile_source+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   ac_cv_sys_largefile_source=no
7748       case "$host_os" in
7749         # HP-UX 10.20 and later
7750         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7751           ac_cv_sys_largefile_source=1 ;;
7752         esac
7753       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7754         case "$ac_flag" in
7755         -D_LARGEFILE_SOURCE)
7756           ac_cv_sys_largefile_source=1 ;;
7757         -D_LARGEFILE_SOURCE=*)
7758           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7759         esac
7760       done
7761
7762 fi
7763 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7764 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7765    if test "$ac_cv_sys_largefile_source" != no; then
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7769 _ACEOF
7770
7771    fi
7772      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7773 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7774 if test "${ac_cv_sys_large_files+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_cv_sys_large_files=no
7778       case "$host_os" in
7779         # AIX 4.2 and later
7780         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7781           ac_cv_sys_large_files=1 ;;
7782         esac
7783       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7784         case "$ac_flag" in
7785         -D_LARGE_FILES)
7786           ac_cv_sys_large_files=1 ;;
7787         -D_LARGE_FILES=*)
7788           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7789         esac
7790       done
7791
7792 fi
7793 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7794 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7795    if test "$ac_cv_sys_large_files" != no; then
7796
7797 cat >>confdefs.h <<_ACEOF
7798 #define _LARGE_FILES $ac_cv_sys_large_files
7799 _ACEOF
7800
7801    fi
7802    fi
7803
7804
7805
7806 echo "$as_me:$LINENO: checking for X" >&5
7807 echo $ECHO_N "checking for X... $ECHO_C" >&6
7808
7809
7810 # Check whether --with-x or --without-x was given.
7811 if test "${with_x+set}" = set; then
7812   withval="$with_x"
7813
7814 fi;
7815 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7816 if test "x$with_x" = xno; then
7817   # The user explicitly disabled X.
7818   have_x=disabled
7819 else
7820   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7821     # Both variables are already set.
7822     have_x=yes
7823   else
7824     if test "${ac_cv_have_x+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   # One or both of the vars are not set, and there is no cached value.
7828 ac_x_includes=no ac_x_libraries=no
7829 rm -fr conftest.dir
7830 if mkdir conftest.dir; then
7831   cd conftest.dir
7832   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7833   cat >Imakefile <<'_ACEOF'
7834 acfindx:
7835         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7836 _ACEOF
7837   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7838     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7839     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7840     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7841     for ac_extension in a so sl; do
7842       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7843          test -f $ac_im_libdir/libX11.$ac_extension; then
7844         ac_im_usrlibdir=$ac_im_libdir; break
7845       fi
7846     done
7847     # Screen out bogus values from the imake configuration.  They are
7848     # bogus both because they are the default anyway, and because
7849     # using them would break gcc on systems where it needs fixed includes.
7850     case $ac_im_incroot in
7851         /usr/include) ;;
7852         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7853     esac
7854     case $ac_im_usrlibdir in
7855         /usr/lib | /lib) ;;
7856         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7857     esac
7858   fi
7859   cd ..
7860   rm -fr conftest.dir
7861 fi
7862
7863 # Standard set of common directories for X headers.
7864 # Check X11 before X11Rn because it is often a symlink to the current release.
7865 ac_x_header_dirs='
7866 /usr/X11/include
7867 /usr/X11R6/include
7868 /usr/X11R5/include
7869 /usr/X11R4/include
7870
7871 /usr/include/X11
7872 /usr/include/X11R6
7873 /usr/include/X11R5
7874 /usr/include/X11R4
7875
7876 /usr/local/X11/include
7877 /usr/local/X11R6/include
7878 /usr/local/X11R5/include
7879 /usr/local/X11R4/include
7880
7881 /usr/local/include/X11
7882 /usr/local/include/X11R6
7883 /usr/local/include/X11R5
7884 /usr/local/include/X11R4
7885
7886 /usr/X386/include
7887 /usr/x386/include
7888 /usr/XFree86/include/X11
7889
7890 /usr/include
7891 /usr/local/include
7892 /usr/unsupported/include
7893 /usr/athena/include
7894 /usr/local/x11r5/include
7895 /usr/lpp/Xamples/include
7896
7897 /usr/openwin/include
7898 /usr/openwin/share/include'
7899
7900 if test "$ac_x_includes" = no; then
7901   # Guess where to find include files, by looking for Intrinsic.h.
7902   # First, try using that file with no special directory specified.
7903   cat >conftest.$ac_ext <<_ACEOF
7904 #line $LINENO "configure"
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910 #include <X11/Intrinsic.h>
7911 _ACEOF
7912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7914   ac_status=$?
7915   grep -v '^ *+' conftest.er1 >conftest.err
7916   rm -f conftest.er1
7917   cat conftest.err >&5
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } >/dev/null; then
7920   if test -s conftest.err; then
7921     ac_cpp_err=$ac_c_preproc_warn_flag
7922   else
7923     ac_cpp_err=
7924   fi
7925 else
7926   ac_cpp_err=yes
7927 fi
7928 if test -z "$ac_cpp_err"; then
7929   # We can compile using X headers with no special include directory.
7930 ac_x_includes=
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935   for ac_dir in $ac_x_header_dirs; do
7936   if test -r "$ac_dir/X11/Intrinsic.h"; then
7937     ac_x_includes=$ac_dir
7938     break
7939   fi
7940 done
7941 fi
7942 rm -f conftest.err conftest.$ac_ext
7943 fi # $ac_x_includes = no
7944
7945 if test "$ac_x_libraries" = no; then
7946   # Check for the libraries.
7947   # See if we find them without any special options.
7948   # Don't add to $LIBS permanently.
7949   ac_save_LIBS=$LIBS
7950   LIBS="-lXt $LIBS"
7951   cat >conftest.$ac_ext <<_ACEOF
7952 #line $LINENO "configure"
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958 #include <X11/Intrinsic.h>
7959 int
7960 main ()
7961 {
7962 XtMalloc (0)
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969   (eval $ac_link) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } &&
7973          { ac_try='test -s conftest$ac_exeext'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; }; then
7979   LIBS=$ac_save_LIBS
7980 # We can link X programs with no special library path.
7981 ac_x_libraries=
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 LIBS=$ac_save_LIBS
7987 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7988 do
7989   # Don't even attempt the hair of trying to link an X program!
7990   for ac_extension in a so sl; do
7991     if test -r $ac_dir/libXt.$ac_extension; then
7992       ac_x_libraries=$ac_dir
7993       break 2
7994     fi
7995   done
7996 done
7997 fi
7998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7999 fi # $ac_x_libraries = no
8000
8001 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8002   # Didn't find X anywhere.  Cache the known absence of X.
8003   ac_cv_have_x="have_x=no"
8004 else
8005   # Record where we found X for the cache.
8006   ac_cv_have_x="have_x=yes \
8007                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8008 fi
8009 fi
8010
8011   fi
8012   eval "$ac_cv_have_x"
8013 fi # $with_x != no
8014
8015 if test "$have_x" != yes; then
8016   echo "$as_me:$LINENO: result: $have_x" >&5
8017 echo "${ECHO_T}$have_x" >&6
8018   no_x=yes
8019 else
8020   # If each of the values was on the command line, it overrides each guess.
8021   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8022   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8023   # Update the cache value to reflect the command line values.
8024   ac_cv_have_x="have_x=yes \
8025                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8026   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8027 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8028 fi
8029
8030 if test "$no_x" = yes; then
8031   # Not all programs may use this symbol, but it does not hurt to define it.
8032
8033 cat >>confdefs.h <<\_ACEOF
8034 #define X_DISPLAY_MISSING 1
8035 _ACEOF
8036
8037   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8038 else
8039   if test -n "$x_includes"; then
8040     X_CFLAGS="$X_CFLAGS -I$x_includes"
8041   fi
8042
8043   # It would also be nice to do this for all -L options, not just this one.
8044   if test -n "$x_libraries"; then
8045     X_LIBS="$X_LIBS -L$x_libraries"
8046     # For Solaris; some versions of Sun CC require a space after -R and
8047     # others require no space.  Words are not sufficient . . . .
8048     case `(uname -sr) 2>/dev/null` in
8049     "SunOS 5"*)
8050       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8051 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8052       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8053       cat >conftest.$ac_ext <<_ACEOF
8054 #line $LINENO "configure"
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071   (eval $ac_link) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -s conftest$ac_exeext'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   ac_R_nospace=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_R_nospace=no
8087 fi
8088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8089       if test $ac_R_nospace = yes; then
8090         echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8092         X_LIBS="$X_LIBS -R$x_libraries"
8093       else
8094         LIBS="$ac_xsave_LIBS -R $x_libraries"
8095         cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102
8103 int
8104 main ()
8105 {
8106
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113   (eval $ac_link) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } &&
8117          { ac_try='test -s conftest$ac_exeext'
8118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119   (eval $ac_try) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; }; then
8123   ac_R_space=yes
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ac_R_space=no
8129 fi
8130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8131         if test $ac_R_space = yes; then
8132           echo "$as_me:$LINENO: result: yes" >&5
8133 echo "${ECHO_T}yes" >&6
8134           X_LIBS="$X_LIBS -R $x_libraries"
8135         else
8136           echo "$as_me:$LINENO: result: neither works" >&5
8137 echo "${ECHO_T}neither works" >&6
8138         fi
8139       fi
8140       LIBS=$ac_xsave_LIBS
8141     esac
8142   fi
8143
8144   # Check for system-dependent libraries X programs must link with.
8145   # Do this before checking for the system-independent R6 libraries
8146   # (-lICE), since we may need -lsocket or whatever for X linking.
8147
8148   if test "$ISC" = yes; then
8149     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8150   else
8151     # Martyn Johnson says this is needed for Ultrix, if the X
8152     # libraries were built with DECnet support.  And Karl Berry says
8153     # the Alpha needs dnet_stub (dnet does not exist).
8154     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8155     cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162
8163 /* Override any gcc2 internal prototype to avoid an error.  */
8164 #ifdef __cplusplus
8165 extern "C"
8166 #endif
8167 /* We use char because int might match the return type of a gcc2
8168    builtin and then its argument prototype would still apply.  */
8169 char XOpenDisplay ();
8170 int
8171 main ()
8172 {
8173 XOpenDisplay ();
8174   ;
8175   return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180   (eval $ac_link) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } &&
8184          { ac_try='test -s conftest$ac_exeext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   :
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8196 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8197 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8198   echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200   ac_check_lib_save_LIBS=$LIBS
8201 LIBS="-ldnet  $LIBS"
8202 cat >conftest.$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8204 /* confdefs.h.  */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h.  */
8209
8210 /* Override any gcc2 internal prototype to avoid an error.  */
8211 #ifdef __cplusplus
8212 extern "C"
8213 #endif
8214 /* We use char because int might match the return type of a gcc2
8215    builtin and then its argument prototype would still apply.  */
8216 char dnet_ntoa ();
8217 int
8218 main ()
8219 {
8220 dnet_ntoa ();
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227   (eval $ac_link) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); } &&
8231          { ac_try='test -s conftest$ac_exeext'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; }; then
8237   ac_cv_lib_dnet_dnet_ntoa=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_lib_dnet_dnet_ntoa=no
8243 fi
8244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8246 fi
8247 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8249 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8250   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8251 fi
8252
8253     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8254       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8255 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8256 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-ldnet_stub  $LIBS"
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268
8269 /* Override any gcc2 internal prototype to avoid an error.  */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 /* We use char because int might match the return type of a gcc2
8274    builtin and then its argument prototype would still apply.  */
8275 char dnet_ntoa ();
8276 int
8277 main ()
8278 {
8279 dnet_ntoa ();
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286   (eval $ac_link) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); } &&
8290          { ac_try='test -s conftest$ac_exeext'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; }; then
8296   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_cv_lib_dnet_stub_dnet_ntoa=no
8302 fi
8303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8304 LIBS=$ac_check_lib_save_LIBS
8305 fi
8306 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8307 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8308 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8309   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8310 fi
8311
8312     fi
8313 fi
8314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8315     LIBS="$ac_xsave_LIBS"
8316
8317     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8318     # to get the SysV transport functions.
8319     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8320     # needs -lnsl.
8321     # The nsl library prevents programs from opening the X display
8322     # on Irix 5.2, according to T.E. Dickey.
8323     # The functions gethostbyname, getservbyname, and inet_addr are
8324     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8325     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8326 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8327 if test "${ac_cv_func_gethostbyname+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   cat >conftest.$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8332 /* confdefs.h.  */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h.  */
8337 /* System header to define __stub macros and hopefully few prototypes,
8338     which can conflict with char gethostbyname (); below.
8339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8340     <limits.h> exists even on freestanding compilers.  */
8341 #ifdef __STDC__
8342 # include <limits.h>
8343 #else
8344 # include <assert.h>
8345 #endif
8346 /* Override any gcc2 internal prototype to avoid an error.  */
8347 #ifdef __cplusplus
8348 extern "C"
8349 {
8350 #endif
8351 /* We use char because int might match the return type of a gcc2
8352    builtin and then its argument prototype would still apply.  */
8353 char gethostbyname ();
8354 /* The GNU C library defines this for functions which it implements
8355     to always fail with ENOSYS.  Some functions are actually named
8356     something starting with __ and the normal name is an alias.  */
8357 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8358 choke me
8359 #else
8360 char (*f) () = gethostbyname;
8361 #endif
8362 #ifdef __cplusplus
8363 }
8364 #endif
8365
8366 int
8367 main ()
8368 {
8369 return f != gethostbyname;
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376   (eval $ac_link) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } &&
8380          { ac_try='test -s conftest$ac_exeext'
8381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382   (eval $ac_try) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; }; then
8386   ac_cv_func_gethostbyname=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 ac_cv_func_gethostbyname=no
8392 fi
8393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8394 fi
8395 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8396 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8397
8398     if test $ac_cv_func_gethostbyname = no; then
8399       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8400 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8401 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   ac_check_lib_save_LIBS=$LIBS
8405 LIBS="-lnsl  $LIBS"
8406 cat >conftest.$ac_ext <<_ACEOF
8407 #line $LINENO "configure"
8408 /* confdefs.h.  */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h.  */
8413
8414 /* Override any gcc2 internal prototype to avoid an error.  */
8415 #ifdef __cplusplus
8416 extern "C"
8417 #endif
8418 /* We use char because int might match the return type of a gcc2
8419    builtin and then its argument prototype would still apply.  */
8420 char gethostbyname ();
8421 int
8422 main ()
8423 {
8424 gethostbyname ();
8425   ;
8426   return 0;
8427 }
8428 _ACEOF
8429 rm -f conftest.$ac_objext conftest$ac_exeext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8431   (eval $ac_link) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -s conftest$ac_exeext'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   ac_cv_lib_nsl_gethostbyname=yes
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 ac_cv_lib_nsl_gethostbyname=no
8447 fi
8448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8449 LIBS=$ac_check_lib_save_LIBS
8450 fi
8451 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8452 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8453 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8454   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8455 fi
8456
8457       if test $ac_cv_lib_nsl_gethostbyname = no; then
8458         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8459 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8460 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-lbsd  $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472
8473 /* Override any gcc2 internal prototype to avoid an error.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 /* We use char because int might match the return type of a gcc2
8478    builtin and then its argument prototype would still apply.  */
8479 char gethostbyname ();
8480 int
8481 main ()
8482 {
8483 gethostbyname ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490   (eval $ac_link) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -s conftest$ac_exeext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   ac_cv_lib_bsd_gethostbyname=yes
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_lib_bsd_gethostbyname=no
8506 fi
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8512 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8513   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8514 fi
8515
8516       fi
8517     fi
8518
8519     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8520     # socket/setsockopt and other routines are undefined under SCO ODT
8521     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8522     # on later versions), says Simon Leinen: it contains gethostby*
8523     # variants that don't use the name server (or something).  -lsocket
8524     # must be given before -lnsl if both are needed.  We assume that
8525     # if connect needs -lnsl, so does gethostbyname.
8526     echo "$as_me:$LINENO: checking for connect" >&5
8527 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8528 if test "${ac_cv_func_connect+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 /* confdefs.h.  */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h.  */
8538 /* System header to define __stub macros and hopefully few prototypes,
8539     which can conflict with char connect (); below.
8540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8541     <limits.h> exists even on freestanding compilers.  */
8542 #ifdef __STDC__
8543 # include <limits.h>
8544 #else
8545 # include <assert.h>
8546 #endif
8547 /* Override any gcc2 internal prototype to avoid an error.  */
8548 #ifdef __cplusplus
8549 extern "C"
8550 {
8551 #endif
8552 /* We use char because int might match the return type of a gcc2
8553    builtin and then its argument prototype would still apply.  */
8554 char connect ();
8555 /* The GNU C library defines this for functions which it implements
8556     to always fail with ENOSYS.  Some functions are actually named
8557     something starting with __ and the normal name is an alias.  */
8558 #if defined (__stub_connect) || defined (__stub___connect)
8559 choke me
8560 #else
8561 char (*f) () = connect;
8562 #endif
8563 #ifdef __cplusplus
8564 }
8565 #endif
8566
8567 int
8568 main ()
8569 {
8570 return f != connect;
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577   (eval $ac_link) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -s conftest$ac_exeext'
8582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583   (eval $ac_try) 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); }; }; then
8587   ac_cv_func_connect=yes
8588 else
8589   echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 ac_cv_func_connect=no
8593 fi
8594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8595 fi
8596 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8597 echo "${ECHO_T}$ac_cv_func_connect" >&6
8598
8599     if test $ac_cv_func_connect = no; then
8600       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8601 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8602 if test "${ac_cv_lib_socket_connect+set}" = set; then
8603   echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605   ac_check_lib_save_LIBS=$LIBS
8606 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8607 cat >conftest.$ac_ext <<_ACEOF
8608 #line $LINENO "configure"
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614
8615 /* Override any gcc2 internal prototype to avoid an error.  */
8616 #ifdef __cplusplus
8617 extern "C"
8618 #endif
8619 /* We use char because int might match the return type of a gcc2
8620    builtin and then its argument prototype would still apply.  */
8621 char connect ();
8622 int
8623 main ()
8624 {
8625 connect ();
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632   (eval $ac_link) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } &&
8636          { ac_try='test -s conftest$ac_exeext'
8637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638   (eval $ac_try) 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   ac_cv_lib_socket_connect=yes
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 ac_cv_lib_socket_connect=no
8648 fi
8649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8651 fi
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8653 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8654 if test $ac_cv_lib_socket_connect = yes; then
8655   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8656 fi
8657
8658     fi
8659
8660     # Guillermo Gomez says -lposix is necessary on A/UX.
8661     echo "$as_me:$LINENO: checking for remove" >&5
8662 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8663 if test "${ac_cv_func_remove+set}" = set; then
8664   echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666   cat >conftest.$ac_ext <<_ACEOF
8667 #line $LINENO "configure"
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673 /* System header to define __stub macros and hopefully few prototypes,
8674     which can conflict with char remove (); below.
8675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8676     <limits.h> exists even on freestanding compilers.  */
8677 #ifdef __STDC__
8678 # include <limits.h>
8679 #else
8680 # include <assert.h>
8681 #endif
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 {
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688    builtin and then its argument prototype would still apply.  */
8689 char remove ();
8690 /* The GNU C library defines this for functions which it implements
8691     to always fail with ENOSYS.  Some functions are actually named
8692     something starting with __ and the normal name is an alias.  */
8693 #if defined (__stub_remove) || defined (__stub___remove)
8694 choke me
8695 #else
8696 char (*f) () = remove;
8697 #endif
8698 #ifdef __cplusplus
8699 }
8700 #endif
8701
8702 int
8703 main ()
8704 {
8705 return f != remove;
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712   (eval $ac_link) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -s conftest$ac_exeext'
8717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718   (eval $ac_try) 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; }; then
8722   ac_cv_func_remove=yes
8723 else
8724   echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_cv_func_remove=no
8728 fi
8729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8732 echo "${ECHO_T}$ac_cv_func_remove" >&6
8733
8734     if test $ac_cv_func_remove = no; then
8735       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8736 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8737 if test "${ac_cv_lib_posix_remove+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740   ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lposix  $LIBS"
8742 cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750 /* Override any gcc2 internal prototype to avoid an error.  */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 /* We use char because int might match the return type of a gcc2
8755    builtin and then its argument prototype would still apply.  */
8756 char remove ();
8757 int
8758 main ()
8759 {
8760 remove ();
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767   (eval $ac_link) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -s conftest$ac_exeext'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   ac_cv_lib_posix_remove=yes
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 ac_cv_lib_posix_remove=no
8783 fi
8784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_lib_save_LIBS
8786 fi
8787 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8788 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8789 if test $ac_cv_lib_posix_remove = yes; then
8790   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8791 fi
8792
8793     fi
8794
8795     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8796     echo "$as_me:$LINENO: checking for shmat" >&5
8797 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8798 if test "${ac_cv_func_shmat+set}" = set; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   cat >conftest.$ac_ext <<_ACEOF
8802 #line $LINENO "configure"
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 /* System header to define __stub macros and hopefully few prototypes,
8809     which can conflict with char shmat (); below.
8810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8811     <limits.h> exists even on freestanding compilers.  */
8812 #ifdef __STDC__
8813 # include <limits.h>
8814 #else
8815 # include <assert.h>
8816 #endif
8817 /* Override any gcc2 internal prototype to avoid an error.  */
8818 #ifdef __cplusplus
8819 extern "C"
8820 {
8821 #endif
8822 /* We use char because int might match the return type of a gcc2
8823    builtin and then its argument prototype would still apply.  */
8824 char shmat ();
8825 /* The GNU C library defines this for functions which it implements
8826     to always fail with ENOSYS.  Some functions are actually named
8827     something starting with __ and the normal name is an alias.  */
8828 #if defined (__stub_shmat) || defined (__stub___shmat)
8829 choke me
8830 #else
8831 char (*f) () = shmat;
8832 #endif
8833 #ifdef __cplusplus
8834 }
8835 #endif
8836
8837 int
8838 main ()
8839 {
8840 return f != shmat;
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847   (eval $ac_link) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -s conftest$ac_exeext'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   ac_cv_func_shmat=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 ac_cv_func_shmat=no
8863 fi
8864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8865 fi
8866 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8867 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8868
8869     if test $ac_cv_func_shmat = no; then
8870       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8871 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8872 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8873   echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875   ac_check_lib_save_LIBS=$LIBS
8876 LIBS="-lipc  $LIBS"
8877 cat >conftest.$ac_ext <<_ACEOF
8878 #line $LINENO "configure"
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884
8885 /* Override any gcc2 internal prototype to avoid an error.  */
8886 #ifdef __cplusplus
8887 extern "C"
8888 #endif
8889 /* We use char because int might match the return type of a gcc2
8890    builtin and then its argument prototype would still apply.  */
8891 char shmat ();
8892 int
8893 main ()
8894 {
8895 shmat ();
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902   (eval $ac_link) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); } &&
8906          { ac_try='test -s conftest$ac_exeext'
8907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908   (eval $ac_try) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); }; }; then
8912   ac_cv_lib_ipc_shmat=yes
8913 else
8914   echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 ac_cv_lib_ipc_shmat=no
8918 fi
8919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8921 fi
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8923 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8924 if test $ac_cv_lib_ipc_shmat = yes; then
8925   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8926 fi
8927
8928     fi
8929   fi
8930
8931   # Check for libraries that X11R6 Xt/Xaw programs need.
8932   ac_save_LDFLAGS=$LDFLAGS
8933   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8934   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8935   # check for ICE first), but we must link in the order -lSM -lICE or
8936   # we get undefined symbols.  So assume we have SM if we have ICE.
8937   # These have to be linked with before -lX11, unlike the other
8938   # libraries we check for below, so use a different variable.
8939   # John Interrante, Karl Berry
8940   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8941 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8942 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945   ac_check_lib_save_LIBS=$LIBS
8946 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954
8955 /* Override any gcc2 internal prototype to avoid an error.  */
8956 #ifdef __cplusplus
8957 extern "C"
8958 #endif
8959 /* We use char because int might match the return type of a gcc2
8960    builtin and then its argument prototype would still apply.  */
8961 char IceConnectionNumber ();
8962 int
8963 main ()
8964 {
8965 IceConnectionNumber ();
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972   (eval $ac_link) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest$ac_exeext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_lib_ICE_IceConnectionNumber=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_cv_lib_ICE_IceConnectionNumber=no
8988 fi
8989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8991 fi
8992 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8993 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8994 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8995   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8996 fi
8997
8998   LDFLAGS=$ac_save_LDFLAGS
8999
9000 fi
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025 for ac_header in \
9026         assert.h \
9027         fcntl.h \
9028         grp.h \
9029         pwd.h \
9030         libc.h \
9031         limits.h \
9032         stdarg.h \
9033         stdlib.h \
9034         stdint.h \
9035         string.h \
9036         termios.h \
9037         unistd.h \
9038         sys/byteorder.h \
9039         sys/ioctl.h \
9040         sys/select.h \
9041         sys/sockio.h \
9042         sys/time.h \
9043         sys/socket.h \
9044         arpa/nameser.h \
9045         resolv.h \
9046         mtio.h \
9047         sys/mtio.h \
9048
9049 do
9050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052   echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 fi
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9059 else
9060   # Is the header compilable?
9061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9064 #line $LINENO "configure"
9065 /* confdefs.h.  */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h.  */
9070 $ac_includes_default
9071 #include <$ac_header>
9072 _ACEOF
9073 rm -f conftest.$ac_objext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9075   (eval $ac_compile) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); } &&
9079          { ac_try='test -s conftest.$ac_objext'
9080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081   (eval $ac_try) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; }; then
9085   ac_header_compiler=yes
9086 else
9087   echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090 ac_header_compiler=no
9091 fi
9092 rm -f conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9095
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 #line $LINENO "configure"
9101 /* confdefs.h.  */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h.  */
9106 #include <$ac_header>
9107 _ACEOF
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9110   ac_status=$?
9111   grep -v '^ *+' conftest.er1 >conftest.err
9112   rm -f conftest.er1
9113   cat conftest.err >&5
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } >/dev/null; then
9116   if test -s conftest.err; then
9117     ac_cpp_err=$ac_c_preproc_warn_flag
9118   else
9119     ac_cpp_err=
9120   fi
9121 else
9122   ac_cpp_err=yes
9123 fi
9124 if test -z "$ac_cpp_err"; then
9125   ac_header_preproc=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130   ac_header_preproc=no
9131 fi
9132 rm -f conftest.err conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134 echo "${ECHO_T}$ac_header_preproc" >&6
9135
9136 # So?  What about this header?
9137 case $ac_header_compiler:$ac_header_preproc in
9138   yes:no )
9139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9143     (
9144       cat <<\_ASBOX
9145 ## ------------------------------------ ##
9146 ## Report this to bug-autoconf@gnu.org. ##
9147 ## ------------------------------------ ##
9148 _ASBOX
9149     ) |
9150       sed "s/^/$as_me: WARNING:     /" >&2
9151     ;;
9152   no:yes )
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9159     (
9160       cat <<\_ASBOX
9161 ## ------------------------------------ ##
9162 ## Report this to bug-autoconf@gnu.org. ##
9163 ## ------------------------------------ ##
9164 _ASBOX
9165     ) |
9166       sed "s/^/$as_me: WARNING:     /" >&2
9167     ;;
9168 esac
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   eval "$as_ac_Header=$ac_header_preproc"
9175 fi
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178
9179 fi
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181   cat >>confdefs.h <<_ACEOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 _ACEOF
9184
9185 fi
9186
9187 done
9188
9189 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9190 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9191 if test "${ac_cv_header_stdc+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201 #include <stdlib.h>
9202 #include <stdarg.h>
9203 #include <string.h>
9204 #include <float.h>
9205
9206 int
9207 main ()
9208 {
9209
9210   ;
9211   return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216   (eval $ac_compile) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -s conftest.$ac_objext'
9221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; }; then
9226   ac_cv_header_stdc=yes
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ac_cv_header_stdc=no
9232 fi
9233 rm -f conftest.$ac_objext conftest.$ac_ext
9234
9235 if test $ac_cv_header_stdc = yes; then
9236   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9237   cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244 #include <string.h>
9245
9246 _ACEOF
9247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9248   $EGREP "memchr" >/dev/null 2>&1; then
9249   :
9250 else
9251   ac_cv_header_stdc=no
9252 fi
9253 rm -f conftest*
9254
9255 fi
9256
9257 if test $ac_cv_header_stdc = yes; then
9258   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9259   cat >conftest.$ac_ext <<_ACEOF
9260 #line $LINENO "configure"
9261 /* confdefs.h.  */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h.  */
9266 #include <stdlib.h>
9267
9268 _ACEOF
9269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9270   $EGREP "free" >/dev/null 2>&1; then
9271   :
9272 else
9273   ac_cv_header_stdc=no
9274 fi
9275 rm -f conftest*
9276
9277 fi
9278
9279 if test $ac_cv_header_stdc = yes; then
9280   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9281   if test "$cross_compiling" = yes; then
9282   :
9283 else
9284   cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 #include <ctype.h>
9292 #if ((' ' & 0x0FF) == 0x020)
9293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9295 #else
9296 # define ISLOWER(c) \
9297                    (('a' <= (c) && (c) <= 'i') \
9298                      || ('j' <= (c) && (c) <= 'r') \
9299                      || ('s' <= (c) && (c) <= 'z'))
9300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9301 #endif
9302
9303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9304 int
9305 main ()
9306 {
9307   int i;
9308   for (i = 0; i < 256; i++)
9309     if (XOR (islower (i), ISLOWER (i))
9310         || toupper (i) != TOUPPER (i))
9311       exit(2);
9312   exit (0);
9313 }
9314 _ACEOF
9315 rm -f conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317   (eval $ac_link) 2>&5
9318   ac_status=$?
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   :
9327 else
9328   echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 ( exit $ac_status )
9333 ac_cv_header_stdc=no
9334 fi
9335 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9336 fi
9337 fi
9338 fi
9339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9341 if test $ac_cv_header_stdc = yes; then
9342
9343 cat >>confdefs.h <<\_ACEOF
9344 #define STDC_HEADERS 1
9345 _ACEOF
9346
9347 fi
9348
9349 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9350 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9351 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
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 #include <sys/types.h>
9362 int
9363 main ()
9364 {
9365 return makedev(0, 0);
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372   (eval $ac_link) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -s conftest$ac_exeext'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   ac_cv_header_sys_types_h_makedev=yes
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 ac_cv_header_sys_types_h_makedev=no
9388 fi
9389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9390
9391 fi
9392 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9393 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9394
9395 if test $ac_cv_header_sys_types_h_makedev = no; then
9396 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9397   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9398 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9399 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 fi
9402 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9403 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9404 else
9405   # Is the header compilable?
9406 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9407 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 /* confdefs.h.  */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h.  */
9415 $ac_includes_default
9416 #include <sys/mkdev.h>
9417 _ACEOF
9418 rm -f conftest.$ac_objext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420   (eval $ac_compile) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } &&
9424          { ac_try='test -s conftest.$ac_objext'
9425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426   (eval $ac_try) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); }; }; then
9430   ac_header_compiler=yes
9431 else
9432   echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9434
9435 ac_header_compiler=no
9436 fi
9437 rm -f conftest.$ac_objext conftest.$ac_ext
9438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9439 echo "${ECHO_T}$ac_header_compiler" >&6
9440
9441 # Is the header present?
9442 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9443 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9445 #line $LINENO "configure"
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 #include <sys/mkdev.h>
9452 _ACEOF
9453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9455   ac_status=$?
9456   grep -v '^ *+' conftest.er1 >conftest.err
9457   rm -f conftest.er1
9458   cat conftest.err >&5
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); } >/dev/null; then
9461   if test -s conftest.err; then
9462     ac_cpp_err=$ac_c_preproc_warn_flag
9463   else
9464     ac_cpp_err=
9465   fi
9466 else
9467   ac_cpp_err=yes
9468 fi
9469 if test -z "$ac_cpp_err"; then
9470   ac_header_preproc=yes
9471 else
9472   echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9474
9475   ac_header_preproc=no
9476 fi
9477 rm -f conftest.err conftest.$ac_ext
9478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9479 echo "${ECHO_T}$ac_header_preproc" >&6
9480
9481 # So?  What about this header?
9482 case $ac_header_compiler:$ac_header_preproc in
9483   yes:no )
9484     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9485 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9486     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9487 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9488     (
9489       cat <<\_ASBOX
9490 ## ------------------------------------ ##
9491 ## Report this to bug-autoconf@gnu.org. ##
9492 ## ------------------------------------ ##
9493 _ASBOX
9494     ) |
9495       sed "s/^/$as_me: WARNING:     /" >&2
9496     ;;
9497   no:yes )
9498     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9499 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9500     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9501 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9502     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9503 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9504     (
9505       cat <<\_ASBOX
9506 ## ------------------------------------ ##
9507 ## Report this to bug-autoconf@gnu.org. ##
9508 ## ------------------------------------ ##
9509 _ASBOX
9510     ) |
9511       sed "s/^/$as_me: WARNING:     /" >&2
9512     ;;
9513 esac
9514 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9515 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9516 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9520 fi
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9523
9524 fi
9525 if test $ac_cv_header_sys_mkdev_h = yes; then
9526
9527 cat >>confdefs.h <<\_ACEOF
9528 #define MAJOR_IN_MKDEV 1
9529 _ACEOF
9530
9531 fi
9532
9533
9534
9535   if test $ac_cv_header_sys_mkdev_h = no; then
9536     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9537   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9538 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9539 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 fi
9542 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9543 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9544 else
9545   # Is the header compilable?
9546 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9547 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555 $ac_includes_default
9556 #include <sys/sysmacros.h>
9557 _ACEOF
9558 rm -f conftest.$ac_objext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9560   (eval $ac_compile) 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -s conftest.$ac_objext'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; }; then
9570   ac_header_compiler=yes
9571 else
9572   echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9574
9575 ac_header_compiler=no
9576 fi
9577 rm -f conftest.$ac_objext conftest.$ac_ext
9578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9579 echo "${ECHO_T}$ac_header_compiler" >&6
9580
9581 # Is the header present?
9582 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9583 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591 #include <sys/sysmacros.h>
9592 _ACEOF
9593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9595   ac_status=$?
9596   grep -v '^ *+' conftest.er1 >conftest.err
9597   rm -f conftest.er1
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } >/dev/null; then
9601   if test -s conftest.err; then
9602     ac_cpp_err=$ac_c_preproc_warn_flag
9603   else
9604     ac_cpp_err=
9605   fi
9606 else
9607   ac_cpp_err=yes
9608 fi
9609 if test -z "$ac_cpp_err"; then
9610   ac_header_preproc=yes
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615   ac_header_preproc=no
9616 fi
9617 rm -f conftest.err conftest.$ac_ext
9618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9619 echo "${ECHO_T}$ac_header_preproc" >&6
9620
9621 # So?  What about this header?
9622 case $ac_header_compiler:$ac_header_preproc in
9623   yes:no )
9624     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9625 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9626     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9627 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9628     (
9629       cat <<\_ASBOX
9630 ## ------------------------------------ ##
9631 ## Report this to bug-autoconf@gnu.org. ##
9632 ## ------------------------------------ ##
9633 _ASBOX
9634     ) |
9635       sed "s/^/$as_me: WARNING:     /" >&2
9636     ;;
9637   no:yes )
9638     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9639 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9640     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9641 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9642     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9643 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9644     (
9645       cat <<\_ASBOX
9646 ## ------------------------------------ ##
9647 ## Report this to bug-autoconf@gnu.org. ##
9648 ## ------------------------------------ ##
9649 _ASBOX
9650     ) |
9651       sed "s/^/$as_me: WARNING:     /" >&2
9652     ;;
9653 esac
9654 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9655 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9656 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9662 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9663
9664 fi
9665 if test $ac_cv_header_sys_sysmacros_h = yes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define MAJOR_IN_SYSMACROS 1
9669 _ACEOF
9670
9671 fi
9672
9673
9674   fi
9675 fi
9676
9677
9678
9679
9680
9681
9682 ac_header_dirent=no
9683 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9684   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9685 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9686 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9687 if eval "test \"\${$as_ac_Header+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 #include <sys/types.h>
9698 #include <$ac_hdr>
9699
9700 int
9701 main ()
9702 {
9703 if ((DIR *) 0)
9704 return 0;
9705   ;
9706   return 0;
9707 }
9708 _ACEOF
9709 rm -f conftest.$ac_objext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9711   (eval $ac_compile) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } &&
9715          { ac_try='test -s conftest.$ac_objext'
9716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717   (eval $ac_try) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; }; then
9721   eval "$as_ac_Header=yes"
9722 else
9723   echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 eval "$as_ac_Header=no"
9727 fi
9728 rm -f conftest.$ac_objext conftest.$ac_ext
9729 fi
9730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9733   cat >>confdefs.h <<_ACEOF
9734 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9735 _ACEOF
9736
9737 ac_header_dirent=$ac_hdr; break
9738 fi
9739
9740 done
9741 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9742 if test $ac_header_dirent = dirent.h; then
9743   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9744 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9745 if test "${ac_cv_search_opendir+set}" = set; then
9746   echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748   ac_func_search_save_LIBS=$LIBS
9749 ac_cv_search_opendir=no
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 /* Override any gcc2 internal prototype to avoid an error.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763    builtin and then its argument prototype would still apply.  */
9764 char opendir ();
9765 int
9766 main ()
9767 {
9768 opendir ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775   (eval $ac_link) 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -s conftest$ac_exeext'
9780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781   (eval $ac_try) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; }; then
9785   ac_cv_search_opendir="none required"
9786 else
9787   echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9789
9790 fi
9791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9792 if test "$ac_cv_search_opendir" = no; then
9793   for ac_lib in dir; do
9794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9795     cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 /* Override any gcc2 internal prototype to avoid an error.  */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 /* We use char because int might match the return type of a gcc2
9808    builtin and then its argument prototype would still apply.  */
9809 char opendir ();
9810 int
9811 main ()
9812 {
9813 opendir ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820   (eval $ac_link) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } &&
9824          { ac_try='test -s conftest$ac_exeext'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; }; then
9830   ac_cv_search_opendir="-l$ac_lib"
9831 break
9832 else
9833   echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9835
9836 fi
9837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9838   done
9839 fi
9840 LIBS=$ac_func_search_save_LIBS
9841 fi
9842 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9843 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9844 if test "$ac_cv_search_opendir" != no; then
9845   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9846
9847 fi
9848
9849 else
9850   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9852 if test "${ac_cv_search_opendir+set}" = set; then
9853   echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855   ac_func_search_save_LIBS=$LIBS
9856 ac_cv_search_opendir=no
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864
9865 /* Override any gcc2 internal prototype to avoid an error.  */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 /* We use char because int might match the return type of a gcc2
9870    builtin and then its argument prototype would still apply.  */
9871 char opendir ();
9872 int
9873 main ()
9874 {
9875 opendir ();
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882   (eval $ac_link) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } &&
9886          { ac_try='test -s conftest$ac_exeext'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; }; then
9892   ac_cv_search_opendir="none required"
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 fi
9898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9899 if test "$ac_cv_search_opendir" = no; then
9900   for ac_lib in x; do
9901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9902     cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909
9910 /* Override any gcc2 internal prototype to avoid an error.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 /* We use char because int might match the return type of a gcc2
9915    builtin and then its argument prototype would still apply.  */
9916 char opendir ();
9917 int
9918 main ()
9919 {
9920 opendir ();
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927   (eval $ac_link) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } &&
9931          { ac_try='test -s conftest$ac_exeext'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_search_opendir="-l$ac_lib"
9938 break
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943 fi
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945   done
9946 fi
9947 LIBS=$ac_func_search_save_LIBS
9948 fi
9949 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9950 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9951 if test "$ac_cv_search_opendir" != no; then
9952   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9953
9954 fi
9955
9956 fi
9957
9958 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9959 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9960 if test "${ac_cv_header_stat_broken+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   cat >conftest.$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 #include <sys/types.h>
9971 #include <sys/stat.h>
9972
9973 #if defined(S_ISBLK) && defined(S_IFDIR)
9974 # if S_ISBLK (S_IFDIR)
9975 You lose.
9976 # endif
9977 #endif
9978
9979 #if defined(S_ISBLK) && defined(S_IFCHR)
9980 # if S_ISBLK (S_IFCHR)
9981 You lose.
9982 # endif
9983 #endif
9984
9985 #if defined(S_ISLNK) && defined(S_IFREG)
9986 # if S_ISLNK (S_IFREG)
9987 You lose.
9988 # endif
9989 #endif
9990
9991 #if defined(S_ISSOCK) && defined(S_IFREG)
9992 # if S_ISSOCK (S_IFREG)
9993 You lose.
9994 # endif
9995 #endif
9996
9997 _ACEOF
9998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9999   $EGREP "You lose" >/dev/null 2>&1; then
10000   ac_cv_header_stat_broken=yes
10001 else
10002   ac_cv_header_stat_broken=no
10003 fi
10004 rm -f conftest*
10005
10006 fi
10007 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10009 if test $ac_cv_header_stat_broken = yes; then
10010
10011 cat >>confdefs.h <<\_ACEOF
10012 #define STAT_MACROS_BROKEN 1
10013 _ACEOF
10014
10015 fi
10016
10017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10024 /* confdefs.h.  */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h.  */
10029 #include <sys/types.h>
10030 #include <sys/wait.h>
10031 #ifndef WEXITSTATUS
10032 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10033 #endif
10034 #ifndef WIFEXITED
10035 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10036 #endif
10037
10038 int
10039 main ()
10040 {
10041   int s;
10042   wait (&s);
10043   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050   (eval $ac_compile) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -s conftest.$ac_objext'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; }; then
10060   ac_cv_header_sys_wait_h=yes
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 ac_cv_header_sys_wait_h=no
10066 fi
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10070 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10071 if test $ac_cv_header_sys_wait_h = yes; then
10072
10073 cat >>confdefs.h <<\_ACEOF
10074 #define HAVE_SYS_WAIT_H 1
10075 _ACEOF
10076
10077 fi
10078
10079 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10080 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10081 if test "${ac_cv_header_time+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10086 /* confdefs.h.  */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h.  */
10091 #include <sys/types.h>
10092 #include <sys/time.h>
10093 #include <time.h>
10094
10095 int
10096 main ()
10097 {
10098 if ((struct tm *) 0)
10099 return 0;
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106   (eval $ac_compile) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } &&
10110          { ac_try='test -s conftest.$ac_objext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_cv_header_time=yes
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121 ac_cv_header_time=no
10122 fi
10123 rm -f conftest.$ac_objext conftest.$ac_ext
10124 fi
10125 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10126 echo "${ECHO_T}$ac_cv_header_time" >&6
10127 if test $ac_cv_header_time = yes; then
10128
10129 cat >>confdefs.h <<\_ACEOF
10130 #define TIME_WITH_SYS_TIME 1
10131 _ACEOF
10132
10133 fi
10134
10135
10136 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10137 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10138 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10139   echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141   cat >conftest.$ac_ext <<_ACEOF
10142 #line $LINENO "configure"
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148 $ac_includes_default
10149 int
10150 main ()
10151 {
10152 static struct stat ac_aggr;
10153 if (ac_aggr.st_blksize)
10154 return 0;
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 rm -f conftest.$ac_objext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161   (eval $ac_compile) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } &&
10165          { ac_try='test -s conftest.$ac_objext'
10166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167   (eval $ac_try) 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); }; }; then
10171   ac_cv_member_struct_stat_st_blksize=yes
10172 else
10173   echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10175
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183 $ac_includes_default
10184 int
10185 main ()
10186 {
10187 static struct stat ac_aggr;
10188 if (sizeof ac_aggr.st_blksize)
10189 return 0;
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196   (eval $ac_compile) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -s conftest.$ac_objext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_member_struct_stat_st_blksize=yes
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ac_cv_member_struct_stat_st_blksize=no
10212 fi
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10214 fi
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10216 fi
10217 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10218 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10219 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10220
10221 cat >>confdefs.h <<_ACEOF
10222 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10223 _ACEOF
10224
10225
10226 cat >>confdefs.h <<\_ACEOF
10227 #define HAVE_ST_BLKSIZE 1
10228 _ACEOF
10229
10230 fi
10231
10232
10233 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10234 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10235 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   cat >conftest.$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10240 /* confdefs.h.  */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h.  */
10245 $ac_includes_default
10246 int
10247 main ()
10248 {
10249 static struct stat ac_aggr;
10250 if (ac_aggr.st_blocks)
10251 return 0;
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258   (eval $ac_compile) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -s conftest.$ac_objext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268   ac_cv_member_struct_stat_st_blocks=yes
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280 $ac_includes_default
10281 int
10282 main ()
10283 {
10284 static struct stat ac_aggr;
10285 if (sizeof ac_aggr.st_blocks)
10286 return 0;
10287   ;
10288   return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest.$ac_objext
10292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10293   (eval $ac_compile) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } &&
10297          { ac_try='test -s conftest.$ac_objext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_member_struct_stat_st_blocks=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_member_struct_stat_st_blocks=no
10309 fi
10310 rm -f conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 rm -f conftest.$ac_objext conftest.$ac_ext
10313 fi
10314 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10315 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10316 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10317
10318 cat >>confdefs.h <<_ACEOF
10319 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10320 _ACEOF
10321
10322
10323 cat >>confdefs.h <<\_ACEOF
10324 #define HAVE_ST_BLOCKS 1
10325 _ACEOF
10326
10327 else
10328   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10329 fi
10330
10331
10332 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10333 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10334 if test "${ac_cv_struct_tm+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344 #include <sys/types.h>
10345 #include <time.h>
10346
10347 int
10348 main ()
10349 {
10350 struct tm *tp; tp->tm_sec;
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -s conftest.$ac_objext'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; }; then
10367   ac_cv_struct_tm=time.h
10368 else
10369   echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 ac_cv_struct_tm=sys/time.h
10373 fi
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10377 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10378 if test $ac_cv_struct_tm = sys/time.h; then
10379
10380 cat >>confdefs.h <<\_ACEOF
10381 #define TM_IN_SYS_TIME 1
10382 _ACEOF
10383
10384 fi
10385
10386 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10387 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10388 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391   cat >conftest.$ac_ext <<_ACEOF
10392 #line $LINENO "configure"
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 #include <sys/types.h>
10399 #include <$ac_cv_struct_tm>
10400
10401
10402 int
10403 main ()
10404 {
10405 static struct tm ac_aggr;
10406 if (ac_aggr.tm_zone)
10407 return 0;
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414   (eval $ac_compile) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -s conftest.$ac_objext'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; }; then
10424   ac_cv_member_struct_tm_tm_zone=yes
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10431 /* confdefs.h.  */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h.  */
10436 #include <sys/types.h>
10437 #include <$ac_cv_struct_tm>
10438
10439
10440 int
10441 main ()
10442 {
10443 static struct tm ac_aggr;
10444 if (sizeof ac_aggr.tm_zone)
10445 return 0;
10446   ;
10447   return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452   (eval $ac_compile) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -s conftest.$ac_objext'
10457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458   (eval $ac_try) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); }; }; then
10462   ac_cv_member_struct_tm_tm_zone=yes
10463 else
10464   echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 ac_cv_member_struct_tm_tm_zone=no
10468 fi
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10470 fi
10471 rm -f conftest.$ac_objext conftest.$ac_ext
10472 fi
10473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10474 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10475 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10476
10477 cat >>confdefs.h <<_ACEOF
10478 #define HAVE_STRUCT_TM_TM_ZONE 1
10479 _ACEOF
10480
10481
10482 fi
10483
10484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10485
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_TM_ZONE 1
10488 _ACEOF
10489
10490 else
10491   echo "$as_me:$LINENO: checking for tzname" >&5
10492 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10493 if test "${ac_cv_var_tzname+set}" = set; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496   cat >conftest.$ac_ext <<_ACEOF
10497 #line $LINENO "configure"
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503 #include <time.h>
10504 #ifndef tzname /* For SGI.  */
10505 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10506 #endif
10507
10508 int
10509 main ()
10510 {
10511 atoi(*tzname);
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518   (eval $ac_link) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } &&
10522          { ac_try='test -s conftest$ac_exeext'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; }; then
10528   ac_cv_var_tzname=yes
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_cv_var_tzname=no
10534 fi
10535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10536 fi
10537 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10538 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10539   if test $ac_cv_var_tzname = yes; then
10540
10541 cat >>confdefs.h <<\_ACEOF
10542 #define HAVE_TZNAME 1
10543 _ACEOF
10544
10545   fi
10546 fi
10547
10548
10549 echo "$as_me:$LINENO: checking for utime.h" >&5
10550 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10551 if test "${ba_cv_header_utime_h+set}" = set; then
10552   echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554   cat >conftest.$ac_ext <<_ACEOF
10555 #line $LINENO "configure"
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561
10562 #include <sys/types.h>
10563 #include <utime.h>
10564 int
10565 main ()
10566 {
10567 struct utimbuf foo
10568   ;
10569   return 0;
10570 }
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574   (eval $ac_compile) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } &&
10578          { ac_try='test -s conftest.$ac_objext'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; }; then
10584   ba_cv_header_utime_h=yes
10585 else
10586   echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ba_cv_header_utime_h=no
10590 fi
10591 rm -f conftest.$ac_objext conftest.$ac_ext
10592 fi
10593 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10594 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10595 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_UTIME_H 1
10597 _ACEOF
10598
10599
10600 echo "$as_me:$LINENO: checking for socklen_t" >&5
10601 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10602 if test "${ba_cv_header_socklen_t+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612
10613 #include <sys/types.h>
10614 #include <sys/socket.h>
10615 int
10616 main ()
10617 {
10618 socklen_t x
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 rm -f conftest.$ac_objext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10625   (eval $ac_compile) 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); } &&
10629          { ac_try='test -s conftest.$ac_objext'
10630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631   (eval $ac_try) 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ba_cv_header_socklen_t=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 ba_cv_header_socklen_t=no
10641 fi
10642 rm -f conftest.$ac_objext conftest.$ac_ext
10643 fi
10644 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10645 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10646 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_SOCKLEN_T 1
10648 _ACEOF
10649
10650
10651 echo "$as_me:$LINENO: checking for bigendian" >&5
10652 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10653 if test "${ba_cv_bigendian+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   if test "$cross_compiling" = yes; then
10657   ba_cv_bigendian=no
10658 else
10659   cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10667 _ACEOF
10668 rm -f conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670   (eval $ac_link) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; }; then
10679   ba_cv_bigendian=yes
10680 else
10681   echo "$as_me: program exited with status $ac_status" >&5
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10684
10685 ( exit $ac_status )
10686 ba_cv_bigendian=no
10687 fi
10688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10689 fi
10690 fi
10691 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10692 echo "${ECHO_T}$ba_cv_bigendian" >&6
10693 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10694 #define HAVE_BIGENDIAN 1
10695 _ACEOF
10696
10697
10698
10699 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10700 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10701 if test "${ac_cv_c_const+set}" = set; then
10702   echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704   cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10706 /* confdefs.h.  */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h.  */
10711
10712 int
10713 main ()
10714 {
10715 /* FIXME: Include the comments suggested by Paul. */
10716 #ifndef __cplusplus
10717   /* Ultrix mips cc rejects this.  */
10718   typedef int charset[2];
10719   const charset x;
10720   /* SunOS 4.1.1 cc rejects this.  */
10721   char const *const *ccp;
10722   char **p;
10723   /* NEC SVR4.0.2 mips cc rejects this.  */
10724   struct point {int x, y;};
10725   static struct point const zero = {0,0};
10726   /* AIX XL C 1.02.0.0 rejects this.
10727      It does not let you subtract one const X* pointer from another in
10728      an arm of an if-expression whose if-part is not a constant
10729      expression */
10730   const char *g = "string";
10731   ccp = &g + (g ? g-g : 0);
10732   /* HPUX 7.0 cc rejects these. */
10733   ++ccp;
10734   p = (char**) ccp;
10735   ccp = (char const *const *) p;
10736   { /* SCO 3.2v4 cc rejects this.  */
10737     char *t;
10738     char const *s = 0 ? (char *) 0 : (char const *) 0;
10739
10740     *t++ = 0;
10741   }
10742   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10743     int x[] = {25, 17};
10744     const int *foo = &x[0];
10745     ++foo;
10746   }
10747   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10748     typedef const int *iptr;
10749     iptr p = 0;
10750     ++p;
10751   }
10752   { /* AIX XL C 1.02.0.0 rejects this saying
10753        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10754     struct s { int j; const int *ap[3]; };
10755     struct s *b; b->j = 5;
10756   }
10757   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10758     const int foo = 10;
10759   }
10760 #endif
10761
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768   (eval $ac_compile) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -s conftest.$ac_objext'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   ac_cv_c_const=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_cv_c_const=no
10784 fi
10785 rm -f conftest.$ac_objext conftest.$ac_ext
10786 fi
10787 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10788 echo "${ECHO_T}$ac_cv_c_const" >&6
10789 if test $ac_cv_c_const = no; then
10790
10791 cat >>confdefs.h <<\_ACEOF
10792 #define const
10793 _ACEOF
10794
10795 fi
10796
10797
10798
10799 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10800 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10801 fstype=no
10802 # The order of these tests is important.
10803 cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 #include <sys/statvfs.h>
10811 #include <sys/fstyp.h>
10812 _ACEOF
10813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } >/dev/null; then
10821   if test -s conftest.err; then
10822     ac_cpp_err=$ac_c_preproc_warn_flag
10823   else
10824     ac_cpp_err=
10825   fi
10826 else
10827   ac_cpp_err=yes
10828 fi
10829 if test -z "$ac_cpp_err"; then
10830   cat >>confdefs.h <<\_ACEOF
10831 #define FSTYPE_STATVFS 1
10832 _ACEOF
10833  fstype=SVR4
10834 else
10835   echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838
10839 fi
10840 rm -f conftest.err conftest.$ac_ext
10841 if test $fstype = no; then
10842 cat >conftest.$ac_ext <<_ACEOF
10843 #line $LINENO "configure"
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849 #include <sys/statfs.h>
10850 #include <sys/fstyp.h>
10851 _ACEOF
10852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10854   ac_status=$?
10855   grep -v '^ *+' conftest.er1 >conftest.err
10856   rm -f conftest.er1
10857   cat conftest.err >&5
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } >/dev/null; then
10860   if test -s conftest.err; then
10861     ac_cpp_err=$ac_c_preproc_warn_flag
10862   else
10863     ac_cpp_err=
10864   fi
10865 else
10866   ac_cpp_err=yes
10867 fi
10868 if test -z "$ac_cpp_err"; then
10869   cat >>confdefs.h <<\_ACEOF
10870 #define FSTYPE_USG_STATFS 1
10871 _ACEOF
10872  fstype=SVR3
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877
10878 fi
10879 rm -f conftest.err conftest.$ac_ext
10880 fi
10881 if test $fstype = no; then
10882 cat >conftest.$ac_ext <<_ACEOF
10883 #line $LINENO "configure"
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889 #include <sys/statfs.h>
10890 #include <sys/vmount.h>
10891 _ACEOF
10892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10894   ac_status=$?
10895   grep -v '^ *+' conftest.er1 >conftest.err
10896   rm -f conftest.er1
10897   cat conftest.err >&5
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } >/dev/null; then
10900   if test -s conftest.err; then
10901     ac_cpp_err=$ac_c_preproc_warn_flag
10902   else
10903     ac_cpp_err=
10904   fi
10905 else
10906   ac_cpp_err=yes
10907 fi
10908 if test -z "$ac_cpp_err"; then
10909   cat >>confdefs.h <<\_ACEOF
10910 #define FSTYPE_AIX_STATFS 1
10911 _ACEOF
10912  fstype=AIX
10913 else
10914   echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10916
10917
10918 fi
10919 rm -f conftest.err conftest.$ac_ext
10920 fi
10921 if test $fstype = no; then
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #include <mntent.h>
10930 _ACEOF
10931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } >/dev/null; then
10939   if test -s conftest.err; then
10940     ac_cpp_err=$ac_c_preproc_warn_flag
10941   else
10942     ac_cpp_err=
10943   fi
10944 else
10945   ac_cpp_err=yes
10946 fi
10947 if test -z "$ac_cpp_err"; then
10948   cat >>confdefs.h <<\_ACEOF
10949 #define FSTYPE_MNTENT 1
10950 _ACEOF
10951  fstype=4.3BSD
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956
10957 fi
10958 rm -f conftest.err conftest.$ac_ext
10959 fi
10960 if test $fstype = no; then
10961 cat >conftest.$ac_ext <<_ACEOF
10962 #line $LINENO "configure"
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 #include <sys/mount.h>
10969
10970 _ACEOF
10971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10972   $EGREP "f_type;" >/dev/null 2>&1; then
10973   cat >>confdefs.h <<\_ACEOF
10974 #define FSTYPE_STATFS 1
10975 _ACEOF
10976  fstype=4.4BSD/OSF1
10977 fi
10978 rm -f conftest*
10979
10980 fi
10981 if test $fstype = no; then
10982 cat >conftest.$ac_ext <<_ACEOF
10983 #line $LINENO "configure"
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989 #include <sys/mount.h>
10990 #include <sys/fs_types.h>
10991 _ACEOF
10992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10994   ac_status=$?
10995   grep -v '^ *+' conftest.er1 >conftest.err
10996   rm -f conftest.er1
10997   cat conftest.err >&5
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } >/dev/null; then
11000   if test -s conftest.err; then
11001     ac_cpp_err=$ac_c_preproc_warn_flag
11002   else
11003     ac_cpp_err=
11004   fi
11005 else
11006   ac_cpp_err=yes
11007 fi
11008 if test -z "$ac_cpp_err"; then
11009   cat >>confdefs.h <<\_ACEOF
11010 #define FSTYPE_GETMNT 1
11011 _ACEOF
11012  fstype=Ultrix
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017
11018 fi
11019 rm -f conftest.err conftest.$ac_ext
11020 fi
11021 echo "$as_me:$LINENO: result: $fstype" >&5
11022 echo "${ECHO_T}$fstype" >&6
11023
11024 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11025 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11026 if test "${ac_cv_type_signal+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 #include <sys/types.h>
11037 #include <signal.h>
11038 #ifdef signal
11039 # undef signal
11040 #endif
11041 #ifdef __cplusplus
11042 extern "C" void (*signal (int, void (*)(int)))(int);
11043 #else
11044 void (*signal ()) ();
11045 #endif
11046
11047 int
11048 main ()
11049 {
11050 int i;
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057   (eval $ac_compile) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } &&
11061          { ac_try='test -s conftest.$ac_objext'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; }; then
11067   ac_cv_type_signal=void
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 ac_cv_type_signal=int
11073 fi
11074 rm -f conftest.$ac_objext conftest.$ac_ext
11075 fi
11076 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11077 echo "${ECHO_T}$ac_cv_type_signal" >&6
11078
11079 cat >>confdefs.h <<_ACEOF
11080 #define RETSIGTYPE $ac_cv_type_signal
11081 _ACEOF
11082
11083
11084
11085 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11086 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11087 if test "${bash_cv_signal_vintage+set}" = set; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090
11091   cat >conftest.$ac_ext <<_ACEOF
11092 #line $LINENO "configure"
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 #include <signal.h>
11099 int
11100 main ()
11101 {
11102
11103     sigset_t ss;
11104     struct sigaction sa;
11105     sigemptyset(&ss); sigsuspend(&ss);
11106     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11107     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11108
11109   ;
11110   return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115   (eval $ac_link) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } &&
11119          { ac_try='test -s conftest$ac_exeext'
11120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121   (eval $ac_try) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; }; then
11125   bash_cv_signal_vintage=posix
11126 else
11127   echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130
11131     cat >conftest.$ac_ext <<_ACEOF
11132 #line $LINENO "configure"
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <signal.h>
11139 int
11140 main ()
11141 {
11142
11143         int mask = sigmask(SIGINT);
11144         sigsetmask(mask); sigblock(mask); sigpause(mask);
11145
11146   ;
11147   return 0;
11148 }
11149 _ACEOF
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11152   (eval $ac_link) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); } &&
11156          { ac_try='test -s conftest$ac_exeext'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; }; then
11162   bash_cv_signal_vintage=4.2bsd
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167
11168       cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11170 /* confdefs.h.  */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h.  */
11175
11176         #include <signal.h>
11177         RETSIGTYPE foo() { }
11178 int
11179 main ()
11180 {
11181
11182                 int mask = sigmask(SIGINT);
11183                 sigset(SIGINT, foo); sigrelse(SIGINT);
11184                 sighold(SIGINT); sigpause(SIGINT);
11185
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192   (eval $ac_link) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -s conftest$ac_exeext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   bash_cv_signal_vintage=svr3
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 bash_cv_signal_vintage=v7
11208
11209 fi
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11211
11212 fi
11213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11214
11215 fi
11216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11217
11218 fi
11219
11220 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11221 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11222 if test "$bash_cv_signal_vintage" = posix; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_POSIX_SIGNALS 1
11225 _ACEOF
11226
11227 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11228 cat >>confdefs.h <<\_ACEOF
11229 #define HAVE_BSD_SIGNALS 1
11230 _ACEOF
11231
11232 elif test "$bash_cv_signal_vintage" = svr3; then
11233 cat >>confdefs.h <<\_ACEOF
11234 #define HAVE_USG_SIGHOLD 1
11235 _ACEOF
11236
11237 fi
11238
11239 echo "$as_me:$LINENO: checking for mode_t" >&5
11240 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11241 if test "${ac_cv_type_mode_t+set}" = set; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   cat >conftest.$ac_ext <<_ACEOF
11245 #line $LINENO "configure"
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 $ac_includes_default
11252 int
11253 main ()
11254 {
11255 if ((mode_t *) 0)
11256   return 0;
11257 if (sizeof (mode_t))
11258   return 0;
11259   ;
11260   return 0;
11261 }
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265   (eval $ac_compile) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -s conftest.$ac_objext'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   ac_cv_type_mode_t=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 ac_cv_type_mode_t=no
11281 fi
11282 rm -f conftest.$ac_objext conftest.$ac_ext
11283 fi
11284 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11285 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11286 if test $ac_cv_type_mode_t = yes; then
11287   :
11288 else
11289
11290 cat >>confdefs.h <<_ACEOF
11291 #define mode_t int
11292 _ACEOF
11293
11294 fi
11295
11296 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11297 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11298 if test "${ac_cv_type_uid_t+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   cat >conftest.$ac_ext <<_ACEOF
11302 #line $LINENO "configure"
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308 #include <sys/types.h>
11309
11310 _ACEOF
11311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11312   $EGREP "uid_t" >/dev/null 2>&1; then
11313   ac_cv_type_uid_t=yes
11314 else
11315   ac_cv_type_uid_t=no
11316 fi
11317 rm -f conftest*
11318
11319 fi
11320 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11321 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11322 if test $ac_cv_type_uid_t = no; then
11323
11324 cat >>confdefs.h <<\_ACEOF
11325 #define uid_t int
11326 _ACEOF
11327
11328
11329 cat >>confdefs.h <<\_ACEOF
11330 #define gid_t int
11331 _ACEOF
11332
11333 fi
11334
11335 echo "$as_me:$LINENO: checking for size_t" >&5
11336 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11337 if test "${ac_cv_type_size_t+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
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 if ((size_t *) 0)
11352   return 0;
11353 if (sizeof (size_t))
11354   return 0;
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361   (eval $ac_compile) 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } &&
11365          { ac_try='test -s conftest.$ac_objext'
11366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367   (eval $ac_try) 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); }; }; then
11371   ac_cv_type_size_t=yes
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376 ac_cv_type_size_t=no
11377 fi
11378 rm -f conftest.$ac_objext conftest.$ac_ext
11379 fi
11380 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11381 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11382 if test $ac_cv_type_size_t = yes; then
11383   :
11384 else
11385
11386 cat >>confdefs.h <<_ACEOF
11387 #define size_t unsigned
11388 _ACEOF
11389
11390 fi
11391
11392 echo "$as_me:$LINENO: checking for pid_t" >&5
11393 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11394 if test "${ac_cv_type_pid_t+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404 $ac_includes_default
11405 int
11406 main ()
11407 {
11408 if ((pid_t *) 0)
11409   return 0;
11410 if (sizeof (pid_t))
11411   return 0;
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418   (eval $ac_compile) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); } &&
11422          { ac_try='test -s conftest.$ac_objext'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; }; then
11428   ac_cv_type_pid_t=yes
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_cv_type_pid_t=no
11434 fi
11435 rm -f conftest.$ac_objext conftest.$ac_ext
11436 fi
11437 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11439 if test $ac_cv_type_pid_t = yes; then
11440   :
11441 else
11442
11443 cat >>confdefs.h <<_ACEOF
11444 #define pid_t int
11445 _ACEOF
11446
11447 fi
11448
11449 echo "$as_me:$LINENO: checking for off_t" >&5
11450 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11451 if test "${ac_cv_type_off_t+set}" = set; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11456 /* confdefs.h.  */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h.  */
11461 $ac_includes_default
11462 int
11463 main ()
11464 {
11465 if ((off_t *) 0)
11466   return 0;
11467 if (sizeof (off_t))
11468   return 0;
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475   (eval $ac_compile) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } &&
11479          { ac_try='test -s conftest.$ac_objext'
11480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481   (eval $ac_try) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; }; then
11485   ac_cv_type_off_t=yes
11486 else
11487   echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11489
11490 ac_cv_type_off_t=no
11491 fi
11492 rm -f conftest.$ac_objext conftest.$ac_ext
11493 fi
11494 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11495 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11496 if test $ac_cv_type_off_t = yes; then
11497   :
11498 else
11499
11500 cat >>confdefs.h <<_ACEOF
11501 #define off_t long
11502 _ACEOF
11503
11504 fi
11505
11506 echo "$as_me:$LINENO: checking for ino_t" >&5
11507 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11508 if test "${ac_cv_type_ino_t+set}" = set; then
11509   echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511   cat >conftest.$ac_ext <<_ACEOF
11512 #line $LINENO "configure"
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 $ac_includes_default
11519 int
11520 main ()
11521 {
11522 if ((ino_t *) 0)
11523   return 0;
11524 if (sizeof (ino_t))
11525   return 0;
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532   (eval $ac_compile) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); } &&
11536          { ac_try='test -s conftest.$ac_objext'
11537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538   (eval $ac_try) 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); }; }; then
11542   ac_cv_type_ino_t=yes
11543 else
11544   echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_cv_type_ino_t=no
11548 fi
11549 rm -f conftest.$ac_objext conftest.$ac_ext
11550 fi
11551 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11552 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11553 if test $ac_cv_type_ino_t = yes; then
11554   :
11555 else
11556
11557 cat >>confdefs.h <<_ACEOF
11558 #define ino_t unsigned long
11559 _ACEOF
11560
11561 fi
11562
11563 echo "$as_me:$LINENO: checking for dev_t" >&5
11564 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11565 if test "${ac_cv_type_dev_t+set}" = set; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   cat >conftest.$ac_ext <<_ACEOF
11569 #line $LINENO "configure"
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 $ac_includes_default
11576 int
11577 main ()
11578 {
11579 if ((dev_t *) 0)
11580   return 0;
11581 if (sizeof (dev_t))
11582   return 0;
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589   (eval $ac_compile) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); } &&
11593          { ac_try='test -s conftest.$ac_objext'
11594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595   (eval $ac_try) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; }; then
11599   ac_cv_type_dev_t=yes
11600 else
11601   echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 ac_cv_type_dev_t=no
11605 fi
11606 rm -f conftest.$ac_objext conftest.$ac_ext
11607 fi
11608 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11609 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11610 if test $ac_cv_type_dev_t = yes; then
11611   :
11612 else
11613
11614 cat >>confdefs.h <<_ACEOF
11615 #define dev_t unsigned long
11616 _ACEOF
11617
11618 fi
11619
11620 echo "$as_me:$LINENO: checking for daddr_t" >&5
11621 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11622 if test "${ac_cv_type_daddr_t+set}" = set; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625   cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 /* confdefs.h.  */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h.  */
11632 $ac_includes_default
11633 int
11634 main ()
11635 {
11636 if ((daddr_t *) 0)
11637   return 0;
11638 if (sizeof (daddr_t))
11639   return 0;
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646   (eval $ac_compile) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -s conftest.$ac_objext'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   ac_cv_type_daddr_t=yes
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 ac_cv_type_daddr_t=no
11662 fi
11663 rm -f conftest.$ac_objext conftest.$ac_ext
11664 fi
11665 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11666 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11667 if test $ac_cv_type_daddr_t = yes; then
11668   :
11669 else
11670
11671 cat >>confdefs.h <<_ACEOF
11672 #define daddr_t long
11673 _ACEOF
11674
11675 fi
11676
11677 echo "$as_me:$LINENO: checking for major_t" >&5
11678 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11679 if test "${ac_cv_type_major_t+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 $ac_includes_default
11690 int
11691 main ()
11692 {
11693 if ((major_t *) 0)
11694   return 0;
11695 if (sizeof (major_t))
11696   return 0;
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703   (eval $ac_compile) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -s conftest.$ac_objext'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   ac_cv_type_major_t=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718 ac_cv_type_major_t=no
11719 fi
11720 rm -f conftest.$ac_objext conftest.$ac_ext
11721 fi
11722 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11723 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11724 if test $ac_cv_type_major_t = yes; then
11725   :
11726 else
11727
11728 cat >>confdefs.h <<_ACEOF
11729 #define major_t int
11730 _ACEOF
11731
11732 fi
11733
11734 echo "$as_me:$LINENO: checking for minor_t" >&5
11735 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11736 if test "${ac_cv_type_minor_t+set}" = set; then
11737   echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739   cat >conftest.$ac_ext <<_ACEOF
11740 #line $LINENO "configure"
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 $ac_includes_default
11747 int
11748 main ()
11749 {
11750 if ((minor_t *) 0)
11751   return 0;
11752 if (sizeof (minor_t))
11753   return 0;
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11760   (eval $ac_compile) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); } &&
11764          { ac_try='test -s conftest.$ac_objext'
11765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766   (eval $ac_try) 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; }; then
11770   ac_cv_type_minor_t=yes
11771 else
11772   echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775 ac_cv_type_minor_t=no
11776 fi
11777 rm -f conftest.$ac_objext conftest.$ac_ext
11778 fi
11779 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11780 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11781 if test $ac_cv_type_minor_t = yes; then
11782   :
11783 else
11784
11785 cat >>confdefs.h <<_ACEOF
11786 #define minor_t int
11787 _ACEOF
11788
11789 fi
11790
11791 echo "$as_me:$LINENO: checking for ssize_t" >&5
11792 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11793 if test "${ac_cv_type_ssize_t+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   cat >conftest.$ac_ext <<_ACEOF
11797 #line $LINENO "configure"
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803 $ac_includes_default
11804 int
11805 main ()
11806 {
11807 if ((ssize_t *) 0)
11808   return 0;
11809 if (sizeof (ssize_t))
11810   return 0;
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817   (eval $ac_compile) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } &&
11821          { ac_try='test -s conftest.$ac_objext'
11822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823   (eval $ac_try) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; }; then
11827   ac_cv_type_ssize_t=yes
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_cv_type_ssize_t=no
11833 fi
11834 rm -f conftest.$ac_objext conftest.$ac_ext
11835 fi
11836 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11837 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11838 if test $ac_cv_type_ssize_t = yes; then
11839   :
11840 else
11841
11842 cat >>confdefs.h <<_ACEOF
11843 #define ssize_t int
11844 _ACEOF
11845
11846 fi
11847
11848 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11849 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11850 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   cat >conftest.$ac_ext <<_ACEOF
11854 #line $LINENO "configure"
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 $ac_includes_default
11861 int
11862 main ()
11863 {
11864 static struct stat ac_aggr;
11865 if (ac_aggr.st_blocks)
11866 return 0;
11867   ;
11868   return 0;
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873   (eval $ac_compile) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } &&
11877          { ac_try='test -s conftest.$ac_objext'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; }; then
11883   ac_cv_member_struct_stat_st_blocks=yes
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 cat >conftest.$ac_ext <<_ACEOF
11889 #line $LINENO "configure"
11890 /* confdefs.h.  */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h.  */
11895 $ac_includes_default
11896 int
11897 main ()
11898 {
11899 static struct stat ac_aggr;
11900 if (sizeof ac_aggr.st_blocks)
11901 return 0;
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11908   (eval $ac_compile) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -s conftest.$ac_objext'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   ac_cv_member_struct_stat_st_blocks=yes
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 ac_cv_member_struct_stat_st_blocks=no
11924 fi
11925 rm -f conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 rm -f conftest.$ac_objext conftest.$ac_ext
11928 fi
11929 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11930 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11931 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11932
11933 cat >>confdefs.h <<_ACEOF
11934 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11935 _ACEOF
11936
11937
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_ST_BLOCKS 1
11940 _ACEOF
11941
11942 else
11943   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11944 fi
11945
11946
11947
11948 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11949 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11950 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 $ac_includes_default
11961 int
11962 main ()
11963 {
11964 static struct stat ac_aggr;
11965 if (ac_aggr.st_rdev)
11966 return 0;
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973   (eval $ac_compile) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } &&
11977          { ac_try='test -s conftest.$ac_objext'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; }; then
11983   ac_cv_member_struct_stat_st_rdev=yes
11984 else
11985   echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995 $ac_includes_default
11996 int
11997 main ()
11998 {
11999 static struct stat ac_aggr;
12000 if (sizeof ac_aggr.st_rdev)
12001 return 0;
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008   (eval $ac_compile) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -s conftest.$ac_objext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   ac_cv_member_struct_stat_st_rdev=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_member_struct_stat_st_rdev=no
12024 fi
12025 rm -f conftest.$ac_objext conftest.$ac_ext
12026 fi
12027 rm -f conftest.$ac_objext conftest.$ac_ext
12028 fi
12029 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12030 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12031 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12032
12033 cat >>confdefs.h <<_ACEOF
12034 #define HAVE_STRUCT_STAT_ST_RDEV 1
12035 _ACEOF
12036
12037
12038 cat >>confdefs.h <<\_ACEOF
12039 #define HAVE_ST_RDEV 1
12040 _ACEOF
12041
12042 fi
12043
12044
12045 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12046 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12047 if test "${ac_cv_struct_tm+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 #line $LINENO "configure"
12052 /* confdefs.h.  */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h.  */
12057 #include <sys/types.h>
12058 #include <time.h>
12059
12060 int
12061 main ()
12062 {
12063 struct tm *tp; tp->tm_sec;
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12070   (eval $ac_compile) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); } &&
12074          { ac_try='test -s conftest.$ac_objext'
12075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076   (eval $ac_try) 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); }; }; then
12080   ac_cv_struct_tm=time.h
12081 else
12082   echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085 ac_cv_struct_tm=sys/time.h
12086 fi
12087 rm -f conftest.$ac_objext conftest.$ac_ext
12088 fi
12089 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12090 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12091 if test $ac_cv_struct_tm = sys/time.h; then
12092
12093 cat >>confdefs.h <<\_ACEOF
12094 #define TM_IN_SYS_TIME 1
12095 _ACEOF
12096
12097 fi
12098
12099 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12100 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12101 if test "${ac_cv_c_const+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
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
12112 int
12113 main ()
12114 {
12115 /* FIXME: Include the comments suggested by Paul. */
12116 #ifndef __cplusplus
12117   /* Ultrix mips cc rejects this.  */
12118   typedef int charset[2];
12119   const charset x;
12120   /* SunOS 4.1.1 cc rejects this.  */
12121   char const *const *ccp;
12122   char **p;
12123   /* NEC SVR4.0.2 mips cc rejects this.  */
12124   struct point {int x, y;};
12125   static struct point const zero = {0,0};
12126   /* AIX XL C 1.02.0.0 rejects this.
12127      It does not let you subtract one const X* pointer from another in
12128      an arm of an if-expression whose if-part is not a constant
12129      expression */
12130   const char *g = "string";
12131   ccp = &g + (g ? g-g : 0);
12132   /* HPUX 7.0 cc rejects these. */
12133   ++ccp;
12134   p = (char**) ccp;
12135   ccp = (char const *const *) p;
12136   { /* SCO 3.2v4 cc rejects this.  */
12137     char *t;
12138     char const *s = 0 ? (char *) 0 : (char const *) 0;
12139
12140     *t++ = 0;
12141   }
12142   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12143     int x[] = {25, 17};
12144     const int *foo = &x[0];
12145     ++foo;
12146   }
12147   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12148     typedef const int *iptr;
12149     iptr p = 0;
12150     ++p;
12151   }
12152   { /* AIX XL C 1.02.0.0 rejects this saying
12153        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12154     struct s { int j; const int *ap[3]; };
12155     struct s *b; b->j = 5;
12156   }
12157   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12158     const int foo = 10;
12159   }
12160 #endif
12161
12162   ;
12163   return 0;
12164 }
12165 _ACEOF
12166 rm -f conftest.$ac_objext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12168   (eval $ac_compile) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } &&
12172          { ac_try='test -s conftest.$ac_objext'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; }; then
12178   ac_cv_c_const=yes
12179 else
12180   echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 ac_cv_c_const=no
12184 fi
12185 rm -f conftest.$ac_objext conftest.$ac_ext
12186 fi
12187 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12188 echo "${ECHO_T}$ac_cv_c_const" >&6
12189 if test $ac_cv_c_const = no; then
12190
12191 cat >>confdefs.h <<\_ACEOF
12192 #define const
12193 _ACEOF
12194
12195 fi
12196
12197
12198
12199 echo "$as_me:$LINENO: checking for char" >&5
12200 echo $ECHO_N "checking for char... $ECHO_C" >&6
12201 if test "${ac_cv_type_char+set}" = set; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204   cat >conftest.$ac_ext <<_ACEOF
12205 #line $LINENO "configure"
12206 /* confdefs.h.  */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h.  */
12211 $ac_includes_default
12212 int
12213 main ()
12214 {
12215 if ((char *) 0)
12216   return 0;
12217 if (sizeof (char))
12218   return 0;
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225   (eval $ac_compile) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } &&
12229          { ac_try='test -s conftest.$ac_objext'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; }; then
12235   ac_cv_type_char=yes
12236 else
12237   echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 ac_cv_type_char=no
12241 fi
12242 rm -f conftest.$ac_objext conftest.$ac_ext
12243 fi
12244 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12245 echo "${ECHO_T}$ac_cv_type_char" >&6
12246
12247 echo "$as_me:$LINENO: checking size of char" >&5
12248 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12249 if test "${ac_cv_sizeof_char+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   if test "$ac_cv_type_char" = yes; then
12253   # The cast to unsigned long works around a bug in the HP C Compiler
12254   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12255   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12256   # This bug is HP SR number 8606223364.
12257   if test "$cross_compiling" = yes; then
12258   # Depending upon the size, compute the lo and hi bounds.
12259 cat >conftest.$ac_ext <<_ACEOF
12260 #line $LINENO "configure"
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266 $ac_includes_default
12267 int
12268 main ()
12269 {
12270 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12271 test_array [0] = 0
12272
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279   (eval $ac_compile) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } &&
12283          { ac_try='test -s conftest.$ac_objext'
12284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285   (eval $ac_try) 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); }; }; then
12289   ac_lo=0 ac_mid=0
12290   while :; do
12291     cat >conftest.$ac_ext <<_ACEOF
12292 #line $LINENO "configure"
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298 $ac_includes_default
12299 int
12300 main ()
12301 {
12302 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12303 test_array [0] = 0
12304
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311   (eval $ac_compile) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } &&
12315          { ac_try='test -s conftest.$ac_objext'
12316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317   (eval $ac_try) 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; }; then
12321   ac_hi=$ac_mid; break
12322 else
12323   echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ac_lo=`expr $ac_mid + 1`
12327                     if test $ac_lo -le $ac_mid; then
12328                       ac_lo= ac_hi=
12329                       break
12330                     fi
12331                     ac_mid=`expr 2 '*' $ac_mid + 1`
12332 fi
12333 rm -f conftest.$ac_objext conftest.$ac_ext
12334   done
12335 else
12336   echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12338
12339 cat >conftest.$ac_ext <<_ACEOF
12340 #line $LINENO "configure"
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 $ac_includes_default
12347 int
12348 main ()
12349 {
12350 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12351 test_array [0] = 0
12352
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359   (eval $ac_compile) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -s conftest.$ac_objext'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; }; then
12369   ac_hi=-1 ac_mid=-1
12370   while :; do
12371     cat >conftest.$ac_ext <<_ACEOF
12372 #line $LINENO "configure"
12373 /* confdefs.h.  */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h.  */
12378 $ac_includes_default
12379 int
12380 main ()
12381 {
12382 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12383 test_array [0] = 0
12384
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -s conftest.$ac_objext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_lo=$ac_mid; break
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_hi=`expr '(' $ac_mid ')' - 1`
12407                        if test $ac_mid -le $ac_hi; then
12408                          ac_lo= ac_hi=
12409                          break
12410                        fi
12411                        ac_mid=`expr 2 '*' $ac_mid`
12412 fi
12413 rm -f conftest.$ac_objext conftest.$ac_ext
12414   done
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_lo= ac_hi=
12420 fi
12421 rm -f conftest.$ac_objext conftest.$ac_ext
12422 fi
12423 rm -f conftest.$ac_objext conftest.$ac_ext
12424 # Binary search between lo and hi bounds.
12425 while test "x$ac_lo" != "x$ac_hi"; do
12426   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12427   cat >conftest.$ac_ext <<_ACEOF
12428 #line $LINENO "configure"
12429 /* confdefs.h.  */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h.  */
12434 $ac_includes_default
12435 int
12436 main ()
12437 {
12438 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12439 test_array [0] = 0
12440
12441   ;
12442   return 0;
12443 }
12444 _ACEOF
12445 rm -f conftest.$ac_objext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447   (eval $ac_compile) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } &&
12451          { ac_try='test -s conftest.$ac_objext'
12452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453   (eval $ac_try) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; }; then
12457   ac_hi=$ac_mid
12458 else
12459   echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ac_lo=`expr '(' $ac_mid ')' + 1`
12463 fi
12464 rm -f conftest.$ac_objext conftest.$ac_ext
12465 done
12466 case $ac_lo in
12467 ?*) ac_cv_sizeof_char=$ac_lo;;
12468 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12469 See \`config.log' for more details." >&5
12470 echo "$as_me: error: cannot compute sizeof (char), 77
12471 See \`config.log' for more details." >&2;}
12472    { (exit 1); exit 1; }; } ;;
12473 esac
12474 else
12475   if test "$cross_compiling" = yes; then
12476   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12477 See \`config.log' for more details." >&5
12478 echo "$as_me: error: cannot run test program while cross compiling
12479 See \`config.log' for more details." >&2;}
12480    { (exit 1); exit 1; }; }
12481 else
12482   cat >conftest.$ac_ext <<_ACEOF
12483 #line $LINENO "configure"
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489 $ac_includes_default
12490 long longval () { return (long) (sizeof (char)); }
12491 unsigned long ulongval () { return (long) (sizeof (char)); }
12492 #include <stdio.h>
12493 #include <stdlib.h>
12494 int
12495 main ()
12496 {
12497
12498   FILE *f = fopen ("conftest.val", "w");
12499   if (! f)
12500     exit (1);
12501   if (((long) (sizeof (char))) < 0)
12502     {
12503       long i = longval ();
12504       if (i != ((long) (sizeof (char))))
12505         exit (1);
12506       fprintf (f, "%ld\n", i);
12507     }
12508   else
12509     {
12510       unsigned long i = ulongval ();
12511       if (i != ((long) (sizeof (char))))
12512         exit (1);
12513       fprintf (f, "%lu\n", i);
12514     }
12515   exit (ferror (f) || fclose (f) != 0);
12516
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528   (eval $ac_try) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); }; }; then
12532   ac_cv_sizeof_char=`cat conftest.val`
12533 else
12534   echo "$as_me: program exited with status $ac_status" >&5
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12537
12538 ( exit $ac_status )
12539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12540 See \`config.log' for more details." >&5
12541 echo "$as_me: error: cannot compute sizeof (char), 77
12542 See \`config.log' for more details." >&2;}
12543    { (exit 1); exit 1; }; }
12544 fi
12545 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12546 fi
12547 fi
12548 rm -f conftest.val
12549 else
12550   ac_cv_sizeof_char=0
12551 fi
12552 fi
12553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12554 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12555 cat >>confdefs.h <<_ACEOF
12556 #define SIZEOF_CHAR $ac_cv_sizeof_char
12557 _ACEOF
12558
12559
12560 echo "$as_me:$LINENO: checking for short int" >&5
12561 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12562 if test "${ac_cv_type_short_int+set}" = set; then
12563   echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565   cat >conftest.$ac_ext <<_ACEOF
12566 #line $LINENO "configure"
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572 $ac_includes_default
12573 int
12574 main ()
12575 {
12576 if ((short int *) 0)
12577   return 0;
12578 if (sizeof (short int))
12579   return 0;
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586   (eval $ac_compile) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -s conftest.$ac_objext'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   ac_cv_type_short_int=yes
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 ac_cv_type_short_int=no
12602 fi
12603 rm -f conftest.$ac_objext conftest.$ac_ext
12604 fi
12605 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12606 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12607
12608 echo "$as_me:$LINENO: checking size of short int" >&5
12609 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12610 if test "${ac_cv_sizeof_short_int+set}" = set; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   if test "$ac_cv_type_short_int" = yes; then
12614   # The cast to unsigned long works around a bug in the HP C Compiler
12615   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617   # This bug is HP SR number 8606223364.
12618   if test "$cross_compiling" = yes; then
12619   # Depending upon the size, compute the lo and hi bounds.
12620 cat >conftest.$ac_ext <<_ACEOF
12621 #line $LINENO "configure"
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627 $ac_includes_default
12628 int
12629 main ()
12630 {
12631 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12632 test_array [0] = 0
12633
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640   (eval $ac_compile) 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } &&
12644          { ac_try='test -s conftest.$ac_objext'
12645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646   (eval $ac_try) 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; }; then
12650   ac_lo=0 ac_mid=0
12651   while :; do
12652     cat >conftest.$ac_ext <<_ACEOF
12653 #line $LINENO "configure"
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659 $ac_includes_default
12660 int
12661 main ()
12662 {
12663 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12664 test_array [0] = 0
12665
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672   (eval $ac_compile) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); } &&
12676          { ac_try='test -s conftest.$ac_objext'
12677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678   (eval $ac_try) 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; }; then
12682   ac_hi=$ac_mid; break
12683 else
12684   echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687 ac_lo=`expr $ac_mid + 1`
12688                     if test $ac_lo -le $ac_mid; then
12689                       ac_lo= ac_hi=
12690                       break
12691                     fi
12692                     ac_mid=`expr 2 '*' $ac_mid + 1`
12693 fi
12694 rm -f conftest.$ac_objext conftest.$ac_ext
12695   done
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 cat >conftest.$ac_ext <<_ACEOF
12701 #line $LINENO "configure"
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707 $ac_includes_default
12708 int
12709 main ()
12710 {
12711 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12712 test_array [0] = 0
12713
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720   (eval $ac_compile) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } &&
12724          { ac_try='test -s conftest.$ac_objext'
12725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726   (eval $ac_try) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; }; then
12730   ac_hi=-1 ac_mid=-1
12731   while :; do
12732     cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739 $ac_includes_default
12740 int
12741 main ()
12742 {
12743 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12744 test_array [0] = 0
12745
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752   (eval $ac_compile) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -s conftest.$ac_objext'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762   ac_lo=$ac_mid; break
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ac_hi=`expr '(' $ac_mid ')' - 1`
12768                        if test $ac_mid -le $ac_hi; then
12769                          ac_lo= ac_hi=
12770                          break
12771                        fi
12772                        ac_mid=`expr 2 '*' $ac_mid`
12773 fi
12774 rm -f conftest.$ac_objext conftest.$ac_ext
12775   done
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ac_lo= ac_hi=
12781 fi
12782 rm -f conftest.$ac_objext conftest.$ac_ext
12783 fi
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12785 # Binary search between lo and hi bounds.
12786 while test "x$ac_lo" != "x$ac_hi"; do
12787   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12788   cat >conftest.$ac_ext <<_ACEOF
12789 #line $LINENO "configure"
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12795 $ac_includes_default
12796 int
12797 main ()
12798 {
12799 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12800 test_array [0] = 0
12801
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 rm -f conftest.$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808   (eval $ac_compile) 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } &&
12812          { ac_try='test -s conftest.$ac_objext'
12813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814   (eval $ac_try) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; }; then
12818   ac_hi=$ac_mid
12819 else
12820   echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823 ac_lo=`expr '(' $ac_mid ')' + 1`
12824 fi
12825 rm -f conftest.$ac_objext conftest.$ac_ext
12826 done
12827 case $ac_lo in
12828 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12829 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12830 See \`config.log' for more details." >&5
12831 echo "$as_me: error: cannot compute sizeof (short int), 77
12832 See \`config.log' for more details." >&2;}
12833    { (exit 1); exit 1; }; } ;;
12834 esac
12835 else
12836   if test "$cross_compiling" = yes; then
12837   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12838 See \`config.log' for more details." >&5
12839 echo "$as_me: error: cannot run test program while cross compiling
12840 See \`config.log' for more details." >&2;}
12841    { (exit 1); exit 1; }; }
12842 else
12843   cat >conftest.$ac_ext <<_ACEOF
12844 #line $LINENO "configure"
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 $ac_includes_default
12851 long longval () { return (long) (sizeof (short int)); }
12852 unsigned long ulongval () { return (long) (sizeof (short int)); }
12853 #include <stdio.h>
12854 #include <stdlib.h>
12855 int
12856 main ()
12857 {
12858
12859   FILE *f = fopen ("conftest.val", "w");
12860   if (! f)
12861     exit (1);
12862   if (((long) (sizeof (short int))) < 0)
12863     {
12864       long i = longval ();
12865       if (i != ((long) (sizeof (short int))))
12866         exit (1);
12867       fprintf (f, "%ld\n", i);
12868     }
12869   else
12870     {
12871       unsigned long i = ulongval ();
12872       if (i != ((long) (sizeof (short int))))
12873         exit (1);
12874       fprintf (f, "%lu\n", i);
12875     }
12876   exit (ferror (f) || fclose (f) != 0);
12877
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884   (eval $ac_link) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889   (eval $ac_try) 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; }; then
12893   ac_cv_sizeof_short_int=`cat conftest.val`
12894 else
12895   echo "$as_me: program exited with status $ac_status" >&5
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ( exit $ac_status )
12900 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12901 See \`config.log' for more details." >&5
12902 echo "$as_me: error: cannot compute sizeof (short int), 77
12903 See \`config.log' for more details." >&2;}
12904    { (exit 1); exit 1; }; }
12905 fi
12906 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12907 fi
12908 fi
12909 rm -f conftest.val
12910 else
12911   ac_cv_sizeof_short_int=0
12912 fi
12913 fi
12914 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12915 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12916 cat >>confdefs.h <<_ACEOF
12917 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12918 _ACEOF
12919
12920
12921 echo "$as_me:$LINENO: checking for int" >&5
12922 echo $ECHO_N "checking for int... $ECHO_C" >&6
12923 if test "${ac_cv_type_int+set}" = set; then
12924   echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926   cat >conftest.$ac_ext <<_ACEOF
12927 #line $LINENO "configure"
12928 /* confdefs.h.  */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h.  */
12933 $ac_includes_default
12934 int
12935 main ()
12936 {
12937 if ((int *) 0)
12938   return 0;
12939 if (sizeof (int))
12940   return 0;
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947   (eval $ac_compile) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); } &&
12951          { ac_try='test -s conftest.$ac_objext'
12952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   ac_cv_type_int=yes
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12961
12962 ac_cv_type_int=no
12963 fi
12964 rm -f conftest.$ac_objext conftest.$ac_ext
12965 fi
12966 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12967 echo "${ECHO_T}$ac_cv_type_int" >&6
12968
12969 echo "$as_me:$LINENO: checking size of int" >&5
12970 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12971 if test "${ac_cv_sizeof_int+set}" = set; then
12972   echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974   if test "$ac_cv_type_int" = yes; then
12975   # The cast to unsigned long works around a bug in the HP C Compiler
12976   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12977   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12978   # This bug is HP SR number 8606223364.
12979   if test "$cross_compiling" = yes; then
12980   # Depending upon the size, compute the lo and hi bounds.
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988 $ac_includes_default
12989 int
12990 main ()
12991 {
12992 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12993 test_array [0] = 0
12994
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest.$ac_objext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13001   (eval $ac_compile) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } &&
13005          { ac_try='test -s conftest.$ac_objext'
13006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007   (eval $ac_try) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); }; }; then
13011   ac_lo=0 ac_mid=0
13012   while :; do
13013     cat >conftest.$ac_ext <<_ACEOF
13014 #line $LINENO "configure"
13015 /* confdefs.h.  */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h.  */
13020 $ac_includes_default
13021 int
13022 main ()
13023 {
13024 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13025 test_array [0] = 0
13026
13027   ;
13028   return 0;
13029 }
13030 _ACEOF
13031 rm -f conftest.$ac_objext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13033   (eval $ac_compile) 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } &&
13037          { ac_try='test -s conftest.$ac_objext'
13038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039   (eval $ac_try) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; }; then
13043   ac_hi=$ac_mid; break
13044 else
13045   echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048 ac_lo=`expr $ac_mid + 1`
13049                     if test $ac_lo -le $ac_mid; then
13050                       ac_lo= ac_hi=
13051                       break
13052                     fi
13053                     ac_mid=`expr 2 '*' $ac_mid + 1`
13054 fi
13055 rm -f conftest.$ac_objext conftest.$ac_ext
13056   done
13057 else
13058   echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061 cat >conftest.$ac_ext <<_ACEOF
13062 #line $LINENO "configure"
13063 /* confdefs.h.  */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h.  */
13068 $ac_includes_default
13069 int
13070 main ()
13071 {
13072 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13073 test_array [0] = 0
13074
13075   ;
13076   return 0;
13077 }
13078 _ACEOF
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081   (eval $ac_compile) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); } &&
13085          { ac_try='test -s conftest.$ac_objext'
13086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087   (eval $ac_try) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); }; }; then
13091   ac_hi=-1 ac_mid=-1
13092   while :; do
13093     cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100 $ac_includes_default
13101 int
13102 main ()
13103 {
13104 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13105 test_array [0] = 0
13106
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113   (eval $ac_compile) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -s conftest.$ac_objext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   ac_lo=$ac_mid; break
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ac_hi=`expr '(' $ac_mid ')' - 1`
13129                        if test $ac_mid -le $ac_hi; then
13130                          ac_lo= ac_hi=
13131                          break
13132                        fi
13133                        ac_mid=`expr 2 '*' $ac_mid`
13134 fi
13135 rm -f conftest.$ac_objext conftest.$ac_ext
13136   done
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 ac_lo= ac_hi=
13142 fi
13143 rm -f conftest.$ac_objext conftest.$ac_ext
13144 fi
13145 rm -f conftest.$ac_objext conftest.$ac_ext
13146 # Binary search between lo and hi bounds.
13147 while test "x$ac_lo" != "x$ac_hi"; do
13148   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13149   cat >conftest.$ac_ext <<_ACEOF
13150 #line $LINENO "configure"
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 $ac_includes_default
13157 int
13158 main ()
13159 {
13160 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13161 test_array [0] = 0
13162
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169   (eval $ac_compile) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } &&
13173          { ac_try='test -s conftest.$ac_objext'
13174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175   (eval $ac_try) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; }; then
13179   ac_hi=$ac_mid
13180 else
13181   echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184 ac_lo=`expr '(' $ac_mid ')' + 1`
13185 fi
13186 rm -f conftest.$ac_objext conftest.$ac_ext
13187 done
13188 case $ac_lo in
13189 ?*) ac_cv_sizeof_int=$ac_lo;;
13190 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13191 See \`config.log' for more details." >&5
13192 echo "$as_me: error: cannot compute sizeof (int), 77
13193 See \`config.log' for more details." >&2;}
13194    { (exit 1); exit 1; }; } ;;
13195 esac
13196 else
13197   if test "$cross_compiling" = yes; then
13198   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13199 See \`config.log' for more details." >&5
13200 echo "$as_me: error: cannot run test program while cross compiling
13201 See \`config.log' for more details." >&2;}
13202    { (exit 1); exit 1; }; }
13203 else
13204   cat >conftest.$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13206 /* confdefs.h.  */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h.  */
13211 $ac_includes_default
13212 long longval () { return (long) (sizeof (int)); }
13213 unsigned long ulongval () { return (long) (sizeof (int)); }
13214 #include <stdio.h>
13215 #include <stdlib.h>
13216 int
13217 main ()
13218 {
13219
13220   FILE *f = fopen ("conftest.val", "w");
13221   if (! f)
13222     exit (1);
13223   if (((long) (sizeof (int))) < 0)
13224     {
13225       long i = longval ();
13226       if (i != ((long) (sizeof (int))))
13227         exit (1);
13228       fprintf (f, "%ld\n", i);
13229     }
13230   else
13231     {
13232       unsigned long i = ulongval ();
13233       if (i != ((long) (sizeof (int))))
13234         exit (1);
13235       fprintf (f, "%lu\n", i);
13236     }
13237   exit (ferror (f) || fclose (f) != 0);
13238
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 rm -f conftest$ac_exeext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245   (eval $ac_link) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   ac_cv_sizeof_int=`cat conftest.val`
13255 else
13256   echo "$as_me: program exited with status $ac_status" >&5
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ( exit $ac_status )
13261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13262 See \`config.log' for more details." >&5
13263 echo "$as_me: error: cannot compute sizeof (int), 77
13264 See \`config.log' for more details." >&2;}
13265    { (exit 1); exit 1; }; }
13266 fi
13267 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13268 fi
13269 fi
13270 rm -f conftest.val
13271 else
13272   ac_cv_sizeof_int=0
13273 fi
13274 fi
13275 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13276 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13277 cat >>confdefs.h <<_ACEOF
13278 #define SIZEOF_INT $ac_cv_sizeof_int
13279 _ACEOF
13280
13281
13282 echo "$as_me:$LINENO: checking for long int" >&5
13283 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13284 if test "${ac_cv_type_long_int+set}" = set; then
13285   echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287   cat >conftest.$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 $ac_includes_default
13295 int
13296 main ()
13297 {
13298 if ((long int *) 0)
13299   return 0;
13300 if (sizeof (long int))
13301   return 0;
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308   (eval $ac_compile) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } &&
13312          { ac_try='test -s conftest.$ac_objext'
13313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314   (eval $ac_try) 2>&5
13315   ac_status=$?
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); }; }; then
13318   ac_cv_type_long_int=yes
13319 else
13320   echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13322
13323 ac_cv_type_long_int=no
13324 fi
13325 rm -f conftest.$ac_objext conftest.$ac_ext
13326 fi
13327 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13328 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13329
13330 echo "$as_me:$LINENO: checking size of long int" >&5
13331 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13332 if test "${ac_cv_sizeof_long_int+set}" = set; then
13333   echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335   if test "$ac_cv_type_long_int" = yes; then
13336   # The cast to unsigned long works around a bug in the HP C Compiler
13337   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13338   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13339   # This bug is HP SR number 8606223364.
13340   if test "$cross_compiling" = yes; then
13341   # Depending upon the size, compute the lo and hi bounds.
13342 cat >conftest.$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349 $ac_includes_default
13350 int
13351 main ()
13352 {
13353 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13354 test_array [0] = 0
13355
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest.$ac_objext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13362   (eval $ac_compile) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } &&
13366          { ac_try='test -s conftest.$ac_objext'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   ac_lo=0 ac_mid=0
13373   while :; do
13374     cat >conftest.$ac_ext <<_ACEOF
13375 #line $LINENO "configure"
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381 $ac_includes_default
13382 int
13383 main ()
13384 {
13385 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13386 test_array [0] = 0
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 rm -f conftest.$ac_objext
13393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13394   (eval $ac_compile) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); } &&
13398          { ac_try='test -s conftest.$ac_objext'
13399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400   (eval $ac_try) 2>&5
13401   ac_status=$?
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); }; }; then
13404   ac_hi=$ac_mid; break
13405 else
13406   echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409 ac_lo=`expr $ac_mid + 1`
13410                     if test $ac_lo -le $ac_mid; then
13411                       ac_lo= ac_hi=
13412                       break
13413                     fi
13414                     ac_mid=`expr 2 '*' $ac_mid + 1`
13415 fi
13416 rm -f conftest.$ac_objext conftest.$ac_ext
13417   done
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 cat >conftest.$ac_ext <<_ACEOF
13423 #line $LINENO "configure"
13424 /* confdefs.h.  */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h.  */
13429 $ac_includes_default
13430 int
13431 main ()
13432 {
13433 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13434 test_array [0] = 0
13435
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442   (eval $ac_compile) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } &&
13446          { ac_try='test -s conftest.$ac_objext'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452   ac_hi=-1 ac_mid=-1
13453   while :; do
13454     cat >conftest.$ac_ext <<_ACEOF
13455 #line $LINENO "configure"
13456 /* confdefs.h.  */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h.  */
13461 $ac_includes_default
13462 int
13463 main ()
13464 {
13465 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13466 test_array [0] = 0
13467
13468   ;
13469   return 0;
13470 }
13471 _ACEOF
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474   (eval $ac_compile) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } &&
13478          { ac_try='test -s conftest.$ac_objext'
13479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480   (eval $ac_try) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; }; then
13484   ac_lo=$ac_mid; break
13485 else
13486   echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ac_hi=`expr '(' $ac_mid ')' - 1`
13490                        if test $ac_mid -le $ac_hi; then
13491                          ac_lo= ac_hi=
13492                          break
13493                        fi
13494                        ac_mid=`expr 2 '*' $ac_mid`
13495 fi
13496 rm -f conftest.$ac_objext conftest.$ac_ext
13497   done
13498 else
13499   echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 ac_lo= ac_hi=
13503 fi
13504 rm -f conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 rm -f conftest.$ac_objext conftest.$ac_ext
13507 # Binary search between lo and hi bounds.
13508 while test "x$ac_lo" != "x$ac_hi"; do
13509   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13510   cat >conftest.$ac_ext <<_ACEOF
13511 #line $LINENO "configure"
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 int
13519 main ()
13520 {
13521 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13522 test_array [0] = 0
13523
13524   ;
13525   return 0;
13526 }
13527 _ACEOF
13528 rm -f conftest.$ac_objext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530   (eval $ac_compile) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); } &&
13534          { ac_try='test -s conftest.$ac_objext'
13535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536   (eval $ac_try) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }; }; then
13540   ac_hi=$ac_mid
13541 else
13542   echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 ac_lo=`expr '(' $ac_mid ')' + 1`
13546 fi
13547 rm -f conftest.$ac_objext conftest.$ac_ext
13548 done
13549 case $ac_lo in
13550 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13551 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13552 See \`config.log' for more details." >&5
13553 echo "$as_me: error: cannot compute sizeof (long int), 77
13554 See \`config.log' for more details." >&2;}
13555    { (exit 1); exit 1; }; } ;;
13556 esac
13557 else
13558   if test "$cross_compiling" = yes; then
13559   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13560 See \`config.log' for more details." >&5
13561 echo "$as_me: error: cannot run test program while cross compiling
13562 See \`config.log' for more details." >&2;}
13563    { (exit 1); exit 1; }; }
13564 else
13565   cat >conftest.$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13567 /* confdefs.h.  */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h.  */
13572 $ac_includes_default
13573 long longval () { return (long) (sizeof (long int)); }
13574 unsigned long ulongval () { return (long) (sizeof (long int)); }
13575 #include <stdio.h>
13576 #include <stdlib.h>
13577 int
13578 main ()
13579 {
13580
13581   FILE *f = fopen ("conftest.val", "w");
13582   if (! f)
13583     exit (1);
13584   if (((long) (sizeof (long int))) < 0)
13585     {
13586       long i = longval ();
13587       if (i != ((long) (sizeof (long int))))
13588         exit (1);
13589       fprintf (f, "%ld\n", i);
13590     }
13591   else
13592     {
13593       unsigned long i = ulongval ();
13594       if (i != ((long) (sizeof (long int))))
13595         exit (1);
13596       fprintf (f, "%lu\n", i);
13597     }
13598   exit (ferror (f) || fclose (f) != 0);
13599
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606   (eval $ac_link) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   ac_cv_sizeof_long_int=`cat conftest.val`
13616 else
13617   echo "$as_me: program exited with status $ac_status" >&5
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ( exit $ac_status )
13622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13623 See \`config.log' for more details." >&5
13624 echo "$as_me: error: cannot compute sizeof (long int), 77
13625 See \`config.log' for more details." >&2;}
13626    { (exit 1); exit 1; }; }
13627 fi
13628 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13629 fi
13630 fi
13631 rm -f conftest.val
13632 else
13633   ac_cv_sizeof_long_int=0
13634 fi
13635 fi
13636 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13637 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13638 cat >>confdefs.h <<_ACEOF
13639 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13640 _ACEOF
13641
13642
13643 echo "$as_me:$LINENO: checking for long long int" >&5
13644 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13645 if test "${ac_cv_type_long_long_int+set}" = set; then
13646   echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648   cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 /* confdefs.h.  */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h.  */
13655 $ac_includes_default
13656 int
13657 main ()
13658 {
13659 if ((long long int *) 0)
13660   return 0;
13661 if (sizeof (long long int))
13662   return 0;
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669   (eval $ac_compile) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -s conftest.$ac_objext'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; }; then
13679   ac_cv_type_long_long_int=yes
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684 ac_cv_type_long_long_int=no
13685 fi
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13687 fi
13688 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13689 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13690
13691 echo "$as_me:$LINENO: checking size of long long int" >&5
13692 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13693 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696   if test "$ac_cv_type_long_long_int" = yes; then
13697   # The cast to unsigned long works around a bug in the HP C Compiler
13698   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13699   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13700   # This bug is HP SR number 8606223364.
13701   if test "$cross_compiling" = yes; then
13702   # Depending upon the size, compute the lo and hi bounds.
13703 cat >conftest.$ac_ext <<_ACEOF
13704 #line $LINENO "configure"
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710 $ac_includes_default
13711 int
13712 main ()
13713 {
13714 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13715 test_array [0] = 0
13716
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723   (eval $ac_compile) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } &&
13727          { ac_try='test -s conftest.$ac_objext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_lo=0 ac_mid=0
13734   while :; do
13735     cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 $ac_includes_default
13743 int
13744 main ()
13745 {
13746 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13747 test_array [0] = 0
13748
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755   (eval $ac_compile) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } &&
13759          { ac_try='test -s conftest.$ac_objext'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; }; then
13765   ac_hi=$ac_mid; break
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770 ac_lo=`expr $ac_mid + 1`
13771                     if test $ac_lo -le $ac_mid; then
13772                       ac_lo= ac_hi=
13773                       break
13774                     fi
13775                     ac_mid=`expr 2 '*' $ac_mid + 1`
13776 fi
13777 rm -f conftest.$ac_objext conftest.$ac_ext
13778   done
13779 else
13780   echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 cat >conftest.$ac_ext <<_ACEOF
13784 #line $LINENO "configure"
13785 /* confdefs.h.  */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h.  */
13790 $ac_includes_default
13791 int
13792 main ()
13793 {
13794 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13795 test_array [0] = 0
13796
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803   (eval $ac_compile) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); } &&
13807          { ac_try='test -s conftest.$ac_objext'
13808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809   (eval $ac_try) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813   ac_hi=-1 ac_mid=-1
13814   while :; do
13815     cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13817 /* confdefs.h.  */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h.  */
13822 $ac_includes_default
13823 int
13824 main ()
13825 {
13826 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13827 test_array [0] = 0
13828
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835   (eval $ac_compile) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -s conftest.$ac_objext'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845   ac_lo=$ac_mid; break
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 ac_hi=`expr '(' $ac_mid ')' - 1`
13851                        if test $ac_mid -le $ac_hi; then
13852                          ac_lo= ac_hi=
13853                          break
13854                        fi
13855                        ac_mid=`expr 2 '*' $ac_mid`
13856 fi
13857 rm -f conftest.$ac_objext conftest.$ac_ext
13858   done
13859 else
13860   echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 ac_lo= ac_hi=
13864 fi
13865 rm -f conftest.$ac_objext conftest.$ac_ext
13866 fi
13867 rm -f conftest.$ac_objext conftest.$ac_ext
13868 # Binary search between lo and hi bounds.
13869 while test "x$ac_lo" != "x$ac_hi"; do
13870   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13871   cat >conftest.$ac_ext <<_ACEOF
13872 #line $LINENO "configure"
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878 $ac_includes_default
13879 int
13880 main ()
13881 {
13882 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13883 test_array [0] = 0
13884
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891   (eval $ac_compile) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } &&
13895          { ac_try='test -s conftest.$ac_objext'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; }; then
13901   ac_hi=$ac_mid
13902 else
13903   echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 ac_lo=`expr '(' $ac_mid ')' + 1`
13907 fi
13908 rm -f conftest.$ac_objext conftest.$ac_ext
13909 done
13910 case $ac_lo in
13911 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13912 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13913 See \`config.log' for more details." >&5
13914 echo "$as_me: error: cannot compute sizeof (long long int), 77
13915 See \`config.log' for more details." >&2;}
13916    { (exit 1); exit 1; }; } ;;
13917 esac
13918 else
13919   if test "$cross_compiling" = yes; then
13920   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13921 See \`config.log' for more details." >&5
13922 echo "$as_me: error: cannot run test program while cross compiling
13923 See \`config.log' for more details." >&2;}
13924    { (exit 1); exit 1; }; }
13925 else
13926   cat >conftest.$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13928 /* confdefs.h.  */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h.  */
13933 $ac_includes_default
13934 long longval () { return (long) (sizeof (long long int)); }
13935 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13936 #include <stdio.h>
13937 #include <stdlib.h>
13938 int
13939 main ()
13940 {
13941
13942   FILE *f = fopen ("conftest.val", "w");
13943   if (! f)
13944     exit (1);
13945   if (((long) (sizeof (long long int))) < 0)
13946     {
13947       long i = longval ();
13948       if (i != ((long) (sizeof (long long int))))
13949         exit (1);
13950       fprintf (f, "%ld\n", i);
13951     }
13952   else
13953     {
13954       unsigned long i = ulongval ();
13955       if (i != ((long) (sizeof (long long int))))
13956         exit (1);
13957       fprintf (f, "%lu\n", i);
13958     }
13959   exit (ferror (f) || fclose (f) != 0);
13960
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967   (eval $ac_link) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972   (eval $ac_try) 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); }; }; then
13976   ac_cv_sizeof_long_long_int=`cat conftest.val`
13977 else
13978   echo "$as_me: program exited with status $ac_status" >&5
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 ( exit $ac_status )
13983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13984 See \`config.log' for more details." >&5
13985 echo "$as_me: error: cannot compute sizeof (long long int), 77
13986 See \`config.log' for more details." >&2;}
13987    { (exit 1); exit 1; }; }
13988 fi
13989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13990 fi
13991 fi
13992 rm -f conftest.val
13993 else
13994   ac_cv_sizeof_long_long_int=0
13995 fi
13996 fi
13997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13998 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13999 cat >>confdefs.h <<_ACEOF
14000 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14001 _ACEOF
14002
14003
14004 echo "$as_me:$LINENO: checking for int *" >&5
14005 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14006 if test "${ac_cv_type_int_p+set}" = set; then
14007   echo $ECHO_N "(cached) $ECHO_C" >&6
14008 else
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 $ac_includes_default
14017 int
14018 main ()
14019 {
14020 if ((int * *) 0)
14021   return 0;
14022 if (sizeof (int *))
14023   return 0;
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030   (eval $ac_compile) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -s conftest.$ac_objext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_cv_type_int_p=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 ac_cv_type_int_p=no
14046 fi
14047 rm -f conftest.$ac_objext conftest.$ac_ext
14048 fi
14049 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14050 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14051
14052 echo "$as_me:$LINENO: checking size of int *" >&5
14053 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14054 if test "${ac_cv_sizeof_int_p+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   if test "$ac_cv_type_int_p" = yes; then
14058   # The cast to unsigned long works around a bug in the HP C Compiler
14059   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14060   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14061   # This bug is HP SR number 8606223364.
14062   if test "$cross_compiling" = yes; then
14063   # Depending upon the size, compute the lo and hi bounds.
14064 cat >conftest.$ac_ext <<_ACEOF
14065 #line $LINENO "configure"
14066 /* confdefs.h.  */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h.  */
14071 $ac_includes_default
14072 int
14073 main ()
14074 {
14075 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14076 test_array [0] = 0
14077
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 rm -f conftest.$ac_objext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084   (eval $ac_compile) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); } &&
14088          { ac_try='test -s conftest.$ac_objext'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   ac_lo=0 ac_mid=0
14095   while :; do
14096     cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 /* confdefs.h.  */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h.  */
14103 $ac_includes_default
14104 int
14105 main ()
14106 {
14107 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14108 test_array [0] = 0
14109
14110   ;
14111   return 0;
14112 }
14113 _ACEOF
14114 rm -f conftest.$ac_objext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116   (eval $ac_compile) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } &&
14120          { ac_try='test -s conftest.$ac_objext'
14121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122   (eval $ac_try) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }; }; then
14126   ac_hi=$ac_mid; break
14127 else
14128   echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14130
14131 ac_lo=`expr $ac_mid + 1`
14132                     if test $ac_lo -le $ac_mid; then
14133                       ac_lo= ac_hi=
14134                       break
14135                     fi
14136                     ac_mid=`expr 2 '*' $ac_mid + 1`
14137 fi
14138 rm -f conftest.$ac_objext conftest.$ac_ext
14139   done
14140 else
14141   echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14143
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 $ac_includes_default
14152 int
14153 main ()
14154 {
14155 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14156 test_array [0] = 0
14157
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164   (eval $ac_compile) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } &&
14168          { ac_try='test -s conftest.$ac_objext'
14169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170   (eval $ac_try) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); }; }; then
14174   ac_hi=-1 ac_mid=-1
14175   while :; do
14176     cat >conftest.$ac_ext <<_ACEOF
14177 #line $LINENO "configure"
14178 /* confdefs.h.  */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h.  */
14183 $ac_includes_default
14184 int
14185 main ()
14186 {
14187 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14188 test_array [0] = 0
14189
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196   (eval $ac_compile) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } &&
14200          { ac_try='test -s conftest.$ac_objext'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }; then
14206   ac_lo=$ac_mid; break
14207 else
14208   echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211 ac_hi=`expr '(' $ac_mid ')' - 1`
14212                        if test $ac_mid -le $ac_hi; then
14213                          ac_lo= ac_hi=
14214                          break
14215                        fi
14216                        ac_mid=`expr 2 '*' $ac_mid`
14217 fi
14218 rm -f conftest.$ac_objext conftest.$ac_ext
14219   done
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 ac_lo= ac_hi=
14225 fi
14226 rm -f conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 rm -f conftest.$ac_objext conftest.$ac_ext
14229 # Binary search between lo and hi bounds.
14230 while test "x$ac_lo" != "x$ac_hi"; do
14231   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14232   cat >conftest.$ac_ext <<_ACEOF
14233 #line $LINENO "configure"
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 $ac_includes_default
14240 int
14241 main ()
14242 {
14243 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14244 test_array [0] = 0
14245
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_hi=$ac_mid
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267 ac_lo=`expr '(' $ac_mid ')' + 1`
14268 fi
14269 rm -f conftest.$ac_objext conftest.$ac_ext
14270 done
14271 case $ac_lo in
14272 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14273 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14274 See \`config.log' for more details." >&5
14275 echo "$as_me: error: cannot compute sizeof (int *), 77
14276 See \`config.log' for more details." >&2;}
14277    { (exit 1); exit 1; }; } ;;
14278 esac
14279 else
14280   if test "$cross_compiling" = yes; then
14281   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14282 See \`config.log' for more details." >&5
14283 echo "$as_me: error: cannot run test program while cross compiling
14284 See \`config.log' for more details." >&2;}
14285    { (exit 1); exit 1; }; }
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 #line $LINENO "configure"
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 $ac_includes_default
14295 long longval () { return (long) (sizeof (int *)); }
14296 unsigned long ulongval () { return (long) (sizeof (int *)); }
14297 #include <stdio.h>
14298 #include <stdlib.h>
14299 int
14300 main ()
14301 {
14302
14303   FILE *f = fopen ("conftest.val", "w");
14304   if (! f)
14305     exit (1);
14306   if (((long) (sizeof (int *))) < 0)
14307     {
14308       long i = longval ();
14309       if (i != ((long) (sizeof (int *))))
14310         exit (1);
14311       fprintf (f, "%ld\n", i);
14312     }
14313   else
14314     {
14315       unsigned long i = ulongval ();
14316       if (i != ((long) (sizeof (int *))))
14317         exit (1);
14318       fprintf (f, "%lu\n", i);
14319     }
14320   exit (ferror (f) || fclose (f) != 0);
14321
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328   (eval $ac_link) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_cv_sizeof_int_p=`cat conftest.val`
14338 else
14339   echo "$as_me: program exited with status $ac_status" >&5
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 ( exit $ac_status )
14344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14345 See \`config.log' for more details." >&5
14346 echo "$as_me: error: cannot compute sizeof (int *), 77
14347 See \`config.log' for more details." >&2;}
14348    { (exit 1); exit 1; }; }
14349 fi
14350 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 fi
14353 rm -f conftest.val
14354 else
14355   ac_cv_sizeof_int_p=0
14356 fi
14357 fi
14358 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14359 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14360 cat >>confdefs.h <<_ACEOF
14361 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14362 _ACEOF
14363
14364
14365
14366 # Check for sys/types.h types
14367 echo "$as_me:$LINENO: checking for u_int type" >&5
14368 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14369 if test "${ac_cv_have_u_int+set}" = set; then
14370   echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372
14373     cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380  #include <sys/types.h>
14381 int
14382 main ()
14383 {
14384  u_int a; a = 1;
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest.$ac_objext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14391   (eval $ac_compile) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -s conftest.$ac_objext'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; }; then
14401    ac_cv_have_u_int="yes"
14402 else
14403   echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14405
14406  ac_cv_have_u_int="no"
14407
14408 fi
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14410
14411 fi
14412 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14413 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14414 if test "x$ac_cv_have_u_int" = "xyes" ; then
14415    cat >>confdefs.h <<\_ACEOF
14416 #define HAVE_U_INT 1
14417 _ACEOF
14418
14419    have_u_int=1
14420 fi
14421
14422 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14423 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14424 if test "${ac_cv_have_intmax_t+set}" = set; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427
14428    cat >conftest.$ac_ext <<_ACEOF
14429 #line $LINENO "configure"
14430 /* confdefs.h.  */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h.  */
14435  #include <sys/types.h>
14436 int
14437 main ()
14438 {
14439  intmax_t a; a = 1;
14440   ;
14441   return 0;
14442 }
14443 _ACEOF
14444 rm -f conftest.$ac_objext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14446   (eval $ac_compile) 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } &&
14450          { ac_try='test -s conftest.$ac_objext'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; }; then
14456    ac_cv_have_intmax_t="yes"
14457 else
14458   echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461
14462          cat >conftest.$ac_ext <<_ACEOF
14463 #line $LINENO "configure"
14464 /* confdefs.h.  */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h.  */
14469  #include <stdint.h>
14470 int
14471 main ()
14472 {
14473  intmax_t a; a = 1;
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480   (eval $ac_compile) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -s conftest.$ac_objext'
14485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486   (eval $ac_try) 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; }; then
14490    ac_cv_have_intmax_t="yes"
14491 else
14492   echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495  ac_cv_have_intmax_t="no"
14496
14497 fi
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14499
14500
14501 fi
14502 rm -f conftest.$ac_objext conftest.$ac_ext
14503
14504
14505 fi
14506 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14507 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14508 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14509    cat >>confdefs.h <<\_ACEOF
14510 #define HAVE_INTMAX_T 1
14511 _ACEOF
14512
14513    have_intmax_t=1
14514 fi
14515
14516
14517 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14518 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14519 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14520   echo $ECHO_N "(cached) $ECHO_C" >&6
14521 else
14522
14523    cat >conftest.$ac_ext <<_ACEOF
14524 #line $LINENO "configure"
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530  #include <sys/types.h>
14531 int
14532 main ()
14533 {
14534  u_intmax_t a; a = 1;
14535   ;
14536   return 0;
14537 }
14538 _ACEOF
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541   (eval $ac_compile) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); } &&
14545          { ac_try='test -s conftest.$ac_objext'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551    ac_cv_have_u_intmax_t="yes"
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556
14557          cat >conftest.$ac_ext <<_ACEOF
14558 #line $LINENO "configure"
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564  #include <stdint.h>
14565 int
14566 main ()
14567 {
14568  u_intmax_t a; a = 1;
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575   (eval $ac_compile) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -s conftest.$ac_objext'
14580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581   (eval $ac_try) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; }; then
14585    ac_cv_have_u_intmax_t="yes"
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590  ac_cv_have_u_intmax_t="no"
14591
14592 fi
14593 rm -f conftest.$ac_objext conftest.$ac_ext
14594
14595
14596 fi
14597 rm -f conftest.$ac_objext conftest.$ac_ext
14598
14599 fi
14600 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14601 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14602 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14603    cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_U_INTMAX_T 1
14605 _ACEOF
14606
14607    have_u_intmax_t=1
14608 fi
14609
14610
14611 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14612 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14613 if test "${ac_cv_have_intxx_t+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616
14617    cat >conftest.$ac_ext <<_ACEOF
14618 #line $LINENO "configure"
14619 /* confdefs.h.  */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h.  */
14624  #include <sys/types.h>
14625 int
14626 main ()
14627 {
14628  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14629   ;
14630   return 0;
14631 }
14632 _ACEOF
14633 rm -f conftest.$ac_objext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635   (eval $ac_compile) 2>&5
14636   ac_status=$?
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } &&
14639          { ac_try='test -s conftest.$ac_objext'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; }; then
14645    ac_cv_have_intxx_t="yes"
14646 else
14647   echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14649
14650  ac_cv_have_intxx_t="no"
14651
14652 fi
14653 rm -f conftest.$ac_objext conftest.$ac_ext
14654
14655 fi
14656 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14657 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14658 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14659    cat >>confdefs.h <<\_ACEOF
14660 #define HAVE_INTXX_T 1
14661 _ACEOF
14662
14663    have_intxx_t=1
14664 fi
14665
14666 echo "$as_me:$LINENO: checking for int64_t type" >&5
14667 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14668 if test "${ac_cv_have_int64_t+set}" = set; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671
14672    cat >conftest.$ac_ext <<_ACEOF
14673 #line $LINENO "configure"
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679  #include <sys/types.h>
14680 int
14681 main ()
14682 {
14683  int64_t a; a = 1;
14684   ;
14685   return 0;
14686 }
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690   (eval $ac_compile) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); } &&
14694          { ac_try='test -s conftest.$ac_objext'
14695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696   (eval $ac_try) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); }; }; then
14700    ac_cv_have_int64_t="yes"
14701 else
14702   echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14704
14705  ac_cv_have_int64_t="no"
14706
14707 fi
14708 rm -f conftest.$ac_objext conftest.$ac_ext
14709
14710 fi
14711 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14712 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14713 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14714    cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_INT64_T 1
14716 _ACEOF
14717
14718    have_int64_t=1
14719 fi
14720
14721 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14722 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14723 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726
14727    cat >conftest.$ac_ext <<_ACEOF
14728 #line $LINENO "configure"
14729 /* confdefs.h.  */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h.  */
14734  #include <sys/types.h>
14735 int
14736 main ()
14737 {
14738  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745   (eval $ac_compile) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -s conftest.$ac_objext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755    ac_cv_have_u_intxx_t="yes"
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760  ac_cv_have_u_intxx_t="no"
14761
14762 fi
14763 rm -f conftest.$ac_objext conftest.$ac_ext
14764
14765 fi
14766 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14767 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14768 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14769    cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_U_INTXX_T 1
14771 _ACEOF
14772
14773    have_u_intxx_t=1
14774 fi
14775
14776 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14777 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14778 if test "${ac_cv_have_u_int64_t+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781
14782    cat >conftest.$ac_ext <<_ACEOF
14783 #line $LINENO "configure"
14784 /* confdefs.h.  */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h.  */
14789  #include <sys/types.h>
14790 int
14791 main ()
14792 {
14793  u_int64_t a; a = 1;
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800   (eval $ac_compile) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -s conftest.$ac_objext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810    ac_cv_have_u_int64_t="yes"
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815  ac_cv_have_u_int64_t="no"
14816
14817 fi
14818 rm -f conftest.$ac_objext conftest.$ac_ext
14819
14820 fi
14821 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14822 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14823 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14824    cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_U_INT64_T 1
14826 _ACEOF
14827
14828    have_u_int64_t=1
14829 fi
14830
14831 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14832            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14833 then
14834    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14835 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14836    cat >conftest.$ac_ext <<_ACEOF
14837 #line $LINENO "configure"
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843  #include <sys/bitypes.h>
14844 int
14845 main ()
14846 {
14847  int8_t a; int16_t b; int32_t c;
14848         u_int8_t e; u_int16_t f; u_int32_t g;
14849         a = b = c = e = f = g = 1;
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856   (eval $ac_compile) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); } &&
14860          { ac_try='test -s conftest.$ac_objext'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; }; then
14866    cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_U_INTXX_T 1
14868 _ACEOF
14869
14870         cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_INTXX_T 1
14872 _ACEOF
14873
14874         cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_SYS_BITYPES_H 1
14876 _ACEOF
14877
14878         echo "$as_me:$LINENO: result: yes" >&5
14879 echo "${ECHO_T}yes" >&6
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884  echo "$as_me:$LINENO: result: no" >&5
14885 echo "${ECHO_T}no" >&6
14886
14887 fi
14888 rm -f conftest.$ac_objext conftest.$ac_ext
14889 fi
14890
14891 if test -z "$have_u_intxx_t" ; then
14892    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14893 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14894 if test "${ac_cv_have_uintxx_t+set}" = set; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897
14898       cat >conftest.$ac_ext <<_ACEOF
14899 #line $LINENO "configure"
14900 /* confdefs.h.  */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h.  */
14905  #include <sys/types.h>
14906 int
14907 main ()
14908 {
14909  uint8_t a; uint16_t b;
14910            uint32_t c; a = b = c = 1;
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917   (eval $ac_compile) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } &&
14921          { ac_try='test -s conftest.$ac_objext'
14922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923   (eval $ac_try) 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; }; then
14927    ac_cv_have_uintxx_t="yes"
14928 else
14929   echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932  ac_cv_have_uintxx_t="no"
14933
14934 fi
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14936
14937 fi
14938 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14939 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14940    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14941       cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_UINTXX_T 1
14943 _ACEOF
14944
14945    fi
14946 fi
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962 for ac_func in \
14963         fork \
14964         getcwd \
14965         gethostname \
14966         getpid \
14967         gettimeofday \
14968         setpgid \
14969         setpgrp \
14970         setsid \
14971         signal \
14972         strerror \
14973         strncmp \
14974         strncpy \
14975         vfprintf \
14976
14977 do
14978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14979 echo "$as_me:$LINENO: checking for $ac_func" >&5
14980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14981 if eval "test \"\${$as_ac_var+set}\" = set"; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14986 /* confdefs.h.  */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h.  */
14991 /* System header to define __stub macros and hopefully few prototypes,
14992     which can conflict with char $ac_func (); below.
14993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14994     <limits.h> exists even on freestanding compilers.  */
14995 #ifdef __STDC__
14996 # include <limits.h>
14997 #else
14998 # include <assert.h>
14999 #endif
15000 /* Override any gcc2 internal prototype to avoid an error.  */
15001 #ifdef __cplusplus
15002 extern "C"
15003 {
15004 #endif
15005 /* We use char because int might match the return type of a gcc2
15006    builtin and then its argument prototype would still apply.  */
15007 char $ac_func ();
15008 /* The GNU C library defines this for functions which it implements
15009     to always fail with ENOSYS.  Some functions are actually named
15010     something starting with __ and the normal name is an alias.  */
15011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15012 choke me
15013 #else
15014 char (*f) () = $ac_func;
15015 #endif
15016 #ifdef __cplusplus
15017 }
15018 #endif
15019
15020 int
15021 main ()
15022 {
15023 return f != $ac_func;
15024   ;
15025   return 0;
15026 }
15027 _ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15030   (eval $ac_link) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); } &&
15034          { ac_try='test -s conftest$ac_exeext'
15035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036   (eval $ac_try) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; }; then
15040   eval "$as_ac_var=yes"
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045 eval "$as_ac_var=no"
15046 fi
15047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15048 fi
15049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15051 if test `eval echo '${'$as_ac_var'}'` = yes; then
15052   cat >>confdefs.h <<_ACEOF
15053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15054 _ACEOF
15055
15056 else
15057   echo 'configure: cannot find needed function.'; exit 1
15058
15059 fi
15060 done
15061
15062
15063
15064 for ac_func in fchdir
15065 do
15066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 echo "$as_me:$LINENO: checking for $ac_func" >&5
15068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15069 if eval "test \"\${$as_ac_var+set}\" = set"; then
15070   echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072   cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079 /* System header to define __stub macros and hopefully few prototypes,
15080     which can conflict with char $ac_func (); below.
15081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15082     <limits.h> exists even on freestanding compilers.  */
15083 #ifdef __STDC__
15084 # include <limits.h>
15085 #else
15086 # include <assert.h>
15087 #endif
15088 /* Override any gcc2 internal prototype to avoid an error.  */
15089 #ifdef __cplusplus
15090 extern "C"
15091 {
15092 #endif
15093 /* We use char because int might match the return type of a gcc2
15094    builtin and then its argument prototype would still apply.  */
15095 char $ac_func ();
15096 /* The GNU C library defines this for functions which it implements
15097     to always fail with ENOSYS.  Some functions are actually named
15098     something starting with __ and the normal name is an alias.  */
15099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15100 choke me
15101 #else
15102 char (*f) () = $ac_func;
15103 #endif
15104 #ifdef __cplusplus
15105 }
15106 #endif
15107
15108 int
15109 main ()
15110 {
15111 return f != $ac_func;
15112   ;
15113   return 0;
15114 }
15115 _ACEOF
15116 rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15118   (eval $ac_link) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); } &&
15122          { ac_try='test -s conftest$ac_exeext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   eval "$as_ac_var=yes"
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 eval "$as_ac_var=no"
15134 fi
15135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15136 fi
15137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15139 if test `eval echo '${'$as_ac_var'}'` = yes; then
15140   cat >>confdefs.h <<_ACEOF
15141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15142 _ACEOF
15143  cat >>confdefs.h <<\_ACEOF
15144 #define HAVE_FCHDIR 1
15145 _ACEOF
15146
15147 fi
15148 done
15149
15150
15151 for ac_func in strtoll
15152 do
15153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15154 echo "$as_me:$LINENO: checking for $ac_func" >&5
15155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15156 if eval "test \"\${$as_ac_var+set}\" = set"; then
15157   echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159   cat >conftest.$ac_ext <<_ACEOF
15160 #line $LINENO "configure"
15161 /* confdefs.h.  */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h.  */
15166 /* System header to define __stub macros and hopefully few prototypes,
15167     which can conflict with char $ac_func (); below.
15168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15169     <limits.h> exists even on freestanding compilers.  */
15170 #ifdef __STDC__
15171 # include <limits.h>
15172 #else
15173 # include <assert.h>
15174 #endif
15175 /* Override any gcc2 internal prototype to avoid an error.  */
15176 #ifdef __cplusplus
15177 extern "C"
15178 {
15179 #endif
15180 /* We use char because int might match the return type of a gcc2
15181    builtin and then its argument prototype would still apply.  */
15182 char $ac_func ();
15183 /* The GNU C library defines this for functions which it implements
15184     to always fail with ENOSYS.  Some functions are actually named
15185     something starting with __ and the normal name is an alias.  */
15186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15187 choke me
15188 #else
15189 char (*f) () = $ac_func;
15190 #endif
15191 #ifdef __cplusplus
15192 }
15193 #endif
15194
15195 int
15196 main ()
15197 {
15198 return f != $ac_func;
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205   (eval $ac_link) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } &&
15209          { ac_try='test -s conftest$ac_exeext'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   eval "$as_ac_var=yes"
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220 eval "$as_ac_var=no"
15221 fi
15222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15223 fi
15224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15226 if test `eval echo '${'$as_ac_var'}'` = yes; then
15227   cat >>confdefs.h <<_ACEOF
15228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15229 _ACEOF
15230  cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_STRTOLL 1
15232 _ACEOF
15233
15234 fi
15235 done
15236
15237
15238
15239 for ac_func in chflags
15240 do
15241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15242 echo "$as_me:$LINENO: checking for $ac_func" >&5
15243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15244 if eval "test \"\${$as_ac_var+set}\" = set"; then
15245   echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247   cat >conftest.$ac_ext <<_ACEOF
15248 #line $LINENO "configure"
15249 /* confdefs.h.  */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h.  */
15254 /* System header to define __stub macros and hopefully few prototypes,
15255     which can conflict with char $ac_func (); below.
15256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15257     <limits.h> exists even on freestanding compilers.  */
15258 #ifdef __STDC__
15259 # include <limits.h>
15260 #else
15261 # include <assert.h>
15262 #endif
15263 /* Override any gcc2 internal prototype to avoid an error.  */
15264 #ifdef __cplusplus
15265 extern "C"
15266 {
15267 #endif
15268 /* We use char because int might match the return type of a gcc2
15269    builtin and then its argument prototype would still apply.  */
15270 char $ac_func ();
15271 /* The GNU C library defines this for functions which it implements
15272     to always fail with ENOSYS.  Some functions are actually named
15273     something starting with __ and the normal name is an alias.  */
15274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15275 choke me
15276 #else
15277 char (*f) () = $ac_func;
15278 #endif
15279 #ifdef __cplusplus
15280 }
15281 #endif
15282
15283 int
15284 main ()
15285 {
15286 return f != $ac_func;
15287   ;
15288   return 0;
15289 }
15290 _ACEOF
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293   (eval $ac_link) 2>&5
15294   ac_status=$?
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); } &&
15297          { ac_try='test -s conftest$ac_exeext'
15298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299   (eval $ac_try) 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; }; then
15303   eval "$as_ac_var=yes"
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 eval "$as_ac_var=no"
15309 fi
15310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15311 fi
15312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15314 if test `eval echo '${'$as_ac_var'}'` = yes; then
15315   cat >>confdefs.h <<_ACEOF
15316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15317 _ACEOF
15318
15319 fi
15320 done
15321
15322
15323
15324
15325
15326
15327 for ac_func in snprintf vsnprintf gethostid getdomainname
15328 do
15329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15330 echo "$as_me:$LINENO: checking for $ac_func" >&5
15331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15332 if eval "test \"\${$as_ac_var+set}\" = set"; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   cat >conftest.$ac_ext <<_ACEOF
15336 #line $LINENO "configure"
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342 /* System header to define __stub macros and hopefully few prototypes,
15343     which can conflict with char $ac_func (); below.
15344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15345     <limits.h> exists even on freestanding compilers.  */
15346 #ifdef __STDC__
15347 # include <limits.h>
15348 #else
15349 # include <assert.h>
15350 #endif
15351 /* Override any gcc2 internal prototype to avoid an error.  */
15352 #ifdef __cplusplus
15353 extern "C"
15354 {
15355 #endif
15356 /* We use char because int might match the return type of a gcc2
15357    builtin and then its argument prototype would still apply.  */
15358 char $ac_func ();
15359 /* The GNU C library defines this for functions which it implements
15360     to always fail with ENOSYS.  Some functions are actually named
15361     something starting with __ and the normal name is an alias.  */
15362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15363 choke me
15364 #else
15365 char (*f) () = $ac_func;
15366 #endif
15367 #ifdef __cplusplus
15368 }
15369 #endif
15370
15371 int
15372 main ()
15373 {
15374 return f != $ac_func;
15375   ;
15376   return 0;
15377 }
15378 _ACEOF
15379 rm -f conftest.$ac_objext conftest$ac_exeext
15380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15381   (eval $ac_link) 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); } &&
15385          { ac_try='test -s conftest$ac_exeext'
15386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387   (eval $ac_try) 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; }; then
15391   eval "$as_ac_var=yes"
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396 eval "$as_ac_var=no"
15397 fi
15398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15399 fi
15400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15402 if test `eval echo '${'$as_ac_var'}'` = yes; then
15403   cat >>confdefs.h <<_ACEOF
15404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15405 _ACEOF
15406
15407 fi
15408 done
15409
15410
15411
15412
15413
15414
15415 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15416 do
15417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15418 echo "$as_me:$LINENO: checking for $ac_func" >&5
15419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15420 if eval "test \"\${$as_ac_var+set}\" = set"; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   cat >conftest.$ac_ext <<_ACEOF
15424 #line $LINENO "configure"
15425 /* confdefs.h.  */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h.  */
15430 /* System header to define __stub macros and hopefully few prototypes,
15431     which can conflict with char $ac_func (); below.
15432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433     <limits.h> exists even on freestanding compilers.  */
15434 #ifdef __STDC__
15435 # include <limits.h>
15436 #else
15437 # include <assert.h>
15438 #endif
15439 /* Override any gcc2 internal prototype to avoid an error.  */
15440 #ifdef __cplusplus
15441 extern "C"
15442 {
15443 #endif
15444 /* We use char because int might match the return type of a gcc2
15445    builtin and then its argument prototype would still apply.  */
15446 char $ac_func ();
15447 /* The GNU C library defines this for functions which it implements
15448     to always fail with ENOSYS.  Some functions are actually named
15449     something starting with __ and the normal name is an alias.  */
15450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15451 choke me
15452 #else
15453 char (*f) () = $ac_func;
15454 #endif
15455 #ifdef __cplusplus
15456 }
15457 #endif
15458
15459 int
15460 main ()
15461 {
15462 return f != $ac_func;
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15469   (eval $ac_link) 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -s conftest$ac_exeext'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; }; then
15479   eval "$as_ac_var=yes"
15480 else
15481   echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15483
15484 eval "$as_ac_var=no"
15485 fi
15486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15487 fi
15488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15490 if test `eval echo '${'$as_ac_var'}'` = yes; then
15491   cat >>confdefs.h <<_ACEOF
15492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15493 _ACEOF
15494
15495 fi
15496 done
15497
15498
15499 # If resolver functions are not in libc check for -lnsl or -lresolv.
15500 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15501 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15502 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505   cat >conftest.$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15507 /* confdefs.h.  */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h.  */
15512 /* System header to define __stub macros and hopefully few prototypes,
15513     which can conflict with char gethostbyname_r (); below.
15514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515     <limits.h> exists even on freestanding compilers.  */
15516 #ifdef __STDC__
15517 # include <limits.h>
15518 #else
15519 # include <assert.h>
15520 #endif
15521 /* Override any gcc2 internal prototype to avoid an error.  */
15522 #ifdef __cplusplus
15523 extern "C"
15524 {
15525 #endif
15526 /* We use char because int might match the return type of a gcc2
15527    builtin and then its argument prototype would still apply.  */
15528 char gethostbyname_r ();
15529 /* The GNU C library defines this for functions which it implements
15530     to always fail with ENOSYS.  Some functions are actually named
15531     something starting with __ and the normal name is an alias.  */
15532 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15533 choke me
15534 #else
15535 char (*f) () = gethostbyname_r;
15536 #endif
15537 #ifdef __cplusplus
15538 }
15539 #endif
15540
15541 int
15542 main ()
15543 {
15544 return f != gethostbyname_r;
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15551   (eval $ac_link) 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); } &&
15555          { ac_try='test -s conftest$ac_exeext'
15556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557   (eval $ac_try) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; }; then
15561   ac_cv_func_gethostbyname_r=yes
15562 else
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566 ac_cv_func_gethostbyname_r=no
15567 fi
15568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15569 fi
15570 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15571 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15572 if test $ac_cv_func_gethostbyname_r = yes; then
15573   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15574 echo "${ECHO_T}using libc's resolver" >&6
15575 else
15576
15577 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15578 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15579 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15580   echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582   ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lnsl  $LIBS"
15584 cat >conftest.$ac_ext <<_ACEOF
15585 #line $LINENO "configure"
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591
15592 /* Override any gcc2 internal prototype to avoid an error.  */
15593 #ifdef __cplusplus
15594 extern "C"
15595 #endif
15596 /* We use char because int might match the return type of a gcc2
15597    builtin and then its argument prototype would still apply.  */
15598 char gethostbyname_r ();
15599 int
15600 main ()
15601 {
15602 gethostbyname_r ();
15603   ;
15604   return 0;
15605 }
15606 _ACEOF
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609   (eval $ac_link) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); } &&
15613          { ac_try='test -s conftest$ac_exeext'
15614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615   (eval $ac_try) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; }; then
15619   ac_cv_lib_nsl_gethostbyname_r=yes
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 ac_cv_lib_nsl_gethostbyname_r=no
15625 fi
15626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15627 LIBS=$ac_check_lib_save_LIBS
15628 fi
15629 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15630 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15631 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15632   cat >>confdefs.h <<_ACEOF
15633 #define HAVE_LIBNSL 1
15634 _ACEOF
15635
15636   LIBS="-lnsl $LIBS"
15637
15638 fi
15639
15640
15641 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15642 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15643 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lresolv  $LIBS"
15648 cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655
15656 /* Override any gcc2 internal prototype to avoid an error.  */
15657 #ifdef __cplusplus
15658 extern "C"
15659 #endif
15660 /* We use char because int might match the return type of a gcc2
15661    builtin and then its argument prototype would still apply.  */
15662 char gethostbyname_r ();
15663 int
15664 main ()
15665 {
15666 gethostbyname_r ();
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673   (eval $ac_link) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -s conftest$ac_exeext'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683   ac_cv_lib_resolv_gethostbyname_r=yes
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688 ac_cv_lib_resolv_gethostbyname_r=no
15689 fi
15690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15691 LIBS=$ac_check_lib_save_LIBS
15692 fi
15693 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15694 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15695 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15696   cat >>confdefs.h <<_ACEOF
15697 #define HAVE_LIBRESOLV 1
15698 _ACEOF
15699
15700   LIBS="-lresolv $LIBS"
15701
15702 fi
15703
15704 fi
15705
15706
15707
15708 # Find where sockets are (especially for Solaris)
15709 echo "$as_me:$LINENO: checking for socket" >&5
15710 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15711 if test "${ac_cv_func_socket+set}" = set; then
15712   echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714   cat >conftest.$ac_ext <<_ACEOF
15715 #line $LINENO "configure"
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721 /* System header to define __stub macros and hopefully few prototypes,
15722     which can conflict with char socket (); below.
15723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724     <limits.h> exists even on freestanding compilers.  */
15725 #ifdef __STDC__
15726 # include <limits.h>
15727 #else
15728 # include <assert.h>
15729 #endif
15730 /* Override any gcc2 internal prototype to avoid an error.  */
15731 #ifdef __cplusplus
15732 extern "C"
15733 {
15734 #endif
15735 /* We use char because int might match the return type of a gcc2
15736    builtin and then its argument prototype would still apply.  */
15737 char socket ();
15738 /* The GNU C library defines this for functions which it implements
15739     to always fail with ENOSYS.  Some functions are actually named
15740     something starting with __ and the normal name is an alias.  */
15741 #if defined (__stub_socket) || defined (__stub___socket)
15742 choke me
15743 #else
15744 char (*f) () = socket;
15745 #endif
15746 #ifdef __cplusplus
15747 }
15748 #endif
15749
15750 int
15751 main ()
15752 {
15753 return f != socket;
15754   ;
15755   return 0;
15756 }
15757 _ACEOF
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15760   (eval $ac_link) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); } &&
15764          { ac_try='test -s conftest$ac_exeext'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; }; then
15770   ac_cv_func_socket=yes
15771 else
15772   echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775 ac_cv_func_socket=no
15776 fi
15777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15778 fi
15779 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15780 echo "${ECHO_T}$ac_cv_func_socket" >&6
15781 if test $ac_cv_func_socket = yes; then
15782   echo "$as_me:$LINENO: result: using libc's socket" >&5
15783 echo "${ECHO_T}using libc's socket" >&6
15784 else
15785
15786 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15787 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15788 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15789   echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791   ac_check_lib_save_LIBS=$LIBS
15792 LIBS="-lxnet  $LIBS"
15793 cat >conftest.$ac_ext <<_ACEOF
15794 #line $LINENO "configure"
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800
15801 /* Override any gcc2 internal prototype to avoid an error.  */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 /* We use char because int might match the return type of a gcc2
15806    builtin and then its argument prototype would still apply.  */
15807 char socket ();
15808 int
15809 main ()
15810 {
15811 socket ();
15812   ;
15813   return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818   (eval $ac_link) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } &&
15822          { ac_try='test -s conftest$ac_exeext'
15823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824   (eval $ac_try) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; }; then
15828   ac_cv_lib_xnet_socket=yes
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833 ac_cv_lib_xnet_socket=no
15834 fi
15835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15836 LIBS=$ac_check_lib_save_LIBS
15837 fi
15838 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15839 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15840 if test $ac_cv_lib_xnet_socket = yes; then
15841   cat >>confdefs.h <<_ACEOF
15842 #define HAVE_LIBXNET 1
15843 _ACEOF
15844
15845   LIBS="-lxnet $LIBS"
15846
15847 fi
15848
15849
15850 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15851 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15852 if test "${ac_cv_lib_socket_socket+set}" = set; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   ac_check_lib_save_LIBS=$LIBS
15856 LIBS="-lsocket  $LIBS"
15857 cat >conftest.$ac_ext <<_ACEOF
15858 #line $LINENO "configure"
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864
15865 /* Override any gcc2 internal prototype to avoid an error.  */
15866 #ifdef __cplusplus
15867 extern "C"
15868 #endif
15869 /* We use char because int might match the return type of a gcc2
15870    builtin and then its argument prototype would still apply.  */
15871 char socket ();
15872 int
15873 main ()
15874 {
15875 socket ();
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882   (eval $ac_link) 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } &&
15886          { ac_try='test -s conftest$ac_exeext'
15887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888   (eval $ac_try) 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; }; then
15892   ac_cv_lib_socket_socket=yes
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897 ac_cv_lib_socket_socket=no
15898 fi
15899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15900 LIBS=$ac_check_lib_save_LIBS
15901 fi
15902 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15903 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15904 if test $ac_cv_lib_socket_socket = yes; then
15905   cat >>confdefs.h <<_ACEOF
15906 #define HAVE_LIBSOCKET 1
15907 _ACEOF
15908
15909   LIBS="-lsocket $LIBS"
15910
15911 fi
15912
15913
15914 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15915 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15916 if test "${ac_cv_lib_inet_socket+set}" = set; then
15917   echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919   ac_check_lib_save_LIBS=$LIBS
15920 LIBS="-linet  $LIBS"
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15923 /* confdefs.h.  */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h.  */
15928
15929 /* Override any gcc2 internal prototype to avoid an error.  */
15930 #ifdef __cplusplus
15931 extern "C"
15932 #endif
15933 /* We use char because int might match the return type of a gcc2
15934    builtin and then its argument prototype would still apply.  */
15935 char socket ();
15936 int
15937 main ()
15938 {
15939 socket ();
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946   (eval $ac_link) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } &&
15950          { ac_try='test -s conftest$ac_exeext'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956   ac_cv_lib_inet_socket=yes
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_cv_lib_inet_socket=no
15962 fi
15963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15964 LIBS=$ac_check_lib_save_LIBS
15965 fi
15966 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15967 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15968 if test $ac_cv_lib_inet_socket = yes; then
15969   cat >>confdefs.h <<_ACEOF
15970 #define HAVE_LIBINET 1
15971 _ACEOF
15972
15973   LIBS="-linet $LIBS"
15974
15975 fi
15976
15977 fi
15978
15979
15980
15981 for ac_func in inet_pton
15982 do
15983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15984 echo "$as_me:$LINENO: checking for $ac_func" >&5
15985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15986 if eval "test \"\${$as_ac_var+set}\" = set"; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989   cat >conftest.$ac_ext <<_ACEOF
15990 #line $LINENO "configure"
15991 /* confdefs.h.  */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h.  */
15996 /* System header to define __stub macros and hopefully few prototypes,
15997     which can conflict with char $ac_func (); below.
15998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15999     <limits.h> exists even on freestanding compilers.  */
16000 #ifdef __STDC__
16001 # include <limits.h>
16002 #else
16003 # include <assert.h>
16004 #endif
16005 /* Override any gcc2 internal prototype to avoid an error.  */
16006 #ifdef __cplusplus
16007 extern "C"
16008 {
16009 #endif
16010 /* We use char because int might match the return type of a gcc2
16011    builtin and then its argument prototype would still apply.  */
16012 char $ac_func ();
16013 /* The GNU C library defines this for functions which it implements
16014     to always fail with ENOSYS.  Some functions are actually named
16015     something starting with __ and the normal name is an alias.  */
16016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16017 choke me
16018 #else
16019 char (*f) () = $ac_func;
16020 #endif
16021 #ifdef __cplusplus
16022 }
16023 #endif
16024
16025 int
16026 main ()
16027 {
16028 return f != $ac_func;
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 rm -f conftest.$ac_objext conftest$ac_exeext
16034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16035   (eval $ac_link) 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } &&
16039          { ac_try='test -s conftest$ac_exeext'
16040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041   (eval $ac_try) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); }; }; then
16045   eval "$as_ac_var=yes"
16046 else
16047   echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050 eval "$as_ac_var=no"
16051 fi
16052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16053 fi
16054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16056 if test `eval echo '${'$as_ac_var'}'` = yes; then
16057   cat >>confdefs.h <<_ACEOF
16058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16059 _ACEOF
16060  cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_INET_PTON 1
16062 _ACEOF
16063
16064 fi
16065 done
16066
16067
16068
16069 for ac_func in strftime
16070 do
16071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16072 echo "$as_me:$LINENO: checking for $ac_func" >&5
16073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16074 if eval "test \"\${$as_ac_var+set}\" = set"; then
16075   echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077   cat >conftest.$ac_ext <<_ACEOF
16078 #line $LINENO "configure"
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 /* System header to define __stub macros and hopefully few prototypes,
16085     which can conflict with char $ac_func (); below.
16086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16087     <limits.h> exists even on freestanding compilers.  */
16088 #ifdef __STDC__
16089 # include <limits.h>
16090 #else
16091 # include <assert.h>
16092 #endif
16093 /* Override any gcc2 internal prototype to avoid an error.  */
16094 #ifdef __cplusplus
16095 extern "C"
16096 {
16097 #endif
16098 /* We use char because int might match the return type of a gcc2
16099    builtin and then its argument prototype would still apply.  */
16100 char $ac_func ();
16101 /* The GNU C library defines this for functions which it implements
16102     to always fail with ENOSYS.  Some functions are actually named
16103     something starting with __ and the normal name is an alias.  */
16104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16105 choke me
16106 #else
16107 char (*f) () = $ac_func;
16108 #endif
16109 #ifdef __cplusplus
16110 }
16111 #endif
16112
16113 int
16114 main ()
16115 {
16116 return f != $ac_func;
16117   ;
16118   return 0;
16119 }
16120 _ACEOF
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16123   (eval $ac_link) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); } &&
16127          { ac_try='test -s conftest$ac_exeext'
16128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129   (eval $ac_try) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; }; then
16133   eval "$as_ac_var=yes"
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138 eval "$as_ac_var=no"
16139 fi
16140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16141 fi
16142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16144 if test `eval echo '${'$as_ac_var'}'` = yes; then
16145   cat >>confdefs.h <<_ACEOF
16146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16147 _ACEOF
16148
16149 else
16150   # strftime is in -lintl on SCO UNIX.
16151 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16152 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16153 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156   ac_check_lib_save_LIBS=$LIBS
16157 LIBS="-lintl  $LIBS"
16158 cat >conftest.$ac_ext <<_ACEOF
16159 #line $LINENO "configure"
16160 /* confdefs.h.  */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h.  */
16165
16166 /* Override any gcc2 internal prototype to avoid an error.  */
16167 #ifdef __cplusplus
16168 extern "C"
16169 #endif
16170 /* We use char because int might match the return type of a gcc2
16171    builtin and then its argument prototype would still apply.  */
16172 char strftime ();
16173 int
16174 main ()
16175 {
16176 strftime ();
16177   ;
16178   return 0;
16179 }
16180 _ACEOF
16181 rm -f conftest.$ac_objext conftest$ac_exeext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183   (eval $ac_link) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } &&
16187          { ac_try='test -s conftest$ac_exeext'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; }; then
16193   ac_cv_lib_intl_strftime=yes
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ac_cv_lib_intl_strftime=no
16199 fi
16200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16201 LIBS=$ac_check_lib_save_LIBS
16202 fi
16203 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16204 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16205 if test $ac_cv_lib_intl_strftime = yes; then
16206   cat >>confdefs.h <<\_ACEOF
16207 #define HAVE_STRFTIME 1
16208 _ACEOF
16209
16210 LIBS="-lintl $LIBS"
16211 fi
16212
16213 fi
16214 done
16215
16216
16217 for ac_func in vprintf
16218 do
16219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16220 echo "$as_me:$LINENO: checking for $ac_func" >&5
16221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16222 if eval "test \"\${$as_ac_var+set}\" = set"; then
16223   echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225   cat >conftest.$ac_ext <<_ACEOF
16226 #line $LINENO "configure"
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232 /* System header to define __stub macros and hopefully few prototypes,
16233     which can conflict with char $ac_func (); below.
16234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16235     <limits.h> exists even on freestanding compilers.  */
16236 #ifdef __STDC__
16237 # include <limits.h>
16238 #else
16239 # include <assert.h>
16240 #endif
16241 /* Override any gcc2 internal prototype to avoid an error.  */
16242 #ifdef __cplusplus
16243 extern "C"
16244 {
16245 #endif
16246 /* We use char because int might match the return type of a gcc2
16247    builtin and then its argument prototype would still apply.  */
16248 char $ac_func ();
16249 /* The GNU C library defines this for functions which it implements
16250     to always fail with ENOSYS.  Some functions are actually named
16251     something starting with __ and the normal name is an alias.  */
16252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16253 choke me
16254 #else
16255 char (*f) () = $ac_func;
16256 #endif
16257 #ifdef __cplusplus
16258 }
16259 #endif
16260
16261 int
16262 main ()
16263 {
16264 return f != $ac_func;
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271   (eval $ac_link) 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } &&
16275          { ac_try='test -s conftest$ac_exeext'
16276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277   (eval $ac_try) 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); }; }; then
16281   eval "$as_ac_var=yes"
16282 else
16283   echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 eval "$as_ac_var=no"
16287 fi
16288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16289 fi
16290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16292 if test `eval echo '${'$as_ac_var'}'` = yes; then
16293   cat >>confdefs.h <<_ACEOF
16294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16295 _ACEOF
16296
16297 echo "$as_me:$LINENO: checking for _doprnt" >&5
16298 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16299 if test "${ac_cv_func__doprnt+set}" = set; then
16300   echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302   cat >conftest.$ac_ext <<_ACEOF
16303 #line $LINENO "configure"
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309 /* System header to define __stub macros and hopefully few prototypes,
16310     which can conflict with char _doprnt (); below.
16311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16312     <limits.h> exists even on freestanding compilers.  */
16313 #ifdef __STDC__
16314 # include <limits.h>
16315 #else
16316 # include <assert.h>
16317 #endif
16318 /* Override any gcc2 internal prototype to avoid an error.  */
16319 #ifdef __cplusplus
16320 extern "C"
16321 {
16322 #endif
16323 /* We use char because int might match the return type of a gcc2
16324    builtin and then its argument prototype would still apply.  */
16325 char _doprnt ();
16326 /* The GNU C library defines this for functions which it implements
16327     to always fail with ENOSYS.  Some functions are actually named
16328     something starting with __ and the normal name is an alias.  */
16329 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16330 choke me
16331 #else
16332 char (*f) () = _doprnt;
16333 #endif
16334 #ifdef __cplusplus
16335 }
16336 #endif
16337
16338 int
16339 main ()
16340 {
16341 return f != _doprnt;
16342   ;
16343   return 0;
16344 }
16345 _ACEOF
16346 rm -f conftest.$ac_objext conftest$ac_exeext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348   (eval $ac_link) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } &&
16352          { ac_try='test -s conftest$ac_exeext'
16353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354   (eval $ac_try) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; }; then
16358   ac_cv_func__doprnt=yes
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_cv_func__doprnt=no
16364 fi
16365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16366 fi
16367 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16368 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16369 if test $ac_cv_func__doprnt = yes; then
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_DOPRNT 1
16373 _ACEOF
16374
16375 fi
16376
16377 fi
16378 done
16379
16380
16381 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16382 # for constant arguments.  Useless!
16383 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16384 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16385 if test "${ac_cv_working_alloca_h+set}" = set; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388   cat >conftest.$ac_ext <<_ACEOF
16389 #line $LINENO "configure"
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395 #include <alloca.h>
16396 int
16397 main ()
16398 {
16399 char *p = (char *) alloca (2 * sizeof (int));
16400   ;
16401   return 0;
16402 }
16403 _ACEOF
16404 rm -f conftest.$ac_objext conftest$ac_exeext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16406   (eval $ac_link) 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); } &&
16410          { ac_try='test -s conftest$ac_exeext'
16411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412   (eval $ac_try) 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); }; }; then
16416   ac_cv_working_alloca_h=yes
16417 else
16418   echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16420
16421 ac_cv_working_alloca_h=no
16422 fi
16423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16424 fi
16425 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16426 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16427 if test $ac_cv_working_alloca_h = yes; then
16428
16429 cat >>confdefs.h <<\_ACEOF
16430 #define HAVE_ALLOCA_H 1
16431 _ACEOF
16432
16433 fi
16434
16435 echo "$as_me:$LINENO: checking for alloca" >&5
16436 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16437 if test "${ac_cv_func_alloca_works+set}" = set; then
16438   echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440   cat >conftest.$ac_ext <<_ACEOF
16441 #line $LINENO "configure"
16442 /* confdefs.h.  */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h.  */
16447 #ifdef __GNUC__
16448 # define alloca __builtin_alloca
16449 #else
16450 # ifdef _MSC_VER
16451 #  include <malloc.h>
16452 #  define alloca _alloca
16453 # else
16454 #  if HAVE_ALLOCA_H
16455 #   include <alloca.h>
16456 #  else
16457 #   ifdef _AIX
16458  #pragma alloca
16459 #   else
16460 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16461 char *alloca ();
16462 #    endif
16463 #   endif
16464 #  endif
16465 # endif
16466 #endif
16467
16468 int
16469 main ()
16470 {
16471 char *p = (char *) alloca (1);
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 rm -f conftest.$ac_objext conftest$ac_exeext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16478   (eval $ac_link) 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); } &&
16482          { ac_try='test -s conftest$ac_exeext'
16483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484   (eval $ac_try) 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; }; then
16488   ac_cv_func_alloca_works=yes
16489 else
16490   echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493 ac_cv_func_alloca_works=no
16494 fi
16495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16496 fi
16497 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16498 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16499
16500 if test $ac_cv_func_alloca_works = yes; then
16501
16502 cat >>confdefs.h <<\_ACEOF
16503 #define HAVE_ALLOCA 1
16504 _ACEOF
16505
16506 else
16507   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16508 # that cause trouble.  Some versions do not even contain alloca or
16509 # contain a buggy version.  If you still want to use their alloca,
16510 # use ar to extract alloca.o from them instead of compiling alloca.c.
16511
16512 ALLOCA=alloca.$ac_objext
16513
16514 cat >>confdefs.h <<\_ACEOF
16515 #define C_ALLOCA 1
16516 _ACEOF
16517
16518
16519 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16520 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16521 if test "${ac_cv_os_cray+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   cat >conftest.$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531 #if defined(CRAY) && ! defined(CRAY2)
16532 webecray
16533 #else
16534 wenotbecray
16535 #endif
16536
16537 _ACEOF
16538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16539   $EGREP "webecray" >/dev/null 2>&1; then
16540   ac_cv_os_cray=yes
16541 else
16542   ac_cv_os_cray=no
16543 fi
16544 rm -f conftest*
16545
16546 fi
16547 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16548 echo "${ECHO_T}$ac_cv_os_cray" >&6
16549 if test $ac_cv_os_cray = yes; then
16550   for ac_func in _getb67 GETB67 getb67; do
16551     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16552 echo "$as_me:$LINENO: checking for $ac_func" >&5
16553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16554 if eval "test \"\${$as_ac_var+set}\" = set"; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   cat >conftest.$ac_ext <<_ACEOF
16558 #line $LINENO "configure"
16559 /* confdefs.h.  */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h.  */
16564 /* System header to define __stub macros and hopefully few prototypes,
16565     which can conflict with char $ac_func (); below.
16566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16567     <limits.h> exists even on freestanding compilers.  */
16568 #ifdef __STDC__
16569 # include <limits.h>
16570 #else
16571 # include <assert.h>
16572 #endif
16573 /* Override any gcc2 internal prototype to avoid an error.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 {
16577 #endif
16578 /* We use char because int might match the return type of a gcc2
16579    builtin and then its argument prototype would still apply.  */
16580 char $ac_func ();
16581 /* The GNU C library defines this for functions which it implements
16582     to always fail with ENOSYS.  Some functions are actually named
16583     something starting with __ and the normal name is an alias.  */
16584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16585 choke me
16586 #else
16587 char (*f) () = $ac_func;
16588 #endif
16589 #ifdef __cplusplus
16590 }
16591 #endif
16592
16593 int
16594 main ()
16595 {
16596 return f != $ac_func;
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603   (eval $ac_link) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } &&
16607          { ac_try='test -s conftest$ac_exeext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   eval "$as_ac_var=yes"
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 eval "$as_ac_var=no"
16619 fi
16620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16621 fi
16622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16625
16626 cat >>confdefs.h <<_ACEOF
16627 #define CRAY_STACKSEG_END $ac_func
16628 _ACEOF
16629
16630     break
16631 fi
16632
16633   done
16634 fi
16635
16636 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16637 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16638 if test "${ac_cv_c_stack_direction+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   if test "$cross_compiling" = yes; then
16642   ac_cv_c_stack_direction=0
16643 else
16644   cat >conftest.$ac_ext <<_ACEOF
16645 #line $LINENO "configure"
16646 /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651 int
16652 find_stack_direction ()
16653 {
16654   static char *addr = 0;
16655   auto char dummy;
16656   if (addr == 0)
16657     {
16658       addr = &dummy;
16659       return find_stack_direction ();
16660     }
16661   else
16662     return (&dummy > addr) ? 1 : -1;
16663 }
16664
16665 int
16666 main ()
16667 {
16668   exit (find_stack_direction () < 0);
16669 }
16670 _ACEOF
16671 rm -f conftest$ac_exeext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673   (eval $ac_link) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   ac_cv_c_stack_direction=1
16683 else
16684   echo "$as_me: program exited with status $ac_status" >&5
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 ( exit $ac_status )
16689 ac_cv_c_stack_direction=-1
16690 fi
16691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16692 fi
16693 fi
16694 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16695 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16696
16697 cat >>confdefs.h <<_ACEOF
16698 #define STACK_DIRECTION $ac_cv_c_stack_direction
16699 _ACEOF
16700
16701
16702 fi
16703
16704 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16705 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16706 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16707 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710   ac_check_lib_save_LIBS=$LIBS
16711 LIBS="-lsun  $LIBS"
16712 cat >conftest.$ac_ext <<_ACEOF
16713 #line $LINENO "configure"
16714 /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719
16720 /* Override any gcc2 internal prototype to avoid an error.  */
16721 #ifdef __cplusplus
16722 extern "C"
16723 #endif
16724 /* We use char because int might match the return type of a gcc2
16725    builtin and then its argument prototype would still apply.  */
16726 char getmntent ();
16727 int
16728 main ()
16729 {
16730 getmntent ();
16731   ;
16732   return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737   (eval $ac_link) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } &&
16741          { ac_try='test -s conftest$ac_exeext'
16742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743   (eval $ac_try) 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }; }; then
16747   ac_cv_lib_sun_getmntent=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 ac_cv_lib_sun_getmntent=no
16753 fi
16754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16756 fi
16757 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16758 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16759 if test $ac_cv_lib_sun_getmntent = yes; then
16760   LIBS="-lsun $LIBS"
16761 else
16762   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16763 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16764 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767   ac_check_lib_save_LIBS=$LIBS
16768 LIBS="-lseq  $LIBS"
16769 cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776
16777 /* Override any gcc2 internal prototype to avoid an error.  */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 /* We use char because int might match the return type of a gcc2
16782    builtin and then its argument prototype would still apply.  */
16783 char getmntent ();
16784 int
16785 main ()
16786 {
16787 getmntent ();
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794   (eval $ac_link) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } &&
16798          { ac_try='test -s conftest$ac_exeext'
16799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800   (eval $ac_try) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; }; then
16804   ac_cv_lib_seq_getmntent=yes
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 ac_cv_lib_seq_getmntent=no
16810 fi
16811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16813 fi
16814 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16815 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16816 if test $ac_cv_lib_seq_getmntent = yes; then
16817   LIBS="-lseq $LIBS"
16818 else
16819   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16820 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16821 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   ac_check_lib_save_LIBS=$LIBS
16825 LIBS="-lgen  $LIBS"
16826 cat >conftest.$ac_ext <<_ACEOF
16827 #line $LINENO "configure"
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833
16834 /* Override any gcc2 internal prototype to avoid an error.  */
16835 #ifdef __cplusplus
16836 extern "C"
16837 #endif
16838 /* We use char because int might match the return type of a gcc2
16839    builtin and then its argument prototype would still apply.  */
16840 char getmntent ();
16841 int
16842 main ()
16843 {
16844 getmntent ();
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851   (eval $ac_link) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } &&
16855          { ac_try='test -s conftest$ac_exeext'
16856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857   (eval $ac_try) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   ac_cv_lib_gen_getmntent=yes
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 ac_cv_lib_gen_getmntent=no
16867 fi
16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16870 fi
16871 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16872 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16873 if test $ac_cv_lib_gen_getmntent = yes; then
16874   LIBS="-lgen $LIBS"
16875 fi
16876
16877 fi
16878
16879 fi
16880
16881
16882 for ac_func in getmntent
16883 do
16884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16885 echo "$as_me:$LINENO: checking for $ac_func" >&5
16886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16887 if eval "test \"\${$as_ac_var+set}\" = set"; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890   cat >conftest.$ac_ext <<_ACEOF
16891 #line $LINENO "configure"
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897 /* System header to define __stub macros and hopefully few prototypes,
16898     which can conflict with char $ac_func (); below.
16899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900     <limits.h> exists even on freestanding compilers.  */
16901 #ifdef __STDC__
16902 # include <limits.h>
16903 #else
16904 # include <assert.h>
16905 #endif
16906 /* Override any gcc2 internal prototype to avoid an error.  */
16907 #ifdef __cplusplus
16908 extern "C"
16909 {
16910 #endif
16911 /* We use char because int might match the return type of a gcc2
16912    builtin and then its argument prototype would still apply.  */
16913 char $ac_func ();
16914 /* The GNU C library defines this for functions which it implements
16915     to always fail with ENOSYS.  Some functions are actually named
16916     something starting with __ and the normal name is an alias.  */
16917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16918 choke me
16919 #else
16920 char (*f) () = $ac_func;
16921 #endif
16922 #ifdef __cplusplus
16923 }
16924 #endif
16925
16926 int
16927 main ()
16928 {
16929 return f != $ac_func;
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 rm -f conftest.$ac_objext conftest$ac_exeext
16935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16936   (eval $ac_link) 2>&5
16937   ac_status=$?
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } &&
16940          { ac_try='test -s conftest$ac_exeext'
16941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942   (eval $ac_try) 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; }; then
16946   eval "$as_ac_var=yes"
16947 else
16948   echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 eval "$as_ac_var=no"
16952 fi
16953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16954 fi
16955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16957 if test `eval echo '${'$as_ac_var'}'` = yes; then
16958   cat >>confdefs.h <<_ACEOF
16959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16960 _ACEOF
16961
16962 fi
16963 done
16964
16965
16966 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16967 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16968 if test "${ac_cv_func_closedir_void+set}" = set; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971   if test "$cross_compiling" = yes; then
16972   ac_cv_func_closedir_void=yes
16973 else
16974   cat >conftest.$ac_ext <<_ACEOF
16975 #line $LINENO "configure"
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 $ac_includes_default
16982 #include <$ac_header_dirent>
16983 #ifndef __cplusplus
16984 int closedir ();
16985 #endif
16986
16987 int
16988 main ()
16989 {
16990 exit (closedir (opendir (".")) != 0);
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 rm -f conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997   (eval $ac_link) 2>&5
16998   ac_status=$?
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002   (eval $ac_try) 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); }; }; then
17006   ac_cv_func_closedir_void=no
17007 else
17008   echo "$as_me: program exited with status $ac_status" >&5
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 ( exit $ac_status )
17013 ac_cv_func_closedir_void=yes
17014 fi
17015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17016 fi
17017 fi
17018 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17019 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17020 if test $ac_cv_func_closedir_void = yes; then
17021
17022 cat >>confdefs.h <<\_ACEOF
17023 #define CLOSEDIR_VOID 1
17024 _ACEOF
17025
17026 fi
17027
17028 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17029 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17030 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17031   echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033   if test "$cross_compiling" = yes; then
17034   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17035 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17036    { (exit 1); exit 1; }; }
17037 else
17038   cat >conftest.$ac_ext <<_ACEOF
17039 #line $LINENO "configure"
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045 #if HAVE_UNISTD_H
17046 # include <unistd.h>
17047 #endif
17048
17049 int
17050 main ()
17051 {
17052 /* If this system has a BSD-style setpgrp which takes arguments,
17053   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17054   exit successfully. */
17055   exit (setpgrp (1,1) == -1 ? 0 : 1);
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest$ac_exeext
17061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17062   (eval $ac_link) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067   (eval $ac_try) 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_func_setpgrp_void=no
17072 else
17073   echo "$as_me: program exited with status $ac_status" >&5
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 ( exit $ac_status )
17078 ac_cv_func_setpgrp_void=yes
17079 fi
17080 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17081 fi
17082 fi
17083 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17084 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17085 if test $ac_cv_func_setpgrp_void = yes; then
17086
17087 cat >>confdefs.h <<\_ACEOF
17088 #define SETPGRP_VOID 1
17089 _ACEOF
17090
17091 fi
17092                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17093 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17094 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   # Some versions of Solaris, SCO, and the GNU C Library
17098    # have a broken or incompatible fnmatch.
17099    # So we run a test program.  If we are cross-compiling, take no chance.
17100    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17101    if test "$cross_compiling" = yes; then
17102   ac_cv_func_fnmatch_works=cross
17103 else
17104   cat >conftest.$ac_ext <<_ACEOF
17105 #line $LINENO "configure"
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111 #include <fnmatch.h>
17112 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17113 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17114
17115 int
17116 main ()
17117 {
17118 exit
17119            (!(y ("a*", "abc", 0)
17120               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17121               && y ("a\\\\bc", "abc", 0)
17122               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17123               && y ("*x", ".x", 0)
17124               && n ("*x", ".x", FNM_PERIOD)
17125               && 1));
17126   ;
17127   return 0;
17128 }
17129 _ACEOF
17130 rm -f conftest$ac_exeext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17132   (eval $ac_link) 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; }; then
17141   ac_cv_func_fnmatch_works=yes
17142 else
17143   echo "$as_me: program exited with status $ac_status" >&5
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147 ( exit $ac_status )
17148 ac_cv_func_fnmatch_works=no
17149 fi
17150 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17151 fi
17152 fi
17153 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17154 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17155 if test $ac_cv_func_fnmatch_works = yes; then
17156
17157 cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_FNMATCH 1
17159 _ACEOF
17160
17161 fi
17162
17163
17164
17165
17166
17167 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17168 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17169 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17170   echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172   ac_check_lib_save_LIBS=$LIBS
17173 LIBS="-lxpg4  $LIBS"
17174 cat >conftest.$ac_ext <<_ACEOF
17175 #line $LINENO "configure"
17176 /* confdefs.h.  */
17177 _ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h.  */
17181
17182 /* Override any gcc2 internal prototype to avoid an error.  */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 /* We use char because int might match the return type of a gcc2
17187    builtin and then its argument prototype would still apply.  */
17188 char setlocale ();
17189 int
17190 main ()
17191 {
17192 setlocale ();
17193   ;
17194   return 0;
17195 }
17196 _ACEOF
17197 rm -f conftest.$ac_objext conftest$ac_exeext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17199   (eval $ac_link) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } &&
17203          { ac_try='test -s conftest$ac_exeext'
17204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205   (eval $ac_try) 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; }; then
17209   ac_cv_lib_xpg4_setlocale=yes
17210 else
17211   echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 ac_cv_lib_xpg4_setlocale=no
17215 fi
17216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17217 LIBS=$ac_check_lib_save_LIBS
17218 fi
17219 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17220 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17221 if test $ac_cv_lib_xpg4_setlocale = yes; then
17222   LIBS="$LIBS -lxpg4"
17223 fi
17224
17225
17226
17227
17228 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17229 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17230 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233   ac_check_lib_save_LIBS=$LIBS
17234 LIBS="-lsun  $LIBS"
17235 cat >conftest.$ac_ext <<_ACEOF
17236 #line $LINENO "configure"
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242
17243 /* Override any gcc2 internal prototype to avoid an error.  */
17244 #ifdef __cplusplus
17245 extern "C"
17246 #endif
17247 /* We use char because int might match the return type of a gcc2
17248    builtin and then its argument prototype would still apply.  */
17249 char getpwnam ();
17250 int
17251 main ()
17252 {
17253 getpwnam ();
17254   ;
17255   return 0;
17256 }
17257 _ACEOF
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17260   (eval $ac_link) 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } &&
17264          { ac_try='test -s conftest$ac_exeext'
17265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266   (eval $ac_try) 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }; }; then
17270   ac_cv_lib_sun_getpwnam=yes
17271 else
17272   echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ac_cv_lib_sun_getpwnam=no
17276 fi
17277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17279 fi
17280 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17281 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17282 if test $ac_cv_lib_sun_getpwnam = yes; then
17283   cat >>confdefs.h <<_ACEOF
17284 #define HAVE_LIBSUN 1
17285 _ACEOF
17286
17287   LIBS="-lsun $LIBS"
17288
17289 fi
17290
17291
17292
17293 for ac_header in zlib.h
17294 do
17295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297   echo "$as_me:$LINENO: checking for $ac_header" >&5
17298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17300   echo $ECHO_N "(cached) $ECHO_C" >&6
17301 fi
17302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17304 else
17305   # Is the header compilable?
17306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17308 cat >conftest.$ac_ext <<_ACEOF
17309 #line $LINENO "configure"
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 $ac_includes_default
17316 #include <$ac_header>
17317 _ACEOF
17318 rm -f conftest.$ac_objext
17319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17320   (eval $ac_compile) 2>&5
17321   ac_status=$?
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } &&
17324          { ac_try='test -s conftest.$ac_objext'
17325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326   (eval $ac_try) 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); }; }; then
17330   ac_header_compiler=yes
17331 else
17332   echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 ac_header_compiler=no
17336 fi
17337 rm -f conftest.$ac_objext conftest.$ac_ext
17338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17339 echo "${ECHO_T}$ac_header_compiler" >&6
17340
17341 # Is the header present?
17342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351 #include <$ac_header>
17352 _ACEOF
17353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } >/dev/null; then
17361   if test -s conftest.err; then
17362     ac_cpp_err=$ac_c_preproc_warn_flag
17363   else
17364     ac_cpp_err=
17365   fi
17366 else
17367   ac_cpp_err=yes
17368 fi
17369 if test -z "$ac_cpp_err"; then
17370   ac_header_preproc=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375   ac_header_preproc=no
17376 fi
17377 rm -f conftest.err conftest.$ac_ext
17378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17379 echo "${ECHO_T}$ac_header_preproc" >&6
17380
17381 # So?  What about this header?
17382 case $ac_header_compiler:$ac_header_preproc in
17383   yes:no )
17384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17388     (
17389       cat <<\_ASBOX
17390 ## ------------------------------------ ##
17391 ## Report this to bug-autoconf@gnu.org. ##
17392 ## ------------------------------------ ##
17393 _ASBOX
17394     ) |
17395       sed "s/^/$as_me: WARNING:     /" >&2
17396     ;;
17397   no:yes )
17398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17400     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17404     (
17405       cat <<\_ASBOX
17406 ## ------------------------------------ ##
17407 ## Report this to bug-autoconf@gnu.org. ##
17408 ## ------------------------------------ ##
17409 _ASBOX
17410     ) |
17411       sed "s/^/$as_me: WARNING:     /" >&2
17412     ;;
17413 esac
17414 echo "$as_me:$LINENO: checking for $ac_header" >&5
17415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419   eval "$as_ac_Header=$ac_header_preproc"
17420 fi
17421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17423
17424 fi
17425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426   cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17428 _ACEOF
17429
17430 fi
17431
17432 done
17433
17434 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17435 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17436 if test "${ac_cv_lib_z_deflate+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   ac_check_lib_save_LIBS=$LIBS
17440 LIBS="-lz  $LIBS"
17441 cat >conftest.$ac_ext <<_ACEOF
17442 #line $LINENO "configure"
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448
17449 /* Override any gcc2 internal prototype to avoid an error.  */
17450 #ifdef __cplusplus
17451 extern "C"
17452 #endif
17453 /* We use char because int might match the return type of a gcc2
17454    builtin and then its argument prototype would still apply.  */
17455 char deflate ();
17456 int
17457 main ()
17458 {
17459 deflate ();
17460   ;
17461   return 0;
17462 }
17463 _ACEOF
17464 rm -f conftest.$ac_objext conftest$ac_exeext
17465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17466   (eval $ac_link) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } &&
17470          { ac_try='test -s conftest$ac_exeext'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476   ac_cv_lib_z_deflate=yes
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481 ac_cv_lib_z_deflate=no
17482 fi
17483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17484 LIBS=$ac_check_lib_save_LIBS
17485 fi
17486 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17487 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17488 if test $ac_cv_lib_z_deflate = yes; then
17489   FDLIBS="-lz"
17490 fi
17491
17492 have_zlib=no
17493 if test x$FDLIBS = x-lz; then
17494   cat >>confdefs.h <<\_ACEOF
17495 #define HAVE_LIBZ 1
17496 _ACEOF
17497
17498   have_zlib=yes
17499 fi
17500
17501 PTHREAD_LIB=""
17502 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17503 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17504 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17505   echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507   ac_check_lib_save_LIBS=$LIBS
17508 LIBS="-lpthread  $LIBS"
17509 cat >conftest.$ac_ext <<_ACEOF
17510 #line $LINENO "configure"
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516
17517 /* Override any gcc2 internal prototype to avoid an error.  */
17518 #ifdef __cplusplus
17519 extern "C"
17520 #endif
17521 /* We use char because int might match the return type of a gcc2
17522    builtin and then its argument prototype would still apply.  */
17523 char pthread_create ();
17524 int
17525 main ()
17526 {
17527 pthread_create ();
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534   (eval $ac_link) 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } &&
17538          { ac_try='test -s conftest$ac_exeext'
17539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540   (eval $ac_try) 2>&5
17541   ac_status=$?
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); }; }; then
17544   ac_cv_lib_pthread_pthread_create=yes
17545 else
17546   echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549 ac_cv_lib_pthread_pthread_create=no
17550 fi
17551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17552 LIBS=$ac_check_lib_save_LIBS
17553 fi
17554 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17555 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17556 if test $ac_cv_lib_pthread_pthread_create = yes; then
17557   PTHREAD_LIB="-lpthread"
17558 else
17559   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17560 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17561 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17562   echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564   ac_check_lib_save_LIBS=$LIBS
17565 LIBS="-lpthreads  $LIBS"
17566 cat >conftest.$ac_ext <<_ACEOF
17567 #line $LINENO "configure"
17568 /* confdefs.h.  */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h.  */
17573
17574 /* Override any gcc2 internal prototype to avoid an error.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 /* We use char because int might match the return type of a gcc2
17579    builtin and then its argument prototype would still apply.  */
17580 char pthread_create ();
17581 int
17582 main ()
17583 {
17584 pthread_create ();
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591   (eval $ac_link) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -s conftest$ac_exeext'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_lib_pthreads_pthread_create=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_cv_lib_pthreads_pthread_create=no
17607 fi
17608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17609 LIBS=$ac_check_lib_save_LIBS
17610 fi
17611 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17612 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17613 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17614   PTHREAD_LIB="-lpthreads"
17615 else
17616   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17617 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17618 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   ac_check_lib_save_LIBS=$LIBS
17622 LIBS="-lc_r  $LIBS"
17623 cat >conftest.$ac_ext <<_ACEOF
17624 #line $LINENO "configure"
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630
17631 /* Override any gcc2 internal prototype to avoid an error.  */
17632 #ifdef __cplusplus
17633 extern "C"
17634 #endif
17635 /* We use char because int might match the return type of a gcc2
17636    builtin and then its argument prototype would still apply.  */
17637 char pthread_create ();
17638 int
17639 main ()
17640 {
17641 pthread_create ();
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648   (eval $ac_link) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } &&
17652          { ac_try='test -s conftest$ac_exeext'
17653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654   (eval $ac_try) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; }; then
17658   ac_cv_lib_c_r_pthread_create=yes
17659 else
17660   echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ac_cv_lib_c_r_pthread_create=no
17664 fi
17665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17666 LIBS=$ac_check_lib_save_LIBS
17667 fi
17668 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17669 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17670 if test $ac_cv_lib_c_r_pthread_create = yes; then
17671   PTHREAD_LIB="-lc_r"
17672 else
17673   echo "$as_me:$LINENO: checking for pthread_create" >&5
17674 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17675 if test "${ac_cv_func_pthread_create+set}" = set; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   cat >conftest.$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 /* System header to define __stub macros and hopefully few prototypes,
17686     which can conflict with char pthread_create (); below.
17687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17688     <limits.h> exists even on freestanding compilers.  */
17689 #ifdef __STDC__
17690 # include <limits.h>
17691 #else
17692 # include <assert.h>
17693 #endif
17694 /* Override any gcc2 internal prototype to avoid an error.  */
17695 #ifdef __cplusplus
17696 extern "C"
17697 {
17698 #endif
17699 /* We use char because int might match the return type of a gcc2
17700    builtin and then its argument prototype would still apply.  */
17701 char pthread_create ();
17702 /* The GNU C library defines this for functions which it implements
17703     to always fail with ENOSYS.  Some functions are actually named
17704     something starting with __ and the normal name is an alias.  */
17705 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17706 choke me
17707 #else
17708 char (*f) () = pthread_create;
17709 #endif
17710 #ifdef __cplusplus
17711 }
17712 #endif
17713
17714 int
17715 main ()
17716 {
17717 return f != pthread_create;
17718   ;
17719   return 0;
17720 }
17721 _ACEOF
17722 rm -f conftest.$ac_objext conftest$ac_exeext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17724   (eval $ac_link) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); } &&
17728          { ac_try='test -s conftest$ac_exeext'
17729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730   (eval $ac_try) 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); }; }; then
17734   ac_cv_func_pthread_create=yes
17735 else
17736   echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 ac_cv_func_pthread_create=no
17740 fi
17741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17742 fi
17743 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17744 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17745
17746
17747 fi
17748
17749
17750 fi
17751
17752
17753 fi
17754
17755
17756
17757 cat >>confdefs.h <<\_ACEOF
17758 #define FDLIBS 1
17759 _ACEOF
17760
17761
17762
17763 CFLAGS=${CFLAGS--O}
17764 LDFLAGS=${LDFLAGS--O}
17765 DB_LIBS="${SQL_LFLAGS}"
17766
17767 CPPFLAGS="$CPPFLAGS"
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782 OBJLIST=
17783
17784
17785 lld="lld"
17786 llu="llu"
17787
17788 WCFLAGS=
17789 WLDFLAGS=
17790
17791 #
17792 # Finally we set appropriate distribution specific
17793 #  variables and defaults
17794 #
17795 # PFILES are platform specific files
17796 PFILES="platforms/Makefile"
17797 PSCMD="ps -e"
17798 WIN32=
17799 hostname=`uname -n | cut -d '.' -f 1`
17800 case "$DISTNAME" in
17801 aix)
17802         DISTVER=`uname -r`
17803         PSCMD="ps -e -o pid,comm"
17804         PFILES="${PFILES} \
17805            platforms/aix/Makefile"
17806         TAPEDRIVE="/dev/rmt0.1"
17807   ;;
17808 alpha)
17809         DISTVER=`uname -r`
17810         PTHREAD_LIB="-lpthread -lexc"
17811         if test "${CC}" = "gcc" ; then
17812            lld="lld"
17813            llu="llu"
17814         else
17815            lld="ld"
17816            llu="lu"
17817         fi
17818         TAPEDRIVE="/dev/nrmt0"
17819   ;;
17820 bsdi)
17821         DISTVER=`uname -a |awk '{print $3}'`
17822         TAPEDRIVE="/dev/nrmt0"
17823         PTHREAD_LIB="-pthread"
17824         CFLAGS="${CFLAGS} -pthread"
17825         PSCMD="ps -x -o pid,command"
17826         lld="qd"
17827         llu="qu"
17828         PFILES="${PFILES} \
17829             platforms/bsdi/Makefile \
17830             platforms/bsdi/bacula-fd \
17831             platforms/bsdi/bacula-sd \
17832             platforms/bsdi/bacula-dir"
17833         largefile_support="yes"
17834   ;;
17835 cygwin)
17836         DISTVER=`uname -a |awk '{print $3}'`
17837         TAPEDRIVE="/dev/nrst0"
17838         WIN32=win32
17839         WCFLAGS="-mwindows"
17840         WLDFLAGS="-mwindows"
17841   ;;
17842 darwin)
17843         DISTVER=`uname -r`
17844         TAPEDRIVE="/dev/nst0"
17845         PSCMD="ps -e -o pid,command"
17846         PFILES="${PFILES} \
17847            platforms/darwin/Makefile"
17848   ;;
17849 debian)
17850         DISTVER=`cat /etc/debian_version`
17851         TAPEDRIVE="/dev/nrst0"
17852         PSCMD="ps -e -o pid,command"
17853   ;;
17854 freebsd)
17855         DISTVER=`uname -a |awk '{print $3}'`
17856         VER=`echo $DISTVER | cut -c 1`
17857         if test x$VER = x4 ; then
17858            PTHREAD_LIB="-pthread"
17859            CFLAGS="${CFLAGS} -pthread"
17860         fi
17861         lld="qd"
17862         llu="qu"
17863         TAPEDRIVE="/dev/nrsa0"
17864         PSCMD="ps -x -o pid,command"
17865         PFILES="${PFILES} \
17866             platforms/freebsd/Makefile \
17867             platforms/freebsd/bacula-fd \
17868             platforms/freebsd/bacula-sd \
17869             platforms/freebsd/bacula-dir"
17870         largefile_support="yes"
17871   ;;
17872 hpux)
17873         PSCMD="UNIX95=1 ps -e -o pid,comm"
17874         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
17875         DISTVER=`uname -r`
17876         TAPEDRIVE="/dev/rmt/0hnb"
17877   ;;
17878 irix)
17879         DISTVER=`uname -r`
17880         TAPEDRIVE="/dev/rmt/0cbn"
17881         PSCMD="ps -e -o pid,comm"
17882         PFILES="${PFILES} \
17883             platforms/irix/Makefile \
17884             platforms/irix/bacula-fd \
17885             platforms/irix/bacula-sd \
17886             platforms/irix/bacula-dir"
17887   ;;
17888 netbsd)
17889         DISTVER=`uname -a |awk '{print $3}'`
17890         lld="qd"
17891         llu="qu"
17892         TAPEDRIVE="/dev/nrst0"
17893         PSCMD="ps -a -o pid,command"
17894         PTHREAD_LIB="-pthread"
17895         CFLAGS="${CFLAGS} -pthread"
17896   ;;
17897 openbsd)
17898         DISTVER=`uname -a |awk '{print $3}'`
17899         lld="qd"
17900         llu="qu"
17901         TAPEDRIVE="/dev/nrst0"
17902         PSCMD="ps -a -o pid,command"
17903         PTHREAD_LIB="-pthread"
17904         CFLAGS="${CFLAGS} -pthread"
17905         PFILES="${PFILES} \
17906             platforms/openbsd/Makefile \
17907             platforms/openbsd/bacula-fd \
17908             platforms/openbsd/bacula-sd \
17909             platforms/openbsd/bacula-dir"
17910   ;;
17911 redhat)
17912         if test `cat /etc/redhat-release | grep release |\
17913                    cut -f 3 -d ' '`x = "Enterprise"x ; then
17914            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17915                     cut -f 6 -d ' '`
17916         else
17917             DISTVER=`cat /etc/redhat-release | grep release |\
17918                      cut -f 5 -d ' '`
17919         fi
17920         TAPEDRIVE="/dev/nst0"
17921         PSCMD="ps -e -o pid,command"
17922         PFILES="${PFILES} \
17923             platforms/redhat/Makefile \
17924             platforms/redhat/bacula-fd \
17925             platforms/redhat/bacula-sd \
17926             platforms/redhat/bacula-dir \
17927             platforms/redhat/bacula.spec \
17928             "
17929         hostname=`hostname -s`
17930   ;;
17931 mandrake)
17932         DISTVER=`cat /etc/mandrake-release | grep release |\
17933            cut -f 5 -d ' '`
17934         TAPEDRIVE="/dev/nst0"
17935         PSCMD="ps -e -o pid,command"
17936         PFILES="${PFILES} \
17937             platforms/mandrake/Makefile \
17938             platforms/mandrake/bacula-fd \
17939             platforms/mandrake/bacula-sd \
17940             platforms/mandrake/bacula-dir \
17941             platforms/mandrake/bacula.spec \
17942             "
17943   ;;
17944 gentoo)
17945         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17946         TAPEDRIVE="/dev/nst0"
17947         PSCMD="ps -e -o pid,command"
17948         PFILES="${PFILES} \
17949             platforms/gentoo/Makefile \
17950             platforms/gentoo/bacula-fd \
17951             platforms/gentoo/bacula-sd \
17952             platforms/gentoo/bacula-dir"
17953   ;;
17954
17955 slackware)
17956         DISTVER=`cat /etc/slackware-version`
17957         TAPEDRIVE="/dev/nst0"
17958         PSCMD="ps -e -o pid,command"
17959   ;;
17960 solaris)
17961         DISTVER=`uname -r`
17962         TAPEDRIVE="/dev/rmt/0cbn"
17963         PSCMD="ps -e -o pid,comm"
17964         PFILES="${PFILES} \
17965             platforms/solaris/Makefile \
17966             platforms/solaris/bacula-fd \
17967             platforms/solaris/bacula-sd \
17968             platforms/solaris/bacula-dir"
17969         if test x$DISTVER = x5.6 ; then
17970             cat >>confdefs.h <<\_ACEOF
17971 #define HAVE_OLD_SOCKOPT 1
17972 _ACEOF
17973
17974         fi
17975   ;;
17976 suse)
17977         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17978             cut -f 3 -d ' '`
17979         TAPEDRIVE="/dev/nst0"
17980         PSCMD="ps -e -o pid,command"
17981         PFILES="${PFILES} \
17982             platforms/suse/Makefile \
17983             platforms/suse/bacula-fd \
17984             platforms/suse/bacula-sd \
17985             platforms/suse/bacula-dir \
17986             platforms/suse/bacula \
17987             platforms/suse/bacula.spec"
17988   ;;
17989 suse5)
17990         DISTNAME=suse
17991         DISTVER=5.x
17992         TAPEDRIVE="/dev/nst0"
17993         PSCMD="ps -e -o pid,command"
17994         PFILES="${PFILES} \
17995             platforms/suse/Makefile \
17996             platforms/suse/bacula-fd \
17997             platforms/suse/bacula-sd \
17998             platforms/suse/bacula-dir"
17999   ;;
18000 unknown)
18001         DISTVER=unknown
18002         TAPEDRIVE="/dev/nst0"
18003   ;;
18004 *)
18005   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18006   ;;
18007 esac
18008
18009
18010
18011 LIBS="$PTHREAD_LIB $LIBS"
18012
18013 cat >>confdefs.h <<_ACEOF
18014 #define lld "$lld"
18015 _ACEOF
18016
18017 cat >>confdefs.h <<_ACEOF
18018 #define llu "$llu"
18019 _ACEOF
18020
18021
18022
18023
18024
18025
18026
18027 MCOMMON=./autoconf/Make.common
18028
18029
18030 if test "x${subsysdir}" = "x${sbindir}" ; then
18031    echo " "
18032    echo " "
18033    echo "You have set both --sbindir and --with-subsys-dir"
18034    echo "  equal to: ${subsysdir} "
18035    echo "This is not permitted. Please reconfigure."
18036    echo " "
18037    echo "Aborting configuration ..."
18038    echo " "
18039    echo " "
18040    exit 1
18041 fi
18042
18043                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   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/bconsole scripts/gconsole scripts/bacula scripts/devel_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/bconsole.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/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile $PFILES"
18044           ac_config_commands="$ac_config_commands default"
18045 cat >confcache <<\_ACEOF
18046 # This file is a shell script that caches the results of configure
18047 # tests run on this system so they can be shared between configure
18048 # scripts and configure runs, see configure's option --config-cache.
18049 # It is not useful on other systems.  If it contains results you don't
18050 # want to keep, you may remove or edit it.
18051 #
18052 # config.status only pays attention to the cache file if you give it
18053 # the --recheck option to rerun configure.
18054 #
18055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18057 # following values.
18058
18059 _ACEOF
18060
18061 # The following way of writing the cache mishandles newlines in values,
18062 # but we know of no workaround that is simple, portable, and efficient.
18063 # So, don't put newlines in cache variables' values.
18064 # Ultrix sh set writes to stderr and can't be redirected directly,
18065 # and sets the high bit in the cache file unless we assign to the vars.
18066 {
18067   (set) 2>&1 |
18068     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18069     *ac_space=\ *)
18070       # `set' does not quote correctly, so add quotes (double-quote
18071       # substitution turns \\\\ into \\, and sed turns \\ into \).
18072       sed -n \
18073         "s/'/'\\\\''/g;
18074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18075       ;;
18076     *)
18077       # `set' quotes correctly as required by POSIX, so do not add quotes.
18078       sed -n \
18079         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18080       ;;
18081     esac;
18082 } |
18083   sed '
18084      t clear
18085      : clear
18086      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18087      t end
18088      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18089      : end' >>confcache
18090 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18091   if test -w $cache_file; then
18092     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18093     cat confcache >$cache_file
18094   else
18095     echo "not updating unwritable cache $cache_file"
18096   fi
18097 fi
18098 rm -f confcache
18099
18100 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18101 # Let make expand exec_prefix.
18102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18103
18104 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18105 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18106 # trailing colons and then remove the whole line if VPATH becomes empty
18107 # (actually we leave an empty line to preserve line numbers).
18108 if test "x$srcdir" = x.; then
18109   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18110 s/:*\$(srcdir):*/:/;
18111 s/:*\${srcdir}:*/:/;
18112 s/:*@srcdir@:*/:/;
18113 s/^\([^=]*=[    ]*\):*/\1/;
18114 s/:*$//;
18115 s/^[^=]*=[      ]*$//;
18116 }'
18117 fi
18118
18119 DEFS=-DHAVE_CONFIG_H
18120
18121 ac_libobjs=
18122 ac_ltlibobjs=
18123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18124   # 1. Remove the extension, and $U if already installed.
18125   ac_i=`echo "$ac_i" |
18126          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18127   # 2. Add them.
18128   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18129   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18130 done
18131 LIBOBJS=$ac_libobjs
18132
18133 LTLIBOBJS=$ac_ltlibobjs
18134
18135
18136
18137 : ${CONFIG_STATUS=./config.status}
18138 ac_clean_files_save=$ac_clean_files
18139 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18140 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18141 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18142 cat >$CONFIG_STATUS <<_ACEOF
18143 #! $SHELL
18144 # Generated by $as_me.
18145 # Run this file to recreate the current configuration.
18146 # Compiler output produced by configure, useful for debugging
18147 # configure, is in config.log if it exists.
18148
18149 debug=false
18150 ac_cs_recheck=false
18151 ac_cs_silent=false
18152 SHELL=\${CONFIG_SHELL-$SHELL}
18153 _ACEOF
18154
18155 cat >>$CONFIG_STATUS <<\_ACEOF
18156 ## --------------------- ##
18157 ## M4sh Initialization.  ##
18158 ## --------------------- ##
18159
18160 # Be Bourne compatible
18161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18162   emulate sh
18163   NULLCMD=:
18164   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18165   # is contrary to our usage.  Disable this feature.
18166   alias -g '${1+"$@"}'='"$@"'
18167 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18168   set -o posix
18169 fi
18170
18171 # Support unset when possible.
18172 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18173   as_unset=unset
18174 else
18175   as_unset=false
18176 fi
18177
18178
18179 # Work around bugs in pre-3.0 UWIN ksh.
18180 $as_unset ENV MAIL MAILPATH
18181 PS1='$ '
18182 PS2='> '
18183 PS4='+ '
18184
18185 # NLS nuisances.
18186 for as_var in \
18187   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18188   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18189   LC_TELEPHONE LC_TIME
18190 do
18191   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18192     eval $as_var=C; export $as_var
18193   else
18194     $as_unset $as_var
18195   fi
18196 done
18197
18198 # Required to use basename.
18199 if expr a : '\(a\)' >/dev/null 2>&1; then
18200   as_expr=expr
18201 else
18202   as_expr=false
18203 fi
18204
18205 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18206   as_basename=basename
18207 else
18208   as_basename=false
18209 fi
18210
18211
18212 # Name of the executable.
18213 as_me=`$as_basename "$0" ||
18214 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18215          X"$0" : 'X\(//\)$' \| \
18216          X"$0" : 'X\(/\)$' \| \
18217          .     : '\(.\)' 2>/dev/null ||
18218 echo X/"$0" |
18219     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18220           /^X\/\(\/\/\)$/{ s//\1/; q; }
18221           /^X\/\(\/\).*/{ s//\1/; q; }
18222           s/.*/./; q'`
18223
18224
18225 # PATH needs CR, and LINENO needs CR and PATH.
18226 # Avoid depending upon Character Ranges.
18227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18230 as_cr_digits='0123456789'
18231 as_cr_alnum=$as_cr_Letters$as_cr_digits
18232
18233 # The user is always right.
18234 if test "${PATH_SEPARATOR+set}" != set; then
18235   echo "#! /bin/sh" >conf$$.sh
18236   echo  "exit 0"   >>conf$$.sh
18237   chmod +x conf$$.sh
18238   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18239     PATH_SEPARATOR=';'
18240   else
18241     PATH_SEPARATOR=:
18242   fi
18243   rm -f conf$$.sh
18244 fi
18245
18246
18247   as_lineno_1=$LINENO
18248   as_lineno_2=$LINENO
18249   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18250   test "x$as_lineno_1" != "x$as_lineno_2" &&
18251   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18252   # Find who we are.  Look in the path if we contain no path at all
18253   # relative or not.
18254   case $0 in
18255     *[\\/]* ) as_myself=$0 ;;
18256     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18257 for as_dir in $PATH
18258 do
18259   IFS=$as_save_IFS
18260   test -z "$as_dir" && as_dir=.
18261   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18262 done
18263
18264        ;;
18265   esac
18266   # We did not find ourselves, most probably we were run as `sh COMMAND'
18267   # in which case we are not to be found in the path.
18268   if test "x$as_myself" = x; then
18269     as_myself=$0
18270   fi
18271   if test ! -f "$as_myself"; then
18272     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18273 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18274    { (exit 1); exit 1; }; }
18275   fi
18276   case $CONFIG_SHELL in
18277   '')
18278     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18279 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18280 do
18281   IFS=$as_save_IFS
18282   test -z "$as_dir" && as_dir=.
18283   for as_base in sh bash ksh sh5; do
18284          case $as_dir in
18285          /*)
18286            if ("$as_dir/$as_base" -c '
18287   as_lineno_1=$LINENO
18288   as_lineno_2=$LINENO
18289   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18290   test "x$as_lineno_1" != "x$as_lineno_2" &&
18291   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18292              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18293              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18294              CONFIG_SHELL=$as_dir/$as_base
18295              export CONFIG_SHELL
18296              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18297            fi;;
18298          esac
18299        done
18300 done
18301 ;;
18302   esac
18303
18304   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18305   # uniformly replaced by the line number.  The first 'sed' inserts a
18306   # line-number line before each line; the second 'sed' does the real
18307   # work.  The second script uses 'N' to pair each line-number line
18308   # with the numbered line, and appends trailing '-' during
18309   # substitution so that $LINENO is not a special case at line end.
18310   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18311   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18312   sed '=' <$as_myself |
18313     sed '
18314       N
18315       s,$,-,
18316       : loop
18317       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18318       t loop
18319       s,-$,,
18320       s,^['$as_cr_digits']*\n,,
18321     ' >$as_me.lineno &&
18322   chmod +x $as_me.lineno ||
18323     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18324 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18325    { (exit 1); exit 1; }; }
18326
18327   # Don't try to exec as it changes $[0], causing all sort of problems
18328   # (the dirname of $[0] is not the place where we might find the
18329   # original and so on.  Autoconf is especially sensible to this).
18330   . ./$as_me.lineno
18331   # Exit status is that of the last command.
18332   exit
18333 }
18334
18335
18336 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18337   *c*,-n*) ECHO_N= ECHO_C='
18338 ' ECHO_T='      ' ;;
18339   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18340   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18341 esac
18342
18343 if expr a : '\(a\)' >/dev/null 2>&1; then
18344   as_expr=expr
18345 else
18346   as_expr=false
18347 fi
18348
18349 rm -f conf$$ conf$$.exe conf$$.file
18350 echo >conf$$.file
18351 if ln -s conf$$.file conf$$ 2>/dev/null; then
18352   # We could just check for DJGPP; but this test a) works b) is more generic
18353   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18354   if test -f conf$$.exe; then
18355     # Don't use ln at all; we don't have any links
18356     as_ln_s='cp -p'
18357   else
18358     as_ln_s='ln -s'
18359   fi
18360 elif ln conf$$.file conf$$ 2>/dev/null; then
18361   as_ln_s=ln
18362 else
18363   as_ln_s='cp -p'
18364 fi
18365 rm -f conf$$ conf$$.exe conf$$.file
18366
18367 if mkdir -p . 2>/dev/null; then
18368   as_mkdir_p=:
18369 else
18370   as_mkdir_p=false
18371 fi
18372
18373 as_executable_p="test -f"
18374
18375 # Sed expression to map a string onto a valid CPP name.
18376 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18377
18378 # Sed expression to map a string onto a valid variable name.
18379 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18380
18381
18382 # IFS
18383 # We need space, tab and new line, in precisely that order.
18384 as_nl='
18385 '
18386 IFS="   $as_nl"
18387
18388 # CDPATH.
18389 $as_unset CDPATH
18390
18391 exec 6>&1
18392
18393 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18394 # report actual input values of CONFIG_FILES etc. instead of their
18395 # values after options handling.  Logging --version etc. is OK.
18396 exec 5>>config.log
18397 {
18398   echo
18399   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18400 ## Running $as_me. ##
18401 _ASBOX
18402 } >&5
18403 cat >&5 <<_CSEOF
18404
18405 This file was extended by $as_me, which was
18406 generated by GNU Autoconf 2.57.  Invocation command line was
18407
18408   CONFIG_FILES    = $CONFIG_FILES
18409   CONFIG_HEADERS  = $CONFIG_HEADERS
18410   CONFIG_LINKS    = $CONFIG_LINKS
18411   CONFIG_COMMANDS = $CONFIG_COMMANDS
18412   $ $0 $@
18413
18414 _CSEOF
18415 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18416 echo >&5
18417 _ACEOF
18418
18419 # Files that config.status was made for.
18420 if test -n "$ac_config_files"; then
18421   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18422 fi
18423
18424 if test -n "$ac_config_headers"; then
18425   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18426 fi
18427
18428 if test -n "$ac_config_links"; then
18429   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18430 fi
18431
18432 if test -n "$ac_config_commands"; then
18433   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18434 fi
18435
18436 cat >>$CONFIG_STATUS <<\_ACEOF
18437
18438 ac_cs_usage="\
18439 \`$as_me' instantiates files from templates according to the
18440 current configuration.
18441
18442 Usage: $0 [OPTIONS] [FILE]...
18443
18444   -h, --help       print this help, then exit
18445   -V, --version    print version number, then exit
18446   -q, --quiet      do not print progress messages
18447   -d, --debug      don't remove temporary files
18448       --recheck    update $as_me by reconfiguring in the same conditions
18449   --file=FILE[:TEMPLATE]
18450                    instantiate the configuration file FILE
18451   --header=FILE[:TEMPLATE]
18452                    instantiate the configuration header FILE
18453
18454 Configuration files:
18455 $config_files
18456
18457 Configuration headers:
18458 $config_headers
18459
18460 Configuration commands:
18461 $config_commands
18462
18463 Report bugs to <bug-autoconf@gnu.org>."
18464 _ACEOF
18465
18466 cat >>$CONFIG_STATUS <<_ACEOF
18467 ac_cs_version="\\
18468 config.status
18469 configured by $0, generated by GNU Autoconf 2.57,
18470   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18471
18472 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18473 Free Software Foundation, Inc.
18474 This config.status script is free software; the Free Software Foundation
18475 gives unlimited permission to copy, distribute and modify it."
18476 srcdir=$srcdir
18477 INSTALL="$INSTALL"
18478 _ACEOF
18479
18480 cat >>$CONFIG_STATUS <<\_ACEOF
18481 # If no file are specified by the user, then we need to provide default
18482 # value.  By we need to know if files were specified by the user.
18483 ac_need_defaults=:
18484 while test $# != 0
18485 do
18486   case $1 in
18487   --*=*)
18488     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18489     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18490     ac_shift=:
18491     ;;
18492   -*)
18493     ac_option=$1
18494     ac_optarg=$2
18495     ac_shift=shift
18496     ;;
18497   *) # This is not an option, so the user has probably given explicit
18498      # arguments.
18499      ac_option=$1
18500      ac_need_defaults=false;;
18501   esac
18502
18503   case $ac_option in
18504   # Handling of the options.
18505 _ACEOF
18506 cat >>$CONFIG_STATUS <<\_ACEOF
18507   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18508     ac_cs_recheck=: ;;
18509   --version | --vers* | -V )
18510     echo "$ac_cs_version"; exit 0 ;;
18511   --he | --h)
18512     # Conflict between --help and --header
18513     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18514 Try \`$0 --help' for more information." >&5
18515 echo "$as_me: error: ambiguous option: $1
18516 Try \`$0 --help' for more information." >&2;}
18517    { (exit 1); exit 1; }; };;
18518   --help | --hel | -h )
18519     echo "$ac_cs_usage"; exit 0 ;;
18520   --debug | --d* | -d )
18521     debug=: ;;
18522   --file | --fil | --fi | --f )
18523     $ac_shift
18524     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18525     ac_need_defaults=false;;
18526   --header | --heade | --head | --hea )
18527     $ac_shift
18528     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18529     ac_need_defaults=false;;
18530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18531   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18532     ac_cs_silent=: ;;
18533
18534   # This is an error.
18535   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18536 Try \`$0 --help' for more information." >&5
18537 echo "$as_me: error: unrecognized option: $1
18538 Try \`$0 --help' for more information." >&2;}
18539    { (exit 1); exit 1; }; } ;;
18540
18541   *) ac_config_targets="$ac_config_targets $1" ;;
18542
18543   esac
18544   shift
18545 done
18546
18547 ac_configure_extra_args=
18548
18549 if $ac_cs_silent; then
18550   exec 6>/dev/null
18551   ac_configure_extra_args="$ac_configure_extra_args --silent"
18552 fi
18553
18554 _ACEOF
18555 cat >>$CONFIG_STATUS <<_ACEOF
18556 if \$ac_cs_recheck; then
18557   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18558   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18559 fi
18560
18561 _ACEOF
18562
18563
18564
18565
18566
18567 cat >>$CONFIG_STATUS <<\_ACEOF
18568 for ac_config_target in $ac_config_targets
18569 do
18570   case "$ac_config_target" in
18571   # Handling of arguments.
18572   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18573   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18574   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18575   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18576   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18577   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18578   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18579   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18580   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18581   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18582   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18583   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18584   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18585   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18586   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18587   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18588   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18589   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18590   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18591   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18592   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18593   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18594   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18595   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18596   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18597   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18598   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18599   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18600   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18601   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18602   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18603   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18604   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18605   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18606   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18607   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18608   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18609   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18610   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18611   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18612   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18613   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18614   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18615   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18616   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18617   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18618   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18619   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18620   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18621   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18622   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18623   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18624   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18625   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18626   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18627   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18628   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18629   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18630   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18631   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18632   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18633   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18634   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18635   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18636   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18637   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18638   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18639   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18640   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18641   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18642   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18643   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18644   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18645   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18646   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18647   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18648   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18649   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18650   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18651   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18652 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18653    { (exit 1); exit 1; }; };;
18654   esac
18655 done
18656
18657 # If the user did not use the arguments to specify the items to instantiate,
18658 # then the envvar interface is used.  Set only those that are not.
18659 # We use the long form for the default assignment because of an extremely
18660 # bizarre bug on SunOS 4.1.3.
18661 if $ac_need_defaults; then
18662   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18663   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18664   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18665 fi
18666
18667 # Have a temporary directory for convenience.  Make it in the build tree
18668 # simply because there is no reason to put it here, and in addition,
18669 # creating and moving files from /tmp can sometimes cause problems.
18670 # Create a temporary directory, and hook for its removal unless debugging.
18671 $debug ||
18672 {
18673   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18674   trap '{ (exit 1); exit 1; }' 1 2 13 15
18675 }
18676
18677 # Create a (secure) tmp directory for tmp files.
18678
18679 {
18680   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18681   test -n "$tmp" && test -d "$tmp"
18682 }  ||
18683 {
18684   tmp=./confstat$$-$RANDOM
18685   (umask 077 && mkdir $tmp)
18686 } ||
18687 {
18688    echo "$me: cannot create a temporary directory in ." >&2
18689    { (exit 1); exit 1; }
18690 }
18691
18692 _ACEOF
18693
18694 cat >>$CONFIG_STATUS <<_ACEOF
18695
18696 #
18697 # CONFIG_FILES section.
18698 #
18699
18700 # No need to generate the scripts if there are no CONFIG_FILES.
18701 # This happens for instance when ./config.status config.h
18702 if test -n "\$CONFIG_FILES"; then
18703   # Protect against being on the right side of a sed subst in config.status.
18704   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18705    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18706 s,@SHELL@,$SHELL,;t t
18707 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18708 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18709 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18710 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18711 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18712 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18713 s,@exec_prefix@,$exec_prefix,;t t
18714 s,@prefix@,$prefix,;t t
18715 s,@program_transform_name@,$program_transform_name,;t t
18716 s,@bindir@,$bindir,;t t
18717 s,@sbindir@,$sbindir,;t t
18718 s,@libexecdir@,$libexecdir,;t t
18719 s,@datadir@,$datadir,;t t
18720 s,@sysconfdir@,$sysconfdir,;t t
18721 s,@sharedstatedir@,$sharedstatedir,;t t
18722 s,@localstatedir@,$localstatedir,;t t
18723 s,@libdir@,$libdir,;t t
18724 s,@includedir@,$includedir,;t t
18725 s,@oldincludedir@,$oldincludedir,;t t
18726 s,@infodir@,$infodir,;t t
18727 s,@mandir@,$mandir,;t t
18728 s,@build_alias@,$build_alias,;t t
18729 s,@host_alias@,$host_alias,;t t
18730 s,@target_alias@,$target_alias,;t t
18731 s,@DEFS@,$DEFS,;t t
18732 s,@ECHO_C@,$ECHO_C,;t t
18733 s,@ECHO_N@,$ECHO_N,;t t
18734 s,@ECHO_T@,$ECHO_T,;t t
18735 s,@LIBS@,$LIBS,;t t
18736 s,@BUILD_DIR@,$BUILD_DIR,;t t
18737 s,@TRUEPRG@,$TRUEPRG,;t t
18738 s,@FALSEPRG@,$FALSEPRG,;t t
18739 s,@build@,$build,;t t
18740 s,@build_cpu@,$build_cpu,;t t
18741 s,@build_vendor@,$build_vendor,;t t
18742 s,@build_os@,$build_os,;t t
18743 s,@host@,$host,;t t
18744 s,@host_cpu@,$host_cpu,;t t
18745 s,@host_vendor@,$host_vendor,;t t
18746 s,@host_os@,$host_os,;t t
18747 s,@VERSION@,$VERSION,;t t
18748 s,@DATE@,$DATE,;t t
18749 s,@LSMDATE@,$LSMDATE,;t t
18750 s,@CC@,$CC,;t t
18751 s,@CFLAGS@,$CFLAGS,;t t
18752 s,@LDFLAGS@,$LDFLAGS,;t t
18753 s,@CPPFLAGS@,$CPPFLAGS,;t t
18754 s,@ac_ct_CC@,$ac_ct_CC,;t t
18755 s,@EXEEXT@,$EXEEXT,;t t
18756 s,@OBJEXT@,$OBJEXT,;t t
18757 s,@CXX@,$CXX,;t t
18758 s,@CXXFLAGS@,$CXXFLAGS,;t t
18759 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18760 s,@CPP@,$CPP,;t t
18761 s,@EGREP@,$EGREP,;t t
18762 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18763 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18764 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18765 s,@RANLIB@,$RANLIB,;t t
18766 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18767 s,@MV@,$MV,;t t
18768 s,@RM@,$RM,;t t
18769 s,@CP@,$CP,;t t
18770 s,@SED@,$SED,;t t
18771 s,@AWK@,$AWK,;t t
18772 s,@ECHO@,$ECHO,;t t
18773 s,@CMP@,$CMP,;t t
18774 s,@TBL@,$TBL,;t t
18775 s,@AR@,$AR,;t t
18776 s,@OPENSSL@,$OPENSSL,;t t
18777 s,@MTX@,$MTX,;t t
18778 s,@PKGCONFIG@,$PKGCONFIG,;t t
18779 s,@ARFLAGS@,$ARFLAGS,;t t
18780 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18781 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18782 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18783 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18784 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18785 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18786 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18787 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18788 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18789 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18790 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18791 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18792 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18793 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18794 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18795 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18796 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18797 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18798 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18799 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18800 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18801 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18802 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18803 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18804 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18805 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18806 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18807 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18808 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18809 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18810 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18811 s,@MSGFMT@,$MSGFMT,;t t
18812 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18813 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18814 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18815 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18816 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18817 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18818 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18819 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18820 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18821 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18822 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18823 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18824 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18825 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18826 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18827 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18828 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18829 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18830 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18831 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18832 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18833 s,@GNOME_DIR@,$GNOME_DIR,;t t
18834 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18835 s,@STATIC_FD@,$STATIC_FD,;t t
18836 s,@STATIC_SD@,$STATIC_SD,;t t
18837 s,@STATIC_DIR@,$STATIC_DIR,;t t
18838 s,@STATIC_CONS@,$STATIC_CONS,;t t
18839 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18840 s,@ALL_DIRS@,$ALL_DIRS,;t t
18841 s,@CONS_INC@,$CONS_INC,;t t
18842 s,@CONS_OBJ@,$CONS_OBJ,;t t
18843 s,@CONS_SRC@,$CONS_SRC,;t t
18844 s,@CONS_LIBS@,$CONS_LIBS,;t t
18845 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18846 s,@READLINE_SRC@,$READLINE_SRC,;t t
18847 s,@working_dir@,$working_dir,;t t
18848 s,@scriptdir@,$scriptdir,;t t
18849 s,@dump_email@,$dump_email,;t t
18850 s,@job_email@,$job_email,;t t
18851 s,@smtp_host@,$smtp_host,;t t
18852 s,@piddir@,$piddir,;t t
18853 s,@subsysdir@,$subsysdir,;t t
18854 s,@baseport@,$baseport,;t t
18855 s,@dir_port@,$dir_port,;t t
18856 s,@fd_port@,$fd_port,;t t
18857 s,@sd_port@,$sd_port,;t t
18858 s,@dir_password@,$dir_password,;t t
18859 s,@fd_password@,$fd_password,;t t
18860 s,@sd_password@,$sd_password,;t t
18861 s,@dir_user@,$dir_user,;t t
18862 s,@dir_group@,$dir_group,;t t
18863 s,@sd_user@,$sd_user,;t t
18864 s,@sd_group@,$sd_group,;t t
18865 s,@fd_user@,$fd_user,;t t
18866 s,@fd_group@,$fd_group,;t t
18867 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18868 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18869 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18870 s,@cats@,$cats,;t t
18871 s,@DB_NAME@,$DB_NAME,;t t
18872 s,@GETCONF@,$GETCONF,;t t
18873 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18874 s,@X_CFLAGS@,$X_CFLAGS,;t t
18875 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18876 s,@X_LIBS@,$X_LIBS,;t t
18877 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18878 s,@LIBOBJS@,$LIBOBJS,;t t
18879 s,@ALLOCA@,$ALLOCA,;t t
18880 s,@FDLIBS@,$FDLIBS,;t t
18881 s,@DEBUG@,$DEBUG,;t t
18882 s,@DINCLUDE@,$DINCLUDE,;t t
18883 s,@DLIB@,$DLIB,;t t
18884 s,@DB_LIBS@,$DB_LIBS,;t t
18885 s,@WCFLAGS@,$WCFLAGS,;t t
18886 s,@WLDFLAGS@,$WLDFLAGS,;t t
18887 s,@OBJLIST@,$OBJLIST,;t t
18888 s,@hostname@,$hostname,;t t
18889 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18890 s,@PSCMD@,$PSCMD,;t t
18891 s,@WIN32@,$WIN32,;t t
18892 s,@DISTNAME@,$DISTNAME,;t t
18893 s,@DISTVER@,$DISTVER,;t t
18894 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18895 /@MCOMMON@/r $MCOMMON
18896 s,@MCOMMON@,,;t t
18897 CEOF
18898
18899 _ACEOF
18900
18901   cat >>$CONFIG_STATUS <<\_ACEOF
18902   # Split the substitutions into bite-sized pieces for seds with
18903   # small command number limits, like on Digital OSF/1 and HP-UX.
18904   ac_max_sed_lines=48
18905   ac_sed_frag=1 # Number of current file.
18906   ac_beg=1 # First line for current file.
18907   ac_end=$ac_max_sed_lines # Line after last line for current file.
18908   ac_more_lines=:
18909   ac_sed_cmds=
18910   while $ac_more_lines; do
18911     if test $ac_beg -gt 1; then
18912       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18913     else
18914       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18915     fi
18916     if test ! -s $tmp/subs.frag; then
18917       ac_more_lines=false
18918     else
18919       # The purpose of the label and of the branching condition is to
18920       # speed up the sed processing (if there are no `@' at all, there
18921       # is no need to browse any of the substitutions).
18922       # These are the two extra sed commands mentioned above.
18923       (echo ':t
18924   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18925       if test -z "$ac_sed_cmds"; then
18926         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18927       else
18928         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18929       fi
18930       ac_sed_frag=`expr $ac_sed_frag + 1`
18931       ac_beg=$ac_end
18932       ac_end=`expr $ac_end + $ac_max_sed_lines`
18933     fi
18934   done
18935   if test -z "$ac_sed_cmds"; then
18936     ac_sed_cmds=cat
18937   fi
18938 fi # test -n "$CONFIG_FILES"
18939
18940 _ACEOF
18941 cat >>$CONFIG_STATUS <<\_ACEOF
18942 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18943   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18944   case $ac_file in
18945   - | *:- | *:-:* ) # input from stdin
18946         cat >$tmp/stdin
18947         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18948         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18949   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18950         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18951   * )   ac_file_in=$ac_file.in ;;
18952   esac
18953
18954   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18955   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18957          X"$ac_file" : 'X\(//\)[^/]' \| \
18958          X"$ac_file" : 'X\(//\)$' \| \
18959          X"$ac_file" : 'X\(/\)' \| \
18960          .     : '\(.\)' 2>/dev/null ||
18961 echo X"$ac_file" |
18962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18964           /^X\(\/\/\)$/{ s//\1/; q; }
18965           /^X\(\/\).*/{ s//\1/; q; }
18966           s/.*/./; q'`
18967   { if $as_mkdir_p; then
18968     mkdir -p "$ac_dir"
18969   else
18970     as_dir="$ac_dir"
18971     as_dirs=
18972     while test ! -d "$as_dir"; do
18973       as_dirs="$as_dir $as_dirs"
18974       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18976          X"$as_dir" : 'X\(//\)[^/]' \| \
18977          X"$as_dir" : 'X\(//\)$' \| \
18978          X"$as_dir" : 'X\(/\)' \| \
18979          .     : '\(.\)' 2>/dev/null ||
18980 echo X"$as_dir" |
18981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18982           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18983           /^X\(\/\/\)$/{ s//\1/; q; }
18984           /^X\(\/\).*/{ s//\1/; q; }
18985           s/.*/./; q'`
18986     done
18987     test ! -n "$as_dirs" || mkdir $as_dirs
18988   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18989 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18990    { (exit 1); exit 1; }; }; }
18991
18992   ac_builddir=.
18993
18994 if test "$ac_dir" != .; then
18995   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18996   # A "../" for each directory in $ac_dir_suffix.
18997   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18998 else
18999   ac_dir_suffix= ac_top_builddir=
19000 fi
19001
19002 case $srcdir in
19003   .)  # No --srcdir option.  We are building in place.
19004     ac_srcdir=.
19005     if test -z "$ac_top_builddir"; then
19006        ac_top_srcdir=.
19007     else
19008        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19009     fi ;;
19010   [\\/]* | ?:[\\/]* )  # Absolute path.
19011     ac_srcdir=$srcdir$ac_dir_suffix;
19012     ac_top_srcdir=$srcdir ;;
19013   *) # Relative path.
19014     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19015     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19016 esac
19017 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19018 # absolute.
19019 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19020 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19021 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19022 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19023
19024
19025   case $INSTALL in
19026   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19027   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19028   esac
19029
19030   if test x"$ac_file" != x-; then
19031     { echo "$as_me:$LINENO: creating $ac_file" >&5
19032 echo "$as_me: creating $ac_file" >&6;}
19033     rm -f "$ac_file"
19034   fi
19035   # Let's still pretend it is `configure' which instantiates (i.e., don't
19036   # use $as_me), people would be surprised to read:
19037   #    /* config.h.  Generated by config.status.  */
19038   if test x"$ac_file" = x-; then
19039     configure_input=
19040   else
19041     configure_input="$ac_file.  "
19042   fi
19043   configure_input=$configure_input"Generated from `echo $ac_file_in |
19044                                      sed 's,.*/,,'` by configure."
19045
19046   # First look for the input files in the build tree, otherwise in the
19047   # src tree.
19048   ac_file_inputs=`IFS=:
19049     for f in $ac_file_in; do
19050       case $f in
19051       -) echo $tmp/stdin ;;
19052       [\\/$]*)
19053          # Absolute (can't be DOS-style, as IFS=:)
19054          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19055 echo "$as_me: error: cannot find input file: $f" >&2;}
19056    { (exit 1); exit 1; }; }
19057          echo $f;;
19058       *) # Relative
19059          if test -f "$f"; then
19060            # Build tree
19061            echo $f
19062          elif test -f "$srcdir/$f"; then
19063            # Source tree
19064            echo $srcdir/$f
19065          else
19066            # /dev/null tree
19067            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19068 echo "$as_me: error: cannot find input file: $f" >&2;}
19069    { (exit 1); exit 1; }; }
19070          fi;;
19071       esac
19072     done` || { (exit 1); exit 1; }
19073 _ACEOF
19074 cat >>$CONFIG_STATUS <<_ACEOF
19075   sed "$ac_vpsub
19076 $extrasub
19077 _ACEOF
19078 cat >>$CONFIG_STATUS <<\_ACEOF
19079 :t
19080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19081 s,@configure_input@,$configure_input,;t t
19082 s,@srcdir@,$ac_srcdir,;t t
19083 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19084 s,@top_srcdir@,$ac_top_srcdir,;t t
19085 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19086 s,@builddir@,$ac_builddir,;t t
19087 s,@abs_builddir@,$ac_abs_builddir,;t t
19088 s,@top_builddir@,$ac_top_builddir,;t t
19089 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19090 s,@INSTALL@,$ac_INSTALL,;t t
19091 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19092   rm -f $tmp/stdin
19093   if test x"$ac_file" != x-; then
19094     mv $tmp/out $ac_file
19095   else
19096     cat $tmp/out
19097     rm -f $tmp/out
19098   fi
19099
19100 done
19101 _ACEOF
19102 cat >>$CONFIG_STATUS <<\_ACEOF
19103
19104 #
19105 # CONFIG_HEADER section.
19106 #
19107
19108 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19109 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19110 #
19111 # ac_d sets the value in "#define NAME VALUE" lines.
19112 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19113 ac_dB='[        ].*$,\1#\2'
19114 ac_dC=' '
19115 ac_dD=',;t'
19116 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19117 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19118 ac_uB='$,\1#\2define\3'
19119 ac_uC=' '
19120 ac_uD=',;t'
19121
19122 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19123   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19124   case $ac_file in
19125   - | *:- | *:-:* ) # input from stdin
19126         cat >$tmp/stdin
19127         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19128         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19129   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19130         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19131   * )   ac_file_in=$ac_file.in ;;
19132   esac
19133
19134   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19135 echo "$as_me: creating $ac_file" >&6;}
19136
19137   # First look for the input files in the build tree, otherwise in the
19138   # src tree.
19139   ac_file_inputs=`IFS=:
19140     for f in $ac_file_in; do
19141       case $f in
19142       -) echo $tmp/stdin ;;
19143       [\\/$]*)
19144          # Absolute (can't be DOS-style, as IFS=:)
19145          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19146 echo "$as_me: error: cannot find input file: $f" >&2;}
19147    { (exit 1); exit 1; }; }
19148          echo $f;;
19149       *) # Relative
19150          if test -f "$f"; then
19151            # Build tree
19152            echo $f
19153          elif test -f "$srcdir/$f"; then
19154            # Source tree
19155            echo $srcdir/$f
19156          else
19157            # /dev/null tree
19158            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19159 echo "$as_me: error: cannot find input file: $f" >&2;}
19160    { (exit 1); exit 1; }; }
19161          fi;;
19162       esac
19163     done` || { (exit 1); exit 1; }
19164   # Remove the trailing spaces.
19165   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19166
19167 _ACEOF
19168
19169 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19170 # `conftest.undefs', that substitutes the proper values into
19171 # config.h.in to produce config.h.  The first handles `#define'
19172 # templates, and the second `#undef' templates.
19173 # And first: Protect against being on the right side of a sed subst in
19174 # config.status.  Protect against being in an unquoted here document
19175 # in config.status.
19176 rm -f conftest.defines conftest.undefs
19177 # Using a here document instead of a string reduces the quoting nightmare.
19178 # Putting comments in sed scripts is not portable.
19179 #
19180 # `end' is used to avoid that the second main sed command (meant for
19181 # 0-ary CPP macros) applies to n-ary macro definitions.
19182 # See the Autoconf documentation for `clear'.
19183 cat >confdef2sed.sed <<\_ACEOF
19184 s/[\\&,]/\\&/g
19185 s,[\\$`],\\&,g
19186 t clear
19187 : clear
19188 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19189 t end
19190 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19191 : end
19192 _ACEOF
19193 # If some macros were called several times there might be several times
19194 # the same #defines, which is useless.  Nevertheless, we may not want to
19195 # sort them, since we want the *last* AC-DEFINE to be honored.
19196 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19197 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19198 rm -f confdef2sed.sed
19199
19200 # This sed command replaces #undef with comments.  This is necessary, for
19201 # example, in the case of _POSIX_SOURCE, which is predefined and required
19202 # on some systems where configure will not decide to define it.
19203 cat >>conftest.undefs <<\_ACEOF
19204 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19205 _ACEOF
19206
19207 # Break up conftest.defines because some shells have a limit on the size
19208 # of here documents, and old seds have small limits too (100 cmds).
19209 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19210 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19211 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19212 echo '  :' >>$CONFIG_STATUS
19213 rm -f conftest.tail
19214 while grep . conftest.defines >/dev/null
19215 do
19216   # Write a limited-size here document to $tmp/defines.sed.
19217   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19218   # Speed up: don't consider the non `#define' lines.
19219   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19220   # Work around the forget-to-reset-the-flag bug.
19221   echo 't clr' >>$CONFIG_STATUS
19222   echo ': clr' >>$CONFIG_STATUS
19223   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19224   echo 'CEOF
19225   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19226   rm -f $tmp/in
19227   mv $tmp/out $tmp/in
19228 ' >>$CONFIG_STATUS
19229   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19230   rm -f conftest.defines
19231   mv conftest.tail conftest.defines
19232 done
19233 rm -f conftest.defines
19234 echo '  fi # grep' >>$CONFIG_STATUS
19235 echo >>$CONFIG_STATUS
19236
19237 # Break up conftest.undefs because some shells have a limit on the size
19238 # of here documents, and old seds have small limits too (100 cmds).
19239 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19240 rm -f conftest.tail
19241 while grep . conftest.undefs >/dev/null
19242 do
19243   # Write a limited-size here document to $tmp/undefs.sed.
19244   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19245   # Speed up: don't consider the non `#undef'
19246   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19247   # Work around the forget-to-reset-the-flag bug.
19248   echo 't clr' >>$CONFIG_STATUS
19249   echo ': clr' >>$CONFIG_STATUS
19250   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19251   echo 'CEOF
19252   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19253   rm -f $tmp/in
19254   mv $tmp/out $tmp/in
19255 ' >>$CONFIG_STATUS
19256   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19257   rm -f conftest.undefs
19258   mv conftest.tail conftest.undefs
19259 done
19260 rm -f conftest.undefs
19261
19262 cat >>$CONFIG_STATUS <<\_ACEOF
19263   # Let's still pretend it is `configure' which instantiates (i.e., don't
19264   # use $as_me), people would be surprised to read:
19265   #    /* config.h.  Generated by config.status.  */
19266   if test x"$ac_file" = x-; then
19267     echo "/* Generated by configure.  */" >$tmp/config.h
19268   else
19269     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19270   fi
19271   cat $tmp/in >>$tmp/config.h
19272   rm -f $tmp/in
19273   if test x"$ac_file" != x-; then
19274     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19275       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19276 echo "$as_me: $ac_file is unchanged" >&6;}
19277     else
19278       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19280          X"$ac_file" : 'X\(//\)[^/]' \| \
19281          X"$ac_file" : 'X\(//\)$' \| \
19282          X"$ac_file" : 'X\(/\)' \| \
19283          .     : '\(.\)' 2>/dev/null ||
19284 echo X"$ac_file" |
19285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19287           /^X\(\/\/\)$/{ s//\1/; q; }
19288           /^X\(\/\).*/{ s//\1/; q; }
19289           s/.*/./; q'`
19290       { if $as_mkdir_p; then
19291     mkdir -p "$ac_dir"
19292   else
19293     as_dir="$ac_dir"
19294     as_dirs=
19295     while test ! -d "$as_dir"; do
19296       as_dirs="$as_dir $as_dirs"
19297       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19299          X"$as_dir" : 'X\(//\)[^/]' \| \
19300          X"$as_dir" : 'X\(//\)$' \| \
19301          X"$as_dir" : 'X\(/\)' \| \
19302          .     : '\(.\)' 2>/dev/null ||
19303 echo X"$as_dir" |
19304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19306           /^X\(\/\/\)$/{ s//\1/; q; }
19307           /^X\(\/\).*/{ s//\1/; q; }
19308           s/.*/./; q'`
19309     done
19310     test ! -n "$as_dirs" || mkdir $as_dirs
19311   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19312 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19313    { (exit 1); exit 1; }; }; }
19314
19315       rm -f $ac_file
19316       mv $tmp/config.h $ac_file
19317     fi
19318   else
19319     cat $tmp/config.h
19320     rm -f $tmp/config.h
19321   fi
19322 done
19323 _ACEOF
19324 cat >>$CONFIG_STATUS <<\_ACEOF
19325
19326 #
19327 # CONFIG_COMMANDS section.
19328 #
19329 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19330   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19331   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19332   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19333 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19334          X"$ac_dest" : 'X\(//\)[^/]' \| \
19335          X"$ac_dest" : 'X\(//\)$' \| \
19336          X"$ac_dest" : 'X\(/\)' \| \
19337          .     : '\(.\)' 2>/dev/null ||
19338 echo X"$ac_dest" |
19339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19340           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19341           /^X\(\/\/\)$/{ s//\1/; q; }
19342           /^X\(\/\).*/{ s//\1/; q; }
19343           s/.*/./; q'`
19344   ac_builddir=.
19345
19346 if test "$ac_dir" != .; then
19347   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19348   # A "../" for each directory in $ac_dir_suffix.
19349   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19350 else
19351   ac_dir_suffix= ac_top_builddir=
19352 fi
19353
19354 case $srcdir in
19355   .)  # No --srcdir option.  We are building in place.
19356     ac_srcdir=.
19357     if test -z "$ac_top_builddir"; then
19358        ac_top_srcdir=.
19359     else
19360        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19361     fi ;;
19362   [\\/]* | ?:[\\/]* )  # Absolute path.
19363     ac_srcdir=$srcdir$ac_dir_suffix;
19364     ac_top_srcdir=$srcdir ;;
19365   *) # Relative path.
19366     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19367     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19368 esac
19369 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19370 # absolute.
19371 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19372 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19373 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19374 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19375
19376
19377   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19378 echo "$as_me: executing $ac_dest commands" >&6;}
19379   case $ac_dest in
19380     default ) (echo "Doing make of dependencies"; make depend;)
19381  ;;
19382   esac
19383 done
19384 _ACEOF
19385
19386 cat >>$CONFIG_STATUS <<\_ACEOF
19387
19388 { (exit 0); exit 0; }
19389 _ACEOF
19390 chmod +x $CONFIG_STATUS
19391 ac_clean_files=$ac_clean_files_save
19392
19393
19394 # configure is writing to config.log, and then calls config.status.
19395 # config.status does its own redirection, appending to config.log.
19396 # Unfortunately, on DOS this fails, as config.log is still kept open
19397 # by configure, so config.status won't be able to write to it; its
19398 # output is simply discarded.  So we exec the FD to /dev/null,
19399 # effectively closing config.log, so it can be properly (re)opened and
19400 # appended to by config.status.  When coming back to configure, we
19401 # need to make the FD available again.
19402 if test "$no_create" != yes; then
19403   ac_cs_success=:
19404   ac_config_status_args=
19405   test "$silent" = yes &&
19406     ac_config_status_args="$ac_config_status_args --quiet"
19407   exec 5>/dev/null
19408   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19409   exec 5>>config.log
19410   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19411   # would make configure fail if this is the last instruction.
19412   $ac_cs_success || { (exit 1); exit 1; }
19413 fi
19414
19415
19416 cd scripts
19417 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19418 chmod 755 bconsole gconsole mtx-changer devel_bacula
19419 cd ..
19420
19421 c=src/cats
19422
19423 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19424 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19425
19426 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19427 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19428
19429 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19430 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19431
19432 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19433 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19434
19435 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19436 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19437
19438 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19439 chmod 755 $c/sqlite
19440 chmod 755 $c/mysql
19441
19442 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19443    largefile_support="yes"
19444 fi
19445
19446 #
19447 # A whole lot of hand springs to get the compiler version.
19448 #  This is because gcc changed the output in version 3.0
19449 #
19450 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19451 if test "x${CCVERSION}" = "x" ; then
19452   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19453 fi
19454 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19455 if test x"${CXXVERSION}" = x ; then
19456   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19457 fi
19458
19459 if test "x${subsysdir}" = "x${sbindir}" ; then
19460    echo " "
19461    echo " "
19462    echo "You have set --sbindir and --with-subsys-dir"
19463    echo "  both equal to: ${subsysdir} "
19464    echo "  This is not permitted. Please reconfigure."
19465    echo "Aborting configuration ..."
19466    echo " "
19467    echo " "
19468    exit 1
19469 fi
19470
19471 echo "
19472 Configuration on `date`:
19473
19474   Host:                       $host -- ${DISTNAME} ${DISTVER}
19475   Bacula version:             ${VERSION} (${DATE})
19476   Source code location:       ${srcdir}
19477   Install binaries:           ${sbindir}
19478   Install config files:       ${sysconfdir}
19479   Scripts directory:          ${scriptdir}
19480   Working directory:          ${working_dir}
19481   PID directory:              ${piddir}
19482   Subsys directory:           ${subsysdir}
19483   C Compiler:                 ${CC} ${CCVERSION}
19484   C++ Compiler:               ${CXX} ${CXXVERSION}
19485   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19486   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19487   Libraries:                  ${LIBS}
19488   Statically Linked Tools:    ${support_static_tools}
19489   Statically Linked FD:       ${support_static_fd}
19490   Statically Linked SD:       ${support_static_sd}
19491   Statically Linked DIR:      ${support_static_dir}
19492   Statically Linked CONS:     ${support_static_cons}
19493   Database type:              ${db_name}
19494   Database lib:               ${DB_LIBS}
19495
19496   Job Output Email:           ${job_email}
19497   Traceback Email:            ${dump_email}
19498   SMTP Host Address:          ${smtp_host}
19499
19500   Director Port:              ${dir_port}
19501   File daemon Port:           ${fd_port}
19502   Storage daemon Port:        ${sd_port}
19503
19504   Director User:              ${dir_user}
19505   Director Group:             ${dir_group}
19506   Storage Daemon User:        ${sd_user}
19507   Storage DaemonGroup:        ${sd_group}
19508   File Daemon User:           ${fd_user}
19509   File Daemon Group:          ${fd_group}
19510
19511   SQL binaries Directory      ${SQL_BINDIR}
19512
19513   Large file support:         $largefile_support
19514   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19515   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19516   TCP Wrappers support:       ${TCPW_MSG}
19517   ZLIB support:               ${have_zlib}
19518   enable-smartalloc:          ${support_smartalloc}
19519   enable-gnome:               ${support_gnome} ${gnome_version}
19520   client-only:                ${build_client_only}
19521
19522   " > config.out
19523
19524 cat config.out
19525
19526 # old stuff
19527 # cweb support:               ${got_cweb} ${CWEB_SRC}
19528 # gmp support:                ${got_gmp} ${GMP_SRC}