]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
add missing E to $POSTGRSQL_LFLAGS
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_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 if test x$support_static_cons = xyes; then
4812    STATIC_CONS="static-bconsole"
4813 fi
4814
4815
4816 # -------------------------------------------
4817 # client_only  (default off)
4818 # -------------------------------------------
4819 # Check whether --enable-client-only or --disable-client-only was given.
4820 if test "${enable_client_only+set}" = set; then
4821   enableval="$enable_client_only"
4822   if test x$enableval = xyes; then
4823      build_client_only=yes
4824    fi
4825 fi;
4826 if test x$build_client_only = xno; then
4827    ALL_DIRS="subdirs"
4828 else
4829    ALL_DIRS=""
4830 fi
4831
4832
4833 # ---------------------------------------------------
4834 # Check for conio (Bacula readline substitute)(
4835 # ---------------------------------------------------
4836 # this allows you to turn it completely off
4837 # Check whether --enable-conio or --disable-conio was given.
4838 if test "${enable_conio+set}" = set; then
4839   enableval="$enable_conio"
4840   if test x$enableval = xno; then
4841     support_conio=no
4842   fi
4843 fi;
4844
4845 got_conio="no"
4846 if test x$support_conio = xyes; then
4847    CONS_OBJ="conio.o"
4848    CONS_SRC="conio.c"
4849    got_conio="yes"
4850    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4852 if test "${ac_cv_header_stdc+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 #include <stdlib.h>
4863 #include <stdarg.h>
4864 #include <string.h>
4865 #include <float.h>
4866
4867 int
4868 main ()
4869 {
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877   (eval $ac_compile) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -s conftest.$ac_objext'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; }; then
4887   ac_cv_header_stdc=yes
4888 else
4889   echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 ac_cv_header_stdc=no
4893 fi
4894 rm -f conftest.$ac_objext conftest.$ac_ext
4895
4896 if test $ac_cv_header_stdc = yes; then
4897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4898   cat >conftest.$ac_ext <<_ACEOF
4899 #line $LINENO "configure"
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 #include <string.h>
4906
4907 _ACEOF
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909   $EGREP "memchr" >/dev/null 2>&1; then
4910   :
4911 else
4912   ac_cv_header_stdc=no
4913 fi
4914 rm -f conftest*
4915
4916 fi
4917
4918 if test $ac_cv_header_stdc = yes; then
4919   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4920   cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 #include <stdlib.h>
4928
4929 _ACEOF
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931   $EGREP "free" >/dev/null 2>&1; then
4932   :
4933 else
4934   ac_cv_header_stdc=no
4935 fi
4936 rm -f conftest*
4937
4938 fi
4939
4940 if test $ac_cv_header_stdc = yes; then
4941   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942   if test "$cross_compiling" = yes; then
4943   :
4944 else
4945   cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #include <ctype.h>
4953 #if ((' ' & 0x0FF) == 0x020)
4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4956 #else
4957 # define ISLOWER(c) \
4958                    (('a' <= (c) && (c) <= 'i') \
4959                      || ('j' <= (c) && (c) <= 'r') \
4960                      || ('s' <= (c) && (c) <= 'z'))
4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4962 #endif
4963
4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4965 int
4966 main ()
4967 {
4968   int i;
4969   for (i = 0; i < 256; i++)
4970     if (XOR (islower (i), ISLOWER (i))
4971         || toupper (i) != TOUPPER (i))
4972       exit(2);
4973   exit (0);
4974 }
4975 _ACEOF
4976 rm -f conftest$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978   (eval $ac_link) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   :
4988 else
4989   echo "$as_me: program exited with status $ac_status" >&5
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 ( exit $ac_status )
4994 ac_cv_header_stdc=no
4995 fi
4996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 fi
4999 fi
5000 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5001 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5002 if test $ac_cv_header_stdc = yes; then
5003
5004 cat >>confdefs.h <<\_ACEOF
5005 #define STDC_HEADERS 1
5006 _ACEOF
5007
5008 fi
5009
5010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5021                   inttypes.h stdint.h unistd.h
5022 do
5023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024 echo "$as_me:$LINENO: checking for $ac_header" >&5
5025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 $ac_includes_default
5037
5038 #include <$ac_header>
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042   (eval $ac_compile) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -s conftest.$ac_objext'
5047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048   (eval $ac_try) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; }; then
5052   eval "$as_ac_Header=yes"
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 eval "$as_ac_Header=no"
5058 fi
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5064   cat >>confdefs.h <<_ACEOF
5065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5066 _ACEOF
5067
5068 fi
5069
5070 done
5071
5072
5073
5074 for ac_header in termcap.h
5075 do
5076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5078   echo "$as_me:$LINENO: checking for $ac_header" >&5
5079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 fi
5083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5085 else
5086   # Is the header compilable?
5087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 $ac_includes_default
5097 #include <$ac_header>
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101   (eval $ac_compile) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -s conftest.$ac_objext'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_header_compiler=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_header_compiler=no
5117 fi
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5121
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 #include <$ac_header>
5133 _ACEOF
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } >/dev/null; then
5142   if test -s conftest.err; then
5143     ac_cpp_err=$ac_c_preproc_warn_flag
5144   else
5145     ac_cpp_err=
5146   fi
5147 else
5148   ac_cpp_err=yes
5149 fi
5150 if test -z "$ac_cpp_err"; then
5151   ac_header_preproc=yes
5152 else
5153   echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156   ac_header_preproc=no
5157 fi
5158 rm -f conftest.err conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5160 echo "${ECHO_T}$ac_header_preproc" >&6
5161
5162 # So?  What about this header?
5163 case $ac_header_compiler:$ac_header_preproc in
5164   yes:no )
5165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169     (
5170       cat <<\_ASBOX
5171 ## ------------------------------------ ##
5172 ## Report this to bug-autoconf@gnu.org. ##
5173 ## ------------------------------------ ##
5174 _ASBOX
5175     ) |
5176       sed "s/^/$as_me: WARNING:     /" >&2
5177     ;;
5178   no:yes )
5179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5181     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185     (
5186       cat <<\_ASBOX
5187 ## ------------------------------------ ##
5188 ## Report this to bug-autoconf@gnu.org. ##
5189 ## ------------------------------------ ##
5190 _ASBOX
5191     ) |
5192       sed "s/^/$as_me: WARNING:     /" >&2
5193     ;;
5194 esac
5195 echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   eval "$as_ac_Header=$ac_header_preproc"
5201 fi
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204
5205 fi
5206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5207   cat >>confdefs.h <<_ACEOF
5208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5209 _ACEOF
5210
5211 fi
5212
5213 done
5214
5215    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5216 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5217 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-ltermcap  $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229
5230 /* Override any gcc2 internal prototype to avoid an error.  */
5231 #ifdef __cplusplus
5232 extern "C"
5233 #endif
5234 /* We use char because int might match the return type of a gcc2
5235    builtin and then its argument prototype would still apply.  */
5236 char tgetent ();
5237 int
5238 main ()
5239 {
5240 tgetent ();
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247   (eval $ac_link) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest$ac_exeext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_lib_termcap_tgetent=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_lib_termcap_tgetent=no
5263 fi
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5266 fi
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5268 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5269 if test $ac_cv_lib_termcap_tgetent = yes; then
5270   CONS_LIBS="-ltermcap"
5271 fi
5272
5273    support_readline=no
5274
5275 cat >>confdefs.h <<\_ACEOF
5276 #define HAVE_CONIO 1
5277 _ACEOF
5278
5279 fi
5280
5281
5282 # ---------------------------------------------------
5283 # Check for readline support/directory (default off)
5284 # ---------------------------------------------------
5285 # this allows you to turn it completely off
5286 # Check whether --enable-readline or --disable-readline was given.
5287 if test "${enable_readline+set}" = set; then
5288   enableval="$enable_readline"
5289   if test x$enableval = xno; then
5290     support_readline=no
5291   fi
5292 fi;
5293
5294 got_readline="no"
5295 READLINE_SRC=
5296 if test x$support_readline = xyes; then
5297
5298 # Check whether --with-readline or --without-readline was given.
5299 if test "${with_readline+set}" = set; then
5300   withval="$with_readline"
5301
5302         case "$with_readline" in
5303         no) : ;;
5304         yes|*)
5305           if test "$with_readline" != "yes"; then
5306             CONS_INC="-I${with_readline}"
5307             CONS_LDFLAGS="-L$with_readline"
5308           else
5309              with_readline="/usr/include/readline"
5310           fi
5311           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5314 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 fi
5318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5320 else
5321   # Is the header compilable?
5322 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5323 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 #line $LINENO "configure"
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 $ac_includes_default
5332 #include <${with_readline}/readline.h>
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336   (eval $ac_compile) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -s conftest.$ac_objext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_header_compiler=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_compiler=no
5352 fi
5353 rm -f conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5356
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5359 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 #include <${with_readline}/readline.h>
5368 _ACEOF
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } >/dev/null; then
5377   if test -s conftest.err; then
5378     ac_cpp_err=$ac_c_preproc_warn_flag
5379   else
5380     ac_cpp_err=
5381   fi
5382 else
5383   ac_cpp_err=yes
5384 fi
5385 if test -z "$ac_cpp_err"; then
5386   ac_header_preproc=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391   ac_header_preproc=no
5392 fi
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5396
5397 # So?  What about this header?
5398 case $ac_header_compiler:$ac_header_preproc in
5399   yes:no )
5400     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5404     (
5405       cat <<\_ASBOX
5406 ## ------------------------------------ ##
5407 ## Report this to bug-autoconf@gnu.org. ##
5408 ## ------------------------------------ ##
5409 _ASBOX
5410     ) |
5411       sed "s/^/$as_me: WARNING:     /" >&2
5412     ;;
5413   no:yes )
5414     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5420     (
5421       cat <<\_ASBOX
5422 ## ------------------------------------ ##
5423 ## Report this to bug-autoconf@gnu.org. ##
5424 ## ------------------------------------ ##
5425 _ASBOX
5426     ) |
5427       sed "s/^/$as_me: WARNING:     /" >&2
5428     ;;
5429 esac
5430 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5431 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   eval "$as_ac_Header=$ac_header_preproc"
5436 fi
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5439
5440 fi
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442    cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_READLINE 1
5444 _ACEOF
5445
5446                CONS_LIBS="-lreadline -ltermcap"
5447                got_readline="yes"
5448
5449 else
5450    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5451 echo "$as_me: error: *** readline library missing" >&2;}
5452    { (exit 1); exit 1; }; }
5453
5454
5455 fi
5456
5457
5458           ;;
5459         esac
5460
5461 else
5462
5463        # check for standard readline library
5464        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5465   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5466 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5467 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 fi
5470 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5471 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5472 else
5473   # Is the header compilable?
5474 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5475 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483 $ac_includes_default
5484 #include </usr/include/readline/readline.h>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488   (eval $ac_compile) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -s conftest.$ac_objext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   ac_header_compiler=yes
5499 else
5500   echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_header_compiler=no
5504 fi
5505 rm -f conftest.$ac_objext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507 echo "${ECHO_T}$ac_header_compiler" >&6
5508
5509 # Is the header present?
5510 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5511 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519 #include </usr/include/readline/readline.h>
5520 _ACEOF
5521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5523   ac_status=$?
5524   grep -v '^ *+' conftest.er1 >conftest.err
5525   rm -f conftest.er1
5526   cat conftest.err >&5
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } >/dev/null; then
5529   if test -s conftest.err; then
5530     ac_cpp_err=$ac_c_preproc_warn_flag
5531   else
5532     ac_cpp_err=
5533   fi
5534 else
5535   ac_cpp_err=yes
5536 fi
5537 if test -z "$ac_cpp_err"; then
5538   ac_header_preproc=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543   ac_header_preproc=no
5544 fi
5545 rm -f conftest.err conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5547 echo "${ECHO_T}$ac_header_preproc" >&6
5548
5549 # So?  What about this header?
5550 case $ac_header_compiler:$ac_header_preproc in
5551   yes:no )
5552     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5554     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5555 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5556     (
5557       cat <<\_ASBOX
5558 ## ------------------------------------ ##
5559 ## Report this to bug-autoconf@gnu.org. ##
5560 ## ------------------------------------ ##
5561 _ASBOX
5562     ) |
5563       sed "s/^/$as_me: WARNING:     /" >&2
5564     ;;
5565   no:yes )
5566     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5570     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5572     (
5573       cat <<\_ASBOX
5574 ## ------------------------------------ ##
5575 ## Report this to bug-autoconf@gnu.org. ##
5576 ## ------------------------------------ ##
5577 _ASBOX
5578     ) |
5579       sed "s/^/$as_me: WARNING:     /" >&2
5580     ;;
5581 esac
5582 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5583 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5584 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5588 fi
5589 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5590 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5591
5592 fi
5593 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5594    cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_READLINE 1
5596 _ACEOF
5597
5598            got_readline="yes"
5599            CONS_INC="-I/usr/include/readline"
5600            CONS_LIBS="-lreadline -ltermcap"
5601
5602 else
5603
5604            # Did not find standard library, so try Bacula's default
5605             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5608 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 fi
5612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5614 else
5615   # Is the header compilable?
5616 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5617 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 $ac_includes_default
5626 #include <${TOP_DIR}/depkgs/readline/readline.h>
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } &&
5634          { ac_try='test -s conftest.$ac_objext'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; }; then
5640   ac_header_compiler=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_compiler=no
5646 fi
5647 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5653 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661 #include <${TOP_DIR}/depkgs/readline/readline.h>
5662 _ACEOF
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } >/dev/null; then
5671   if test -s conftest.err; then
5672     ac_cpp_err=$ac_c_preproc_warn_flag
5673   else
5674     ac_cpp_err=
5675   fi
5676 else
5677   ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680   ac_header_preproc=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685   ac_header_preproc=no
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691 # So?  What about this header?
5692 case $ac_header_compiler:$ac_header_preproc in
5693   yes:no )
5694     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5698     (
5699       cat <<\_ASBOX
5700 ## ------------------------------------ ##
5701 ## Report this to bug-autoconf@gnu.org. ##
5702 ## ------------------------------------ ##
5703 _ASBOX
5704     ) |
5705       sed "s/^/$as_me: WARNING:     /" >&2
5706     ;;
5707   no:yes )
5708     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5714     (
5715       cat <<\_ASBOX
5716 ## ------------------------------------ ##
5717 ## Report this to bug-autoconf@gnu.org. ##
5718 ## ------------------------------------ ##
5719 _ASBOX
5720     ) |
5721       sed "s/^/$as_me: WARNING:     /" >&2
5722     ;;
5723 esac
5724 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5725 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   eval "$as_ac_Header=$ac_header_preproc"
5730 fi
5731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5733
5734 fi
5735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736    cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_READLINE 1
5738 _ACEOF
5739
5740                  got_readline="yes"
5741                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5742                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5743                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5744                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5745
5746 else
5747    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5748 echo "$as_me: error: *** readline library missing" >&2;}
5749    { (exit 1); exit 1; }; }
5750
5751
5752 fi
5753
5754
5755
5756
5757 fi
5758
5759
5760
5761
5762 fi;
5763 fi
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774 # Minimal stuff for readline Makefile configuration
5775 MAKE_SHELL=/bin/sh
5776
5777
5778 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5779 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5780 if test "${ac_cv_header_stat_broken+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 #include <sys/types.h>
5791 #include <sys/stat.h>
5792
5793 #if defined(S_ISBLK) && defined(S_IFDIR)
5794 # if S_ISBLK (S_IFDIR)
5795 You lose.
5796 # endif
5797 #endif
5798
5799 #if defined(S_ISBLK) && defined(S_IFCHR)
5800 # if S_ISBLK (S_IFCHR)
5801 You lose.
5802 # endif
5803 #endif
5804
5805 #if defined(S_ISLNK) && defined(S_IFREG)
5806 # if S_ISLNK (S_IFREG)
5807 You lose.
5808 # endif
5809 #endif
5810
5811 #if defined(S_ISSOCK) && defined(S_IFREG)
5812 # if S_ISSOCK (S_IFREG)
5813 You lose.
5814 # endif
5815 #endif
5816
5817 _ACEOF
5818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819   $EGREP "You lose" >/dev/null 2>&1; then
5820   ac_cv_header_stat_broken=yes
5821 else
5822   ac_cv_header_stat_broken=no
5823 fi
5824 rm -f conftest*
5825
5826 fi
5827 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5828 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5829 if test $ac_cv_header_stat_broken = yes; then
5830
5831 cat >>confdefs.h <<\_ACEOF
5832 #define STAT_MACROS_BROKEN 1
5833 _ACEOF
5834
5835 fi
5836
5837
5838
5839
5840
5841
5842 ac_header_dirent=no
5843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5844   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5845 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5846 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857 #include <sys/types.h>
5858 #include <$ac_hdr>
5859
5860 int
5861 main ()
5862 {
5863 if ((DIR *) 0)
5864 return 0;
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -s conftest.$ac_objext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   eval "$as_ac_Header=yes"
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 eval "$as_ac_Header=no"
5887 fi
5888 rm -f conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893   cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5895 _ACEOF
5896
5897 ac_header_dirent=$ac_hdr; break
5898 fi
5899
5900 done
5901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5902 if test $ac_header_dirent = dirent.h; then
5903   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5905 if test "${ac_cv_search_opendir+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   ac_func_search_save_LIBS=$LIBS
5909 ac_cv_search_opendir=no
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 /* confdefs.h.  */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h.  */
5917
5918 /* Override any gcc2 internal prototype to avoid an error.  */
5919 #ifdef __cplusplus
5920 extern "C"
5921 #endif
5922 /* We use char because int might match the return type of a gcc2
5923    builtin and then its argument prototype would still apply.  */
5924 char opendir ();
5925 int
5926 main ()
5927 {
5928 opendir ();
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -s conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   ac_cv_search_opendir="none required"
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 fi
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 if test "$ac_cv_search_opendir" = no; then
5953   for ac_lib in dir; do
5954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5955     cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962
5963 /* Override any gcc2 internal prototype to avoid an error.  */
5964 #ifdef __cplusplus
5965 extern "C"
5966 #endif
5967 /* We use char because int might match the return type of a gcc2
5968    builtin and then its argument prototype would still apply.  */
5969 char opendir ();
5970 int
5971 main ()
5972 {
5973 opendir ();
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980   (eval $ac_link) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -s conftest$ac_exeext'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; }; then
5990   ac_cv_search_opendir="-l$ac_lib"
5991 break
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 fi
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998   done
5999 fi
6000 LIBS=$ac_func_search_save_LIBS
6001 fi
6002 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6003 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6004 if test "$ac_cv_search_opendir" != no; then
6005   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6006
6007 fi
6008
6009 else
6010   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6011 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6012 if test "${ac_cv_search_opendir+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   ac_func_search_save_LIBS=$LIBS
6016 ac_cv_search_opendir=no
6017 cat >conftest.$ac_ext <<_ACEOF
6018 #line $LINENO "configure"
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024
6025 /* Override any gcc2 internal prototype to avoid an error.  */
6026 #ifdef __cplusplus
6027 extern "C"
6028 #endif
6029 /* We use char because int might match the return type of a gcc2
6030    builtin and then its argument prototype would still apply.  */
6031 char opendir ();
6032 int
6033 main ()
6034 {
6035 opendir ();
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042   (eval $ac_link) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -s conftest$ac_exeext'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; }; then
6052   ac_cv_search_opendir="none required"
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 fi
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 if test "$ac_cv_search_opendir" = no; then
6060   for ac_lib in x; do
6061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6062     cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069
6070 /* Override any gcc2 internal prototype to avoid an error.  */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 /* We use char because int might match the return type of a gcc2
6075    builtin and then its argument prototype would still apply.  */
6076 char opendir ();
6077 int
6078 main ()
6079 {
6080 opendir ();
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087   (eval $ac_link) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_search_opendir="-l$ac_lib"
6098 break
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 fi
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105   done
6106 fi
6107 LIBS=$ac_func_search_save_LIBS
6108 fi
6109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6111 if test "$ac_cv_search_opendir" != no; then
6112   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6113
6114 fi
6115
6116 fi
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6128 do
6129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130 echo "$as_me:$LINENO: checking for $ac_func" >&5
6131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6132 if eval "test \"\${$as_ac_var+set}\" = set"; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 /* System header to define __stub macros and hopefully few prototypes,
6143     which can conflict with char $ac_func (); below.
6144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145     <limits.h> exists even on freestanding compilers.  */
6146 #ifdef __STDC__
6147 # include <limits.h>
6148 #else
6149 # include <assert.h>
6150 #endif
6151 /* Override any gcc2 internal prototype to avoid an error.  */
6152 #ifdef __cplusplus
6153 extern "C"
6154 {
6155 #endif
6156 /* We use char because int might match the return type of a gcc2
6157    builtin and then its argument prototype would still apply.  */
6158 char $ac_func ();
6159 /* The GNU C library defines this for functions which it implements
6160     to always fail with ENOSYS.  Some functions are actually named
6161     something starting with __ and the normal name is an alias.  */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6163 choke me
6164 #else
6165 char (*f) () = $ac_func;
6166 #endif
6167 #ifdef __cplusplus
6168 }
6169 #endif
6170
6171 int
6172 main ()
6173 {
6174 return f != $ac_func;
6175   ;
6176   return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181   (eval $ac_link) 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -s conftest$ac_exeext'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; }; then
6191   eval "$as_ac_var=yes"
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 eval "$as_ac_var=no"
6197 fi
6198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6199 fi
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6202 if test `eval echo '${'$as_ac_var'}'` = yes; then
6203   cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6205 _ACEOF
6206
6207 fi
6208 done
6209
6210
6211 for ac_func in nanosleep
6212 do
6213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 echo "$as_me:$LINENO: checking for $ac_func" >&5
6215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_var+set}\" = set"; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226 /* System header to define __stub macros and hopefully few prototypes,
6227     which can conflict with char $ac_func (); below.
6228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229     <limits.h> exists even on freestanding compilers.  */
6230 #ifdef __STDC__
6231 # include <limits.h>
6232 #else
6233 # include <assert.h>
6234 #endif
6235 /* Override any gcc2 internal prototype to avoid an error.  */
6236 #ifdef __cplusplus
6237 extern "C"
6238 {
6239 #endif
6240 /* We use char because int might match the return type of a gcc2
6241    builtin and then its argument prototype would still apply.  */
6242 char $ac_func ();
6243 /* The GNU C library defines this for functions which it implements
6244     to always fail with ENOSYS.  Some functions are actually named
6245     something starting with __ and the normal name is an alias.  */
6246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 choke me
6248 #else
6249 char (*f) () = $ac_func;
6250 #endif
6251 #ifdef __cplusplus
6252 }
6253 #endif
6254
6255 int
6256 main ()
6257 {
6258 return f != $ac_func;
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265   (eval $ac_link) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } &&
6269          { ac_try='test -s conftest$ac_exeext'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   eval "$as_ac_var=yes"
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 eval "$as_ac_var=no"
6281 fi
6282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6283 fi
6284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6286 if test `eval echo '${'$as_ac_var'}'` = yes; then
6287   cat >>confdefs.h <<_ACEOF
6288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6289 _ACEOF
6290
6291 fi
6292 done
6293
6294
6295
6296 for ac_header in varargs.h
6297 do
6298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300   echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 fi
6305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6307 else
6308   # Is the header compilable?
6309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6311 cat >conftest.$ac_ext <<_ACEOF
6312 #line $LINENO "configure"
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318 $ac_includes_default
6319 #include <$ac_header>
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323   (eval $ac_compile) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -s conftest.$ac_objext'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; }; then
6333   ac_header_compiler=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_header_compiler=no
6339 fi
6340 rm -f conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6342 echo "${ECHO_T}$ac_header_compiler" >&6
6343
6344 # Is the header present?
6345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 #include <$ac_header>
6355 _ACEOF
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } >/dev/null; then
6364   if test -s conftest.err; then
6365     ac_cpp_err=$ac_c_preproc_warn_flag
6366   else
6367     ac_cpp_err=
6368   fi
6369 else
6370   ac_cpp_err=yes
6371 fi
6372 if test -z "$ac_cpp_err"; then
6373   ac_header_preproc=yes
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378   ac_header_preproc=no
6379 fi
6380 rm -f conftest.err conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6382 echo "${ECHO_T}$ac_header_preproc" >&6
6383
6384 # So?  What about this header?
6385 case $ac_header_compiler:$ac_header_preproc in
6386   yes:no )
6387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391     (
6392       cat <<\_ASBOX
6393 ## ------------------------------------ ##
6394 ## Report this to bug-autoconf@gnu.org. ##
6395 ## ------------------------------------ ##
6396 _ASBOX
6397     ) |
6398       sed "s/^/$as_me: WARNING:     /" >&2
6399     ;;
6400   no:yes )
6401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6403     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6407     (
6408       cat <<\_ASBOX
6409 ## ------------------------------------ ##
6410 ## Report this to bug-autoconf@gnu.org. ##
6411 ## ------------------------------------ ##
6412 _ASBOX
6413     ) |
6414       sed "s/^/$as_me: WARNING:     /" >&2
6415     ;;
6416 esac
6417 echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   eval "$as_ac_Header=$ac_header_preproc"
6423 fi
6424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426
6427 fi
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429   cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6431 _ACEOF
6432
6433 fi
6434
6435 done
6436
6437
6438 # End of readline/conio stuff
6439 # -----------------------------------------------------------------------
6440
6441
6442 # ---------------------------------------------------
6443 # Check for GMP support/directory
6444 # ---------------------------------------------------
6445 #GMP_SRC=
6446 #local_gmp="no"
6447 #AC_ARG_WITH(gmp,
6448 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6449 #  [
6450 #     case "$with_gmp" in
6451 #     no) : ;;
6452 #     yes|*)
6453 #       if test "$with_gmp" != "yes"; then
6454 #         GMP_INC="-I$with_gmp"
6455 #         GMP_LIBS="-lgmp"
6456 #         GMP_LDFLAGS="-L$with_gmp"
6457 #       else
6458 #          with_gmp="/usr/include"
6459 #       fi
6460 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6461 #          [ AC_MSG_RESULT(yes)
6462 #            AC_DEFINE(HAVE_GMP)
6463 #            GMP_LIBS="-lgmp"
6464 #            got_gmp="yes"
6465 #          ],
6466 #          [ AC_MSG_ERROR([*** gmp library missing])
6467 #          ]
6468 #       )
6469 #       ;;
6470 #     esac
6471 #  ],[
6472 #    # check for standard gmp library
6473 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6474 #    [ AC_MSG_RESULT(yes)
6475 #      AC_DEFINE(HAVE_GMP)
6476 #      got_gmp="yes"
6477 #      GMP_INC=
6478 #      GMP_LIBS="-lgmp"
6479 #    ], [
6480 #      # Did not find standard library, so use our own
6481 #      AC_MSG_RESULT(yes)
6482 #      AC_DEFINE(HAVE_GMP)
6483 #      got_gmp="yes"
6484 #      local_gmp="yes"
6485 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6486 #      GMP_LIBS="-lgmp"
6487 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6488 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6489 #    ])
6490 #  ]
6491 #)
6492 #AC_SUBST(GMP_INC)
6493 #AC_SUBST(GMP_LIBS)
6494 #AC_SUBST(GMP_LDFLAGS)
6495 #AC_SUBST(GMP_SRC)
6496
6497 # End of GMP stuff
6498 # -----------------------------------------------------------------------
6499
6500
6501 # ---------------------------------------------------
6502 # Check for CWEB support/directory
6503 # ---------------------------------------------------
6504 #CWEB_SRC=
6505 #CWEB=/bin
6506 #local_cweb="no"
6507 #AC_ARG_WITH(cweb,
6508 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6509 #  [
6510 #     case "$with_cweb" in
6511 #     no) : ;;
6512 #     yes|*)
6513 #       if test "$with_cweb" != "yes"; then
6514 #         CWEB_INC="-I$with_cweb"
6515 #         CWEB_LIBS="-lcweb"
6516 #         CWEB_LDFLAGS="-L$with_cweb"
6517 #       else
6518 #          with_cweb="/usr/include"
6519 #       fi
6520 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6521 #          [ AC_MSG_RESULT(yes)
6522 #            AC_DEFINE(HAVE_CWEB)
6523 #            CWEB_LIBS="-lcweb"
6524 #            got_cweb="yes"
6525 #          ],
6526 #          [ AC_MSG_ERROR([*** cweb library missing])
6527 #          ]
6528 #       )
6529 #       ;;
6530 #     esac
6531 #  ],[
6532 #    # check for standard cweb library
6533 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6534 #    [ AC_MSG_RESULT(yes)
6535 #      AC_DEFINE(HAVE_CWEB)
6536 #      got_cweb="yes"
6537 #      CWEB_INC=
6538 #      CWEB_LIBS="-lcweb"
6539 #    ], [
6540 #      # Did not find starndard library, so use our own
6541 #      AC_MSG_RESULT(yes)
6542 #      AC_DEFINE(HAVE_CWEB)
6543 #      got_cweb="yes"
6544 #      local_cweb="yes"
6545 #      CWEB=${TOP_DIR}/depkgs/cweb
6546 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6547 #      CWEB_LIBS="-lcweb"
6548 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6549 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6550 #    ])
6551 #  ]
6552 #)
6553 #AC_SUBST(CWEB)
6554 #AC_SUBST(CWEB_INC)
6555 #AC_SUBST(CWEB_LIBS)
6556 #AC_SUBST(CWEB_LDFLAGS)
6557 #AC_SUBST(CWEB_SRC)
6558
6559 # End of CWEB stuff
6560 # -----------------------------------------------------------------------
6561
6562
6563
6564 # -----------------------------------------------------------
6565 # Check whether user wants TCP wrappers support (default off)
6566 # -----------------------------------------------------------
6567 TCPW_MSG="no"
6568
6569 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6570 if test "${with_tcp_wrappers+set}" = set; then
6571   withval="$with_tcp_wrappers"
6572
6573     if test "x$withval" != "xno" ; then
6574        saved_LIBS="$LIBS"
6575        LIBS="$saved_LIBS -lwrap"
6576        echo "$as_me:$LINENO: checking for libwrap" >&5
6577 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6578        cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585  #include <tcpd.h>
6586              int deny_severity = 0;
6587              int allow_severity = 0;
6588              struct request_info *req;
6589 int
6590 main ()
6591 {
6592  hosts_access(req);
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599   (eval $ac_link) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609
6610             echo "$as_me:$LINENO: result: yes" >&5
6611 echo "${ECHO_T}yes" >&6
6612             cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_LIBWRAP 1
6614 _ACEOF
6615
6616             TCPW_MSG="yes"
6617
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622
6623             LIBS="$saved_LIBS -lwrap -lnsl"
6624             cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631  #include <tcpd.h>
6632                  int deny_severity = 0;
6633                  int allow_severity = 0;
6634                  struct request_info *req;
6635 int
6636 main ()
6637 {
6638  hosts_access(req);
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645   (eval $ac_link) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } &&
6649          { ac_try='test -s conftest$ac_exeext'
6650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651   (eval $ac_try) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); }; }; then
6655
6656                  echo "$as_me:$LINENO: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658                  cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_LIBWRAP 1
6660 _ACEOF
6661
6662                  TCPW_MSG="yes"
6663
6664 else
6665   echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6669 echo "$as_me: error: *** libwrap missing" >&2;}
6670    { (exit 1); exit 1; }; }
6671
6672 fi
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674
6675 fi
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677     fi
6678
6679
6680 fi;
6681
6682 # ------------------------------------------
6683 # Where to place working dir
6684 # ------------------------------------------
6685 working_dir=`eval echo ${sysconfdir}/working`
6686
6687 # Check whether --with-working-dir or --without-working-dir was given.
6688 if test "${with_working_dir+set}" = set; then
6689   withval="$with_working_dir"
6690
6691        if test "x$withval" != "xno" ; then
6692               working_dir=$withval
6693        fi
6694
6695
6696 fi;
6697
6698
6699
6700
6701 # ------------------------------------------
6702 # Where to place scriptdir (script files)
6703 # ------------------------------------------
6704 scriptdir=`eval echo ${sysconfdir}`
6705
6706 # Check whether --with-scriptdir or --without-scriptdir was given.
6707 if test "${with_scriptdir+set}" = set; then
6708   withval="$with_scriptdir"
6709
6710        if test "x$withval" != "xno" ; then
6711               scriptdir=$withval
6712        fi
6713
6714
6715 fi;
6716
6717
6718
6719
6720 # ------------------------------------------
6721 # Where to send dump email
6722 # ------------------------------------------
6723 dump_email=root@localhost
6724
6725 # Check whether --with-dump-email or --without-dump-email was given.
6726 if test "${with_dump_email+set}" = set; then
6727   withval="$with_dump_email"
6728
6729        if test "x$withval" != "xno" ; then
6730               dump_email=$withval
6731        fi
6732
6733
6734 fi;
6735
6736
6737
6738 # ------------------------------------------
6739 # Where to send job email
6740 # ------------------------------------------
6741 job_email=root@localhost
6742
6743 # Check whether --with-job-email or --without-job-email was given.
6744 if test "${with_job_email+set}" = set; then
6745   withval="$with_job_email"
6746
6747        if test "x$withval" != "xno" ; then
6748               job_email=$withval
6749        fi
6750
6751
6752 fi;
6753
6754
6755
6756 # ------------------------------------------
6757 # Where to find smtp host
6758 # ------------------------------------------
6759 smtp_host=localhost
6760
6761 # Check whether --with-smtp_host or --without-smtp_host was given.
6762 if test "${with_smtp_host+set}" = set; then
6763   withval="$with_smtp_host"
6764
6765        if test "x$withval" != "xno" ; then
6766               smtp_host=$withval
6767        fi
6768
6769
6770 fi;
6771
6772
6773
6774
6775 # ------------------------------------
6776 # Where to place pid files
6777 # ------------------------------------
6778 piddir=/var/run
6779
6780 # Check whether --with-pid-dir or --without-pid-dir was given.
6781 if test "${with_pid_dir+set}" = set; then
6782   withval="$with_pid_dir"
6783
6784         if test "x$withval" != "xno" ; then
6785             piddir=$withval
6786         fi
6787
6788
6789 fi;
6790
6791 cat >>confdefs.h <<_ACEOF
6792 #define _PATH_BACULA_PIDDIR "$piddir"
6793 _ACEOF
6794
6795
6796
6797
6798 # ------------------------------------
6799 # Where to place subsys "lock file"
6800 # ------------------------------------
6801 subsysdir=/var/run/subsys
6802
6803 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6804 if test "${with_subsys_dir+set}" = set; then
6805   withval="$with_subsys_dir"
6806
6807         if test "x$withval" != "xno" ; then
6808             subsysdir=$withval
6809         fi
6810
6811
6812 fi;
6813
6814
6815
6816
6817
6818 # ------------------------------------
6819 # Where to start assigning ports
6820 # ------------------------------------
6821 baseport=9101
6822
6823 # Check whether --with-baseport or --without-baseport was given.
6824 if test "${with_baseport+set}" = set; then
6825   withval="$with_baseport"
6826
6827         if test "x$withval" != "xno" ; then
6828              baseport=$withval
6829         fi
6830
6831
6832 fi;
6833
6834
6835 dir_port=`expr $baseport`
6836 fd_port=`expr $baseport + 1`
6837 sd_port=`expr $fd_port + 1`
6838
6839
6840
6841
6842
6843
6844 # ------------------------------------------
6845 # Generate passwords
6846 # ------------------------------------------
6847 dir_password=
6848
6849 # Check whether --with-dir-password or --without-dir-password was given.
6850 if test "${with_dir_password+set}" = set; then
6851   withval="$with_dir_password"
6852
6853        if test "x$withval" != "xno" ; then
6854            dir_password=$withval
6855        fi
6856
6857
6858 fi;
6859
6860 if test "x$dir_password" = "x" ; then
6861    if test "x$OPENSSL" = "xnone" ; then
6862 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6863       key=`autoconf/randpass 33`
6864    else
6865       key=`openssl rand -base64 33`
6866    fi
6867    dir_password=$key
6868 fi
6869
6870 fd_password=
6871
6872 # Check whether --with-fd-password or --without-fd-password was given.
6873 if test "${with_fd_password+set}" = set; then
6874   withval="$with_fd_password"
6875
6876        if test "x$withval" != "xno" ; then
6877            fd_password=$withval
6878        fi
6879
6880
6881 fi;
6882
6883 if test "x$fd_password" = "x" ; then
6884    if test "x$OPENSSL" = "xnone" ; then
6885 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6886       key=`autoconf/randpass 37`
6887    else
6888       key=`openssl rand -base64 33`
6889    fi
6890    fd_password=$key
6891 fi
6892
6893 sd_password=
6894
6895 # Check whether --with-sd-password or --without-sd-password was given.
6896 if test "${with_sd_password+set}" = set; then
6897   withval="$with_sd_password"
6898
6899        if test "x$withval" != "xno" ; then
6900            sd_password=$withval
6901        fi
6902
6903
6904 fi;
6905
6906 if test "x$sd_password" = "x" ; then
6907    if test "x$OPENSSL" = "xnone" ; then
6908 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6909       key=`autoconf/randpass 41`
6910    else
6911       key=`openssl rand -base64 33`
6912    fi
6913    sd_password=$key
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922 #
6923 # Handle users and groups for each daemon
6924 #
6925 dir_user=
6926
6927 # Check whether --with-dir_user or --without-dir_user was given.
6928 if test "${with_dir_user+set}" = set; then
6929   withval="$with_dir_user"
6930
6931         if test "x$withval" != "x" ; then
6932              dir_user=$withval
6933         fi
6934
6935
6936 fi;
6937
6938 dir_group=
6939
6940 # Check whether --with-dir_group or --without-dir_group was given.
6941 if test "${with_dir_group+set}" = set; then
6942   withval="$with_dir_group"
6943
6944         if test "x$withval" != "x" ; then
6945              dir_group=$withval
6946         fi
6947
6948
6949 fi;
6950
6951 sd_user=
6952
6953 # Check whether --with-sd_user or --without-sd_user was given.
6954 if test "${with_sd_user+set}" = set; then
6955   withval="$with_sd_user"
6956
6957         if test "x$withval" != "x" ; then
6958              sd_user=$withval
6959         fi
6960
6961
6962 fi;
6963
6964 sd_group=
6965
6966 # Check whether --with-sd_group or --without-sd_group was given.
6967 if test "${with_sd_group+set}" = set; then
6968   withval="$with_sd_group"
6969
6970         if test "x$withval" != "x" ; then
6971              sd_group=$withval
6972         fi
6973
6974
6975 fi;
6976
6977 fd_user=
6978
6979 # Check whether --with-fd_user or --without-fd_user was given.
6980 if test "${with_fd_user+set}" = set; then
6981   withval="$with_fd_user"
6982
6983         if test "x$withval" != "x" ; then
6984              fd_user=$withval
6985         fi
6986
6987
6988 fi;
6989
6990 fd_group=
6991
6992 # Check whether --with-fd_group or --without-fd_group was given.
6993 if test "${with_fd_group+set}" = set; then
6994   withval="$with_fd_group"
6995
6996         if test "x$withval" != "x" ; then
6997              fd_group=$withval
6998         fi
6999
7000
7001 fi;
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 # ------------------------------------------------
7014 # Bacula check for various SQL database engines
7015 # ------------------------------------------------
7016
7017 db_found=no
7018 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7019 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7020
7021 # Check whether --with-postgresql or --without-postgresql was given.
7022 if test "${with_postgresql+set}" = set; then
7023   withval="$with_postgresql"
7024
7025   if test "$withval" != "no"; then
7026       if test "$db_found" = "yes"; then
7027           echo "$as_me:$LINENO: result: error" >&5
7028 echo "${ECHO_T}error" >&6
7029           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7030 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7031    { (exit 1); exit 1; }; };
7032       fi
7033       if test "$withval" = "yes"; then
7034           if test -f /usr/local/include/libpq-fe.h; then
7035               POSTGRESQL_INCDIR=/usr/local/include
7036               POSTGRESQL_LIBDIR=/usr/local/lib
7037               POSTGRESQL_BINDIR=/usr/local/bin
7038           elif test -f /usr/include/libpq-fe.h; then
7039               POSTGRESQL_INCDIR=/usr/include
7040               POSTGRESQL_LIBDIR=/usr/lib
7041               POSTGRESQL_BINDIR=/usr/bin
7042           else
7043               echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6
7045               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7046 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7047    { (exit 1); exit 1; }; }
7048           fi
7049       elif test -f $withval/libpq-fe.h; then
7050           POSTGRESQL_INCDIR=$withval
7051           POSTGRESQL_LIBDIR=$withval
7052           POSTGRESQL_BINDIR=$withval
7053       else
7054           echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6
7056           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7057 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7058    { (exit 1); exit 1; }; }
7059       fi
7060       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7061       echo "$as_me:$LINENO: checking for crypt" >&5
7062 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7063 if test "${ac_cv_func_crypt+set}" = set; then
7064   echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066   cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7068 /* confdefs.h.  */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h.  */
7073 /* System header to define __stub macros and hopefully few prototypes,
7074     which can conflict with char crypt (); below.
7075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076     <limits.h> exists even on freestanding compilers.  */
7077 #ifdef __STDC__
7078 # include <limits.h>
7079 #else
7080 # include <assert.h>
7081 #endif
7082 /* Override any gcc2 internal prototype to avoid an error.  */
7083 #ifdef __cplusplus
7084 extern "C"
7085 {
7086 #endif
7087 /* We use char because int might match the return type of a gcc2
7088    builtin and then its argument prototype would still apply.  */
7089 char crypt ();
7090 /* The GNU C library defines this for functions which it implements
7091     to always fail with ENOSYS.  Some functions are actually named
7092     something starting with __ and the normal name is an alias.  */
7093 #if defined (__stub_crypt) || defined (__stub___crypt)
7094 choke me
7095 #else
7096 char (*f) () = crypt;
7097 #endif
7098 #ifdef __cplusplus
7099 }
7100 #endif
7101
7102 int
7103 main ()
7104 {
7105 return f != crypt;
7106   ;
7107   return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112   (eval $ac_link) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } &&
7116          { ac_try='test -s conftest$ac_exeext'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; }; then
7122   ac_cv_func_crypt=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ac_cv_func_crypt=no
7128 fi
7129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7130 fi
7131 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7132 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7133 if test $ac_cv_func_crypt = yes; then
7134   :
7135 else
7136   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7137 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7138 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   ac_check_lib_save_LIBS=$LIBS
7142 LIBS="-lcrypt  $LIBS"
7143 cat >conftest.$ac_ext <<_ACEOF
7144 #line $LINENO "configure"
7145 /* confdefs.h.  */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h.  */
7150
7151 /* Override any gcc2 internal prototype to avoid an error.  */
7152 #ifdef __cplusplus
7153 extern "C"
7154 #endif
7155 /* We use char because int might match the return type of a gcc2
7156    builtin and then its argument prototype would still apply.  */
7157 char crypt ();
7158 int
7159 main ()
7160 {
7161 crypt ();
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168   (eval $ac_link) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); } &&
7172          { ac_try='test -s conftest$ac_exeext'
7173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174   (eval $ac_try) 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; }; then
7178   ac_cv_lib_crypt_crypt=yes
7179 else
7180   echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ac_cv_lib_crypt_crypt=no
7184 fi
7185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7186 LIBS=$ac_check_lib_save_LIBS
7187 fi
7188 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7189 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7190 if test $ac_cv_lib_crypt_crypt = yes; then
7191   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7192 fi
7193
7194 fi
7195
7196       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7197       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7198       SQL_BINDIR=$POSTGRESQL_BINDIR
7199       cat >>confdefs.h <<\_ACEOF
7200 #define HAVE_POSTGRESQL 1
7201 _ACEOF
7202
7203       echo "$as_me:$LINENO: result: yes" >&5
7204 echo "${ECHO_T}yes" >&6
7205       db_found=yes
7206       support_postgresql=yes
7207       db_name=PostgreSQL
7208       DB_NAME=postgresql
7209   else
7210       echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6
7212   fi
7213
7214 else
7215
7216   echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6
7218
7219 fi;
7220
7221
7222
7223
7224
7225
7226
7227 db_found=no
7228 echo "$as_me:$LINENO: checking for MySQL support" >&5
7229 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7230
7231 # Check whether --with-mysql or --without-mysql was given.
7232 if test "${with_mysql+set}" = set; then
7233   withval="$with_mysql"
7234
7235   if test "$withval" != "no"; then
7236         if test "$withval" = "yes"; then
7237                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7238                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7239                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7240                         MYSQL_BINDIR=/usr/local/mysql/bin
7241                 elif test -f /usr/include/mysql/mysql.h; then
7242                         MYSQL_INCDIR=/usr/include/mysql
7243                         MYSQL_LIBDIR=/usr/lib/mysql
7244                         MYSQL_BINDIR=/usr/bin
7245                 elif test -f /usr/include/mysql.h; then
7246                         MYSQL_INCDIR=/usr/include
7247                         MYSQL_LIBDIR=/usr/lib
7248                         MYSQL_BINDIR=/usr/bin
7249                 elif test -f /usr/local/include/mysql/mysql.h; then
7250                         MYSQL_INCDIR=/usr/local/include/mysql
7251                         MYSQL_LIBDIR=/usr/local/lib/mysql
7252                         MYSQL_BINDIR=/usr/local/bin
7253                 elif test -f /usr/local/include/mysql.h; then
7254                         MYSQL_INCDIR=/usr/local/include
7255                         MYSQL_LIBDIR=/usr/local/lib
7256                         MYSQL_BINDIR=/usr/local/bin
7257                 else
7258                    echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7260                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7261 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7262    { (exit 1); exit 1; }; }
7263                 fi
7264         else
7265                 if test -f $withval/include/mysql/mysql.h; then
7266                         MYSQL_INCDIR=$withval/include/mysql
7267                         MYSQL_LIBDIR=$withval/lib/mysql
7268                         MYSQL_BINDIR=$withval/bin
7269                 elif test -f $withval/include/mysql.h; then
7270                         MYSQL_INCDIR=$withval/include
7271                         MYSQL_LIBDIR=$withval/lib
7272                         MYSQL_BINDIR=$withval/bin
7273                 else
7274                    echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7276                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7277 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7278    { (exit 1); exit 1; }; }
7279                 fi
7280         fi
7281     SQL_INCLUDE=-I$MYSQL_INCDIR
7282     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7283        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7284        cat >>confdefs.h <<\_ACEOF
7285 #define HAVE_THREAD_SAFE_MYSQL 1
7286 _ACEOF
7287
7288     else
7289        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7290     fi
7291     SQL_BINDIR=$MYSQL_BINDIR
7292
7293     cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_MYSQL 1
7295 _ACEOF
7296
7297     echo "$as_me:$LINENO: result: yes" >&5
7298 echo "${ECHO_T}yes" >&6
7299     db_found=yes
7300     support_mysql=yes
7301     db_name=MySQL
7302     DB_NAME=mysql
7303
7304   else
7305         echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6
7307   fi
7308
7309 else
7310
7311     echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6
7313
7314 fi;
7315
7316
7317 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7318 if test "${with_embedded_mysql+set}" = set; then
7319   withval="$with_embedded_mysql"
7320
7321   if test "$withval" != "no"; then
7322         if test "$withval" = "yes"; then
7323                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7324                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7325                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7326                         MYSQL_BINDIR=/usr/local/mysql/bin
7327                 elif test -f /usr/include/mysql/mysql.h; then
7328                         MYSQL_INCDIR=/usr/include/mysql
7329                         MYSQL_LIBDIR=/usr/lib/mysql
7330                         MYSQL_BINDIR=/usr/bin
7331                 elif test -f /usr/include/mysql.h; then
7332                         MYSQL_INCDIR=/usr/include
7333                         MYSQL_LIBDIR=/usr/lib
7334                         MYSQL_BINDIR=/usr/bin
7335                 elif test -f /usr/local/include/mysql/mysql.h; then
7336                         MYSQL_INCDIR=/usr/local/include/mysql
7337                         MYSQL_LIBDIR=/usr/local/lib/mysql
7338                         MYSQL_BINDIR=/usr/local/bin
7339                 elif test -f /usr/local/include/mysql.h; then
7340                         MYSQL_INCDIR=/usr/local/include
7341                         MYSQL_LIBDIR=/usr/local/lib
7342                         MYSQL_BINDIR=/usr/local/bin
7343                 else
7344                    echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7346                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7347 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7348    { (exit 1); exit 1; }; }
7349                 fi
7350         else
7351                 if test -f $withval/include/mysql/mysql.h; then
7352                         MYSQL_INCDIR=$withval/include/mysql
7353                         MYSQL_LIBDIR=$withval/lib/mysql
7354                         MYSQL_BINDIR=$withval/bin
7355                 elif test -f $withval/include/mysql.h; then
7356                         MYSQL_INCDIR=$withval/include
7357                         MYSQL_LIBDIR=$withval/lib
7358                         MYSQL_BINDIR=$withval/bin
7359                 else
7360                    echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6
7362                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7363 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7364    { (exit 1); exit 1; }; }
7365                 fi
7366         fi
7367     SQL_INCLUDE=-I$MYSQL_INCDIR
7368     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7369     SQL_BINDIR=$MYSQL_BINDIR
7370
7371     cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_MYSQL 1
7373 _ACEOF
7374
7375     cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_EMBEDDED_MYSQL 1
7377 _ACEOF
7378
7379     echo "$as_me:$LINENO: result: yes" >&5
7380 echo "${ECHO_T}yes" >&6
7381     db_found=yes
7382     support_mysql=yes
7383     db_name=MySQL
7384     DB_NAME=mysql
7385
7386   else
7387         echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7389   fi
7390
7391 else
7392
7393   echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7395
7396 fi;
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406 db_found=no
7407 echo "$as_me:$LINENO: checking for SQLite support" >&5
7408 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7409
7410 # Check whether --with-sqlite or --without-sqlite was given.
7411 if test "${with_sqlite+set}" = set; then
7412   withval="$with_sqlite"
7413
7414   if test "$withval" != "no"; then
7415         if test "$withval" = "yes"; then
7416                 if test -f /usr/local/include/sqlite.h; then
7417                         SQLITE_INCDIR=/usr/local/include
7418                         SQLITE_LIBDIR=/usr/local/lib
7419                         SQLITE_BINDIR=/usr/local/bin
7420                 elif test -f /usr/include/sqlite.h; then
7421                         SQLITE_INCDIR=/usr/include
7422                         SQLITE_LIBDIR=/usr/lib
7423                         SQLITE_BINDIR=/usr/bin
7424                 else
7425                    echo "$as_me:$LINENO: result: no" >&5
7426 echo "${ECHO_T}no" >&6
7427                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7428 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7429    { (exit 1); exit 1; }; }
7430                 fi
7431         else
7432                 if test -f $withval/sqlite.h; then
7433                         SQLITE_INCDIR=$withval
7434                         SQLITE_LIBDIR=$withval
7435                         SQLITE_BINDIR=$withval
7436                 else
7437                    echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7440 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7441    { (exit 1); exit 1; }; }
7442                 fi
7443         fi
7444     SQL_INCLUDE=-I$SQLITE_INCDIR
7445     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7446     SQL_BINDIR=$SQLITE_BINDIR
7447
7448     cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_SQLITE 1
7450 _ACEOF
7451
7452     echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7454     db_found=yes
7455     support_sqlite=yes
7456     db_name=SQLite
7457     DB_NAME=sqlite
7458
7459   else
7460         echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7462   fi
7463
7464 else
7465
7466   echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7468
7469 fi;
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 cat >>confdefs.h <<\_ACEOF
7480 #define PROTOTYPES 1
7481 _ACEOF
7482
7483
7484 if test -z "$CFLAGS"; then
7485     if test -z "$CCOPTS"; then
7486         CCOPTS='-g -O2'
7487     fi
7488     CFLAGS="$CCOPTS"
7489 fi
7490
7491
7492
7493
7494 largefile_support="no"
7495
7496    # Check whether --enable-largefile or --disable-largefile was given.
7497 if test "${enable_largefile+set}" = set; then
7498   enableval="$enable_largefile"
7499
7500 fi;
7501    if test "$enable_largefile" != no; then
7502      if test -n "$ac_tool_prefix"; then
7503   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7505 echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507 if test "${ac_cv_prog_GETCONF+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   if test -n "$GETCONF"; then
7511   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526
7527 fi
7528 fi
7529 GETCONF=$ac_cv_prog_GETCONF
7530 if test -n "$GETCONF"; then
7531   echo "$as_me:$LINENO: result: $GETCONF" >&5
7532 echo "${ECHO_T}$GETCONF" >&6
7533 else
7534   echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536 fi
7537
7538 fi
7539 if test -z "$ac_cv_prog_GETCONF"; then
7540   ac_ct_GETCONF=$GETCONF
7541   # Extract the first word of "getconf", so it can be a program name with args.
7542 set dummy getconf; ac_word=$2
7543 echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   if test -n "$ac_ct_GETCONF"; then
7549   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558     ac_cv_prog_ac_ct_GETCONF="getconf"
7559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564
7565 fi
7566 fi
7567 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7568 if test -n "$ac_ct_GETCONF"; then
7569   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7570 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7571 else
7572   echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574 fi
7575
7576   GETCONF=$ac_ct_GETCONF
7577 else
7578   GETCONF="$ac_cv_prog_GETCONF"
7579 fi
7580
7581      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7582 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7583 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7587         ac_cv_sys_largefile_CFLAGS=no
7588         case "$host_os" in
7589            # IRIX 6.2 and later require cc -n32.
7590            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7591              if test "$GCC" != yes; then
7592                ac_cv_sys_largefile_CFLAGS=-n32
7593              fi
7594              ac_save_CC="$CC"
7595              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7596              cat >conftest.$ac_ext <<_ACEOF
7597 #line $LINENO "configure"
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603
7604 int
7605 main ()
7606 {
7607
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614   (eval $ac_link) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } &&
7618          { ac_try='test -s conftest$ac_exeext'
7619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620   (eval $ac_try) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); }; }; then
7624   :
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ac_cv_sys_largefile_CFLAGS=no
7630 fi
7631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7632              CC="$ac_save_CC"
7633            esac
7634       }
7635 fi
7636 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7637 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7638      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7639 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7640 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7644         ac_cv_sys_largefile_LDFLAGS=no
7645
7646       }
7647 fi
7648 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7649 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7650      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7651 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7652 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7656         ac_cv_sys_largefile_LIBS=no
7657
7658       }
7659 fi
7660 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7661 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7662
7663      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7664        case "$ac_flag" in
7665        no) ;;
7666        -D_FILE_OFFSET_BITS=*) ;;
7667        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7668        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7669        -D?* | -I?*)
7670          case "$ac_flag" in
7671    no) ;;
7672    ?*)
7673      case "$CPPFLAGS" in
7674      '') CPPFLAGS="$ac_flag" ;;
7675      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7676      esac ;;
7677    esac ;;
7678        *)
7679          case "$ac_flag" in
7680    no) ;;
7681    ?*)
7682      case "$CFLAGS" in
7683      '') CFLAGS="$ac_flag" ;;
7684      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7685      esac ;;
7686    esac ;;
7687        esac
7688      done
7689      case "$ac_cv_sys_largefile_LDFLAGS" in
7690    no) ;;
7691    ?*)
7692      case "$LDFLAGS" in
7693      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7694      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7695      esac ;;
7696    esac
7697      case "$ac_cv_sys_largefile_LIBS" in
7698    no) ;;
7699    ?*)
7700      case "$LIBS" in
7701      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7702      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7703      esac ;;
7704    esac
7705      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7706 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7707 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   ac_cv_sys_file_offset_bits=no
7711       case "$host_os" in
7712         # HP-UX 10.20 and later
7713         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7714           ac_cv_sys_file_offset_bits=64 ;;
7715         esac
7716       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7717         case "$ac_flag" in
7718         -D_FILE_OFFSET_BITS)
7719           ac_cv_sys_file_offset_bits=1 ;;
7720         -D_FILE_OFFSET_BITS=*)
7721           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7722         esac
7723       done
7724
7725 fi
7726 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7727 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7728    if test "$ac_cv_sys_file_offset_bits" != no; then
7729
7730 cat >>confdefs.h <<_ACEOF
7731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7732 _ACEOF
7733
7734    fi
7735      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7736 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7737 if test "${ac_cv_sys_largefile_source+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   ac_cv_sys_largefile_source=no
7741       case "$host_os" in
7742         # HP-UX 10.20 and later
7743         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7744           ac_cv_sys_largefile_source=1 ;;
7745         esac
7746       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7747         case "$ac_flag" in
7748         -D_LARGEFILE_SOURCE)
7749           ac_cv_sys_largefile_source=1 ;;
7750         -D_LARGEFILE_SOURCE=*)
7751           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7752         esac
7753       done
7754
7755 fi
7756 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7757 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7758    if test "$ac_cv_sys_largefile_source" != no; then
7759
7760 cat >>confdefs.h <<_ACEOF
7761 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7762 _ACEOF
7763
7764    fi
7765      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7766 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7767 if test "${ac_cv_sys_large_files+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   ac_cv_sys_large_files=no
7771       case "$host_os" in
7772         # AIX 4.2 and later
7773         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7774           ac_cv_sys_large_files=1 ;;
7775         esac
7776       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7777         case "$ac_flag" in
7778         -D_LARGE_FILES)
7779           ac_cv_sys_large_files=1 ;;
7780         -D_LARGE_FILES=*)
7781           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7782         esac
7783       done
7784
7785 fi
7786 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7787 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7788    if test "$ac_cv_sys_large_files" != no; then
7789
7790 cat >>confdefs.h <<_ACEOF
7791 #define _LARGE_FILES $ac_cv_sys_large_files
7792 _ACEOF
7793
7794    fi
7795    fi
7796
7797
7798
7799 echo "$as_me:$LINENO: checking for X" >&5
7800 echo $ECHO_N "checking for X... $ECHO_C" >&6
7801
7802
7803 # Check whether --with-x or --without-x was given.
7804 if test "${with_x+set}" = set; then
7805   withval="$with_x"
7806
7807 fi;
7808 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7809 if test "x$with_x" = xno; then
7810   # The user explicitly disabled X.
7811   have_x=disabled
7812 else
7813   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7814     # Both variables are already set.
7815     have_x=yes
7816   else
7817     if test "${ac_cv_have_x+set}" = set; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820   # One or both of the vars are not set, and there is no cached value.
7821 ac_x_includes=no ac_x_libraries=no
7822 rm -fr conftest.dir
7823 if mkdir conftest.dir; then
7824   cd conftest.dir
7825   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7826   cat >Imakefile <<'_ACEOF'
7827 acfindx:
7828         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7829 _ACEOF
7830   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7831     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7832     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7833     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7834     for ac_extension in a so sl; do
7835       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7836          test -f $ac_im_libdir/libX11.$ac_extension; then
7837         ac_im_usrlibdir=$ac_im_libdir; break
7838       fi
7839     done
7840     # Screen out bogus values from the imake configuration.  They are
7841     # bogus both because they are the default anyway, and because
7842     # using them would break gcc on systems where it needs fixed includes.
7843     case $ac_im_incroot in
7844         /usr/include) ;;
7845         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7846     esac
7847     case $ac_im_usrlibdir in
7848         /usr/lib | /lib) ;;
7849         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7850     esac
7851   fi
7852   cd ..
7853   rm -fr conftest.dir
7854 fi
7855
7856 # Standard set of common directories for X headers.
7857 # Check X11 before X11Rn because it is often a symlink to the current release.
7858 ac_x_header_dirs='
7859 /usr/X11/include
7860 /usr/X11R6/include
7861 /usr/X11R5/include
7862 /usr/X11R4/include
7863
7864 /usr/include/X11
7865 /usr/include/X11R6
7866 /usr/include/X11R5
7867 /usr/include/X11R4
7868
7869 /usr/local/X11/include
7870 /usr/local/X11R6/include
7871 /usr/local/X11R5/include
7872 /usr/local/X11R4/include
7873
7874 /usr/local/include/X11
7875 /usr/local/include/X11R6
7876 /usr/local/include/X11R5
7877 /usr/local/include/X11R4
7878
7879 /usr/X386/include
7880 /usr/x386/include
7881 /usr/XFree86/include/X11
7882
7883 /usr/include
7884 /usr/local/include
7885 /usr/unsupported/include
7886 /usr/athena/include
7887 /usr/local/x11r5/include
7888 /usr/lpp/Xamples/include
7889
7890 /usr/openwin/include
7891 /usr/openwin/share/include'
7892
7893 if test "$ac_x_includes" = no; then
7894   # Guess where to find include files, by looking for Intrinsic.h.
7895   # First, try using that file with no special directory specified.
7896   cat >conftest.$ac_ext <<_ACEOF
7897 #line $LINENO "configure"
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903 #include <X11/Intrinsic.h>
7904 _ACEOF
7905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7907   ac_status=$?
7908   grep -v '^ *+' conftest.er1 >conftest.err
7909   rm -f conftest.er1
7910   cat conftest.err >&5
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); } >/dev/null; then
7913   if test -s conftest.err; then
7914     ac_cpp_err=$ac_c_preproc_warn_flag
7915   else
7916     ac_cpp_err=
7917   fi
7918 else
7919   ac_cpp_err=yes
7920 fi
7921 if test -z "$ac_cpp_err"; then
7922   # We can compile using X headers with no special include directory.
7923 ac_x_includes=
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928   for ac_dir in $ac_x_header_dirs; do
7929   if test -r "$ac_dir/X11/Intrinsic.h"; then
7930     ac_x_includes=$ac_dir
7931     break
7932   fi
7933 done
7934 fi
7935 rm -f conftest.err conftest.$ac_ext
7936 fi # $ac_x_includes = no
7937
7938 if test "$ac_x_libraries" = no; then
7939   # Check for the libraries.
7940   # See if we find them without any special options.
7941   # Don't add to $LIBS permanently.
7942   ac_save_LIBS=$LIBS
7943   LIBS="-lXt $LIBS"
7944   cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951 #include <X11/Intrinsic.h>
7952 int
7953 main ()
7954 {
7955 XtMalloc (0)
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962   (eval $ac_link) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } &&
7966          { ac_try='test -s conftest$ac_exeext'
7967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968   (eval $ac_try) 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); }; }; then
7972   LIBS=$ac_save_LIBS
7973 # We can link X programs with no special library path.
7974 ac_x_libraries=
7975 else
7976   echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 LIBS=$ac_save_LIBS
7980 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7981 do
7982   # Don't even attempt the hair of trying to link an X program!
7983   for ac_extension in a so sl; do
7984     if test -r $ac_dir/libXt.$ac_extension; then
7985       ac_x_libraries=$ac_dir
7986       break 2
7987     fi
7988   done
7989 done
7990 fi
7991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7992 fi # $ac_x_libraries = no
7993
7994 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7995   # Didn't find X anywhere.  Cache the known absence of X.
7996   ac_cv_have_x="have_x=no"
7997 else
7998   # Record where we found X for the cache.
7999   ac_cv_have_x="have_x=yes \
8000                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8001 fi
8002 fi
8003
8004   fi
8005   eval "$ac_cv_have_x"
8006 fi # $with_x != no
8007
8008 if test "$have_x" != yes; then
8009   echo "$as_me:$LINENO: result: $have_x" >&5
8010 echo "${ECHO_T}$have_x" >&6
8011   no_x=yes
8012 else
8013   # If each of the values was on the command line, it overrides each guess.
8014   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8015   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8016   # Update the cache value to reflect the command line values.
8017   ac_cv_have_x="have_x=yes \
8018                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8019   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8020 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8021 fi
8022
8023 if test "$no_x" = yes; then
8024   # Not all programs may use this symbol, but it does not hurt to define it.
8025
8026 cat >>confdefs.h <<\_ACEOF
8027 #define X_DISPLAY_MISSING 1
8028 _ACEOF
8029
8030   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8031 else
8032   if test -n "$x_includes"; then
8033     X_CFLAGS="$X_CFLAGS -I$x_includes"
8034   fi
8035
8036   # It would also be nice to do this for all -L options, not just this one.
8037   if test -n "$x_libraries"; then
8038     X_LIBS="$X_LIBS -L$x_libraries"
8039     # For Solaris; some versions of Sun CC require a space after -R and
8040     # others require no space.  Words are not sufficient . . . .
8041     case `(uname -sr) 2>/dev/null` in
8042     "SunOS 5"*)
8043       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8044 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8045       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8046       cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053
8054 int
8055 main ()
8056 {
8057
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064   (eval $ac_link) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } &&
8068          { ac_try='test -s conftest$ac_exeext'
8069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070   (eval $ac_try) 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); }; }; then
8074   ac_R_nospace=yes
8075 else
8076   echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_R_nospace=no
8080 fi
8081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082       if test $ac_R_nospace = yes; then
8083         echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6
8085         X_LIBS="$X_LIBS -R$x_libraries"
8086       else
8087         LIBS="$ac_xsave_LIBS -R $x_libraries"
8088         cat >conftest.$ac_ext <<_ACEOF
8089 #line $LINENO "configure"
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095
8096 int
8097 main ()
8098 {
8099
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106   (eval $ac_link) 2>&5
8107   ac_status=$?
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } &&
8110          { ac_try='test -s conftest$ac_exeext'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; }; then
8116   ac_R_space=yes
8117 else
8118   echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_R_space=no
8122 fi
8123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8124         if test $ac_R_space = yes; then
8125           echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6
8127           X_LIBS="$X_LIBS -R $x_libraries"
8128         else
8129           echo "$as_me:$LINENO: result: neither works" >&5
8130 echo "${ECHO_T}neither works" >&6
8131         fi
8132       fi
8133       LIBS=$ac_xsave_LIBS
8134     esac
8135   fi
8136
8137   # Check for system-dependent libraries X programs must link with.
8138   # Do this before checking for the system-independent R6 libraries
8139   # (-lICE), since we may need -lsocket or whatever for X linking.
8140
8141   if test "$ISC" = yes; then
8142     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8143   else
8144     # Martyn Johnson says this is needed for Ultrix, if the X
8145     # libraries were built with DECnet support.  And Karl Berry says
8146     # the Alpha needs dnet_stub (dnet does not exist).
8147     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8148     cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155
8156 /* Override any gcc2 internal prototype to avoid an error.  */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 /* We use char because int might match the return type of a gcc2
8161    builtin and then its argument prototype would still apply.  */
8162 char XOpenDisplay ();
8163 int
8164 main ()
8165 {
8166 XOpenDisplay ();
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173   (eval $ac_link) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -s conftest$ac_exeext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   :
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8189 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8190 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   ac_check_lib_save_LIBS=$LIBS
8194 LIBS="-ldnet  $LIBS"
8195 cat >conftest.$ac_ext <<_ACEOF
8196 #line $LINENO "configure"
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202
8203 /* Override any gcc2 internal prototype to avoid an error.  */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208    builtin and then its argument prototype would still apply.  */
8209 char dnet_ntoa ();
8210 int
8211 main ()
8212 {
8213 dnet_ntoa ();
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220   (eval $ac_link) 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -s conftest$ac_exeext'
8225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226   (eval $ac_try) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; }; then
8230   ac_cv_lib_dnet_dnet_ntoa=yes
8231 else
8232   echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235 ac_cv_lib_dnet_dnet_ntoa=no
8236 fi
8237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8238 LIBS=$ac_check_lib_save_LIBS
8239 fi
8240 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8241 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8242 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8243   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8244 fi
8245
8246     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8247       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8248 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8249 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   ac_check_lib_save_LIBS=$LIBS
8253 LIBS="-ldnet_stub  $LIBS"
8254 cat >conftest.$ac_ext <<_ACEOF
8255 #line $LINENO "configure"
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261
8262 /* Override any gcc2 internal prototype to avoid an error.  */
8263 #ifdef __cplusplus
8264 extern "C"
8265 #endif
8266 /* We use char because int might match the return type of a gcc2
8267    builtin and then its argument prototype would still apply.  */
8268 char dnet_ntoa ();
8269 int
8270 main ()
8271 {
8272 dnet_ntoa ();
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279   (eval $ac_link) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -s conftest$ac_exeext'
8284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285   (eval $ac_try) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; }; then
8289   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 ac_cv_lib_dnet_stub_dnet_ntoa=no
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 LIBS=$ac_check_lib_save_LIBS
8298 fi
8299 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8300 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8301 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8302   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8303 fi
8304
8305     fi
8306 fi
8307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8308     LIBS="$ac_xsave_LIBS"
8309
8310     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8311     # to get the SysV transport functions.
8312     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8313     # needs -lnsl.
8314     # The nsl library prevents programs from opening the X display
8315     # on Irix 5.2, according to T.E. Dickey.
8316     # The functions gethostbyname, getservbyname, and inet_addr are
8317     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8318     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8319 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8320 if test "${ac_cv_func_gethostbyname+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   cat >conftest.$ac_ext <<_ACEOF
8324 #line $LINENO "configure"
8325 /* confdefs.h.  */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h.  */
8330 /* System header to define __stub macros and hopefully few prototypes,
8331     which can conflict with char gethostbyname (); below.
8332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333     <limits.h> exists even on freestanding compilers.  */
8334 #ifdef __STDC__
8335 # include <limits.h>
8336 #else
8337 # include <assert.h>
8338 #endif
8339 /* Override any gcc2 internal prototype to avoid an error.  */
8340 #ifdef __cplusplus
8341 extern "C"
8342 {
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345    builtin and then its argument prototype would still apply.  */
8346 char gethostbyname ();
8347 /* The GNU C library defines this for functions which it implements
8348     to always fail with ENOSYS.  Some functions are actually named
8349     something starting with __ and the normal name is an alias.  */
8350 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8351 choke me
8352 #else
8353 char (*f) () = gethostbyname;
8354 #endif
8355 #ifdef __cplusplus
8356 }
8357 #endif
8358
8359 int
8360 main ()
8361 {
8362 return f != gethostbyname;
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369   (eval $ac_link) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } &&
8373          { ac_try='test -s conftest$ac_exeext'
8374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375   (eval $ac_try) 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_cv_func_gethostbyname=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384 ac_cv_func_gethostbyname=no
8385 fi
8386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8389 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8390
8391     if test $ac_cv_func_gethostbyname = no; then
8392       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8393 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8394 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   ac_check_lib_save_LIBS=$LIBS
8398 LIBS="-lnsl  $LIBS"
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406
8407 /* Override any gcc2 internal prototype to avoid an error.  */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412    builtin and then its argument prototype would still apply.  */
8413 char gethostbyname ();
8414 int
8415 main ()
8416 {
8417 gethostbyname ();
8418   ;
8419   return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424   (eval $ac_link) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   ac_cv_lib_nsl_gethostbyname=yes
8435 else
8436   echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 ac_cv_lib_nsl_gethostbyname=no
8440 fi
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442 LIBS=$ac_check_lib_save_LIBS
8443 fi
8444 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8445 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8446 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8447   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8448 fi
8449
8450       if test $ac_cv_lib_nsl_gethostbyname = no; then
8451         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8452 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8453 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-lbsd  $LIBS"
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465
8466 /* Override any gcc2 internal prototype to avoid an error.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471    builtin and then its argument prototype would still apply.  */
8472 char gethostbyname ();
8473 int
8474 main ()
8475 {
8476 gethostbyname ();
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483   (eval $ac_link) 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); } &&
8487          { ac_try='test -s conftest$ac_exeext'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493   ac_cv_lib_bsd_gethostbyname=yes
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_lib_bsd_gethostbyname=no
8499 fi
8500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8501 LIBS=$ac_check_lib_save_LIBS
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8504 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8505 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8506   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8507 fi
8508
8509       fi
8510     fi
8511
8512     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8513     # socket/setsockopt and other routines are undefined under SCO ODT
8514     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8515     # on later versions), says Simon Leinen: it contains gethostby*
8516     # variants that don't use the name server (or something).  -lsocket
8517     # must be given before -lnsl if both are needed.  We assume that
8518     # if connect needs -lnsl, so does gethostbyname.
8519     echo "$as_me:$LINENO: checking for connect" >&5
8520 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8521 if test "${ac_cv_func_connect+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 /* System header to define __stub macros and hopefully few prototypes,
8532     which can conflict with char connect (); below.
8533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8534     <limits.h> exists even on freestanding compilers.  */
8535 #ifdef __STDC__
8536 # include <limits.h>
8537 #else
8538 # include <assert.h>
8539 #endif
8540 /* Override any gcc2 internal prototype to avoid an error.  */
8541 #ifdef __cplusplus
8542 extern "C"
8543 {
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546    builtin and then its argument prototype would still apply.  */
8547 char connect ();
8548 /* The GNU C library defines this for functions which it implements
8549     to always fail with ENOSYS.  Some functions are actually named
8550     something starting with __ and the normal name is an alias.  */
8551 #if defined (__stub_connect) || defined (__stub___connect)
8552 choke me
8553 #else
8554 char (*f) () = connect;
8555 #endif
8556 #ifdef __cplusplus
8557 }
8558 #endif
8559
8560 int
8561 main ()
8562 {
8563 return f != connect;
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570   (eval $ac_link) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } &&
8574          { ac_try='test -s conftest$ac_exeext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_cv_func_connect=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_cv_func_connect=no
8586 fi
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 fi
8589 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8590 echo "${ECHO_T}$ac_cv_func_connect" >&6
8591
8592     if test $ac_cv_func_connect = no; then
8593       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8594 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8595 if test "${ac_cv_lib_socket_connect+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598   ac_check_lib_save_LIBS=$LIBS
8599 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607
8608 /* Override any gcc2 internal prototype to avoid an error.  */
8609 #ifdef __cplusplus
8610 extern "C"
8611 #endif
8612 /* We use char because int might match the return type of a gcc2
8613    builtin and then its argument prototype would still apply.  */
8614 char connect ();
8615 int
8616 main ()
8617 {
8618 connect ();
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625   (eval $ac_link) 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); } &&
8629          { ac_try='test -s conftest$ac_exeext'
8630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631   (eval $ac_try) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_cv_lib_socket_connect=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 ac_cv_lib_socket_connect=no
8641 fi
8642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8644 fi
8645 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8646 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8647 if test $ac_cv_lib_socket_connect = yes; then
8648   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8649 fi
8650
8651     fi
8652
8653     # Guillermo Gomez says -lposix is necessary on A/UX.
8654     echo "$as_me:$LINENO: checking for remove" >&5
8655 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8656 if test "${ac_cv_func_remove+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 /* System header to define __stub macros and hopefully few prototypes,
8667     which can conflict with char remove (); below.
8668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669     <limits.h> exists even on freestanding compilers.  */
8670 #ifdef __STDC__
8671 # include <limits.h>
8672 #else
8673 # include <assert.h>
8674 #endif
8675 /* Override any gcc2 internal prototype to avoid an error.  */
8676 #ifdef __cplusplus
8677 extern "C"
8678 {
8679 #endif
8680 /* We use char because int might match the return type of a gcc2
8681    builtin and then its argument prototype would still apply.  */
8682 char remove ();
8683 /* The GNU C library defines this for functions which it implements
8684     to always fail with ENOSYS.  Some functions are actually named
8685     something starting with __ and the normal name is an alias.  */
8686 #if defined (__stub_remove) || defined (__stub___remove)
8687 choke me
8688 #else
8689 char (*f) () = remove;
8690 #endif
8691 #ifdef __cplusplus
8692 }
8693 #endif
8694
8695 int
8696 main ()
8697 {
8698 return f != remove;
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8705   (eval $ac_link) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } &&
8709          { ac_try='test -s conftest$ac_exeext'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; }; then
8715   ac_cv_func_remove=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_cv_func_remove=no
8721 fi
8722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8723 fi
8724 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8725 echo "${ECHO_T}$ac_cv_func_remove" >&6
8726
8727     if test $ac_cv_func_remove = no; then
8728       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8729 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8730 if test "${ac_cv_lib_posix_remove+set}" = set; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733   ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lposix  $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8737 /* confdefs.h.  */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h.  */
8742
8743 /* Override any gcc2 internal prototype to avoid an error.  */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 /* We use char because int might match the return type of a gcc2
8748    builtin and then its argument prototype would still apply.  */
8749 char remove ();
8750 int
8751 main ()
8752 {
8753 remove ();
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760   (eval $ac_link) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -s conftest$ac_exeext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   ac_cv_lib_posix_remove=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_cv_lib_posix_remove=no
8776 fi
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8781 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8782 if test $ac_cv_lib_posix_remove = yes; then
8783   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8784 fi
8785
8786     fi
8787
8788     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8789     echo "$as_me:$LINENO: checking for shmat" >&5
8790 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8791 if test "${ac_cv_func_shmat+set}" = set; then
8792   echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794   cat >conftest.$ac_ext <<_ACEOF
8795 #line $LINENO "configure"
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801 /* System header to define __stub macros and hopefully few prototypes,
8802     which can conflict with char shmat (); below.
8803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8804     <limits.h> exists even on freestanding compilers.  */
8805 #ifdef __STDC__
8806 # include <limits.h>
8807 #else
8808 # include <assert.h>
8809 #endif
8810 /* Override any gcc2 internal prototype to avoid an error.  */
8811 #ifdef __cplusplus
8812 extern "C"
8813 {
8814 #endif
8815 /* We use char because int might match the return type of a gcc2
8816    builtin and then its argument prototype would still apply.  */
8817 char shmat ();
8818 /* The GNU C library defines this for functions which it implements
8819     to always fail with ENOSYS.  Some functions are actually named
8820     something starting with __ and the normal name is an alias.  */
8821 #if defined (__stub_shmat) || defined (__stub___shmat)
8822 choke me
8823 #else
8824 char (*f) () = shmat;
8825 #endif
8826 #ifdef __cplusplus
8827 }
8828 #endif
8829
8830 int
8831 main ()
8832 {
8833 return f != shmat;
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840   (eval $ac_link) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } &&
8844          { ac_try='test -s conftest$ac_exeext'
8845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846   (eval $ac_try) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); }; }; then
8850   ac_cv_func_shmat=yes
8851 else
8852   echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 ac_cv_func_shmat=no
8856 fi
8857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8858 fi
8859 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8860 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8861
8862     if test $ac_cv_func_shmat = no; then
8863       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8864 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8865 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868   ac_check_lib_save_LIBS=$LIBS
8869 LIBS="-lipc  $LIBS"
8870 cat >conftest.$ac_ext <<_ACEOF
8871 #line $LINENO "configure"
8872 /* confdefs.h.  */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h.  */
8877
8878 /* Override any gcc2 internal prototype to avoid an error.  */
8879 #ifdef __cplusplus
8880 extern "C"
8881 #endif
8882 /* We use char because int might match the return type of a gcc2
8883    builtin and then its argument prototype would still apply.  */
8884 char shmat ();
8885 int
8886 main ()
8887 {
8888 shmat ();
8889   ;
8890   return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895   (eval $ac_link) 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } &&
8899          { ac_try='test -s conftest$ac_exeext'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; }; then
8905   ac_cv_lib_ipc_shmat=yes
8906 else
8907   echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8909
8910 ac_cv_lib_ipc_shmat=no
8911 fi
8912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8913 LIBS=$ac_check_lib_save_LIBS
8914 fi
8915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8917 if test $ac_cv_lib_ipc_shmat = yes; then
8918   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8919 fi
8920
8921     fi
8922   fi
8923
8924   # Check for libraries that X11R6 Xt/Xaw programs need.
8925   ac_save_LDFLAGS=$LDFLAGS
8926   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8927   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8928   # check for ICE first), but we must link in the order -lSM -lICE or
8929   # we get undefined symbols.  So assume we have SM if we have ICE.
8930   # These have to be linked with before -lX11, unlike the other
8931   # libraries we check for below, so use a different variable.
8932   # John Interrante, Karl Berry
8933   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947
8948 /* Override any gcc2 internal prototype to avoid an error.  */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 /* We use char because int might match the return type of a gcc2
8953    builtin and then its argument prototype would still apply.  */
8954 char IceConnectionNumber ();
8955 int
8956 main ()
8957 {
8958 IceConnectionNumber ();
8959   ;
8960   return 0;
8961 }
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965   (eval $ac_link) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -s conftest$ac_exeext'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; }; then
8975   ac_cv_lib_ICE_IceConnectionNumber=yes
8976 else
8977   echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_cv_lib_ICE_IceConnectionNumber=no
8981 fi
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8983 LIBS=$ac_check_lib_save_LIBS
8984 fi
8985 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8986 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8987 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8988   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8989 fi
8990
8991   LDFLAGS=$ac_save_LDFLAGS
8992
8993 fi
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018 for ac_header in \
9019         assert.h \
9020         fcntl.h \
9021         grp.h \
9022         pwd.h \
9023         libc.h \
9024         limits.h \
9025         stdarg.h \
9026         stdlib.h \
9027         stdint.h \
9028         string.h \
9029         termios.h \
9030         unistd.h \
9031         sys/byteorder.h \
9032         sys/ioctl.h \
9033         sys/select.h \
9034         sys/sockio.h \
9035         sys/time.h \
9036         sys/socket.h \
9037         arpa/nameser.h \
9038         resolv.h \
9039         mtio.h \
9040         sys/mtio.h \
9041
9042 do
9043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045   echo "$as_me:$LINENO: checking for $ac_header" >&5
9046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 fi
9050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052 else
9053   # Is the header compilable?
9054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9056 cat >conftest.$ac_ext <<_ACEOF
9057 #line $LINENO "configure"
9058 /* confdefs.h.  */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h.  */
9063 $ac_includes_default
9064 #include <$ac_header>
9065 _ACEOF
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068   (eval $ac_compile) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -s conftest.$ac_objext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   ac_header_compiler=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 ac_header_compiler=no
9084 fi
9085 rm -f conftest.$ac_objext conftest.$ac_ext
9086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9087 echo "${ECHO_T}$ac_header_compiler" >&6
9088
9089 # Is the header present?
9090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 #include <$ac_header>
9100 _ACEOF
9101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9103   ac_status=$?
9104   grep -v '^ *+' conftest.er1 >conftest.err
9105   rm -f conftest.er1
9106   cat conftest.err >&5
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } >/dev/null; then
9109   if test -s conftest.err; then
9110     ac_cpp_err=$ac_c_preproc_warn_flag
9111   else
9112     ac_cpp_err=
9113   fi
9114 else
9115   ac_cpp_err=yes
9116 fi
9117 if test -z "$ac_cpp_err"; then
9118   ac_header_preproc=yes
9119 else
9120   echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9122
9123   ac_header_preproc=no
9124 fi
9125 rm -f conftest.err conftest.$ac_ext
9126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9127 echo "${ECHO_T}$ac_header_preproc" >&6
9128
9129 # So?  What about this header?
9130 case $ac_header_compiler:$ac_header_preproc in
9131   yes:no )
9132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9136     (
9137       cat <<\_ASBOX
9138 ## ------------------------------------ ##
9139 ## Report this to bug-autoconf@gnu.org. ##
9140 ## ------------------------------------ ##
9141 _ASBOX
9142     ) |
9143       sed "s/^/$as_me: WARNING:     /" >&2
9144     ;;
9145   no:yes )
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9152     (
9153       cat <<\_ASBOX
9154 ## ------------------------------------ ##
9155 ## Report this to bug-autoconf@gnu.org. ##
9156 ## ------------------------------------ ##
9157 _ASBOX
9158     ) |
9159       sed "s/^/$as_me: WARNING:     /" >&2
9160     ;;
9161 esac
9162 echo "$as_me:$LINENO: checking for $ac_header" >&5
9163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   eval "$as_ac_Header=$ac_header_preproc"
9168 fi
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9171
9172 fi
9173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9174   cat >>confdefs.h <<_ACEOF
9175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9176 _ACEOF
9177
9178 fi
9179
9180 done
9181
9182 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9184 if test "${ac_cv_header_stdc+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194 #include <stdlib.h>
9195 #include <stdarg.h>
9196 #include <string.h>
9197 #include <float.h>
9198
9199 int
9200 main ()
9201 {
9202
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209   (eval $ac_compile) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } &&
9213          { ac_try='test -s conftest.$ac_objext'
9214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215   (eval $ac_try) 2>&5
9216   ac_status=$?
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); }; }; then
9219   ac_cv_header_stdc=yes
9220 else
9221   echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9223
9224 ac_cv_header_stdc=no
9225 fi
9226 rm -f conftest.$ac_objext conftest.$ac_ext
9227
9228 if test $ac_cv_header_stdc = yes; then
9229   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9230   cat >conftest.$ac_ext <<_ACEOF
9231 #line $LINENO "configure"
9232 /* confdefs.h.  */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h.  */
9237 #include <string.h>
9238
9239 _ACEOF
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241   $EGREP "memchr" >/dev/null 2>&1; then
9242   :
9243 else
9244   ac_cv_header_stdc=no
9245 fi
9246 rm -f conftest*
9247
9248 fi
9249
9250 if test $ac_cv_header_stdc = yes; then
9251   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9252   cat >conftest.$ac_ext <<_ACEOF
9253 #line $LINENO "configure"
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 #include <stdlib.h>
9260
9261 _ACEOF
9262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9263   $EGREP "free" >/dev/null 2>&1; then
9264   :
9265 else
9266   ac_cv_header_stdc=no
9267 fi
9268 rm -f conftest*
9269
9270 fi
9271
9272 if test $ac_cv_header_stdc = yes; then
9273   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9274   if test "$cross_compiling" = yes; then
9275   :
9276 else
9277   cat >conftest.$ac_ext <<_ACEOF
9278 #line $LINENO "configure"
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 #include <ctype.h>
9285 #if ((' ' & 0x0FF) == 0x020)
9286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9288 #else
9289 # define ISLOWER(c) \
9290                    (('a' <= (c) && (c) <= 'i') \
9291                      || ('j' <= (c) && (c) <= 'r') \
9292                      || ('s' <= (c) && (c) <= 'z'))
9293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9294 #endif
9295
9296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9297 int
9298 main ()
9299 {
9300   int i;
9301   for (i = 0; i < 256; i++)
9302     if (XOR (islower (i), ISLOWER (i))
9303         || toupper (i) != TOUPPER (i))
9304       exit(2);
9305   exit (0);
9306 }
9307 _ACEOF
9308 rm -f conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310   (eval $ac_link) 2>&5
9311   ac_status=$?
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315   (eval $ac_try) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; }; then
9319   :
9320 else
9321   echo "$as_me: program exited with status $ac_status" >&5
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9324
9325 ( exit $ac_status )
9326 ac_cv_header_stdc=no
9327 fi
9328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9329 fi
9330 fi
9331 fi
9332 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9333 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9334 if test $ac_cv_header_stdc = yes; then
9335
9336 cat >>confdefs.h <<\_ACEOF
9337 #define STDC_HEADERS 1
9338 _ACEOF
9339
9340 fi
9341
9342 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9343 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9344 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 #include <sys/types.h>
9355 int
9356 main ()
9357 {
9358 return makedev(0, 0);
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365   (eval $ac_link) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } &&
9369          { ac_try='test -s conftest$ac_exeext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   ac_cv_header_sys_types_h_makedev=yes
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 ac_cv_header_sys_types_h_makedev=no
9381 fi
9382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9383
9384 fi
9385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9386 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9387
9388 if test $ac_cv_header_sys_types_h_makedev = no; then
9389 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9390   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9391 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 fi
9395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9396 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9397 else
9398   # Is the header compilable?
9399 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9400 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408 $ac_includes_default
9409 #include <sys/mkdev.h>
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413   (eval $ac_compile) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -s conftest.$ac_objext'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_header_compiler=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_header_compiler=no
9429 fi
9430 rm -f conftest.$ac_objext conftest.$ac_ext
9431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9432 echo "${ECHO_T}$ac_header_compiler" >&6
9433
9434 # Is the header present?
9435 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9436 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 /* confdefs.h.  */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h.  */
9444 #include <sys/mkdev.h>
9445 _ACEOF
9446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } >/dev/null; then
9454   if test -s conftest.err; then
9455     ac_cpp_err=$ac_c_preproc_warn_flag
9456   else
9457     ac_cpp_err=
9458   fi
9459 else
9460   ac_cpp_err=yes
9461 fi
9462 if test -z "$ac_cpp_err"; then
9463   ac_header_preproc=yes
9464 else
9465   echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468   ac_header_preproc=no
9469 fi
9470 rm -f conftest.err conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9472 echo "${ECHO_T}$ac_header_preproc" >&6
9473
9474 # So?  What about this header?
9475 case $ac_header_compiler:$ac_header_preproc in
9476   yes:no )
9477     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9478 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9479     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9480 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9481     (
9482       cat <<\_ASBOX
9483 ## ------------------------------------ ##
9484 ## Report this to bug-autoconf@gnu.org. ##
9485 ## ------------------------------------ ##
9486 _ASBOX
9487     ) |
9488       sed "s/^/$as_me: WARNING:     /" >&2
9489     ;;
9490   no:yes )
9491     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9492 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9493     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9494 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9495     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9496 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9497     (
9498       cat <<\_ASBOX
9499 ## ------------------------------------ ##
9500 ## Report this to bug-autoconf@gnu.org. ##
9501 ## ------------------------------------ ##
9502 _ASBOX
9503     ) |
9504       sed "s/^/$as_me: WARNING:     /" >&2
9505     ;;
9506 esac
9507 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9508 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9509 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9510   echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9513 fi
9514 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9515 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9516
9517 fi
9518 if test $ac_cv_header_sys_mkdev_h = yes; then
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define MAJOR_IN_MKDEV 1
9522 _ACEOF
9523
9524 fi
9525
9526
9527
9528   if test $ac_cv_header_sys_mkdev_h = no; then
9529     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9530   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9531 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9532 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 fi
9535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9537 else
9538   # Is the header compilable?
9539 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9540 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9542 #line $LINENO "configure"
9543 /* confdefs.h.  */
9544 _ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h.  */
9548 $ac_includes_default
9549 #include <sys/sysmacros.h>
9550 _ACEOF
9551 rm -f conftest.$ac_objext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9553   (eval $ac_compile) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -s conftest.$ac_objext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_header_compiler=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_header_compiler=no
9569 fi
9570 rm -f conftest.$ac_objext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572 echo "${ECHO_T}$ac_header_compiler" >&6
9573
9574 # Is the header present?
9575 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9576 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9578 #line $LINENO "configure"
9579 /* confdefs.h.  */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h.  */
9584 #include <sys/sysmacros.h>
9585 _ACEOF
9586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9587   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9588   ac_status=$?
9589   grep -v '^ *+' conftest.er1 >conftest.err
9590   rm -f conftest.er1
9591   cat conftest.err >&5
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); } >/dev/null; then
9594   if test -s conftest.err; then
9595     ac_cpp_err=$ac_c_preproc_warn_flag
9596   else
9597     ac_cpp_err=
9598   fi
9599 else
9600   ac_cpp_err=yes
9601 fi
9602 if test -z "$ac_cpp_err"; then
9603   ac_header_preproc=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608   ac_header_preproc=no
9609 fi
9610 rm -f conftest.err conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612 echo "${ECHO_T}$ac_header_preproc" >&6
9613
9614 # So?  What about this header?
9615 case $ac_header_compiler:$ac_header_preproc in
9616   yes:no )
9617     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9618 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9620 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9621     (
9622       cat <<\_ASBOX
9623 ## ------------------------------------ ##
9624 ## Report this to bug-autoconf@gnu.org. ##
9625 ## ------------------------------------ ##
9626 _ASBOX
9627     ) |
9628       sed "s/^/$as_me: WARNING:     /" >&2
9629     ;;
9630   no:yes )
9631     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9632 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9633     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9634 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9635     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9636 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9637     (
9638       cat <<\_ASBOX
9639 ## ------------------------------------ ##
9640 ## Report this to bug-autoconf@gnu.org. ##
9641 ## ------------------------------------ ##
9642 _ASBOX
9643     ) |
9644       sed "s/^/$as_me: WARNING:     /" >&2
9645     ;;
9646 esac
9647 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9648 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9649 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9653 fi
9654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9655 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9656
9657 fi
9658 if test $ac_cv_header_sys_sysmacros_h = yes; then
9659
9660 cat >>confdefs.h <<\_ACEOF
9661 #define MAJOR_IN_SYSMACROS 1
9662 _ACEOF
9663
9664 fi
9665
9666
9667   fi
9668 fi
9669
9670
9671
9672
9673
9674
9675 ac_header_dirent=no
9676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9677   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9679 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 #include <sys/types.h>
9691 #include <$ac_hdr>
9692
9693 int
9694 main ()
9695 {
9696 if ((DIR *) 0)
9697 return 0;
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704   (eval $ac_compile) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } &&
9708          { ac_try='test -s conftest.$ac_objext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   eval "$as_ac_Header=yes"
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 eval "$as_ac_Header=no"
9720 fi
9721 rm -f conftest.$ac_objext conftest.$ac_ext
9722 fi
9723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726   cat >>confdefs.h <<_ACEOF
9727 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9728 _ACEOF
9729
9730 ac_header_dirent=$ac_hdr; break
9731 fi
9732
9733 done
9734 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9735 if test $ac_header_dirent = dirent.h; then
9736   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9737 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9738 if test "${ac_cv_search_opendir+set}" = set; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   ac_func_search_save_LIBS=$LIBS
9742 ac_cv_search_opendir=no
9743 cat >conftest.$ac_ext <<_ACEOF
9744 #line $LINENO "configure"
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750
9751 /* Override any gcc2 internal prototype to avoid an error.  */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756    builtin and then its argument prototype would still apply.  */
9757 char opendir ();
9758 int
9759 main ()
9760 {
9761 opendir ();
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768   (eval $ac_link) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); } &&
9772          { ac_try='test -s conftest$ac_exeext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   ac_cv_search_opendir="none required"
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 fi
9784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785 if test "$ac_cv_search_opendir" = no; then
9786   for ac_lib in dir; do
9787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9788     cat >conftest.$ac_ext <<_ACEOF
9789 #line $LINENO "configure"
9790 /* confdefs.h.  */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h.  */
9795
9796 /* Override any gcc2 internal prototype to avoid an error.  */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 /* We use char because int might match the return type of a gcc2
9801    builtin and then its argument prototype would still apply.  */
9802 char opendir ();
9803 int
9804 main ()
9805 {
9806 opendir ();
9807   ;
9808   return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813   (eval $ac_link) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); } &&
9817          { ac_try='test -s conftest$ac_exeext'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823   ac_cv_search_opendir="-l$ac_lib"
9824 break
9825 else
9826   echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9828
9829 fi
9830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9831   done
9832 fi
9833 LIBS=$ac_func_search_save_LIBS
9834 fi
9835 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9836 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9837 if test "$ac_cv_search_opendir" != no; then
9838   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9839
9840 fi
9841
9842 else
9843   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9844 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9845 if test "${ac_cv_search_opendir+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   ac_func_search_save_LIBS=$LIBS
9849 ac_cv_search_opendir=no
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 /* Override any gcc2 internal prototype to avoid an error.  */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 /* We use char because int might match the return type of a gcc2
9863    builtin and then its argument prototype would still apply.  */
9864 char opendir ();
9865 int
9866 main ()
9867 {
9868 opendir ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875   (eval $ac_link) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_search_opendir="none required"
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 fi
9891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9892 if test "$ac_cv_search_opendir" = no; then
9893   for ac_lib in x; do
9894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9895     cat >conftest.$ac_ext <<_ACEOF
9896 #line $LINENO "configure"
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902
9903 /* Override any gcc2 internal prototype to avoid an error.  */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 /* We use char because int might match the return type of a gcc2
9908    builtin and then its argument prototype would still apply.  */
9909 char opendir ();
9910 int
9911 main ()
9912 {
9913 opendir ();
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920   (eval $ac_link) 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } &&
9924          { ac_try='test -s conftest$ac_exeext'
9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926   (eval $ac_try) 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; }; then
9930   ac_cv_search_opendir="-l$ac_lib"
9931 break
9932 else
9933   echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 fi
9937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9938   done
9939 fi
9940 LIBS=$ac_func_search_save_LIBS
9941 fi
9942 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9943 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9944 if test "$ac_cv_search_opendir" != no; then
9945   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9946
9947 fi
9948
9949 fi
9950
9951 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9952 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9953 if test "${ac_cv_header_stat_broken+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   cat >conftest.$ac_ext <<_ACEOF
9957 #line $LINENO "configure"
9958 /* confdefs.h.  */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h.  */
9963 #include <sys/types.h>
9964 #include <sys/stat.h>
9965
9966 #if defined(S_ISBLK) && defined(S_IFDIR)
9967 # if S_ISBLK (S_IFDIR)
9968 You lose.
9969 # endif
9970 #endif
9971
9972 #if defined(S_ISBLK) && defined(S_IFCHR)
9973 # if S_ISBLK (S_IFCHR)
9974 You lose.
9975 # endif
9976 #endif
9977
9978 #if defined(S_ISLNK) && defined(S_IFREG)
9979 # if S_ISLNK (S_IFREG)
9980 You lose.
9981 # endif
9982 #endif
9983
9984 #if defined(S_ISSOCK) && defined(S_IFREG)
9985 # if S_ISSOCK (S_IFREG)
9986 You lose.
9987 # endif
9988 #endif
9989
9990 _ACEOF
9991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9992   $EGREP "You lose" >/dev/null 2>&1; then
9993   ac_cv_header_stat_broken=yes
9994 else
9995   ac_cv_header_stat_broken=no
9996 fi
9997 rm -f conftest*
9998
9999 fi
10000 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10001 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10002 if test $ac_cv_header_stat_broken = yes; then
10003
10004 cat >>confdefs.h <<\_ACEOF
10005 #define STAT_MACROS_BROKEN 1
10006 _ACEOF
10007
10008 fi
10009
10010 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10011 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10012 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   cat >conftest.$ac_ext <<_ACEOF
10016 #line $LINENO "configure"
10017 /* confdefs.h.  */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h.  */
10022 #include <sys/types.h>
10023 #include <sys/wait.h>
10024 #ifndef WEXITSTATUS
10025 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10026 #endif
10027 #ifndef WIFEXITED
10028 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10029 #endif
10030
10031 int
10032 main ()
10033 {
10034   int s;
10035   wait (&s);
10036   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10037   ;
10038   return 0;
10039 }
10040 _ACEOF
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043   (eval $ac_compile) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); } &&
10047          { ac_try='test -s conftest.$ac_objext'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   ac_cv_header_sys_wait_h=yes
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 ac_cv_header_sys_wait_h=no
10059 fi
10060 rm -f conftest.$ac_objext conftest.$ac_ext
10061 fi
10062 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10063 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10064 if test $ac_cv_header_sys_wait_h = yes; then
10065
10066 cat >>confdefs.h <<\_ACEOF
10067 #define HAVE_SYS_WAIT_H 1
10068 _ACEOF
10069
10070 fi
10071
10072 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10073 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10074 if test "${ac_cv_header_time+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077   cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084 #include <sys/types.h>
10085 #include <sys/time.h>
10086 #include <time.h>
10087
10088 int
10089 main ()
10090 {
10091 if ((struct tm *) 0)
10092 return 0;
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099   (eval $ac_compile) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -s conftest.$ac_objext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_header_time=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_cv_header_time=no
10115 fi
10116 rm -f conftest.$ac_objext conftest.$ac_ext
10117 fi
10118 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10119 echo "${ECHO_T}$ac_cv_header_time" >&6
10120 if test $ac_cv_header_time = yes; then
10121
10122 cat >>confdefs.h <<\_ACEOF
10123 #define TIME_WITH_SYS_TIME 1
10124 _ACEOF
10125
10126 fi
10127
10128
10129 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10130 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10131 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   cat >conftest.$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10136 /* confdefs.h.  */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h.  */
10141 $ac_includes_default
10142 int
10143 main ()
10144 {
10145 static struct stat ac_aggr;
10146 if (ac_aggr.st_blksize)
10147 return 0;
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154   (eval $ac_compile) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); } &&
10158          { ac_try='test -s conftest.$ac_objext'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }; then
10164   ac_cv_member_struct_stat_st_blksize=yes
10165 else
10166   echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 cat >conftest.$ac_ext <<_ACEOF
10170 #line $LINENO "configure"
10171 /* confdefs.h.  */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h.  */
10176 $ac_includes_default
10177 int
10178 main ()
10179 {
10180 static struct stat ac_aggr;
10181 if (sizeof ac_aggr.st_blksize)
10182 return 0;
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189   (eval $ac_compile) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -s conftest.$ac_objext'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; }; then
10199   ac_cv_member_struct_stat_st_blksize=yes
10200 else
10201   echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10203
10204 ac_cv_member_struct_stat_st_blksize=no
10205 fi
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10207 fi
10208 rm -f conftest.$ac_objext conftest.$ac_ext
10209 fi
10210 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10211 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10212 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10213
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10216 _ACEOF
10217
10218
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_ST_BLKSIZE 1
10221 _ACEOF
10222
10223 fi
10224
10225
10226 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10227 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10228 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   cat >conftest.$ac_ext <<_ACEOF
10232 #line $LINENO "configure"
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 $ac_includes_default
10239 int
10240 main ()
10241 {
10242 static struct stat ac_aggr;
10243 if (ac_aggr.st_blocks)
10244 return 0;
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251   (eval $ac_compile) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -s conftest.$ac_objext'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_cv_member_struct_stat_st_blocks=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 cat >conftest.$ac_ext <<_ACEOF
10267 #line $LINENO "configure"
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273 $ac_includes_default
10274 int
10275 main ()
10276 {
10277 static struct stat ac_aggr;
10278 if (sizeof ac_aggr.st_blocks)
10279 return 0;
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286   (eval $ac_compile) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -s conftest.$ac_objext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_cv_member_struct_stat_st_blocks=yes
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301 ac_cv_member_struct_stat_st_blocks=no
10302 fi
10303 rm -f conftest.$ac_objext conftest.$ac_ext
10304 fi
10305 rm -f conftest.$ac_objext conftest.$ac_ext
10306 fi
10307 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10308 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10309 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10310
10311 cat >>confdefs.h <<_ACEOF
10312 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10313 _ACEOF
10314
10315
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_ST_BLOCKS 1
10318 _ACEOF
10319
10320 else
10321   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10322 fi
10323
10324
10325 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10326 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10327 if test "${ac_cv_struct_tm+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 #include <sys/types.h>
10338 #include <time.h>
10339
10340 int
10341 main ()
10342 {
10343 struct tm *tp; tp->tm_sec;
10344   ;
10345   return 0;
10346 }
10347 _ACEOF
10348 rm -f conftest.$ac_objext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10350   (eval $ac_compile) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } &&
10354          { ac_try='test -s conftest.$ac_objext'
10355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356   (eval $ac_try) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; }; then
10360   ac_cv_struct_tm=time.h
10361 else
10362   echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365 ac_cv_struct_tm=sys/time.h
10366 fi
10367 rm -f conftest.$ac_objext conftest.$ac_ext
10368 fi
10369 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10370 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10371 if test $ac_cv_struct_tm = sys/time.h; then
10372
10373 cat >>confdefs.h <<\_ACEOF
10374 #define TM_IN_SYS_TIME 1
10375 _ACEOF
10376
10377 fi
10378
10379 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10380 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10381 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10386 /* confdefs.h.  */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h.  */
10391 #include <sys/types.h>
10392 #include <$ac_cv_struct_tm>
10393
10394
10395 int
10396 main ()
10397 {
10398 static struct tm ac_aggr;
10399 if (ac_aggr.tm_zone)
10400 return 0;
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407   (eval $ac_compile) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } &&
10411          { ac_try='test -s conftest.$ac_objext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   ac_cv_member_struct_tm_tm_zone=yes
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 cat >conftest.$ac_ext <<_ACEOF
10423 #line $LINENO "configure"
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429 #include <sys/types.h>
10430 #include <$ac_cv_struct_tm>
10431
10432
10433 int
10434 main ()
10435 {
10436 static struct tm ac_aggr;
10437 if (sizeof ac_aggr.tm_zone)
10438 return 0;
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445   (eval $ac_compile) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } &&
10449          { ac_try='test -s conftest.$ac_objext'
10450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451   (eval $ac_try) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; }; then
10455   ac_cv_member_struct_tm_tm_zone=yes
10456 else
10457   echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 ac_cv_member_struct_tm_tm_zone=no
10461 fi
10462 rm -f conftest.$ac_objext conftest.$ac_ext
10463 fi
10464 rm -f conftest.$ac_objext conftest.$ac_ext
10465 fi
10466 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10467 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10468 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10469
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_STRUCT_TM_TM_ZONE 1
10472 _ACEOF
10473
10474
10475 fi
10476
10477 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10478
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_TM_ZONE 1
10481 _ACEOF
10482
10483 else
10484   echo "$as_me:$LINENO: checking for tzname" >&5
10485 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10486 if test "${ac_cv_var_tzname+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   cat >conftest.$ac_ext <<_ACEOF
10490 #line $LINENO "configure"
10491 /* confdefs.h.  */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h.  */
10496 #include <time.h>
10497 #ifndef tzname /* For SGI.  */
10498 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10499 #endif
10500
10501 int
10502 main ()
10503 {
10504 atoi(*tzname);
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511   (eval $ac_link) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); } &&
10515          { ac_try='test -s conftest$ac_exeext'
10516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517   (eval $ac_try) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; }; then
10521   ac_cv_var_tzname=yes
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ac_cv_var_tzname=no
10527 fi
10528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10529 fi
10530 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10531 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10532   if test $ac_cv_var_tzname = yes; then
10533
10534 cat >>confdefs.h <<\_ACEOF
10535 #define HAVE_TZNAME 1
10536 _ACEOF
10537
10538   fi
10539 fi
10540
10541
10542 echo "$as_me:$LINENO: checking for utime.h" >&5
10543 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10544 if test "${ba_cv_header_utime_h+set}" = set; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547   cat >conftest.$ac_ext <<_ACEOF
10548 #line $LINENO "configure"
10549 /* confdefs.h.  */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h.  */
10554
10555 #include <sys/types.h>
10556 #include <utime.h>
10557 int
10558 main ()
10559 {
10560 struct utimbuf foo
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567   (eval $ac_compile) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } &&
10571          { ac_try='test -s conftest.$ac_objext'
10572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573   (eval $ac_try) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; }; then
10577   ba_cv_header_utime_h=yes
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582 ba_cv_header_utime_h=no
10583 fi
10584 rm -f conftest.$ac_objext conftest.$ac_ext
10585 fi
10586 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10587 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10588 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_UTIME_H 1
10590 _ACEOF
10591
10592
10593 echo "$as_me:$LINENO: checking for socklen_t" >&5
10594 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10595 if test "${ba_cv_header_socklen_t+set}" = set; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598   cat >conftest.$ac_ext <<_ACEOF
10599 #line $LINENO "configure"
10600 /* confdefs.h.  */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h.  */
10605
10606 #include <sys/types.h>
10607 #include <sys/socket.h>
10608 int
10609 main ()
10610 {
10611 socklen_t x
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618   (eval $ac_compile) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); } &&
10622          { ac_try='test -s conftest.$ac_objext'
10623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624   (eval $ac_try) 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; }; then
10628   ba_cv_header_socklen_t=yes
10629 else
10630   echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 ba_cv_header_socklen_t=no
10634 fi
10635 rm -f conftest.$ac_objext conftest.$ac_ext
10636 fi
10637 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10638 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10639 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10640 #define HAVE_SOCKLEN_T 1
10641 _ACEOF
10642
10643
10644 echo "$as_me:$LINENO: checking for bigendian" >&5
10645 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10646 if test "${ba_cv_bigendian+set}" = set; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   if test "$cross_compiling" = yes; then
10650   ba_cv_bigendian=no
10651 else
10652   cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10660 _ACEOF
10661 rm -f conftest$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663   (eval $ac_link) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; }; then
10672   ba_cv_bigendian=yes
10673 else
10674   echo "$as_me: program exited with status $ac_status" >&5
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ( exit $ac_status )
10679 ba_cv_bigendian=no
10680 fi
10681 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10682 fi
10683 fi
10684 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10685 echo "${ECHO_T}$ba_cv_bigendian" >&6
10686 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10687 #define HAVE_BIGENDIAN 1
10688 _ACEOF
10689
10690
10691
10692 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10693 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10694 if test "${ac_cv_c_const+set}" = set; then
10695   echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697   cat >conftest.$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10699 /* confdefs.h.  */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h.  */
10704
10705 int
10706 main ()
10707 {
10708 /* FIXME: Include the comments suggested by Paul. */
10709 #ifndef __cplusplus
10710   /* Ultrix mips cc rejects this.  */
10711   typedef int charset[2];
10712   const charset x;
10713   /* SunOS 4.1.1 cc rejects this.  */
10714   char const *const *ccp;
10715   char **p;
10716   /* NEC SVR4.0.2 mips cc rejects this.  */
10717   struct point {int x, y;};
10718   static struct point const zero = {0,0};
10719   /* AIX XL C 1.02.0.0 rejects this.
10720      It does not let you subtract one const X* pointer from another in
10721      an arm of an if-expression whose if-part is not a constant
10722      expression */
10723   const char *g = "string";
10724   ccp = &g + (g ? g-g : 0);
10725   /* HPUX 7.0 cc rejects these. */
10726   ++ccp;
10727   p = (char**) ccp;
10728   ccp = (char const *const *) p;
10729   { /* SCO 3.2v4 cc rejects this.  */
10730     char *t;
10731     char const *s = 0 ? (char *) 0 : (char const *) 0;
10732
10733     *t++ = 0;
10734   }
10735   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10736     int x[] = {25, 17};
10737     const int *foo = &x[0];
10738     ++foo;
10739   }
10740   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10741     typedef const int *iptr;
10742     iptr p = 0;
10743     ++p;
10744   }
10745   { /* AIX XL C 1.02.0.0 rejects this saying
10746        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10747     struct s { int j; const int *ap[3]; };
10748     struct s *b; b->j = 5;
10749   }
10750   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10751     const int foo = 10;
10752   }
10753 #endif
10754
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10761   (eval $ac_compile) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); } &&
10765          { ac_try='test -s conftest.$ac_objext'
10766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767   (eval $ac_try) 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); }; }; then
10771   ac_cv_c_const=yes
10772 else
10773   echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 ac_cv_c_const=no
10777 fi
10778 rm -f conftest.$ac_objext conftest.$ac_ext
10779 fi
10780 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10781 echo "${ECHO_T}$ac_cv_c_const" >&6
10782 if test $ac_cv_c_const = no; then
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define const
10786 _ACEOF
10787
10788 fi
10789
10790
10791
10792 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10793 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10794 fstype=no
10795 # The order of these tests is important.
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803 #include <sys/statvfs.h>
10804 #include <sys/fstyp.h>
10805 _ACEOF
10806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } >/dev/null; then
10814   if test -s conftest.err; then
10815     ac_cpp_err=$ac_c_preproc_warn_flag
10816   else
10817     ac_cpp_err=
10818   fi
10819 else
10820   ac_cpp_err=yes
10821 fi
10822 if test -z "$ac_cpp_err"; then
10823   cat >>confdefs.h <<\_ACEOF
10824 #define FSTYPE_STATVFS 1
10825 _ACEOF
10826  fstype=SVR4
10827 else
10828   echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831
10832 fi
10833 rm -f conftest.err conftest.$ac_ext
10834 if test $fstype = no; then
10835 cat >conftest.$ac_ext <<_ACEOF
10836 #line $LINENO "configure"
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 #include <sys/statfs.h>
10843 #include <sys/fstyp.h>
10844 _ACEOF
10845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } >/dev/null; then
10853   if test -s conftest.err; then
10854     ac_cpp_err=$ac_c_preproc_warn_flag
10855   else
10856     ac_cpp_err=
10857   fi
10858 else
10859   ac_cpp_err=yes
10860 fi
10861 if test -z "$ac_cpp_err"; then
10862   cat >>confdefs.h <<\_ACEOF
10863 #define FSTYPE_USG_STATFS 1
10864 _ACEOF
10865  fstype=SVR3
10866 else
10867   echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870
10871 fi
10872 rm -f conftest.err conftest.$ac_ext
10873 fi
10874 if test $fstype = no; then
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #line $LINENO "configure"
10877 /* confdefs.h.  */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h.  */
10882 #include <sys/statfs.h>
10883 #include <sys/vmount.h>
10884 _ACEOF
10885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } >/dev/null; then
10893   if test -s conftest.err; then
10894     ac_cpp_err=$ac_c_preproc_warn_flag
10895   else
10896     ac_cpp_err=
10897   fi
10898 else
10899   ac_cpp_err=yes
10900 fi
10901 if test -z "$ac_cpp_err"; then
10902   cat >>confdefs.h <<\_ACEOF
10903 #define FSTYPE_AIX_STATFS 1
10904 _ACEOF
10905  fstype=AIX
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910
10911 fi
10912 rm -f conftest.err conftest.$ac_ext
10913 fi
10914 if test $fstype = no; then
10915 cat >conftest.$ac_ext <<_ACEOF
10916 #line $LINENO "configure"
10917 /* confdefs.h.  */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h.  */
10922 #include <mntent.h>
10923 _ACEOF
10924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } >/dev/null; then
10932   if test -s conftest.err; then
10933     ac_cpp_err=$ac_c_preproc_warn_flag
10934   else
10935     ac_cpp_err=
10936   fi
10937 else
10938   ac_cpp_err=yes
10939 fi
10940 if test -z "$ac_cpp_err"; then
10941   cat >>confdefs.h <<\_ACEOF
10942 #define FSTYPE_MNTENT 1
10943 _ACEOF
10944  fstype=4.3BSD
10945 else
10946   echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949
10950 fi
10951 rm -f conftest.err conftest.$ac_ext
10952 fi
10953 if test $fstype = no; then
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line $LINENO "configure"
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961 #include <sys/mount.h>
10962
10963 _ACEOF
10964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10965   $EGREP "f_type;" >/dev/null 2>&1; then
10966   cat >>confdefs.h <<\_ACEOF
10967 #define FSTYPE_STATFS 1
10968 _ACEOF
10969  fstype=4.4BSD/OSF1
10970 fi
10971 rm -f conftest*
10972
10973 fi
10974 if test $fstype = no; then
10975 cat >conftest.$ac_ext <<_ACEOF
10976 #line $LINENO "configure"
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 #include <sys/mount.h>
10983 #include <sys/fs_types.h>
10984 _ACEOF
10985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } >/dev/null; then
10993   if test -s conftest.err; then
10994     ac_cpp_err=$ac_c_preproc_warn_flag
10995   else
10996     ac_cpp_err=
10997   fi
10998 else
10999   ac_cpp_err=yes
11000 fi
11001 if test -z "$ac_cpp_err"; then
11002   cat >>confdefs.h <<\_ACEOF
11003 #define FSTYPE_GETMNT 1
11004 _ACEOF
11005  fstype=Ultrix
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010
11011 fi
11012 rm -f conftest.err conftest.$ac_ext
11013 fi
11014 echo "$as_me:$LINENO: result: $fstype" >&5
11015 echo "${ECHO_T}$fstype" >&6
11016
11017 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11018 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11019 if test "${ac_cv_type_signal+set}" = set; then
11020   echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022   cat >conftest.$ac_ext <<_ACEOF
11023 #line $LINENO "configure"
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 #include <sys/types.h>
11030 #include <signal.h>
11031 #ifdef signal
11032 # undef signal
11033 #endif
11034 #ifdef __cplusplus
11035 extern "C" void (*signal (int, void (*)(int)))(int);
11036 #else
11037 void (*signal ()) ();
11038 #endif
11039
11040 int
11041 main ()
11042 {
11043 int i;
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050   (eval $ac_compile) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } &&
11054          { ac_try='test -s conftest.$ac_objext'
11055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056   (eval $ac_try) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; }; then
11060   ac_cv_type_signal=void
11061 else
11062   echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 ac_cv_type_signal=int
11066 fi
11067 rm -f conftest.$ac_objext conftest.$ac_ext
11068 fi
11069 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11070 echo "${ECHO_T}$ac_cv_type_signal" >&6
11071
11072 cat >>confdefs.h <<_ACEOF
11073 #define RETSIGTYPE $ac_cv_type_signal
11074 _ACEOF
11075
11076
11077
11078 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11079 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11080 if test "${bash_cv_signal_vintage+set}" = set; then
11081   echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083
11084   cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11086 /* confdefs.h.  */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h.  */
11091 #include <signal.h>
11092 int
11093 main ()
11094 {
11095
11096     sigset_t ss;
11097     struct sigaction sa;
11098     sigemptyset(&ss); sigsuspend(&ss);
11099     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11100     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11101
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108   (eval $ac_link) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); } &&
11112          { ac_try='test -s conftest$ac_exeext'
11113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114   (eval $ac_try) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }; then
11118   bash_cv_signal_vintage=posix
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123
11124     cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 #include <signal.h>
11132 int
11133 main ()
11134 {
11135
11136         int mask = sigmask(SIGINT);
11137         sigsetmask(mask); sigblock(mask); sigpause(mask);
11138
11139   ;
11140   return 0;
11141 }
11142 _ACEOF
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11145   (eval $ac_link) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } &&
11149          { ac_try='test -s conftest$ac_exeext'
11150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151   (eval $ac_try) 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; }; then
11155   bash_cv_signal_vintage=4.2bsd
11156 else
11157   echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160
11161       cat >conftest.$ac_ext <<_ACEOF
11162 #line $LINENO "configure"
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168
11169         #include <signal.h>
11170         RETSIGTYPE foo() { }
11171 int
11172 main ()
11173 {
11174
11175                 int mask = sigmask(SIGINT);
11176                 sigset(SIGINT, foo); sigrelse(SIGINT);
11177                 sighold(SIGINT); sigpause(SIGINT);
11178
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185   (eval $ac_link) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -s conftest$ac_exeext'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   bash_cv_signal_vintage=svr3
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 bash_cv_signal_vintage=v7
11201
11202 fi
11203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11204
11205 fi
11206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11207
11208 fi
11209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11210
11211 fi
11212
11213 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11214 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11215 if test "$bash_cv_signal_vintage" = posix; then
11216 cat >>confdefs.h <<\_ACEOF
11217 #define HAVE_POSIX_SIGNALS 1
11218 _ACEOF
11219
11220 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11221 cat >>confdefs.h <<\_ACEOF
11222 #define HAVE_BSD_SIGNALS 1
11223 _ACEOF
11224
11225 elif test "$bash_cv_signal_vintage" = svr3; then
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_USG_SIGHOLD 1
11228 _ACEOF
11229
11230 fi
11231
11232 echo "$as_me:$LINENO: checking for mode_t" >&5
11233 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11234 if test "${ac_cv_type_mode_t+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 $ac_includes_default
11245 int
11246 main ()
11247 {
11248 if ((mode_t *) 0)
11249   return 0;
11250 if (sizeof (mode_t))
11251   return 0;
11252   ;
11253   return 0;
11254 }
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258   (eval $ac_compile) 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } &&
11262          { ac_try='test -s conftest.$ac_objext'
11263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264   (eval $ac_try) 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; }; then
11268   ac_cv_type_mode_t=yes
11269 else
11270   echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 ac_cv_type_mode_t=no
11274 fi
11275 rm -f conftest.$ac_objext conftest.$ac_ext
11276 fi
11277 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11278 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11279 if test $ac_cv_type_mode_t = yes; then
11280   :
11281 else
11282
11283 cat >>confdefs.h <<_ACEOF
11284 #define mode_t int
11285 _ACEOF
11286
11287 fi
11288
11289 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11290 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11291 if test "${ac_cv_type_uid_t+set}" = set; then
11292   echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294   cat >conftest.$ac_ext <<_ACEOF
11295 #line $LINENO "configure"
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 #include <sys/types.h>
11302
11303 _ACEOF
11304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11305   $EGREP "uid_t" >/dev/null 2>&1; then
11306   ac_cv_type_uid_t=yes
11307 else
11308   ac_cv_type_uid_t=no
11309 fi
11310 rm -f conftest*
11311
11312 fi
11313 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11314 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11315 if test $ac_cv_type_uid_t = no; then
11316
11317 cat >>confdefs.h <<\_ACEOF
11318 #define uid_t int
11319 _ACEOF
11320
11321
11322 cat >>confdefs.h <<\_ACEOF
11323 #define gid_t int
11324 _ACEOF
11325
11326 fi
11327
11328 echo "$as_me:$LINENO: checking for size_t" >&5
11329 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11330 if test "${ac_cv_type_size_t+set}" = set; then
11331   echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333   cat >conftest.$ac_ext <<_ACEOF
11334 #line $LINENO "configure"
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 $ac_includes_default
11341 int
11342 main ()
11343 {
11344 if ((size_t *) 0)
11345   return 0;
11346 if (sizeof (size_t))
11347   return 0;
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11354   (eval $ac_compile) 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } &&
11358          { ac_try='test -s conftest.$ac_objext'
11359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360   (eval $ac_try) 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; }; then
11364   ac_cv_type_size_t=yes
11365 else
11366   echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 ac_cv_type_size_t=no
11370 fi
11371 rm -f conftest.$ac_objext conftest.$ac_ext
11372 fi
11373 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11374 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11375 if test $ac_cv_type_size_t = yes; then
11376   :
11377 else
11378
11379 cat >>confdefs.h <<_ACEOF
11380 #define size_t unsigned
11381 _ACEOF
11382
11383 fi
11384
11385 echo "$as_me:$LINENO: checking for pid_t" >&5
11386 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11387 if test "${ac_cv_type_pid_t+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 $ac_includes_default
11398 int
11399 main ()
11400 {
11401 if ((pid_t *) 0)
11402   return 0;
11403 if (sizeof (pid_t))
11404   return 0;
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411   (eval $ac_compile) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   ac_cv_type_pid_t=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 ac_cv_type_pid_t=no
11427 fi
11428 rm -f conftest.$ac_objext conftest.$ac_ext
11429 fi
11430 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11431 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11432 if test $ac_cv_type_pid_t = yes; then
11433   :
11434 else
11435
11436 cat >>confdefs.h <<_ACEOF
11437 #define pid_t int
11438 _ACEOF
11439
11440 fi
11441
11442 echo "$as_me:$LINENO: checking for off_t" >&5
11443 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11444 if test "${ac_cv_type_off_t+set}" = set; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 /* confdefs.h.  */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h.  */
11454 $ac_includes_default
11455 int
11456 main ()
11457 {
11458 if ((off_t *) 0)
11459   return 0;
11460 if (sizeof (off_t))
11461   return 0;
11462   ;
11463   return 0;
11464 }
11465 _ACEOF
11466 rm -f conftest.$ac_objext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468   (eval $ac_compile) 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -s conftest.$ac_objext'
11473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474   (eval $ac_try) 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; }; then
11478   ac_cv_type_off_t=yes
11479 else
11480   echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11482
11483 ac_cv_type_off_t=no
11484 fi
11485 rm -f conftest.$ac_objext conftest.$ac_ext
11486 fi
11487 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11488 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11489 if test $ac_cv_type_off_t = yes; then
11490   :
11491 else
11492
11493 cat >>confdefs.h <<_ACEOF
11494 #define off_t long
11495 _ACEOF
11496
11497 fi
11498
11499 echo "$as_me:$LINENO: checking for ino_t" >&5
11500 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11501 if test "${ac_cv_type_ino_t+set}" = set; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504   cat >conftest.$ac_ext <<_ACEOF
11505 #line $LINENO "configure"
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511 $ac_includes_default
11512 int
11513 main ()
11514 {
11515 if ((ino_t *) 0)
11516   return 0;
11517 if (sizeof (ino_t))
11518   return 0;
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525   (eval $ac_compile) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } &&
11529          { ac_try='test -s conftest.$ac_objext'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; }; then
11535   ac_cv_type_ino_t=yes
11536 else
11537   echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540 ac_cv_type_ino_t=no
11541 fi
11542 rm -f conftest.$ac_objext conftest.$ac_ext
11543 fi
11544 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11545 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11546 if test $ac_cv_type_ino_t = yes; then
11547   :
11548 else
11549
11550 cat >>confdefs.h <<_ACEOF
11551 #define ino_t unsigned long
11552 _ACEOF
11553
11554 fi
11555
11556 echo "$as_me:$LINENO: checking for dev_t" >&5
11557 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11558 if test "${ac_cv_type_dev_t+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 /* confdefs.h.  */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h.  */
11568 $ac_includes_default
11569 int
11570 main ()
11571 {
11572 if ((dev_t *) 0)
11573   return 0;
11574 if (sizeof (dev_t))
11575   return 0;
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11582   (eval $ac_compile) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } &&
11586          { ac_try='test -s conftest.$ac_objext'
11587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588   (eval $ac_try) 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; }; then
11592   ac_cv_type_dev_t=yes
11593 else
11594   echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11596
11597 ac_cv_type_dev_t=no
11598 fi
11599 rm -f conftest.$ac_objext conftest.$ac_ext
11600 fi
11601 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11602 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11603 if test $ac_cv_type_dev_t = yes; then
11604   :
11605 else
11606
11607 cat >>confdefs.h <<_ACEOF
11608 #define dev_t unsigned long
11609 _ACEOF
11610
11611 fi
11612
11613 echo "$as_me:$LINENO: checking for daddr_t" >&5
11614 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11615 if test "${ac_cv_type_daddr_t+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 $ac_includes_default
11626 int
11627 main ()
11628 {
11629 if ((daddr_t *) 0)
11630   return 0;
11631 if (sizeof (daddr_t))
11632   return 0;
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639   (eval $ac_compile) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest.$ac_objext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_cv_type_daddr_t=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 ac_cv_type_daddr_t=no
11655 fi
11656 rm -f conftest.$ac_objext conftest.$ac_ext
11657 fi
11658 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11659 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11660 if test $ac_cv_type_daddr_t = yes; then
11661   :
11662 else
11663
11664 cat >>confdefs.h <<_ACEOF
11665 #define daddr_t long
11666 _ACEOF
11667
11668 fi
11669
11670 echo "$as_me:$LINENO: checking for major_t" >&5
11671 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11672 if test "${ac_cv_type_major_t+set}" = set; then
11673   echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675   cat >conftest.$ac_ext <<_ACEOF
11676 #line $LINENO "configure"
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682 $ac_includes_default
11683 int
11684 main ()
11685 {
11686 if ((major_t *) 0)
11687   return 0;
11688 if (sizeof (major_t))
11689   return 0;
11690   ;
11691   return 0;
11692 }
11693 _ACEOF
11694 rm -f conftest.$ac_objext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696   (eval $ac_compile) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -s conftest.$ac_objext'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; }; then
11706   ac_cv_type_major_t=yes
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 ac_cv_type_major_t=no
11712 fi
11713 rm -f conftest.$ac_objext conftest.$ac_ext
11714 fi
11715 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11716 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11717 if test $ac_cv_type_major_t = yes; then
11718   :
11719 else
11720
11721 cat >>confdefs.h <<_ACEOF
11722 #define major_t int
11723 _ACEOF
11724
11725 fi
11726
11727 echo "$as_me:$LINENO: checking for minor_t" >&5
11728 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11729 if test "${ac_cv_type_minor_t+set}" = set; then
11730   echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732   cat >conftest.$ac_ext <<_ACEOF
11733 #line $LINENO "configure"
11734 /* confdefs.h.  */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h.  */
11739 $ac_includes_default
11740 int
11741 main ()
11742 {
11743 if ((minor_t *) 0)
11744   return 0;
11745 if (sizeof (minor_t))
11746   return 0;
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 rm -f conftest.$ac_objext
11752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11753   (eval $ac_compile) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); } &&
11757          { ac_try='test -s conftest.$ac_objext'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; }; then
11763   ac_cv_type_minor_t=yes
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 ac_cv_type_minor_t=no
11769 fi
11770 rm -f conftest.$ac_objext conftest.$ac_ext
11771 fi
11772 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11773 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11774 if test $ac_cv_type_minor_t = yes; then
11775   :
11776 else
11777
11778 cat >>confdefs.h <<_ACEOF
11779 #define minor_t int
11780 _ACEOF
11781
11782 fi
11783
11784 echo "$as_me:$LINENO: checking for ssize_t" >&5
11785 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11786 if test "${ac_cv_type_ssize_t+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   cat >conftest.$ac_ext <<_ACEOF
11790 #line $LINENO "configure"
11791 /* confdefs.h.  */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h.  */
11796 $ac_includes_default
11797 int
11798 main ()
11799 {
11800 if ((ssize_t *) 0)
11801   return 0;
11802 if (sizeof (ssize_t))
11803   return 0;
11804   ;
11805   return 0;
11806 }
11807 _ACEOF
11808 rm -f conftest.$ac_objext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810   (eval $ac_compile) 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); } &&
11814          { ac_try='test -s conftest.$ac_objext'
11815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816   (eval $ac_try) 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; }; then
11820   ac_cv_type_ssize_t=yes
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825 ac_cv_type_ssize_t=no
11826 fi
11827 rm -f conftest.$ac_objext conftest.$ac_ext
11828 fi
11829 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11830 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11831 if test $ac_cv_type_ssize_t = yes; then
11832   :
11833 else
11834
11835 cat >>confdefs.h <<_ACEOF
11836 #define ssize_t int
11837 _ACEOF
11838
11839 fi
11840
11841 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11842 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11843 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 $ac_includes_default
11854 int
11855 main ()
11856 {
11857 static struct stat ac_aggr;
11858 if (ac_aggr.st_blocks)
11859 return 0;
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866   (eval $ac_compile) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); } &&
11870          { ac_try='test -s conftest.$ac_objext'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; }; then
11876   ac_cv_member_struct_stat_st_blocks=yes
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 cat >conftest.$ac_ext <<_ACEOF
11882 #line $LINENO "configure"
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 $ac_includes_default
11889 int
11890 main ()
11891 {
11892 static struct stat ac_aggr;
11893 if (sizeof ac_aggr.st_blocks)
11894 return 0;
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901   (eval $ac_compile) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -s conftest.$ac_objext'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   ac_cv_member_struct_stat_st_blocks=yes
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_cv_member_struct_stat_st_blocks=no
11917 fi
11918 rm -f conftest.$ac_objext conftest.$ac_ext
11919 fi
11920 rm -f conftest.$ac_objext conftest.$ac_ext
11921 fi
11922 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11923 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11924 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11925
11926 cat >>confdefs.h <<_ACEOF
11927 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11928 _ACEOF
11929
11930
11931 cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_ST_BLOCKS 1
11933 _ACEOF
11934
11935 else
11936   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11937 fi
11938
11939
11940
11941 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11942 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11943 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 $ac_includes_default
11954 int
11955 main ()
11956 {
11957 static struct stat ac_aggr;
11958 if (ac_aggr.st_rdev)
11959 return 0;
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966   (eval $ac_compile) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } &&
11970          { ac_try='test -s conftest.$ac_objext'
11971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972   (eval $ac_try) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   ac_cv_member_struct_stat_st_rdev=yes
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 cat >conftest.$ac_ext <<_ACEOF
11982 #line $LINENO "configure"
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988 $ac_includes_default
11989 int
11990 main ()
11991 {
11992 static struct stat ac_aggr;
11993 if (sizeof ac_aggr.st_rdev)
11994 return 0;
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001   (eval $ac_compile) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -s conftest.$ac_objext'
12006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007   (eval $ac_try) 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   ac_cv_member_struct_stat_st_rdev=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 ac_cv_member_struct_stat_st_rdev=no
12017 fi
12018 rm -f conftest.$ac_objext conftest.$ac_ext
12019 fi
12020 rm -f conftest.$ac_objext conftest.$ac_ext
12021 fi
12022 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12023 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12024 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12025
12026 cat >>confdefs.h <<_ACEOF
12027 #define HAVE_STRUCT_STAT_ST_RDEV 1
12028 _ACEOF
12029
12030
12031 cat >>confdefs.h <<\_ACEOF
12032 #define HAVE_ST_RDEV 1
12033 _ACEOF
12034
12035 fi
12036
12037
12038 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12039 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12040 if test "${ac_cv_struct_tm+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   cat >conftest.$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050 #include <sys/types.h>
12051 #include <time.h>
12052
12053 int
12054 main ()
12055 {
12056 struct tm *tp; tp->tm_sec;
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12063   (eval $ac_compile) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -s conftest.$ac_objext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_cv_struct_tm=time.h
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_cv_struct_tm=sys/time.h
12079 fi
12080 rm -f conftest.$ac_objext conftest.$ac_ext
12081 fi
12082 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12083 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12084 if test $ac_cv_struct_tm = sys/time.h; then
12085
12086 cat >>confdefs.h <<\_ACEOF
12087 #define TM_IN_SYS_TIME 1
12088 _ACEOF
12089
12090 fi
12091
12092 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12094 if test "${ac_cv_c_const+set}" = set; then
12095   echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097   cat >conftest.$ac_ext <<_ACEOF
12098 #line $LINENO "configure"
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104
12105 int
12106 main ()
12107 {
12108 /* FIXME: Include the comments suggested by Paul. */
12109 #ifndef __cplusplus
12110   /* Ultrix mips cc rejects this.  */
12111   typedef int charset[2];
12112   const charset x;
12113   /* SunOS 4.1.1 cc rejects this.  */
12114   char const *const *ccp;
12115   char **p;
12116   /* NEC SVR4.0.2 mips cc rejects this.  */
12117   struct point {int x, y;};
12118   static struct point const zero = {0,0};
12119   /* AIX XL C 1.02.0.0 rejects this.
12120      It does not let you subtract one const X* pointer from another in
12121      an arm of an if-expression whose if-part is not a constant
12122      expression */
12123   const char *g = "string";
12124   ccp = &g + (g ? g-g : 0);
12125   /* HPUX 7.0 cc rejects these. */
12126   ++ccp;
12127   p = (char**) ccp;
12128   ccp = (char const *const *) p;
12129   { /* SCO 3.2v4 cc rejects this.  */
12130     char *t;
12131     char const *s = 0 ? (char *) 0 : (char const *) 0;
12132
12133     *t++ = 0;
12134   }
12135   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12136     int x[] = {25, 17};
12137     const int *foo = &x[0];
12138     ++foo;
12139   }
12140   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12141     typedef const int *iptr;
12142     iptr p = 0;
12143     ++p;
12144   }
12145   { /* AIX XL C 1.02.0.0 rejects this saying
12146        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12147     struct s { int j; const int *ap[3]; };
12148     struct s *b; b->j = 5;
12149   }
12150   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12151     const int foo = 10;
12152   }
12153 #endif
12154
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161   (eval $ac_compile) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } &&
12165          { ac_try='test -s conftest.$ac_objext'
12166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167   (eval $ac_try) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; }; then
12171   ac_cv_c_const=yes
12172 else
12173   echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ac_cv_c_const=no
12177 fi
12178 rm -f conftest.$ac_objext conftest.$ac_ext
12179 fi
12180 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12181 echo "${ECHO_T}$ac_cv_c_const" >&6
12182 if test $ac_cv_c_const = no; then
12183
12184 cat >>confdefs.h <<\_ACEOF
12185 #define const
12186 _ACEOF
12187
12188 fi
12189
12190
12191
12192 echo "$as_me:$LINENO: checking for char" >&5
12193 echo $ECHO_N "checking for char... $ECHO_C" >&6
12194 if test "${ac_cv_type_char+set}" = set; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   cat >conftest.$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 $ac_includes_default
12205 int
12206 main ()
12207 {
12208 if ((char *) 0)
12209   return 0;
12210 if (sizeof (char))
12211   return 0;
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218   (eval $ac_compile) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -s conftest.$ac_objext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   ac_cv_type_char=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 ac_cv_type_char=no
12234 fi
12235 rm -f conftest.$ac_objext conftest.$ac_ext
12236 fi
12237 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12238 echo "${ECHO_T}$ac_cv_type_char" >&6
12239
12240 echo "$as_me:$LINENO: checking size of char" >&5
12241 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12242 if test "${ac_cv_sizeof_char+set}" = set; then
12243   echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245   if test "$ac_cv_type_char" = yes; then
12246   # The cast to unsigned long works around a bug in the HP C Compiler
12247   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12248   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12249   # This bug is HP SR number 8606223364.
12250   if test "$cross_compiling" = yes; then
12251   # Depending upon the size, compute the lo and hi bounds.
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 /* confdefs.h.  */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h.  */
12259 $ac_includes_default
12260 int
12261 main ()
12262 {
12263 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12264 test_array [0] = 0
12265
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272   (eval $ac_compile) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } &&
12276          { ac_try='test -s conftest.$ac_objext'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; }; then
12282   ac_lo=0 ac_mid=0
12283   while :; do
12284     cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291 $ac_includes_default
12292 int
12293 main ()
12294 {
12295 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12296 test_array [0] = 0
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304   (eval $ac_compile) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); } &&
12308          { ac_try='test -s conftest.$ac_objext'
12309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310   (eval $ac_try) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; }; then
12314   ac_hi=$ac_mid; break
12315 else
12316   echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_lo=`expr $ac_mid + 1`
12320                     if test $ac_lo -le $ac_mid; then
12321                       ac_lo= ac_hi=
12322                       break
12323                     fi
12324                     ac_mid=`expr 2 '*' $ac_mid + 1`
12325 fi
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12327   done
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 cat >conftest.$ac_ext <<_ACEOF
12333 #line $LINENO "configure"
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 $ac_includes_default
12340 int
12341 main ()
12342 {
12343 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12344 test_array [0] = 0
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352   (eval $ac_compile) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } &&
12356          { ac_try='test -s conftest.$ac_objext'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   ac_hi=-1 ac_mid=-1
12363   while :; do
12364     cat >conftest.$ac_ext <<_ACEOF
12365 #line $LINENO "configure"
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371 $ac_includes_default
12372 int
12373 main ()
12374 {
12375 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12376 test_array [0] = 0
12377
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 rm -f conftest.$ac_objext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12384   (eval $ac_compile) 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -s conftest.$ac_objext'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; }; then
12394   ac_lo=$ac_mid; break
12395 else
12396   echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12398
12399 ac_hi=`expr '(' $ac_mid ')' - 1`
12400                        if test $ac_mid -le $ac_hi; then
12401                          ac_lo= ac_hi=
12402                          break
12403                        fi
12404                        ac_mid=`expr 2 '*' $ac_mid`
12405 fi
12406 rm -f conftest.$ac_objext conftest.$ac_ext
12407   done
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_lo= ac_hi=
12413 fi
12414 rm -f conftest.$ac_objext conftest.$ac_ext
12415 fi
12416 rm -f conftest.$ac_objext conftest.$ac_ext
12417 # Binary search between lo and hi bounds.
12418 while test "x$ac_lo" != "x$ac_hi"; do
12419   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12420   cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 $ac_includes_default
12428 int
12429 main ()
12430 {
12431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12432 test_array [0] = 0
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440   (eval $ac_compile) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -s conftest.$ac_objext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450   ac_hi=$ac_mid
12451 else
12452   echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 ac_lo=`expr '(' $ac_mid ')' + 1`
12456 fi
12457 rm -f conftest.$ac_objext conftest.$ac_ext
12458 done
12459 case $ac_lo in
12460 ?*) ac_cv_sizeof_char=$ac_lo;;
12461 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12462 See \`config.log' for more details." >&5
12463 echo "$as_me: error: cannot compute sizeof (char), 77
12464 See \`config.log' for more details." >&2;}
12465    { (exit 1); exit 1; }; } ;;
12466 esac
12467 else
12468   if test "$cross_compiling" = yes; then
12469   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12470 See \`config.log' for more details." >&5
12471 echo "$as_me: error: cannot run test program while cross compiling
12472 See \`config.log' for more details." >&2;}
12473    { (exit 1); exit 1; }; }
12474 else
12475   cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12477 /* confdefs.h.  */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h.  */
12482 $ac_includes_default
12483 long longval () { return (long) (sizeof (char)); }
12484 unsigned long ulongval () { return (long) (sizeof (char)); }
12485 #include <stdio.h>
12486 #include <stdlib.h>
12487 int
12488 main ()
12489 {
12490
12491   FILE *f = fopen ("conftest.val", "w");
12492   if (! f)
12493     exit (1);
12494   if (((long) (sizeof (char))) < 0)
12495     {
12496       long i = longval ();
12497       if (i != ((long) (sizeof (char))))
12498         exit (1);
12499       fprintf (f, "%ld\n", i);
12500     }
12501   else
12502     {
12503       unsigned long i = ulongval ();
12504       if (i != ((long) (sizeof (char))))
12505         exit (1);
12506       fprintf (f, "%lu\n", i);
12507     }
12508   exit (ferror (f) || fclose (f) != 0);
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516   (eval $ac_link) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_sizeof_char=`cat conftest.val`
12526 else
12527   echo "$as_me: program exited with status $ac_status" >&5
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ( exit $ac_status )
12532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12533 See \`config.log' for more details." >&5
12534 echo "$as_me: error: cannot compute sizeof (char), 77
12535 See \`config.log' for more details." >&2;}
12536    { (exit 1); exit 1; }; }
12537 fi
12538 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 fi
12541 rm -f conftest.val
12542 else
12543   ac_cv_sizeof_char=0
12544 fi
12545 fi
12546 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12547 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12548 cat >>confdefs.h <<_ACEOF
12549 #define SIZEOF_CHAR $ac_cv_sizeof_char
12550 _ACEOF
12551
12552
12553 echo "$as_me:$LINENO: checking for short int" >&5
12554 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12555 if test "${ac_cv_type_short_int+set}" = set; then
12556   echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558   cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 $ac_includes_default
12566 int
12567 main ()
12568 {
12569 if ((short int *) 0)
12570   return 0;
12571 if (sizeof (short int))
12572   return 0;
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579   (eval $ac_compile) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -s conftest.$ac_objext'
12584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585   (eval $ac_try) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; }; then
12589   ac_cv_type_short_int=yes
12590 else
12591   echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 ac_cv_type_short_int=no
12595 fi
12596 rm -f conftest.$ac_objext conftest.$ac_ext
12597 fi
12598 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12599 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12600
12601 echo "$as_me:$LINENO: checking size of short int" >&5
12602 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12603 if test "${ac_cv_sizeof_short_int+set}" = set; then
12604   echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606   if test "$ac_cv_type_short_int" = yes; then
12607   # The cast to unsigned long works around a bug in the HP C Compiler
12608   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12609   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12610   # This bug is HP SR number 8606223364.
12611   if test "$cross_compiling" = yes; then
12612   # Depending upon the size, compute the lo and hi bounds.
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 /* confdefs.h.  */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h.  */
12620 $ac_includes_default
12621 int
12622 main ()
12623 {
12624 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12625 test_array [0] = 0
12626
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633   (eval $ac_compile) 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); } &&
12637          { ac_try='test -s conftest.$ac_objext'
12638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639   (eval $ac_try) 2>&5
12640   ac_status=$?
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); }; }; then
12643   ac_lo=0 ac_mid=0
12644   while :; do
12645     cat >conftest.$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652 $ac_includes_default
12653 int
12654 main ()
12655 {
12656 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12657 test_array [0] = 0
12658
12659   ;
12660   return 0;
12661 }
12662 _ACEOF
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665   (eval $ac_compile) 2>&5
12666   ac_status=$?
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } &&
12669          { ac_try='test -s conftest.$ac_objext'
12670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671   (eval $ac_try) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; }; then
12675   ac_hi=$ac_mid; break
12676 else
12677   echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ac_lo=`expr $ac_mid + 1`
12681                     if test $ac_lo -le $ac_mid; then
12682                       ac_lo= ac_hi=
12683                       break
12684                     fi
12685                     ac_mid=`expr 2 '*' $ac_mid + 1`
12686 fi
12687 rm -f conftest.$ac_objext conftest.$ac_ext
12688   done
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 $ac_includes_default
12701 int
12702 main ()
12703 {
12704 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12705 test_array [0] = 0
12706
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713   (eval $ac_compile) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } &&
12717          { ac_try='test -s conftest.$ac_objext'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; }; then
12723   ac_hi=-1 ac_mid=-1
12724   while :; do
12725     cat >conftest.$ac_ext <<_ACEOF
12726 #line $LINENO "configure"
12727 /* confdefs.h.  */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h.  */
12732 $ac_includes_default
12733 int
12734 main ()
12735 {
12736 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12737 test_array [0] = 0
12738
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745   (eval $ac_compile) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } &&
12749          { ac_try='test -s conftest.$ac_objext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   ac_lo=$ac_mid; break
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 ac_hi=`expr '(' $ac_mid ')' - 1`
12761                        if test $ac_mid -le $ac_hi; then
12762                          ac_lo= ac_hi=
12763                          break
12764                        fi
12765                        ac_mid=`expr 2 '*' $ac_mid`
12766 fi
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12768   done
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 ac_lo= ac_hi=
12774 fi
12775 rm -f conftest.$ac_objext conftest.$ac_ext
12776 fi
12777 rm -f conftest.$ac_objext conftest.$ac_ext
12778 # Binary search between lo and hi bounds.
12779 while test "x$ac_lo" != "x$ac_hi"; do
12780   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12781   cat >conftest.$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788 $ac_includes_default
12789 int
12790 main ()
12791 {
12792 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12793 test_array [0] = 0
12794
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801   (eval $ac_compile) 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); } &&
12805          { ac_try='test -s conftest.$ac_objext'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; }; then
12811   ac_hi=$ac_mid
12812 else
12813   echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816 ac_lo=`expr '(' $ac_mid ')' + 1`
12817 fi
12818 rm -f conftest.$ac_objext conftest.$ac_ext
12819 done
12820 case $ac_lo in
12821 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12822 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12823 See \`config.log' for more details." >&5
12824 echo "$as_me: error: cannot compute sizeof (short int), 77
12825 See \`config.log' for more details." >&2;}
12826    { (exit 1); exit 1; }; } ;;
12827 esac
12828 else
12829   if test "$cross_compiling" = yes; then
12830   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12831 See \`config.log' for more details." >&5
12832 echo "$as_me: error: cannot run test program while cross compiling
12833 See \`config.log' for more details." >&2;}
12834    { (exit 1); exit 1; }; }
12835 else
12836   cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 $ac_includes_default
12844 long longval () { return (long) (sizeof (short int)); }
12845 unsigned long ulongval () { return (long) (sizeof (short int)); }
12846 #include <stdio.h>
12847 #include <stdlib.h>
12848 int
12849 main ()
12850 {
12851
12852   FILE *f = fopen ("conftest.val", "w");
12853   if (! f)
12854     exit (1);
12855   if (((long) (sizeof (short int))) < 0)
12856     {
12857       long i = longval ();
12858       if (i != ((long) (sizeof (short int))))
12859         exit (1);
12860       fprintf (f, "%ld\n", i);
12861     }
12862   else
12863     {
12864       unsigned long i = ulongval ();
12865       if (i != ((long) (sizeof (short int))))
12866         exit (1);
12867       fprintf (f, "%lu\n", i);
12868     }
12869   exit (ferror (f) || fclose (f) != 0);
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877   (eval $ac_link) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882   (eval $ac_try) 2>&5
12883   ac_status=$?
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); }; }; then
12886   ac_cv_sizeof_short_int=`cat conftest.val`
12887 else
12888   echo "$as_me: program exited with status $ac_status" >&5
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892 ( exit $ac_status )
12893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: cannot compute sizeof (short int), 77
12896 See \`config.log' for more details." >&2;}
12897    { (exit 1); exit 1; }; }
12898 fi
12899 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 fi
12902 rm -f conftest.val
12903 else
12904   ac_cv_sizeof_short_int=0
12905 fi
12906 fi
12907 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12908 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12909 cat >>confdefs.h <<_ACEOF
12910 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12911 _ACEOF
12912
12913
12914 echo "$as_me:$LINENO: checking for int" >&5
12915 echo $ECHO_N "checking for int... $ECHO_C" >&6
12916 if test "${ac_cv_type_int+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12921 /* confdefs.h.  */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h.  */
12926 $ac_includes_default
12927 int
12928 main ()
12929 {
12930 if ((int *) 0)
12931   return 0;
12932 if (sizeof (int))
12933   return 0;
12934   ;
12935   return 0;
12936 }
12937 _ACEOF
12938 rm -f conftest.$ac_objext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12940   (eval $ac_compile) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } &&
12944          { ac_try='test -s conftest.$ac_objext'
12945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946   (eval $ac_try) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; }; then
12950   ac_cv_type_int=yes
12951 else
12952   echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12954
12955 ac_cv_type_int=no
12956 fi
12957 rm -f conftest.$ac_objext conftest.$ac_ext
12958 fi
12959 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12960 echo "${ECHO_T}$ac_cv_type_int" >&6
12961
12962 echo "$as_me:$LINENO: checking size of int" >&5
12963 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12964 if test "${ac_cv_sizeof_int+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   if test "$ac_cv_type_int" = yes; then
12968   # The cast to unsigned long works around a bug in the HP C Compiler
12969   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971   # This bug is HP SR number 8606223364.
12972   if test "$cross_compiling" = yes; then
12973   # Depending upon the size, compute the lo and hi bounds.
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line $LINENO "configure"
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981 $ac_includes_default
12982 int
12983 main ()
12984 {
12985 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12986 test_array [0] = 0
12987
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994   (eval $ac_compile) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -s conftest.$ac_objext'
12999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000   (eval $ac_try) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; }; then
13004   ac_lo=0 ac_mid=0
13005   while :; do
13006     cat >conftest.$ac_ext <<_ACEOF
13007 #line $LINENO "configure"
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 $ac_includes_default
13014 int
13015 main ()
13016 {
13017 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13018 test_array [0] = 0
13019
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026   (eval $ac_compile) 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -s conftest.$ac_objext'
13031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032   (eval $ac_try) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; }; then
13036   ac_hi=$ac_mid; break
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041 ac_lo=`expr $ac_mid + 1`
13042                     if test $ac_lo -le $ac_mid; then
13043                       ac_lo= ac_hi=
13044                       break
13045                     fi
13046                     ac_mid=`expr 2 '*' $ac_mid + 1`
13047 fi
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13049   done
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 cat >conftest.$ac_ext <<_ACEOF
13055 #line $LINENO "configure"
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061 $ac_includes_default
13062 int
13063 main ()
13064 {
13065 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13066 test_array [0] = 0
13067
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074   (eval $ac_compile) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); } &&
13078          { ac_try='test -s conftest.$ac_objext'
13079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080   (eval $ac_try) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; }; then
13084   ac_hi=-1 ac_mid=-1
13085   while :; do
13086     cat >conftest.$ac_ext <<_ACEOF
13087 #line $LINENO "configure"
13088 /* confdefs.h.  */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h.  */
13093 $ac_includes_default
13094 int
13095 main ()
13096 {
13097 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13098 test_array [0] = 0
13099
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 rm -f conftest.$ac_objext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106   (eval $ac_compile) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); } &&
13110          { ac_try='test -s conftest.$ac_objext'
13111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112   (eval $ac_try) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; }; then
13116   ac_lo=$ac_mid; break
13117 else
13118   echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_hi=`expr '(' $ac_mid ')' - 1`
13122                        if test $ac_mid -le $ac_hi; then
13123                          ac_lo= ac_hi=
13124                          break
13125                        fi
13126                        ac_mid=`expr 2 '*' $ac_mid`
13127 fi
13128 rm -f conftest.$ac_objext conftest.$ac_ext
13129   done
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 ac_lo= ac_hi=
13135 fi
13136 rm -f conftest.$ac_objext conftest.$ac_ext
13137 fi
13138 rm -f conftest.$ac_objext conftest.$ac_ext
13139 # Binary search between lo and hi bounds.
13140 while test "x$ac_lo" != "x$ac_hi"; do
13141   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13142   cat >conftest.$ac_ext <<_ACEOF
13143 #line $LINENO "configure"
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149 $ac_includes_default
13150 int
13151 main ()
13152 {
13153 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13154 test_array [0] = 0
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -s conftest.$ac_objext'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_hi=$ac_mid
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177 ac_lo=`expr '(' $ac_mid ')' + 1`
13178 fi
13179 rm -f conftest.$ac_objext conftest.$ac_ext
13180 done
13181 case $ac_lo in
13182 ?*) ac_cv_sizeof_int=$ac_lo;;
13183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13184 See \`config.log' for more details." >&5
13185 echo "$as_me: error: cannot compute sizeof (int), 77
13186 See \`config.log' for more details." >&2;}
13187    { (exit 1); exit 1; }; } ;;
13188 esac
13189 else
13190   if test "$cross_compiling" = yes; then
13191   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13192 See \`config.log' for more details." >&5
13193 echo "$as_me: error: cannot run test program while cross compiling
13194 See \`config.log' for more details." >&2;}
13195    { (exit 1); exit 1; }; }
13196 else
13197   cat >conftest.$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13199 /* confdefs.h.  */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h.  */
13204 $ac_includes_default
13205 long longval () { return (long) (sizeof (int)); }
13206 unsigned long ulongval () { return (long) (sizeof (int)); }
13207 #include <stdio.h>
13208 #include <stdlib.h>
13209 int
13210 main ()
13211 {
13212
13213   FILE *f = fopen ("conftest.val", "w");
13214   if (! f)
13215     exit (1);
13216   if (((long) (sizeof (int))) < 0)
13217     {
13218       long i = longval ();
13219       if (i != ((long) (sizeof (int))))
13220         exit (1);
13221       fprintf (f, "%ld\n", i);
13222     }
13223   else
13224     {
13225       unsigned long i = ulongval ();
13226       if (i != ((long) (sizeof (int))))
13227         exit (1);
13228       fprintf (f, "%lu\n", i);
13229     }
13230   exit (ferror (f) || fclose (f) != 0);
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest$ac_exeext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13238   (eval $ac_link) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243   (eval $ac_try) 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; }; then
13247   ac_cv_sizeof_int=`cat conftest.val`
13248 else
13249   echo "$as_me: program exited with status $ac_status" >&5
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252
13253 ( exit $ac_status )
13254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13255 See \`config.log' for more details." >&5
13256 echo "$as_me: error: cannot compute sizeof (int), 77
13257 See \`config.log' for more details." >&2;}
13258    { (exit 1); exit 1; }; }
13259 fi
13260 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 fi
13263 rm -f conftest.val
13264 else
13265   ac_cv_sizeof_int=0
13266 fi
13267 fi
13268 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13269 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13270 cat >>confdefs.h <<_ACEOF
13271 #define SIZEOF_INT $ac_cv_sizeof_int
13272 _ACEOF
13273
13274
13275 echo "$as_me:$LINENO: checking for long int" >&5
13276 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13277 if test "${ac_cv_type_long_int+set}" = set; then
13278   echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280   cat >conftest.$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 $ac_includes_default
13288 int
13289 main ()
13290 {
13291 if ((long int *) 0)
13292   return 0;
13293 if (sizeof (long int))
13294   return 0;
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301   (eval $ac_compile) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -s conftest.$ac_objext'
13306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307   (eval $ac_try) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }; }; then
13311   ac_cv_type_long_int=yes
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_cv_type_long_int=no
13317 fi
13318 rm -f conftest.$ac_objext conftest.$ac_ext
13319 fi
13320 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13321 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13322
13323 echo "$as_me:$LINENO: checking size of long int" >&5
13324 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13325 if test "${ac_cv_sizeof_long_int+set}" = set; then
13326   echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328   if test "$ac_cv_type_long_int" = yes; then
13329   # The cast to unsigned long works around a bug in the HP C Compiler
13330   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13331   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13332   # This bug is HP SR number 8606223364.
13333   if test "$cross_compiling" = yes; then
13334   # Depending upon the size, compute the lo and hi bounds.
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #line $LINENO "configure"
13337 /* confdefs.h.  */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h.  */
13342 $ac_includes_default
13343 int
13344 main ()
13345 {
13346 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13347 test_array [0] = 0
13348
13349   ;
13350   return 0;
13351 }
13352 _ACEOF
13353 rm -f conftest.$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355   (eval $ac_compile) 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); } &&
13359          { ac_try='test -s conftest.$ac_objext'
13360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361   (eval $ac_try) 2>&5
13362   ac_status=$?
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); }; }; then
13365   ac_lo=0 ac_mid=0
13366   while :; do
13367     cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374 $ac_includes_default
13375 int
13376 main ()
13377 {
13378 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13379 test_array [0] = 0
13380
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387   (eval $ac_compile) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } &&
13391          { ac_try='test -s conftest.$ac_objext'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   ac_hi=$ac_mid; break
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 ac_lo=`expr $ac_mid + 1`
13403                     if test $ac_lo -le $ac_mid; then
13404                       ac_lo= ac_hi=
13405                       break
13406                     fi
13407                     ac_mid=`expr 2 '*' $ac_mid + 1`
13408 fi
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13410   done
13411 else
13412   echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13414
13415 cat >conftest.$ac_ext <<_ACEOF
13416 #line $LINENO "configure"
13417 /* confdefs.h.  */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h.  */
13422 $ac_includes_default
13423 int
13424 main ()
13425 {
13426 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13427 test_array [0] = 0
13428
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435   (eval $ac_compile) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_hi=-1 ac_mid=-1
13446   while :; do
13447     cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454 $ac_includes_default
13455 int
13456 main ()
13457 {
13458 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13459 test_array [0] = 0
13460
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13467   (eval $ac_compile) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -s conftest.$ac_objext'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477   ac_lo=$ac_mid; break
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482 ac_hi=`expr '(' $ac_mid ')' - 1`
13483                        if test $ac_mid -le $ac_hi; then
13484                          ac_lo= ac_hi=
13485                          break
13486                        fi
13487                        ac_mid=`expr 2 '*' $ac_mid`
13488 fi
13489 rm -f conftest.$ac_objext conftest.$ac_ext
13490   done
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_lo= ac_hi=
13496 fi
13497 rm -f conftest.$ac_objext conftest.$ac_ext
13498 fi
13499 rm -f conftest.$ac_objext conftest.$ac_ext
13500 # Binary search between lo and hi bounds.
13501 while test "x$ac_lo" != "x$ac_hi"; do
13502   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13503   cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13505 /* confdefs.h.  */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h.  */
13510 $ac_includes_default
13511 int
13512 main ()
13513 {
13514 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13515 test_array [0] = 0
13516
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13523   (eval $ac_compile) 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -s conftest.$ac_objext'
13528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529   (eval $ac_try) 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; }; then
13533   ac_hi=$ac_mid
13534 else
13535   echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538 ac_lo=`expr '(' $ac_mid ')' + 1`
13539 fi
13540 rm -f conftest.$ac_objext conftest.$ac_ext
13541 done
13542 case $ac_lo in
13543 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13545 See \`config.log' for more details." >&5
13546 echo "$as_me: error: cannot compute sizeof (long int), 77
13547 See \`config.log' for more details." >&2;}
13548    { (exit 1); exit 1; }; } ;;
13549 esac
13550 else
13551   if test "$cross_compiling" = yes; then
13552   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13553 See \`config.log' for more details." >&5
13554 echo "$as_me: error: cannot run test program while cross compiling
13555 See \`config.log' for more details." >&2;}
13556    { (exit 1); exit 1; }; }
13557 else
13558   cat >conftest.$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13560 /* confdefs.h.  */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h.  */
13565 $ac_includes_default
13566 long longval () { return (long) (sizeof (long int)); }
13567 unsigned long ulongval () { return (long) (sizeof (long int)); }
13568 #include <stdio.h>
13569 #include <stdlib.h>
13570 int
13571 main ()
13572 {
13573
13574   FILE *f = fopen ("conftest.val", "w");
13575   if (! f)
13576     exit (1);
13577   if (((long) (sizeof (long int))) < 0)
13578     {
13579       long i = longval ();
13580       if (i != ((long) (sizeof (long int))))
13581         exit (1);
13582       fprintf (f, "%ld\n", i);
13583     }
13584   else
13585     {
13586       unsigned long i = ulongval ();
13587       if (i != ((long) (sizeof (long int))))
13588         exit (1);
13589       fprintf (f, "%lu\n", i);
13590     }
13591   exit (ferror (f) || fclose (f) != 0);
13592
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599   (eval $ac_link) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604   (eval $ac_try) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }; }; then
13608   ac_cv_sizeof_long_int=`cat conftest.val`
13609 else
13610   echo "$as_me: program exited with status $ac_status" >&5
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13613
13614 ( exit $ac_status )
13615 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13616 See \`config.log' for more details." >&5
13617 echo "$as_me: error: cannot compute sizeof (long int), 77
13618 See \`config.log' for more details." >&2;}
13619    { (exit 1); exit 1; }; }
13620 fi
13621 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13622 fi
13623 fi
13624 rm -f conftest.val
13625 else
13626   ac_cv_sizeof_long_int=0
13627 fi
13628 fi
13629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13630 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13631 cat >>confdefs.h <<_ACEOF
13632 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13633 _ACEOF
13634
13635
13636 echo "$as_me:$LINENO: checking for long long int" >&5
13637 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13638 if test "${ac_cv_type_long_long_int+set}" = set; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   cat >conftest.$ac_ext <<_ACEOF
13642 #line $LINENO "configure"
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648 $ac_includes_default
13649 int
13650 main ()
13651 {
13652 if ((long long int *) 0)
13653   return 0;
13654 if (sizeof (long long int))
13655   return 0;
13656   ;
13657   return 0;
13658 }
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662   (eval $ac_compile) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } &&
13666          { ac_try='test -s conftest.$ac_objext'
13667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668   (eval $ac_try) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; }; then
13672   ac_cv_type_long_long_int=yes
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_cv_type_long_long_int=no
13678 fi
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13680 fi
13681 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13682 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13683
13684 echo "$as_me:$LINENO: checking size of long long int" >&5
13685 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13686 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689   if test "$ac_cv_type_long_long_int" = yes; then
13690   # The cast to unsigned long works around a bug in the HP C Compiler
13691   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13692   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13693   # This bug is HP SR number 8606223364.
13694   if test "$cross_compiling" = yes; then
13695   # Depending upon the size, compute the lo and hi bounds.
13696 cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13698 /* confdefs.h.  */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h.  */
13703 $ac_includes_default
13704 int
13705 main ()
13706 {
13707 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13708 test_array [0] = 0
13709
13710   ;
13711   return 0;
13712 }
13713 _ACEOF
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716   (eval $ac_compile) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -s conftest.$ac_objext'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   ac_lo=0 ac_mid=0
13727   while :; do
13728     cat >conftest.$ac_ext <<_ACEOF
13729 #line $LINENO "configure"
13730 /* confdefs.h.  */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h.  */
13735 $ac_includes_default
13736 int
13737 main ()
13738 {
13739 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13740 test_array [0] = 0
13741
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748   (eval $ac_compile) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   ac_hi=$ac_mid; break
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ac_lo=`expr $ac_mid + 1`
13764                     if test $ac_lo -le $ac_mid; then
13765                       ac_lo= ac_hi=
13766                       break
13767                     fi
13768                     ac_mid=`expr 2 '*' $ac_mid + 1`
13769 fi
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13771   done
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13778 /* confdefs.h.  */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h.  */
13783 $ac_includes_default
13784 int
13785 main ()
13786 {
13787 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13788 test_array [0] = 0
13789
13790   ;
13791   return 0;
13792 }
13793 _ACEOF
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796   (eval $ac_compile) 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -s conftest.$ac_objext'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }; then
13806   ac_hi=-1 ac_mid=-1
13807   while :; do
13808     cat >conftest.$ac_ext <<_ACEOF
13809 #line $LINENO "configure"
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815 $ac_includes_default
13816 int
13817 main ()
13818 {
13819 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13820 test_array [0] = 0
13821
13822   ;
13823   return 0;
13824 }
13825 _ACEOF
13826 rm -f conftest.$ac_objext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13828   (eval $ac_compile) 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } &&
13832          { ac_try='test -s conftest.$ac_objext'
13833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834   (eval $ac_try) 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   ac_lo=$ac_mid; break
13839 else
13840   echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843 ac_hi=`expr '(' $ac_mid ')' - 1`
13844                        if test $ac_mid -le $ac_hi; then
13845                          ac_lo= ac_hi=
13846                          break
13847                        fi
13848                        ac_mid=`expr 2 '*' $ac_mid`
13849 fi
13850 rm -f conftest.$ac_objext conftest.$ac_ext
13851   done
13852 else
13853   echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 ac_lo= ac_hi=
13857 fi
13858 rm -f conftest.$ac_objext conftest.$ac_ext
13859 fi
13860 rm -f conftest.$ac_objext conftest.$ac_ext
13861 # Binary search between lo and hi bounds.
13862 while test "x$ac_lo" != "x$ac_hi"; do
13863   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13864   cat >conftest.$ac_ext <<_ACEOF
13865 #line $LINENO "configure"
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 $ac_includes_default
13872 int
13873 main ()
13874 {
13875 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13876 test_array [0] = 0
13877
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884   (eval $ac_compile) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -s conftest.$ac_objext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_hi=$ac_mid
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 ac_lo=`expr '(' $ac_mid ')' + 1`
13900 fi
13901 rm -f conftest.$ac_objext conftest.$ac_ext
13902 done
13903 case $ac_lo in
13904 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13905 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13906 See \`config.log' for more details." >&5
13907 echo "$as_me: error: cannot compute sizeof (long long int), 77
13908 See \`config.log' for more details." >&2;}
13909    { (exit 1); exit 1; }; } ;;
13910 esac
13911 else
13912   if test "$cross_compiling" = yes; then
13913   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13914 See \`config.log' for more details." >&5
13915 echo "$as_me: error: cannot run test program while cross compiling
13916 See \`config.log' for more details." >&2;}
13917    { (exit 1); exit 1; }; }
13918 else
13919   cat >conftest.$ac_ext <<_ACEOF
13920 #line $LINENO "configure"
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926 $ac_includes_default
13927 long longval () { return (long) (sizeof (long long int)); }
13928 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13929 #include <stdio.h>
13930 #include <stdlib.h>
13931 int
13932 main ()
13933 {
13934
13935   FILE *f = fopen ("conftest.val", "w");
13936   if (! f)
13937     exit (1);
13938   if (((long) (sizeof (long long int))) < 0)
13939     {
13940       long i = longval ();
13941       if (i != ((long) (sizeof (long long int))))
13942         exit (1);
13943       fprintf (f, "%ld\n", i);
13944     }
13945   else
13946     {
13947       unsigned long i = ulongval ();
13948       if (i != ((long) (sizeof (long long int))))
13949         exit (1);
13950       fprintf (f, "%lu\n", i);
13951     }
13952   exit (ferror (f) || fclose (f) != 0);
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 rm -f conftest$ac_exeext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13960   (eval $ac_link) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965   (eval $ac_try) 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); }; }; then
13969   ac_cv_sizeof_long_long_int=`cat conftest.val`
13970 else
13971   echo "$as_me: program exited with status $ac_status" >&5
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975 ( exit $ac_status )
13976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13977 See \`config.log' for more details." >&5
13978 echo "$as_me: error: cannot compute sizeof (long long int), 77
13979 See \`config.log' for more details." >&2;}
13980    { (exit 1); exit 1; }; }
13981 fi
13982 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13983 fi
13984 fi
13985 rm -f conftest.val
13986 else
13987   ac_cv_sizeof_long_long_int=0
13988 fi
13989 fi
13990 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13991 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13992 cat >>confdefs.h <<_ACEOF
13993 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13994 _ACEOF
13995
13996
13997 echo "$as_me:$LINENO: checking for int *" >&5
13998 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13999 if test "${ac_cv_type_int_p+set}" = set; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002   cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009 $ac_includes_default
14010 int
14011 main ()
14012 {
14013 if ((int * *) 0)
14014   return 0;
14015 if (sizeof (int *))
14016   return 0;
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023   (eval $ac_compile) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -s conftest.$ac_objext'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; }; then
14033   ac_cv_type_int_p=yes
14034 else
14035   echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_cv_type_int_p=no
14039 fi
14040 rm -f conftest.$ac_objext conftest.$ac_ext
14041 fi
14042 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14043 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14044
14045 echo "$as_me:$LINENO: checking size of int *" >&5
14046 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14047 if test "${ac_cv_sizeof_int_p+set}" = set; then
14048   echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050   if test "$ac_cv_type_int_p" = yes; then
14051   # The cast to unsigned long works around a bug in the HP C Compiler
14052   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14053   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14054   # This bug is HP SR number 8606223364.
14055   if test "$cross_compiling" = yes; then
14056   # Depending upon the size, compute the lo and hi bounds.
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 $ac_includes_default
14065 int
14066 main ()
14067 {
14068 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14069 test_array [0] = 0
14070
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077   (eval $ac_compile) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } &&
14081          { ac_try='test -s conftest.$ac_objext'
14082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083   (eval $ac_try) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; }; then
14087   ac_lo=0 ac_mid=0
14088   while :; do
14089     cat >conftest.$ac_ext <<_ACEOF
14090 #line $LINENO "configure"
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 $ac_includes_default
14097 int
14098 main ()
14099 {
14100 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14101 test_array [0] = 0
14102
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109   (eval $ac_compile) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); } &&
14113          { ac_try='test -s conftest.$ac_objext'
14114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115   (eval $ac_try) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; }; then
14119   ac_hi=$ac_mid; break
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 ac_lo=`expr $ac_mid + 1`
14125                     if test $ac_lo -le $ac_mid; then
14126                       ac_lo= ac_hi=
14127                       break
14128                     fi
14129                     ac_mid=`expr 2 '*' $ac_mid + 1`
14130 fi
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14132   done
14133 else
14134   echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14139 /* confdefs.h.  */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h.  */
14144 $ac_includes_default
14145 int
14146 main ()
14147 {
14148 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14149 test_array [0] = 0
14150
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157   (eval $ac_compile) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -s conftest.$ac_objext'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   ac_hi=-1 ac_mid=-1
14168   while :; do
14169     cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14171 /* confdefs.h.  */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h.  */
14176 $ac_includes_default
14177 int
14178 main ()
14179 {
14180 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14181 test_array [0] = 0
14182
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189   (eval $ac_compile) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -s conftest.$ac_objext'
14194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195   (eval $ac_try) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; }; then
14199   ac_lo=$ac_mid; break
14200 else
14201   echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_hi=`expr '(' $ac_mid ')' - 1`
14205                        if test $ac_mid -le $ac_hi; then
14206                          ac_lo= ac_hi=
14207                          break
14208                        fi
14209                        ac_mid=`expr 2 '*' $ac_mid`
14210 fi
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14212   done
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 ac_lo= ac_hi=
14218 fi
14219 rm -f conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 rm -f conftest.$ac_objext conftest.$ac_ext
14222 # Binary search between lo and hi bounds.
14223 while test "x$ac_lo" != "x$ac_hi"; do
14224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14225   cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 $ac_includes_default
14233 int
14234 main ()
14235 {
14236 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14237 test_array [0] = 0
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245   (eval $ac_compile) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } &&
14249          { ac_try='test -s conftest.$ac_objext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   ac_hi=$ac_mid
14256 else
14257   echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 ac_lo=`expr '(' $ac_mid ')' + 1`
14261 fi
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14263 done
14264 case $ac_lo in
14265 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14266 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14267 See \`config.log' for more details." >&5
14268 echo "$as_me: error: cannot compute sizeof (int *), 77
14269 See \`config.log' for more details." >&2;}
14270    { (exit 1); exit 1; }; } ;;
14271 esac
14272 else
14273   if test "$cross_compiling" = yes; then
14274   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14275 See \`config.log' for more details." >&5
14276 echo "$as_me: error: cannot run test program while cross compiling
14277 See \`config.log' for more details." >&2;}
14278    { (exit 1); exit 1; }; }
14279 else
14280   cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14282 /* confdefs.h.  */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h.  */
14287 $ac_includes_default
14288 long longval () { return (long) (sizeof (int *)); }
14289 unsigned long ulongval () { return (long) (sizeof (int *)); }
14290 #include <stdio.h>
14291 #include <stdlib.h>
14292 int
14293 main ()
14294 {
14295
14296   FILE *f = fopen ("conftest.val", "w");
14297   if (! f)
14298     exit (1);
14299   if (((long) (sizeof (int *))) < 0)
14300     {
14301       long i = longval ();
14302       if (i != ((long) (sizeof (int *))))
14303         exit (1);
14304       fprintf (f, "%ld\n", i);
14305     }
14306   else
14307     {
14308       unsigned long i = ulongval ();
14309       if (i != ((long) (sizeof (int *))))
14310         exit (1);
14311       fprintf (f, "%lu\n", i);
14312     }
14313   exit (ferror (f) || fclose (f) != 0);
14314
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321   (eval $ac_link) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326   (eval $ac_try) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   ac_cv_sizeof_int_p=`cat conftest.val`
14331 else
14332   echo "$as_me: program exited with status $ac_status" >&5
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 ( exit $ac_status )
14337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot compute sizeof (int *), 77
14340 See \`config.log' for more details." >&2;}
14341    { (exit 1); exit 1; }; }
14342 fi
14343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 fi
14346 rm -f conftest.val
14347 else
14348   ac_cv_sizeof_int_p=0
14349 fi
14350 fi
14351 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14352 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14353 cat >>confdefs.h <<_ACEOF
14354 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14355 _ACEOF
14356
14357
14358
14359 # Check for sys/types.h types
14360 echo "$as_me:$LINENO: checking for u_int type" >&5
14361 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14362 if test "${ac_cv_have_u_int+set}" = set; then
14363   echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365
14366     cat >conftest.$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373  #include <sys/types.h>
14374 int
14375 main ()
14376 {
14377  u_int a; a = 1;
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384   (eval $ac_compile) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); } &&
14388          { ac_try='test -s conftest.$ac_objext'
14389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390   (eval $ac_try) 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; }; then
14394    ac_cv_have_u_int="yes"
14395 else
14396   echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14398
14399  ac_cv_have_u_int="no"
14400
14401 fi
14402 rm -f conftest.$ac_objext conftest.$ac_ext
14403
14404 fi
14405 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14406 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14407 if test "x$ac_cv_have_u_int" = "xyes" ; then
14408    cat >>confdefs.h <<\_ACEOF
14409 #define HAVE_U_INT 1
14410 _ACEOF
14411
14412    have_u_int=1
14413 fi
14414
14415 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14416 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14417 if test "${ac_cv_have_intmax_t+set}" = set; then
14418   echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420
14421    cat >conftest.$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14423 /* confdefs.h.  */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h.  */
14428  #include <sys/types.h>
14429 int
14430 main ()
14431 {
14432  intmax_t a; a = 1;
14433   ;
14434   return 0;
14435 }
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439   (eval $ac_compile) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); } &&
14443          { ac_try='test -s conftest.$ac_objext'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449    ac_cv_have_intmax_t="yes"
14450 else
14451   echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454
14455          cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462  #include <stdint.h>
14463 int
14464 main ()
14465 {
14466  intmax_t a; a = 1;
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473   (eval $ac_compile) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } &&
14477          { ac_try='test -s conftest.$ac_objext'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483    ac_cv_have_intmax_t="yes"
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488  ac_cv_have_intmax_t="no"
14489
14490 fi
14491 rm -f conftest.$ac_objext conftest.$ac_ext
14492
14493
14494 fi
14495 rm -f conftest.$ac_objext conftest.$ac_ext
14496
14497
14498 fi
14499 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14500 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14501 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14502    cat >>confdefs.h <<\_ACEOF
14503 #define HAVE_INTMAX_T 1
14504 _ACEOF
14505
14506    have_intmax_t=1
14507 fi
14508
14509
14510 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14511 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14512 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515
14516    cat >conftest.$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523  #include <sys/types.h>
14524 int
14525 main ()
14526 {
14527  u_intmax_t a; a = 1;
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534   (eval $ac_compile) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } &&
14538          { ac_try='test -s conftest.$ac_objext'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544    ac_cv_have_u_intmax_t="yes"
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549
14550          cat >conftest.$ac_ext <<_ACEOF
14551 #line $LINENO "configure"
14552 /* confdefs.h.  */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h.  */
14557  #include <stdint.h>
14558 int
14559 main ()
14560 {
14561  u_intmax_t a; a = 1;
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568   (eval $ac_compile) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); } &&
14572          { ac_try='test -s conftest.$ac_objext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578    ac_cv_have_u_intmax_t="yes"
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583  ac_cv_have_u_intmax_t="no"
14584
14585 fi
14586 rm -f conftest.$ac_objext conftest.$ac_ext
14587
14588
14589 fi
14590 rm -f conftest.$ac_objext conftest.$ac_ext
14591
14592 fi
14593 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14594 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14595 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14596    cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_U_INTMAX_T 1
14598 _ACEOF
14599
14600    have_u_intmax_t=1
14601 fi
14602
14603
14604 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14605 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14606 if test "${ac_cv_have_intxx_t+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609
14610    cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617  #include <sys/types.h>
14618 int
14619 main ()
14620 {
14621  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628   (eval $ac_compile) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638    ac_cv_have_intxx_t="yes"
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643  ac_cv_have_intxx_t="no"
14644
14645 fi
14646 rm -f conftest.$ac_objext conftest.$ac_ext
14647
14648 fi
14649 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14650 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14651 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14652    cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_INTXX_T 1
14654 _ACEOF
14655
14656    have_intxx_t=1
14657 fi
14658
14659 echo "$as_me:$LINENO: checking for int64_t type" >&5
14660 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14661 if test "${ac_cv_have_int64_t+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664
14665    cat >conftest.$ac_ext <<_ACEOF
14666 #line $LINENO "configure"
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672  #include <sys/types.h>
14673 int
14674 main ()
14675 {
14676  int64_t a; a = 1;
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683   (eval $ac_compile) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); } &&
14687          { ac_try='test -s conftest.$ac_objext'
14688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689   (eval $ac_try) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693    ac_cv_have_int64_t="yes"
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698  ac_cv_have_int64_t="no"
14699
14700 fi
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14702
14703 fi
14704 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14705 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14706 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14707    cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_INT64_T 1
14709 _ACEOF
14710
14711    have_int64_t=1
14712 fi
14713
14714 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14715 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14716 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719
14720    cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727  #include <sys/types.h>
14728 int
14729 main ()
14730 {
14731  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738   (eval $ac_compile) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } &&
14742          { ac_try='test -s conftest.$ac_objext'
14743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744   (eval $ac_try) 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); }; }; then
14748    ac_cv_have_u_intxx_t="yes"
14749 else
14750   echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753  ac_cv_have_u_intxx_t="no"
14754
14755 fi
14756 rm -f conftest.$ac_objext conftest.$ac_ext
14757
14758 fi
14759 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14760 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14761 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14762    cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_U_INTXX_T 1
14764 _ACEOF
14765
14766    have_u_intxx_t=1
14767 fi
14768
14769 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14770 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14771 if test "${ac_cv_have_u_int64_t+set}" = set; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774
14775    cat >conftest.$ac_ext <<_ACEOF
14776 #line $LINENO "configure"
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782  #include <sys/types.h>
14783 int
14784 main ()
14785 {
14786  u_int64_t a; a = 1;
14787   ;
14788   return 0;
14789 }
14790 _ACEOF
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793   (eval $ac_compile) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -s conftest.$ac_objext'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; }; then
14803    ac_cv_have_u_int64_t="yes"
14804 else
14805   echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808  ac_cv_have_u_int64_t="no"
14809
14810 fi
14811 rm -f conftest.$ac_objext conftest.$ac_ext
14812
14813 fi
14814 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14815 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14816 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14817    cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_U_INT64_T 1
14819 _ACEOF
14820
14821    have_u_int64_t=1
14822 fi
14823
14824 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14825            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14826 then
14827    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14828 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14829    cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14831 /* confdefs.h.  */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h.  */
14836  #include <sys/bitypes.h>
14837 int
14838 main ()
14839 {
14840  int8_t a; int16_t b; int32_t c;
14841         u_int8_t e; u_int16_t f; u_int32_t g;
14842         a = b = c = e = f = g = 1;
14843   ;
14844   return 0;
14845 }
14846 _ACEOF
14847 rm -f conftest.$ac_objext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849   (eval $ac_compile) 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } &&
14853          { ac_try='test -s conftest.$ac_objext'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; }; then
14859    cat >>confdefs.h <<\_ACEOF
14860 #define HAVE_U_INTXX_T 1
14861 _ACEOF
14862
14863         cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_INTXX_T 1
14865 _ACEOF
14866
14867         cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_SYS_BITYPES_H 1
14869 _ACEOF
14870
14871         echo "$as_me:$LINENO: result: yes" >&5
14872 echo "${ECHO_T}yes" >&6
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877  echo "$as_me:$LINENO: result: no" >&5
14878 echo "${ECHO_T}no" >&6
14879
14880 fi
14881 rm -f conftest.$ac_objext conftest.$ac_ext
14882 fi
14883
14884 if test -z "$have_u_intxx_t" ; then
14885    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14886 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14887 if test "${ac_cv_have_uintxx_t+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890
14891       cat >conftest.$ac_ext <<_ACEOF
14892 #line $LINENO "configure"
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898  #include <sys/types.h>
14899 int
14900 main ()
14901 {
14902  uint8_t a; uint16_t b;
14903            uint32_t c; a = b = c = 1;
14904   ;
14905   return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910   (eval $ac_compile) 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } &&
14914          { ac_try='test -s conftest.$ac_objext'
14915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916   (eval $ac_try) 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; }; then
14920    ac_cv_have_uintxx_t="yes"
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925  ac_cv_have_uintxx_t="no"
14926
14927 fi
14928 rm -f conftest.$ac_objext conftest.$ac_ext
14929
14930 fi
14931 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14932 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14933    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14934       cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_UINTXX_T 1
14936 _ACEOF
14937
14938    fi
14939 fi
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955 for ac_func in \
14956         fork \
14957         getcwd \
14958         gethostname \
14959         getpid \
14960         gettimeofday \
14961         setpgid \
14962         setpgrp \
14963         setsid \
14964         signal \
14965         strerror \
14966         strncmp \
14967         strncpy \
14968         vfprintf \
14969
14970 do
14971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14972 echo "$as_me:$LINENO: checking for $ac_func" >&5
14973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14974 if eval "test \"\${$as_ac_var+set}\" = set"; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   cat >conftest.$ac_ext <<_ACEOF
14978 #line $LINENO "configure"
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984 /* System header to define __stub macros and hopefully few prototypes,
14985     which can conflict with char $ac_func (); below.
14986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14987     <limits.h> exists even on freestanding compilers.  */
14988 #ifdef __STDC__
14989 # include <limits.h>
14990 #else
14991 # include <assert.h>
14992 #endif
14993 /* Override any gcc2 internal prototype to avoid an error.  */
14994 #ifdef __cplusplus
14995 extern "C"
14996 {
14997 #endif
14998 /* We use char because int might match the return type of a gcc2
14999    builtin and then its argument prototype would still apply.  */
15000 char $ac_func ();
15001 /* The GNU C library defines this for functions which it implements
15002     to always fail with ENOSYS.  Some functions are actually named
15003     something starting with __ and the normal name is an alias.  */
15004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15005 choke me
15006 #else
15007 char (*f) () = $ac_func;
15008 #endif
15009 #ifdef __cplusplus
15010 }
15011 #endif
15012
15013 int
15014 main ()
15015 {
15016 return f != $ac_func;
15017   ;
15018   return 0;
15019 }
15020 _ACEOF
15021 rm -f conftest.$ac_objext conftest$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023   (eval $ac_link) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -s conftest$ac_exeext'
15028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029   (eval $ac_try) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; }; then
15033   eval "$as_ac_var=yes"
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038 eval "$as_ac_var=no"
15039 fi
15040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15041 fi
15042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15044 if test `eval echo '${'$as_ac_var'}'` = yes; then
15045   cat >>confdefs.h <<_ACEOF
15046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15047 _ACEOF
15048
15049 else
15050   echo 'configure: cannot find needed function.'; exit 1
15051
15052 fi
15053 done
15054
15055
15056
15057 for ac_func in fchdir
15058 do
15059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15060 echo "$as_me:$LINENO: checking for $ac_func" >&5
15061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15062 if eval "test \"\${$as_ac_var+set}\" = set"; then
15063   echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065   cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15067 /* confdefs.h.  */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h.  */
15072 /* System header to define __stub macros and hopefully few prototypes,
15073     which can conflict with char $ac_func (); below.
15074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15075     <limits.h> exists even on freestanding compilers.  */
15076 #ifdef __STDC__
15077 # include <limits.h>
15078 #else
15079 # include <assert.h>
15080 #endif
15081 /* Override any gcc2 internal prototype to avoid an error.  */
15082 #ifdef __cplusplus
15083 extern "C"
15084 {
15085 #endif
15086 /* We use char because int might match the return type of a gcc2
15087    builtin and then its argument prototype would still apply.  */
15088 char $ac_func ();
15089 /* The GNU C library defines this for functions which it implements
15090     to always fail with ENOSYS.  Some functions are actually named
15091     something starting with __ and the normal name is an alias.  */
15092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15093 choke me
15094 #else
15095 char (*f) () = $ac_func;
15096 #endif
15097 #ifdef __cplusplus
15098 }
15099 #endif
15100
15101 int
15102 main ()
15103 {
15104 return f != $ac_func;
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111   (eval $ac_link) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -s conftest$ac_exeext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   eval "$as_ac_var=yes"
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 eval "$as_ac_var=no"
15127 fi
15128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15129 fi
15130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15132 if test `eval echo '${'$as_ac_var'}'` = yes; then
15133   cat >>confdefs.h <<_ACEOF
15134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15135 _ACEOF
15136  cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_FCHDIR 1
15138 _ACEOF
15139
15140 fi
15141 done
15142
15143
15144 for ac_func in strtoll
15145 do
15146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15147 echo "$as_me:$LINENO: checking for $ac_func" >&5
15148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15149 if eval "test \"\${$as_ac_var+set}\" = set"; then
15150   echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152   cat >conftest.$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 /* System header to define __stub macros and hopefully few prototypes,
15160     which can conflict with char $ac_func (); below.
15161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15162     <limits.h> exists even on freestanding compilers.  */
15163 #ifdef __STDC__
15164 # include <limits.h>
15165 #else
15166 # include <assert.h>
15167 #endif
15168 /* Override any gcc2 internal prototype to avoid an error.  */
15169 #ifdef __cplusplus
15170 extern "C"
15171 {
15172 #endif
15173 /* We use char because int might match the return type of a gcc2
15174    builtin and then its argument prototype would still apply.  */
15175 char $ac_func ();
15176 /* The GNU C library defines this for functions which it implements
15177     to always fail with ENOSYS.  Some functions are actually named
15178     something starting with __ and the normal name is an alias.  */
15179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15180 choke me
15181 #else
15182 char (*f) () = $ac_func;
15183 #endif
15184 #ifdef __cplusplus
15185 }
15186 #endif
15187
15188 int
15189 main ()
15190 {
15191 return f != $ac_func;
15192   ;
15193   return 0;
15194 }
15195 _ACEOF
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198   (eval $ac_link) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } &&
15202          { ac_try='test -s conftest$ac_exeext'
15203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204   (eval $ac_try) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); }; }; then
15208   eval "$as_ac_var=yes"
15209 else
15210   echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 eval "$as_ac_var=no"
15214 fi
15215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15216 fi
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15219 if test `eval echo '${'$as_ac_var'}'` = yes; then
15220   cat >>confdefs.h <<_ACEOF
15221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15222 _ACEOF
15223  cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_STRTOLL 1
15225 _ACEOF
15226
15227 fi
15228 done
15229
15230
15231
15232 for ac_func in chflags
15233 do
15234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_var+set}\" = set"; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240   cat >conftest.$ac_ext <<_ACEOF
15241 #line $LINENO "configure"
15242 /* confdefs.h.  */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h.  */
15247 /* System header to define __stub macros and hopefully few prototypes,
15248     which can conflict with char $ac_func (); below.
15249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15250     <limits.h> exists even on freestanding compilers.  */
15251 #ifdef __STDC__
15252 # include <limits.h>
15253 #else
15254 # include <assert.h>
15255 #endif
15256 /* Override any gcc2 internal prototype to avoid an error.  */
15257 #ifdef __cplusplus
15258 extern "C"
15259 {
15260 #endif
15261 /* We use char because int might match the return type of a gcc2
15262    builtin and then its argument prototype would still apply.  */
15263 char $ac_func ();
15264 /* The GNU C library defines this for functions which it implements
15265     to always fail with ENOSYS.  Some functions are actually named
15266     something starting with __ and the normal name is an alias.  */
15267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15268 choke me
15269 #else
15270 char (*f) () = $ac_func;
15271 #endif
15272 #ifdef __cplusplus
15273 }
15274 #endif
15275
15276 int
15277 main ()
15278 {
15279 return f != $ac_func;
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286   (eval $ac_link) 2>&5
15287   ac_status=$?
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); } &&
15290          { ac_try='test -s conftest$ac_exeext'
15291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292   (eval $ac_try) 2>&5
15293   ac_status=$?
15294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); }; }; then
15296   eval "$as_ac_var=yes"
15297 else
15298   echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301 eval "$as_ac_var=no"
15302 fi
15303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15304 fi
15305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15307 if test `eval echo '${'$as_ac_var'}'` = yes; then
15308   cat >>confdefs.h <<_ACEOF
15309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15310 _ACEOF
15311
15312 fi
15313 done
15314
15315
15316
15317
15318
15319
15320 for ac_func in snprintf vsnprintf gethostid getdomainname
15321 do
15322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15323 echo "$as_me:$LINENO: checking for $ac_func" >&5
15324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15325 if eval "test \"\${$as_ac_var+set}\" = set"; then
15326   echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328   cat >conftest.$ac_ext <<_ACEOF
15329 #line $LINENO "configure"
15330 /* confdefs.h.  */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h.  */
15335 /* System header to define __stub macros and hopefully few prototypes,
15336     which can conflict with char $ac_func (); below.
15337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15338     <limits.h> exists even on freestanding compilers.  */
15339 #ifdef __STDC__
15340 # include <limits.h>
15341 #else
15342 # include <assert.h>
15343 #endif
15344 /* Override any gcc2 internal prototype to avoid an error.  */
15345 #ifdef __cplusplus
15346 extern "C"
15347 {
15348 #endif
15349 /* We use char because int might match the return type of a gcc2
15350    builtin and then its argument prototype would still apply.  */
15351 char $ac_func ();
15352 /* The GNU C library defines this for functions which it implements
15353     to always fail with ENOSYS.  Some functions are actually named
15354     something starting with __ and the normal name is an alias.  */
15355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15356 choke me
15357 #else
15358 char (*f) () = $ac_func;
15359 #endif
15360 #ifdef __cplusplus
15361 }
15362 #endif
15363
15364 int
15365 main ()
15366 {
15367 return f != $ac_func;
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374   (eval $ac_link) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -s conftest$ac_exeext'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   eval "$as_ac_var=yes"
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 eval "$as_ac_var=no"
15390 fi
15391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15392 fi
15393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15395 if test `eval echo '${'$as_ac_var'}'` = yes; then
15396   cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15398 _ACEOF
15399
15400 fi
15401 done
15402
15403
15404
15405
15406
15407
15408 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15409 do
15410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411 echo "$as_me:$LINENO: checking for $ac_func" >&5
15412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15413 if eval "test \"\${$as_ac_var+set}\" = set"; then
15414   echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15416   cat >conftest.$ac_ext <<_ACEOF
15417 #line $LINENO "configure"
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423 /* System header to define __stub macros and hopefully few prototypes,
15424     which can conflict with char $ac_func (); below.
15425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426     <limits.h> exists even on freestanding compilers.  */
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15432 /* Override any gcc2 internal prototype to avoid an error.  */
15433 #ifdef __cplusplus
15434 extern "C"
15435 {
15436 #endif
15437 /* We use char because int might match the return type of a gcc2
15438    builtin and then its argument prototype would still apply.  */
15439 char $ac_func ();
15440 /* The GNU C library defines this for functions which it implements
15441     to always fail with ENOSYS.  Some functions are actually named
15442     something starting with __ and the normal name is an alias.  */
15443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444 choke me
15445 #else
15446 char (*f) () = $ac_func;
15447 #endif
15448 #ifdef __cplusplus
15449 }
15450 #endif
15451
15452 int
15453 main ()
15454 {
15455 return f != $ac_func;
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462   (eval $ac_link) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); } &&
15466          { ac_try='test -s conftest$ac_exeext'
15467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468   (eval $ac_try) 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; }; then
15472   eval "$as_ac_var=yes"
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 eval "$as_ac_var=no"
15478 fi
15479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15480 fi
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483 if test `eval echo '${'$as_ac_var'}'` = yes; then
15484   cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15486 _ACEOF
15487
15488 fi
15489 done
15490
15491
15492 # If resolver functions are not in libc check for -lnsl or -lresolv.
15493 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15494 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15495 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498   cat >conftest.$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 /* confdefs.h.  */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h.  */
15505 /* System header to define __stub macros and hopefully few prototypes,
15506     which can conflict with char gethostbyname_r (); below.
15507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15508     <limits.h> exists even on freestanding compilers.  */
15509 #ifdef __STDC__
15510 # include <limits.h>
15511 #else
15512 # include <assert.h>
15513 #endif
15514 /* Override any gcc2 internal prototype to avoid an error.  */
15515 #ifdef __cplusplus
15516 extern "C"
15517 {
15518 #endif
15519 /* We use char because int might match the return type of a gcc2
15520    builtin and then its argument prototype would still apply.  */
15521 char gethostbyname_r ();
15522 /* The GNU C library defines this for functions which it implements
15523     to always fail with ENOSYS.  Some functions are actually named
15524     something starting with __ and the normal name is an alias.  */
15525 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15526 choke me
15527 #else
15528 char (*f) () = gethostbyname_r;
15529 #endif
15530 #ifdef __cplusplus
15531 }
15532 #endif
15533
15534 int
15535 main ()
15536 {
15537 return f != gethostbyname_r;
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15544   (eval $ac_link) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } &&
15548          { ac_try='test -s conftest$ac_exeext'
15549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550   (eval $ac_try) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; }; then
15554   ac_cv_func_gethostbyname_r=yes
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 ac_cv_func_gethostbyname_r=no
15560 fi
15561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15562 fi
15563 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15564 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15565 if test $ac_cv_func_gethostbyname_r = yes; then
15566   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15567 echo "${ECHO_T}using libc's resolver" >&6
15568 else
15569
15570 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15571 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15572 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575   ac_check_lib_save_LIBS=$LIBS
15576 LIBS="-lnsl  $LIBS"
15577 cat >conftest.$ac_ext <<_ACEOF
15578 #line $LINENO "configure"
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584
15585 /* Override any gcc2 internal prototype to avoid an error.  */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 /* We use char because int might match the return type of a gcc2
15590    builtin and then its argument prototype would still apply.  */
15591 char gethostbyname_r ();
15592 int
15593 main ()
15594 {
15595 gethostbyname_r ();
15596   ;
15597   return 0;
15598 }
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602   (eval $ac_link) 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } &&
15606          { ac_try='test -s conftest$ac_exeext'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612   ac_cv_lib_nsl_gethostbyname_r=yes
15613 else
15614   echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15616
15617 ac_cv_lib_nsl_gethostbyname_r=no
15618 fi
15619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15620 LIBS=$ac_check_lib_save_LIBS
15621 fi
15622 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15623 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15624 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15625   cat >>confdefs.h <<_ACEOF
15626 #define HAVE_LIBNSL 1
15627 _ACEOF
15628
15629   LIBS="-lnsl $LIBS"
15630
15631 fi
15632
15633
15634 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15635 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15636 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639   ac_check_lib_save_LIBS=$LIBS
15640 LIBS="-lresolv  $LIBS"
15641 cat >conftest.$ac_ext <<_ACEOF
15642 #line $LINENO "configure"
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648
15649 /* Override any gcc2 internal prototype to avoid an error.  */
15650 #ifdef __cplusplus
15651 extern "C"
15652 #endif
15653 /* We use char because int might match the return type of a gcc2
15654    builtin and then its argument prototype would still apply.  */
15655 char gethostbyname_r ();
15656 int
15657 main ()
15658 {
15659 gethostbyname_r ();
15660   ;
15661   return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666   (eval $ac_link) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); } &&
15670          { ac_try='test -s conftest$ac_exeext'
15671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672   (eval $ac_try) 2>&5
15673   ac_status=$?
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); }; }; then
15676   ac_cv_lib_resolv_gethostbyname_r=yes
15677 else
15678   echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 ac_cv_lib_resolv_gethostbyname_r=no
15682 fi
15683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15685 fi
15686 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15687 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15688 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15689   cat >>confdefs.h <<_ACEOF
15690 #define HAVE_LIBRESOLV 1
15691 _ACEOF
15692
15693   LIBS="-lresolv $LIBS"
15694
15695 fi
15696
15697 fi
15698
15699
15700
15701 # Find where sockets are (especially for Solaris)
15702 echo "$as_me:$LINENO: checking for socket" >&5
15703 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15704 if test "${ac_cv_func_socket+set}" = set; then
15705   echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707   cat >conftest.$ac_ext <<_ACEOF
15708 #line $LINENO "configure"
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714 /* System header to define __stub macros and hopefully few prototypes,
15715     which can conflict with char socket (); below.
15716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15717     <limits.h> exists even on freestanding compilers.  */
15718 #ifdef __STDC__
15719 # include <limits.h>
15720 #else
15721 # include <assert.h>
15722 #endif
15723 /* Override any gcc2 internal prototype to avoid an error.  */
15724 #ifdef __cplusplus
15725 extern "C"
15726 {
15727 #endif
15728 /* We use char because int might match the return type of a gcc2
15729    builtin and then its argument prototype would still apply.  */
15730 char socket ();
15731 /* The GNU C library defines this for functions which it implements
15732     to always fail with ENOSYS.  Some functions are actually named
15733     something starting with __ and the normal name is an alias.  */
15734 #if defined (__stub_socket) || defined (__stub___socket)
15735 choke me
15736 #else
15737 char (*f) () = socket;
15738 #endif
15739 #ifdef __cplusplus
15740 }
15741 #endif
15742
15743 int
15744 main ()
15745 {
15746 return f != socket;
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753   (eval $ac_link) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } &&
15757          { ac_try='test -s conftest$ac_exeext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_cv_func_socket=yes
15764 else
15765   echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768 ac_cv_func_socket=no
15769 fi
15770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15771 fi
15772 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15773 echo "${ECHO_T}$ac_cv_func_socket" >&6
15774 if test $ac_cv_func_socket = yes; then
15775   echo "$as_me:$LINENO: result: using libc's socket" >&5
15776 echo "${ECHO_T}using libc's socket" >&6
15777 else
15778
15779 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15780 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15781 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15782   echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784   ac_check_lib_save_LIBS=$LIBS
15785 LIBS="-lxnet  $LIBS"
15786 cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15788 /* confdefs.h.  */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h.  */
15793
15794 /* Override any gcc2 internal prototype to avoid an error.  */
15795 #ifdef __cplusplus
15796 extern "C"
15797 #endif
15798 /* We use char because int might match the return type of a gcc2
15799    builtin and then its argument prototype would still apply.  */
15800 char socket ();
15801 int
15802 main ()
15803 {
15804 socket ();
15805   ;
15806   return 0;
15807 }
15808 _ACEOF
15809 rm -f conftest.$ac_objext conftest$ac_exeext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811   (eval $ac_link) 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); } &&
15815          { ac_try='test -s conftest$ac_exeext'
15816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817   (eval $ac_try) 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }; }; then
15821   ac_cv_lib_xnet_socket=yes
15822 else
15823   echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15825
15826 ac_cv_lib_xnet_socket=no
15827 fi
15828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15829 LIBS=$ac_check_lib_save_LIBS
15830 fi
15831 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15832 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15833 if test $ac_cv_lib_xnet_socket = yes; then
15834   cat >>confdefs.h <<_ACEOF
15835 #define HAVE_LIBXNET 1
15836 _ACEOF
15837
15838   LIBS="-lxnet $LIBS"
15839
15840 fi
15841
15842
15843 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15844 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15845 if test "${ac_cv_lib_socket_socket+set}" = set; then
15846   echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848   ac_check_lib_save_LIBS=$LIBS
15849 LIBS="-lsocket  $LIBS"
15850 cat >conftest.$ac_ext <<_ACEOF
15851 #line $LINENO "configure"
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857
15858 /* Override any gcc2 internal prototype to avoid an error.  */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 /* We use char because int might match the return type of a gcc2
15863    builtin and then its argument prototype would still apply.  */
15864 char socket ();
15865 int
15866 main ()
15867 {
15868 socket ();
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875   (eval $ac_link) 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } &&
15879          { ac_try='test -s conftest$ac_exeext'
15880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881   (eval $ac_try) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; }; then
15885   ac_cv_lib_socket_socket=yes
15886 else
15887   echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15889
15890 ac_cv_lib_socket_socket=no
15891 fi
15892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15894 fi
15895 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15896 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15897 if test $ac_cv_lib_socket_socket = yes; then
15898   cat >>confdefs.h <<_ACEOF
15899 #define HAVE_LIBSOCKET 1
15900 _ACEOF
15901
15902   LIBS="-lsocket $LIBS"
15903
15904 fi
15905
15906
15907 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15908 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15909 if test "${ac_cv_lib_inet_socket+set}" = set; then
15910   echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912   ac_check_lib_save_LIBS=$LIBS
15913 LIBS="-linet  $LIBS"
15914 cat >conftest.$ac_ext <<_ACEOF
15915 #line $LINENO "configure"
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15921
15922 /* Override any gcc2 internal prototype to avoid an error.  */
15923 #ifdef __cplusplus
15924 extern "C"
15925 #endif
15926 /* We use char because int might match the return type of a gcc2
15927    builtin and then its argument prototype would still apply.  */
15928 char socket ();
15929 int
15930 main ()
15931 {
15932 socket ();
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939   (eval $ac_link) 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } &&
15943          { ac_try='test -s conftest$ac_exeext'
15944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945   (eval $ac_try) 2>&5
15946   ac_status=$?
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); }; }; then
15949   ac_cv_lib_inet_socket=yes
15950 else
15951   echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15953
15954 ac_cv_lib_inet_socket=no
15955 fi
15956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15958 fi
15959 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15960 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15961 if test $ac_cv_lib_inet_socket = yes; then
15962   cat >>confdefs.h <<_ACEOF
15963 #define HAVE_LIBINET 1
15964 _ACEOF
15965
15966   LIBS="-linet $LIBS"
15967
15968 fi
15969
15970 fi
15971
15972
15973
15974 for ac_func in inet_pton
15975 do
15976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15977 echo "$as_me:$LINENO: checking for $ac_func" >&5
15978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_var+set}\" = set"; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982   cat >conftest.$ac_ext <<_ACEOF
15983 #line $LINENO "configure"
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989 /* System header to define __stub macros and hopefully few prototypes,
15990     which can conflict with char $ac_func (); below.
15991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15992     <limits.h> exists even on freestanding compilers.  */
15993 #ifdef __STDC__
15994 # include <limits.h>
15995 #else
15996 # include <assert.h>
15997 #endif
15998 /* Override any gcc2 internal prototype to avoid an error.  */
15999 #ifdef __cplusplus
16000 extern "C"
16001 {
16002 #endif
16003 /* We use char because int might match the return type of a gcc2
16004    builtin and then its argument prototype would still apply.  */
16005 char $ac_func ();
16006 /* The GNU C library defines this for functions which it implements
16007     to always fail with ENOSYS.  Some functions are actually named
16008     something starting with __ and the normal name is an alias.  */
16009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16010 choke me
16011 #else
16012 char (*f) () = $ac_func;
16013 #endif
16014 #ifdef __cplusplus
16015 }
16016 #endif
16017
16018 int
16019 main ()
16020 {
16021 return f != $ac_func;
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028   (eval $ac_link) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); } &&
16032          { ac_try='test -s conftest$ac_exeext'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   eval "$as_ac_var=yes"
16039 else
16040   echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 eval "$as_ac_var=no"
16044 fi
16045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16046 fi
16047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16049 if test `eval echo '${'$as_ac_var'}'` = yes; then
16050   cat >>confdefs.h <<_ACEOF
16051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16052 _ACEOF
16053  cat >>confdefs.h <<\_ACEOF
16054 #define HAVE_INET_PTON 1
16055 _ACEOF
16056
16057 fi
16058 done
16059
16060
16061
16062 for ac_func in strftime
16063 do
16064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16065 echo "$as_me:$LINENO: checking for $ac_func" >&5
16066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16067 if eval "test \"\${$as_ac_var+set}\" = set"; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070   cat >conftest.$ac_ext <<_ACEOF
16071 #line $LINENO "configure"
16072 /* confdefs.h.  */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h.  */
16077 /* System header to define __stub macros and hopefully few prototypes,
16078     which can conflict with char $ac_func (); below.
16079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16080     <limits.h> exists even on freestanding compilers.  */
16081 #ifdef __STDC__
16082 # include <limits.h>
16083 #else
16084 # include <assert.h>
16085 #endif
16086 /* Override any gcc2 internal prototype to avoid an error.  */
16087 #ifdef __cplusplus
16088 extern "C"
16089 {
16090 #endif
16091 /* We use char because int might match the return type of a gcc2
16092    builtin and then its argument prototype would still apply.  */
16093 char $ac_func ();
16094 /* The GNU C library defines this for functions which it implements
16095     to always fail with ENOSYS.  Some functions are actually named
16096     something starting with __ and the normal name is an alias.  */
16097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16098 choke me
16099 #else
16100 char (*f) () = $ac_func;
16101 #endif
16102 #ifdef __cplusplus
16103 }
16104 #endif
16105
16106 int
16107 main ()
16108 {
16109 return f != $ac_func;
16110   ;
16111   return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16116   (eval $ac_link) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); } &&
16120          { ac_try='test -s conftest$ac_exeext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126   eval "$as_ac_var=yes"
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 eval "$as_ac_var=no"
16132 fi
16133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16134 fi
16135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16137 if test `eval echo '${'$as_ac_var'}'` = yes; then
16138   cat >>confdefs.h <<_ACEOF
16139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16140 _ACEOF
16141
16142 else
16143   # strftime is in -lintl on SCO UNIX.
16144 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16145 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16146 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149   ac_check_lib_save_LIBS=$LIBS
16150 LIBS="-lintl  $LIBS"
16151 cat >conftest.$ac_ext <<_ACEOF
16152 #line $LINENO "configure"
16153 /* confdefs.h.  */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h.  */
16158
16159 /* Override any gcc2 internal prototype to avoid an error.  */
16160 #ifdef __cplusplus
16161 extern "C"
16162 #endif
16163 /* We use char because int might match the return type of a gcc2
16164    builtin and then its argument prototype would still apply.  */
16165 char strftime ();
16166 int
16167 main ()
16168 {
16169 strftime ();
16170   ;
16171   return 0;
16172 }
16173 _ACEOF
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176   (eval $ac_link) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -s conftest$ac_exeext'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; }; then
16186   ac_cv_lib_intl_strftime=yes
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 ac_cv_lib_intl_strftime=no
16192 fi
16193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16194 LIBS=$ac_check_lib_save_LIBS
16195 fi
16196 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16197 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16198 if test $ac_cv_lib_intl_strftime = yes; then
16199   cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_STRFTIME 1
16201 _ACEOF
16202
16203 LIBS="-lintl $LIBS"
16204 fi
16205
16206 fi
16207 done
16208
16209
16210 for ac_func in vprintf
16211 do
16212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16213 echo "$as_me:$LINENO: checking for $ac_func" >&5
16214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16215 if eval "test \"\${$as_ac_var+set}\" = set"; then
16216   echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218   cat >conftest.$ac_ext <<_ACEOF
16219 #line $LINENO "configure"
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 /* System header to define __stub macros and hopefully few prototypes,
16226     which can conflict with char $ac_func (); below.
16227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16228     <limits.h> exists even on freestanding compilers.  */
16229 #ifdef __STDC__
16230 # include <limits.h>
16231 #else
16232 # include <assert.h>
16233 #endif
16234 /* Override any gcc2 internal prototype to avoid an error.  */
16235 #ifdef __cplusplus
16236 extern "C"
16237 {
16238 #endif
16239 /* We use char because int might match the return type of a gcc2
16240    builtin and then its argument prototype would still apply.  */
16241 char $ac_func ();
16242 /* The GNU C library defines this for functions which it implements
16243     to always fail with ENOSYS.  Some functions are actually named
16244     something starting with __ and the normal name is an alias.  */
16245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16246 choke me
16247 #else
16248 char (*f) () = $ac_func;
16249 #endif
16250 #ifdef __cplusplus
16251 }
16252 #endif
16253
16254 int
16255 main ()
16256 {
16257 return f != $ac_func;
16258   ;
16259   return 0;
16260 }
16261 _ACEOF
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264   (eval $ac_link) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -s conftest$ac_exeext'
16269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270   (eval $ac_try) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; }; then
16274   eval "$as_ac_var=yes"
16275 else
16276   echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16278
16279 eval "$as_ac_var=no"
16280 fi
16281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16282 fi
16283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16285 if test `eval echo '${'$as_ac_var'}'` = yes; then
16286   cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16288 _ACEOF
16289
16290 echo "$as_me:$LINENO: checking for _doprnt" >&5
16291 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16292 if test "${ac_cv_func__doprnt+set}" = set; then
16293   echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295   cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16297 /* confdefs.h.  */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h.  */
16302 /* System header to define __stub macros and hopefully few prototypes,
16303     which can conflict with char _doprnt (); below.
16304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305     <limits.h> exists even on freestanding compilers.  */
16306 #ifdef __STDC__
16307 # include <limits.h>
16308 #else
16309 # include <assert.h>
16310 #endif
16311 /* Override any gcc2 internal prototype to avoid an error.  */
16312 #ifdef __cplusplus
16313 extern "C"
16314 {
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317    builtin and then its argument prototype would still apply.  */
16318 char _doprnt ();
16319 /* The GNU C library defines this for functions which it implements
16320     to always fail with ENOSYS.  Some functions are actually named
16321     something starting with __ and the normal name is an alias.  */
16322 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16323 choke me
16324 #else
16325 char (*f) () = _doprnt;
16326 #endif
16327 #ifdef __cplusplus
16328 }
16329 #endif
16330
16331 int
16332 main ()
16333 {
16334 return f != _doprnt;
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341   (eval $ac_link) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -s conftest$ac_exeext'
16346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347   (eval $ac_try) 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; }; then
16351   ac_cv_func__doprnt=yes
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 ac_cv_func__doprnt=no
16357 fi
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359 fi
16360 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16361 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16362 if test $ac_cv_func__doprnt = yes; then
16363
16364 cat >>confdefs.h <<\_ACEOF
16365 #define HAVE_DOPRNT 1
16366 _ACEOF
16367
16368 fi
16369
16370 fi
16371 done
16372
16373
16374 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16375 # for constant arguments.  Useless!
16376 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16377 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16378 if test "${ac_cv_working_alloca_h+set}" = set; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381   cat >conftest.$ac_ext <<_ACEOF
16382 #line $LINENO "configure"
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 #include <alloca.h>
16389 int
16390 main ()
16391 {
16392 char *p = (char *) alloca (2 * sizeof (int));
16393   ;
16394   return 0;
16395 }
16396 _ACEOF
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16399   (eval $ac_link) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); } &&
16403          { ac_try='test -s conftest$ac_exeext'
16404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405   (eval $ac_try) 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   ac_cv_working_alloca_h=yes
16410 else
16411   echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_cv_working_alloca_h=no
16415 fi
16416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16417 fi
16418 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16419 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16420 if test $ac_cv_working_alloca_h = yes; then
16421
16422 cat >>confdefs.h <<\_ACEOF
16423 #define HAVE_ALLOCA_H 1
16424 _ACEOF
16425
16426 fi
16427
16428 echo "$as_me:$LINENO: checking for alloca" >&5
16429 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16430 if test "${ac_cv_func_alloca_works+set}" = set; then
16431   echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433   cat >conftest.$ac_ext <<_ACEOF
16434 #line $LINENO "configure"
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440 #ifdef __GNUC__
16441 # define alloca __builtin_alloca
16442 #else
16443 # ifdef _MSC_VER
16444 #  include <malloc.h>
16445 #  define alloca _alloca
16446 # else
16447 #  if HAVE_ALLOCA_H
16448 #   include <alloca.h>
16449 #  else
16450 #   ifdef _AIX
16451  #pragma alloca
16452 #   else
16453 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16454 char *alloca ();
16455 #    endif
16456 #   endif
16457 #  endif
16458 # endif
16459 #endif
16460
16461 int
16462 main ()
16463 {
16464 char *p = (char *) alloca (1);
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16471   (eval $ac_link) 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } &&
16475          { ac_try='test -s conftest$ac_exeext'
16476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477   (eval $ac_try) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; }; then
16481   ac_cv_func_alloca_works=yes
16482 else
16483   echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486 ac_cv_func_alloca_works=no
16487 fi
16488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16489 fi
16490 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16491 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16492
16493 if test $ac_cv_func_alloca_works = yes; then
16494
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE_ALLOCA 1
16497 _ACEOF
16498
16499 else
16500   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16501 # that cause trouble.  Some versions do not even contain alloca or
16502 # contain a buggy version.  If you still want to use their alloca,
16503 # use ar to extract alloca.o from them instead of compiling alloca.c.
16504
16505 ALLOCA=alloca.$ac_objext
16506
16507 cat >>confdefs.h <<\_ACEOF
16508 #define C_ALLOCA 1
16509 _ACEOF
16510
16511
16512 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16513 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16514 if test "${ac_cv_os_cray+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 #line $LINENO "configure"
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 #if defined(CRAY) && ! defined(CRAY2)
16525 webecray
16526 #else
16527 wenotbecray
16528 #endif
16529
16530 _ACEOF
16531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16532   $EGREP "webecray" >/dev/null 2>&1; then
16533   ac_cv_os_cray=yes
16534 else
16535   ac_cv_os_cray=no
16536 fi
16537 rm -f conftest*
16538
16539 fi
16540 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16541 echo "${ECHO_T}$ac_cv_os_cray" >&6
16542 if test $ac_cv_os_cray = yes; then
16543   for ac_func in _getb67 GETB67 getb67; do
16544     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16545 echo "$as_me:$LINENO: checking for $ac_func" >&5
16546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16547 if eval "test \"\${$as_ac_var+set}\" = set"; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 /* confdefs.h.  */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h.  */
16557 /* System header to define __stub macros and hopefully few prototypes,
16558     which can conflict with char $ac_func (); below.
16559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16560     <limits.h> exists even on freestanding compilers.  */
16561 #ifdef __STDC__
16562 # include <limits.h>
16563 #else
16564 # include <assert.h>
16565 #endif
16566 /* Override any gcc2 internal prototype to avoid an error.  */
16567 #ifdef __cplusplus
16568 extern "C"
16569 {
16570 #endif
16571 /* We use char because int might match the return type of a gcc2
16572    builtin and then its argument prototype would still apply.  */
16573 char $ac_func ();
16574 /* The GNU C library defines this for functions which it implements
16575     to always fail with ENOSYS.  Some functions are actually named
16576     something starting with __ and the normal name is an alias.  */
16577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16578 choke me
16579 #else
16580 char (*f) () = $ac_func;
16581 #endif
16582 #ifdef __cplusplus
16583 }
16584 #endif
16585
16586 int
16587 main ()
16588 {
16589 return f != $ac_func;
16590   ;
16591   return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596   (eval $ac_link) 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); } &&
16600          { ac_try='test -s conftest$ac_exeext'
16601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602   (eval $ac_try) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; }; then
16606   eval "$as_ac_var=yes"
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 eval "$as_ac_var=no"
16612 fi
16613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16614 fi
16615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16617 if test `eval echo '${'$as_ac_var'}'` = yes; then
16618
16619 cat >>confdefs.h <<_ACEOF
16620 #define CRAY_STACKSEG_END $ac_func
16621 _ACEOF
16622
16623     break
16624 fi
16625
16626   done
16627 fi
16628
16629 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16630 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16631 if test "${ac_cv_c_stack_direction+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   if test "$cross_compiling" = yes; then
16635   ac_cv_c_stack_direction=0
16636 else
16637   cat >conftest.$ac_ext <<_ACEOF
16638 #line $LINENO "configure"
16639 /* confdefs.h.  */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h.  */
16644 int
16645 find_stack_direction ()
16646 {
16647   static char *addr = 0;
16648   auto char dummy;
16649   if (addr == 0)
16650     {
16651       addr = &dummy;
16652       return find_stack_direction ();
16653     }
16654   else
16655     return (&dummy > addr) ? 1 : -1;
16656 }
16657
16658 int
16659 main ()
16660 {
16661   exit (find_stack_direction () < 0);
16662 }
16663 _ACEOF
16664 rm -f conftest$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666   (eval $ac_link) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671   (eval $ac_try) 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); }; }; then
16675   ac_cv_c_stack_direction=1
16676 else
16677   echo "$as_me: program exited with status $ac_status" >&5
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ( exit $ac_status )
16682 ac_cv_c_stack_direction=-1
16683 fi
16684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16685 fi
16686 fi
16687 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16688 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16689
16690 cat >>confdefs.h <<_ACEOF
16691 #define STACK_DIRECTION $ac_cv_c_stack_direction
16692 _ACEOF
16693
16694
16695 fi
16696
16697 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16698 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16699 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16700 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16701   echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703   ac_check_lib_save_LIBS=$LIBS
16704 LIBS="-lsun  $LIBS"
16705 cat >conftest.$ac_ext <<_ACEOF
16706 #line $LINENO "configure"
16707 /* confdefs.h.  */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h.  */
16712
16713 /* Override any gcc2 internal prototype to avoid an error.  */
16714 #ifdef __cplusplus
16715 extern "C"
16716 #endif
16717 /* We use char because int might match the return type of a gcc2
16718    builtin and then its argument prototype would still apply.  */
16719 char getmntent ();
16720 int
16721 main ()
16722 {
16723 getmntent ();
16724   ;
16725   return 0;
16726 }
16727 _ACEOF
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16730   (eval $ac_link) 2>&5
16731   ac_status=$?
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); } &&
16734          { ac_try='test -s conftest$ac_exeext'
16735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736   (eval $ac_try) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; }; then
16740   ac_cv_lib_sun_getmntent=yes
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 ac_cv_lib_sun_getmntent=no
16746 fi
16747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16748 LIBS=$ac_check_lib_save_LIBS
16749 fi
16750 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16751 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16752 if test $ac_cv_lib_sun_getmntent = yes; then
16753   LIBS="-lsun $LIBS"
16754 else
16755   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16756 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16757 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16758   echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760   ac_check_lib_save_LIBS=$LIBS
16761 LIBS="-lseq  $LIBS"
16762 cat >conftest.$ac_ext <<_ACEOF
16763 #line $LINENO "configure"
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769
16770 /* Override any gcc2 internal prototype to avoid an error.  */
16771 #ifdef __cplusplus
16772 extern "C"
16773 #endif
16774 /* We use char because int might match the return type of a gcc2
16775    builtin and then its argument prototype would still apply.  */
16776 char getmntent ();
16777 int
16778 main ()
16779 {
16780 getmntent ();
16781   ;
16782   return 0;
16783 }
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787   (eval $ac_link) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } &&
16791          { ac_try='test -s conftest$ac_exeext'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797   ac_cv_lib_seq_getmntent=yes
16798 else
16799   echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 ac_cv_lib_seq_getmntent=no
16803 fi
16804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16805 LIBS=$ac_check_lib_save_LIBS
16806 fi
16807 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16808 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16809 if test $ac_cv_lib_seq_getmntent = yes; then
16810   LIBS="-lseq $LIBS"
16811 else
16812   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16813 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16814 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16815   echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817   ac_check_lib_save_LIBS=$LIBS
16818 LIBS="-lgen  $LIBS"
16819 cat >conftest.$ac_ext <<_ACEOF
16820 #line $LINENO "configure"
16821 /* confdefs.h.  */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h.  */
16826
16827 /* Override any gcc2 internal prototype to avoid an error.  */
16828 #ifdef __cplusplus
16829 extern "C"
16830 #endif
16831 /* We use char because int might match the return type of a gcc2
16832    builtin and then its argument prototype would still apply.  */
16833 char getmntent ();
16834 int
16835 main ()
16836 {
16837 getmntent ();
16838   ;
16839   return 0;
16840 }
16841 _ACEOF
16842 rm -f conftest.$ac_objext conftest$ac_exeext
16843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16844   (eval $ac_link) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } &&
16848          { ac_try='test -s conftest$ac_exeext'
16849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850   (eval $ac_try) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); }; }; then
16854   ac_cv_lib_gen_getmntent=yes
16855 else
16856   echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859 ac_cv_lib_gen_getmntent=no
16860 fi
16861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16862 LIBS=$ac_check_lib_save_LIBS
16863 fi
16864 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16865 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16866 if test $ac_cv_lib_gen_getmntent = yes; then
16867   LIBS="-lgen $LIBS"
16868 fi
16869
16870 fi
16871
16872 fi
16873
16874
16875 for ac_func in getmntent
16876 do
16877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 echo "$as_me:$LINENO: checking for $ac_func" >&5
16879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16880 if eval "test \"\${$as_ac_var+set}\" = set"; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   cat >conftest.$ac_ext <<_ACEOF
16884 #line $LINENO "configure"
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890 /* System header to define __stub macros and hopefully few prototypes,
16891     which can conflict with char $ac_func (); below.
16892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893     <limits.h> exists even on freestanding compilers.  */
16894 #ifdef __STDC__
16895 # include <limits.h>
16896 #else
16897 # include <assert.h>
16898 #endif
16899 /* Override any gcc2 internal prototype to avoid an error.  */
16900 #ifdef __cplusplus
16901 extern "C"
16902 {
16903 #endif
16904 /* We use char because int might match the return type of a gcc2
16905    builtin and then its argument prototype would still apply.  */
16906 char $ac_func ();
16907 /* The GNU C library defines this for functions which it implements
16908     to always fail with ENOSYS.  Some functions are actually named
16909     something starting with __ and the normal name is an alias.  */
16910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16911 choke me
16912 #else
16913 char (*f) () = $ac_func;
16914 #endif
16915 #ifdef __cplusplus
16916 }
16917 #endif
16918
16919 int
16920 main ()
16921 {
16922 return f != $ac_func;
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929   (eval $ac_link) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } &&
16933          { ac_try='test -s conftest$ac_exeext'
16934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935   (eval $ac_try) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939   eval "$as_ac_var=yes"
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944 eval "$as_ac_var=no"
16945 fi
16946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16947 fi
16948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16950 if test `eval echo '${'$as_ac_var'}'` = yes; then
16951   cat >>confdefs.h <<_ACEOF
16952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16953 _ACEOF
16954
16955 fi
16956 done
16957
16958
16959 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16960 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16961 if test "${ac_cv_func_closedir_void+set}" = set; then
16962   echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16964   if test "$cross_compiling" = yes; then
16965   ac_cv_func_closedir_void=yes
16966 else
16967   cat >conftest.$ac_ext <<_ACEOF
16968 #line $LINENO "configure"
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974 $ac_includes_default
16975 #include <$ac_header_dirent>
16976 #ifndef __cplusplus
16977 int closedir ();
16978 #endif
16979
16980 int
16981 main ()
16982 {
16983 exit (closedir (opendir (".")) != 0);
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest$ac_exeext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16990   (eval $ac_link) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; }; then
16999   ac_cv_func_closedir_void=no
17000 else
17001   echo "$as_me: program exited with status $ac_status" >&5
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ( exit $ac_status )
17006 ac_cv_func_closedir_void=yes
17007 fi
17008 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17009 fi
17010 fi
17011 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17012 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17013 if test $ac_cv_func_closedir_void = yes; then
17014
17015 cat >>confdefs.h <<\_ACEOF
17016 #define CLOSEDIR_VOID 1
17017 _ACEOF
17018
17019 fi
17020
17021 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17022 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17023 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026   if test "$cross_compiling" = yes; then
17027   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17028 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17029    { (exit 1); exit 1; }; }
17030 else
17031   cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17033 /* confdefs.h.  */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h.  */
17038 #if HAVE_UNISTD_H
17039 # include <unistd.h>
17040 #endif
17041
17042 int
17043 main ()
17044 {
17045 /* If this system has a BSD-style setpgrp which takes arguments,
17046   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17047   exit successfully. */
17048   exit (setpgrp (1,1) == -1 ? 0 : 1);
17049   ;
17050   return 0;
17051 }
17052 _ACEOF
17053 rm -f conftest$ac_exeext
17054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055   (eval $ac_link) 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060   (eval $ac_try) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; }; then
17064   ac_cv_func_setpgrp_void=no
17065 else
17066   echo "$as_me: program exited with status $ac_status" >&5
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ( exit $ac_status )
17071 ac_cv_func_setpgrp_void=yes
17072 fi
17073 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17074 fi
17075 fi
17076 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17077 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17078 if test $ac_cv_func_setpgrp_void = yes; then
17079
17080 cat >>confdefs.h <<\_ACEOF
17081 #define SETPGRP_VOID 1
17082 _ACEOF
17083
17084 fi
17085                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17086 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17087 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17088   echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17090   # Some versions of Solaris, SCO, and the GNU C Library
17091    # have a broken or incompatible fnmatch.
17092    # So we run a test program.  If we are cross-compiling, take no chance.
17093    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17094    if test "$cross_compiling" = yes; then
17095   ac_cv_func_fnmatch_works=cross
17096 else
17097   cat >conftest.$ac_ext <<_ACEOF
17098 #line $LINENO "configure"
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104 #include <fnmatch.h>
17105 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17106 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17107
17108 int
17109 main ()
17110 {
17111 exit
17112            (!(y ("a*", "abc", 0)
17113               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17114               && y ("a\\\\bc", "abc", 0)
17115               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17116               && y ("*x", ".x", 0)
17117               && n ("*x", ".x", FNM_PERIOD)
17118               && 1));
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest$ac_exeext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17125   (eval $ac_link) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130   (eval $ac_try) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; }; then
17134   ac_cv_func_fnmatch_works=yes
17135 else
17136   echo "$as_me: program exited with status $ac_status" >&5
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140 ( exit $ac_status )
17141 ac_cv_func_fnmatch_works=no
17142 fi
17143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17144 fi
17145 fi
17146 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17147 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17148 if test $ac_cv_func_fnmatch_works = yes; then
17149
17150 cat >>confdefs.h <<\_ACEOF
17151 #define HAVE_FNMATCH 1
17152 _ACEOF
17153
17154 fi
17155
17156
17157
17158
17159
17160 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17161 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17162 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165   ac_check_lib_save_LIBS=$LIBS
17166 LIBS="-lxpg4  $LIBS"
17167 cat >conftest.$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174
17175 /* Override any gcc2 internal prototype to avoid an error.  */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 /* We use char because int might match the return type of a gcc2
17180    builtin and then its argument prototype would still apply.  */
17181 char setlocale ();
17182 int
17183 main ()
17184 {
17185 setlocale ();
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192   (eval $ac_link) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } &&
17196          { ac_try='test -s conftest$ac_exeext'
17197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198   (eval $ac_try) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; }; then
17202   ac_cv_lib_xpg4_setlocale=yes
17203 else
17204   echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ac_cv_lib_xpg4_setlocale=no
17208 fi
17209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17211 fi
17212 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17213 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17214 if test $ac_cv_lib_xpg4_setlocale = yes; then
17215   LIBS="$LIBS -lxpg4"
17216 fi
17217
17218
17219
17220
17221 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17222 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17223 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-lsun  $LIBS"
17228 cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235
17236 /* Override any gcc2 internal prototype to avoid an error.  */
17237 #ifdef __cplusplus
17238 extern "C"
17239 #endif
17240 /* We use char because int might match the return type of a gcc2
17241    builtin and then its argument prototype would still apply.  */
17242 char getpwnam ();
17243 int
17244 main ()
17245 {
17246 getpwnam ();
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253   (eval $ac_link) 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); } &&
17257          { ac_try='test -s conftest$ac_exeext'
17258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259   (eval $ac_try) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; }; then
17263   ac_cv_lib_sun_getpwnam=yes
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 ac_cv_lib_sun_getpwnam=no
17269 fi
17270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17272 fi
17273 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17274 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17275 if test $ac_cv_lib_sun_getpwnam = yes; then
17276   cat >>confdefs.h <<_ACEOF
17277 #define HAVE_LIBSUN 1
17278 _ACEOF
17279
17280   LIBS="-lsun $LIBS"
17281
17282 fi
17283
17284
17285
17286 for ac_header in zlib.h
17287 do
17288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17290   echo "$as_me:$LINENO: checking for $ac_header" >&5
17291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 fi
17295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17297 else
17298   # Is the header compilable?
17299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17301 cat >conftest.$ac_ext <<_ACEOF
17302 #line $LINENO "configure"
17303 /* confdefs.h.  */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h.  */
17308 $ac_includes_default
17309 #include <$ac_header>
17310 _ACEOF
17311 rm -f conftest.$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313   (eval $ac_compile) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } &&
17317          { ac_try='test -s conftest.$ac_objext'
17318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319   (eval $ac_try) 2>&5
17320   ac_status=$?
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); }; }; then
17323   ac_header_compiler=yes
17324 else
17325   echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17327
17328 ac_header_compiler=no
17329 fi
17330 rm -f conftest.$ac_objext conftest.$ac_ext
17331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17332 echo "${ECHO_T}$ac_header_compiler" >&6
17333
17334 # Is the header present?
17335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17337 cat >conftest.$ac_ext <<_ACEOF
17338 #line $LINENO "configure"
17339 /* confdefs.h.  */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h.  */
17344 #include <$ac_header>
17345 _ACEOF
17346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17348   ac_status=$?
17349   grep -v '^ *+' conftest.er1 >conftest.err
17350   rm -f conftest.er1
17351   cat conftest.err >&5
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); } >/dev/null; then
17354   if test -s conftest.err; then
17355     ac_cpp_err=$ac_c_preproc_warn_flag
17356   else
17357     ac_cpp_err=
17358   fi
17359 else
17360   ac_cpp_err=yes
17361 fi
17362 if test -z "$ac_cpp_err"; then
17363   ac_header_preproc=yes
17364 else
17365   echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368   ac_header_preproc=no
17369 fi
17370 rm -f conftest.err conftest.$ac_ext
17371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17372 echo "${ECHO_T}$ac_header_preproc" >&6
17373
17374 # So?  What about this header?
17375 case $ac_header_compiler:$ac_header_preproc in
17376   yes:no )
17377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17381     (
17382       cat <<\_ASBOX
17383 ## ------------------------------------ ##
17384 ## Report this to bug-autoconf@gnu.org. ##
17385 ## ------------------------------------ ##
17386 _ASBOX
17387     ) |
17388       sed "s/^/$as_me: WARNING:     /" >&2
17389     ;;
17390   no:yes )
17391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17393     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17397     (
17398       cat <<\_ASBOX
17399 ## ------------------------------------ ##
17400 ## Report this to bug-autoconf@gnu.org. ##
17401 ## ------------------------------------ ##
17402 _ASBOX
17403     ) |
17404       sed "s/^/$as_me: WARNING:     /" >&2
17405     ;;
17406 esac
17407 echo "$as_me:$LINENO: checking for $ac_header" >&5
17408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   eval "$as_ac_Header=$ac_header_preproc"
17413 fi
17414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17416
17417 fi
17418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17419   cat >>confdefs.h <<_ACEOF
17420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17421 _ACEOF
17422
17423 fi
17424
17425 done
17426
17427 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17428 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17429 if test "${ac_cv_lib_z_deflate+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   ac_check_lib_save_LIBS=$LIBS
17433 LIBS="-lz  $LIBS"
17434 cat >conftest.$ac_ext <<_ACEOF
17435 #line $LINENO "configure"
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441
17442 /* Override any gcc2 internal prototype to avoid an error.  */
17443 #ifdef __cplusplus
17444 extern "C"
17445 #endif
17446 /* We use char because int might match the return type of a gcc2
17447    builtin and then its argument prototype would still apply.  */
17448 char deflate ();
17449 int
17450 main ()
17451 {
17452 deflate ();
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459   (eval $ac_link) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); } &&
17463          { ac_try='test -s conftest$ac_exeext'
17464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465   (eval $ac_try) 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; }; then
17469   ac_cv_lib_z_deflate=yes
17470 else
17471   echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 ac_cv_lib_z_deflate=no
17475 fi
17476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17477 LIBS=$ac_check_lib_save_LIBS
17478 fi
17479 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17480 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17481 if test $ac_cv_lib_z_deflate = yes; then
17482   FDLIBS="-lz"
17483 fi
17484
17485 have_zlib=no
17486 if test x$FDLIBS = x-lz; then
17487   cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_LIBZ 1
17489 _ACEOF
17490
17491   have_zlib=yes
17492 fi
17493
17494 PTHREAD_LIB=""
17495 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17496 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17497 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   ac_check_lib_save_LIBS=$LIBS
17501 LIBS="-lpthread  $LIBS"
17502 cat >conftest.$ac_ext <<_ACEOF
17503 #line $LINENO "configure"
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509
17510 /* Override any gcc2 internal prototype to avoid an error.  */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 /* We use char because int might match the return type of a gcc2
17515    builtin and then its argument prototype would still apply.  */
17516 char pthread_create ();
17517 int
17518 main ()
17519 {
17520 pthread_create ();
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527   (eval $ac_link) 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } &&
17531          { ac_try='test -s conftest$ac_exeext'
17532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533   (eval $ac_try) 2>&5
17534   ac_status=$?
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); }; }; then
17537   ac_cv_lib_pthread_pthread_create=yes
17538 else
17539   echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17541
17542 ac_cv_lib_pthread_pthread_create=no
17543 fi
17544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17545 LIBS=$ac_check_lib_save_LIBS
17546 fi
17547 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17548 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17549 if test $ac_cv_lib_pthread_pthread_create = yes; then
17550   PTHREAD_LIB="-lpthread"
17551 else
17552   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17553 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17554 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17555   echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557   ac_check_lib_save_LIBS=$LIBS
17558 LIBS="-lpthreads  $LIBS"
17559 cat >conftest.$ac_ext <<_ACEOF
17560 #line $LINENO "configure"
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566
17567 /* Override any gcc2 internal prototype to avoid an error.  */
17568 #ifdef __cplusplus
17569 extern "C"
17570 #endif
17571 /* We use char because int might match the return type of a gcc2
17572    builtin and then its argument prototype would still apply.  */
17573 char pthread_create ();
17574 int
17575 main ()
17576 {
17577 pthread_create ();
17578   ;
17579   return 0;
17580 }
17581 _ACEOF
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584   (eval $ac_link) 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); } &&
17588          { ac_try='test -s conftest$ac_exeext'
17589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590   (eval $ac_try) 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; }; then
17594   ac_cv_lib_pthreads_pthread_create=yes
17595 else
17596   echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 ac_cv_lib_pthreads_pthread_create=no
17600 fi
17601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17602 LIBS=$ac_check_lib_save_LIBS
17603 fi
17604 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17605 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17606 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17607   PTHREAD_LIB="-lpthreads"
17608 else
17609   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17610 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17611 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17612   echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614   ac_check_lib_save_LIBS=$LIBS
17615 LIBS="-lc_r  $LIBS"
17616 cat >conftest.$ac_ext <<_ACEOF
17617 #line $LINENO "configure"
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623
17624 /* Override any gcc2 internal prototype to avoid an error.  */
17625 #ifdef __cplusplus
17626 extern "C"
17627 #endif
17628 /* We use char because int might match the return type of a gcc2
17629    builtin and then its argument prototype would still apply.  */
17630 char pthread_create ();
17631 int
17632 main ()
17633 {
17634 pthread_create ();
17635   ;
17636   return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641   (eval $ac_link) 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } &&
17645          { ac_try='test -s conftest$ac_exeext'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; }; then
17651   ac_cv_lib_c_r_pthread_create=yes
17652 else
17653   echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 ac_cv_lib_c_r_pthread_create=no
17657 fi
17658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17659 LIBS=$ac_check_lib_save_LIBS
17660 fi
17661 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17662 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17663 if test $ac_cv_lib_c_r_pthread_create = yes; then
17664   PTHREAD_LIB="-lc_r"
17665 else
17666   echo "$as_me:$LINENO: checking for pthread_create" >&5
17667 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17668 if test "${ac_cv_func_pthread_create+set}" = set; then
17669   echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671   cat >conftest.$ac_ext <<_ACEOF
17672 #line $LINENO "configure"
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678 /* System header to define __stub macros and hopefully few prototypes,
17679     which can conflict with char pthread_create (); below.
17680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681     <limits.h> exists even on freestanding compilers.  */
17682 #ifdef __STDC__
17683 # include <limits.h>
17684 #else
17685 # include <assert.h>
17686 #endif
17687 /* Override any gcc2 internal prototype to avoid an error.  */
17688 #ifdef __cplusplus
17689 extern "C"
17690 {
17691 #endif
17692 /* We use char because int might match the return type of a gcc2
17693    builtin and then its argument prototype would still apply.  */
17694 char pthread_create ();
17695 /* The GNU C library defines this for functions which it implements
17696     to always fail with ENOSYS.  Some functions are actually named
17697     something starting with __ and the normal name is an alias.  */
17698 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17699 choke me
17700 #else
17701 char (*f) () = pthread_create;
17702 #endif
17703 #ifdef __cplusplus
17704 }
17705 #endif
17706
17707 int
17708 main ()
17709 {
17710 return f != pthread_create;
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717   (eval $ac_link) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -s conftest$ac_exeext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   ac_cv_func_pthread_create=yes
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732 ac_cv_func_pthread_create=no
17733 fi
17734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17735 fi
17736 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17737 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17738
17739
17740 fi
17741
17742
17743 fi
17744
17745
17746 fi
17747
17748
17749
17750 cat >>confdefs.h <<\_ACEOF
17751 #define FDLIBS 1
17752 _ACEOF
17753
17754
17755
17756 CFLAGS=${CFLAGS--O}
17757 LDFLAGS=${LDFLAGS--O}
17758 DB_LIBS="${SQL_LFLAGS}"
17759
17760 CPPFLAGS="$CPPFLAGS"
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775 OBJLIST=
17776
17777
17778 lld="lld"
17779 llu="llu"
17780
17781 WCFLAGS=
17782 WLDFLAGS=
17783
17784 #
17785 # Finally we set appropriate distribution specific
17786 #  variables and defaults
17787 #
17788 # PFILES are platform specific files
17789 PFILES="platforms/Makefile"
17790 PSCMD="ps -e"
17791 WIN32=
17792 hostname=`uname -n`
17793 case "$DISTNAME" in
17794 aix)
17795         DISTVER=`uname -r`
17796         PSCMD="ps -e -o pid,comm"
17797         PFILES="${PFILES} \
17798            platforms/aix/Makefile"
17799         TAPEDRIVE="/dev/rmt0.1"
17800   ;;
17801 alpha)
17802         DISTVER=`uname -r`
17803         PTHREAD_LIB="-lpthread -lexc"
17804         if test "${CC}" = "gcc" ; then
17805            lld="lld"
17806            llu="llu"
17807         else
17808            lld="ld"
17809            llu="lu"
17810         fi
17811         TAPEDRIVE="/dev/nrmt0"
17812   ;;
17813 bsdi)
17814         DISTVER=`uname -a |awk '{print $3}'`
17815         TAPEDRIVE="/dev/nrmt0"
17816         PTHREAD_LIB="-pthread"
17817         CFLAGS="${CFLAGS} -pthread"
17818         PSCMD="ps -x -o pid,command"
17819         lld="qd"
17820         llu="qu"
17821         PFILES="${PFILES} \
17822             platforms/bsdi/Makefile \
17823             platforms/bsdi/bacula-fd \
17824             platforms/bsdi/bacula-sd \
17825             platforms/bsdi/bacula-dir"
17826         hostname=`hostname -s`
17827         largefile_support="yes"
17828   ;;
17829 cygwin)
17830         DISTVER=`uname -a |awk '{print $3}'`
17831         TAPEDRIVE="/dev/nrst0"
17832         WIN32=win32
17833         WCFLAGS="-mwindows"
17834         WLDFLAGS="-mwindows"
17835   ;;
17836 darwin)
17837         DISTVER=`uname -r`
17838         TAPEDRIVE="/dev/nst0"
17839         PSCMD="ps -e -o pid,command"
17840         hostname=`hostname -s`
17841         PFILES="${PFILES} \
17842            platforms/darwin/Makefile"
17843   ;;
17844 debian)
17845         DISTVER=`cat /etc/debian_version`
17846         TAPEDRIVE="/dev/nrst0"
17847         PSCMD="ps -e -o pid,command"
17848         hostname=`hostname -s`
17849   ;;
17850 freebsd)
17851         DISTVER=`uname -a |awk '{print $3}'`
17852         VER=`echo $DISTVER | cut -c 1`
17853         if test x$VER = x4 ; then
17854            PTHREAD_LIB="-pthread"
17855            CFLAGS="${CFLAGS} -pthread"
17856         fi
17857         lld="qd"
17858         llu="qu"
17859         TAPEDRIVE="/dev/nrsa0"
17860         PSCMD="ps -x -o pid,command"
17861         PFILES="${PFILES} \
17862             platforms/freebsd/Makefile \
17863             platforms/freebsd/bacula-fd \
17864             platforms/freebsd/bacula-sd \
17865             platforms/freebsd/bacula-dir"
17866         hostname=`hostname -s`
17867         largefile_support="yes"
17868   ;;
17869 hpux)
17870         DISTVER=`uname -r`
17871         TAPEDRIVE="/dev/rmt/0hnb"
17872   ;;
17873 irix)
17874         DISTVER=`uname -r`
17875         TAPEDRIVE="/dev/rmt/0cbn"
17876         PSCMD="ps -e -o pid,comm"
17877         PFILES="${PFILES} \
17878             platforms/irix/Makefile \
17879             platforms/irix/bacula-fd \
17880             platforms/irix/bacula-sd \
17881             platforms/irix/bacula-dir"
17882   ;;
17883 netbsd)
17884         DISTVER=`uname -a |awk '{print $3}'`
17885         lld="qd"
17886         llu="qu"
17887         TAPEDRIVE="/dev/nrst0"
17888         PSCMD="ps -a -o pid,command"
17889         PTHREAD_LIB="-pthread"
17890         CFLAGS="${CFLAGS} -pthread"
17891   ;;
17892 openbsd)
17893         DISTVER=`uname -a |awk '{print $3}'`
17894         lld="qd"
17895         llu="qu"
17896         TAPEDRIVE="/dev/nrst0"
17897         PSCMD="ps -a -o pid,command"
17898         PTHREAD_LIB="-pthread"
17899         CFLAGS="${CFLAGS} -pthread"
17900         PFILES="${PFILES} \
17901             platforms/openbsd/Makefile \
17902             platforms/openbsd/bacula-fd \
17903             platforms/openbsd/bacula-sd \
17904             platforms/openbsd/bacula-dir"
17905   ;;
17906 redhat)
17907         DISTVER=`cat /etc/redhat-release | grep release |\
17908            cut -f 5 -d ' '`
17909         TAPEDRIVE="/dev/nst0"
17910         PSCMD="ps -e -o pid,command"
17911         PFILES="${PFILES} \
17912             platforms/redhat/Makefile \
17913             platforms/redhat/bacula-fd \
17914             platforms/redhat/bacula-sd \
17915             platforms/redhat/bacula-dir \
17916             platforms/redhat/bacula.spec \
17917             "
17918         hostname=`hostname -s`
17919   ;;
17920 mandrake)
17921         DISTVER=`cat /etc/mandrake-release | grep release |\
17922            cut -f 5 -d ' '`
17923         TAPEDRIVE="/dev/nst0"
17924         PSCMD="ps -e -o pid,command"
17925         PFILES="${PFILES} \
17926             platforms/mandrake/Makefile \
17927             platforms/mandrake/bacula-fd \
17928             platforms/mandrake/bacula-sd \
17929             platforms/mandrake/bacula-dir \
17930             platforms/mandrake/bacula.spec \
17931             "
17932         hostname=`hostname -s`
17933   ;;
17934 gentoo)
17935         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17936         TAPEDRIVE="/dev/nst0"
17937         PSCMD="ps -e -o pid,command"
17938         PFILES="${PFILES} \
17939             platforms/gentoo/Makefile \
17940             platforms/gentoo/bacula-fd \
17941             platforms/gentoo/bacula-sd \
17942             platforms/gentoo/bacula-dir"
17943         hostname=`hostname -s`
17944   ;;
17945
17946 slackware)
17947         DISTVER=`cat /etc/slackware-version`
17948         TAPEDRIVE="/dev/nst0"
17949         PSCMD="ps -e -o pid,command"
17950         hostname=`hostname -s`
17951   ;;
17952 solaris)
17953         DISTVER=`uname -r`
17954         TAPEDRIVE="/dev/rmt/0cbn"
17955         PSCMD="ps -e -o pid,comm"
17956         PFILES="${PFILES} \
17957             platforms/solaris/Makefile \
17958             platforms/solaris/bacula-fd \
17959             platforms/solaris/bacula-sd \
17960             platforms/solaris/bacula-dir"
17961         if test x$DISTVER = x5.6 ; then
17962             cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_OLD_SOCKOPT 1
17964 _ACEOF
17965
17966         fi
17967   ;;
17968 suse)
17969         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17970             cut -f 3 -d ' '`
17971         TAPEDRIVE="/dev/nst0"
17972         PSCMD="ps -e -o pid,command"
17973         hostname=`hostname -s`
17974         PFILES="${PFILES} \
17975             platforms/suse/Makefile \
17976             platforms/suse/bacula-fd \
17977             platforms/suse/bacula-sd \
17978             platforms/suse/bacula-dir"
17979   ;;
17980 suse5)
17981         DISTNAME=suse
17982         DISTVER=5.x
17983         TAPEDRIVE="/dev/nst0"
17984         PSCMD="ps -e -o pid,command"
17985         hostname=`hostname -s`
17986         PFILES="${PFILES} \
17987             platforms/suse/Makefile \
17988             platforms/suse/bacula-fd \
17989             platforms/suse/bacula-sd \
17990             platforms/suse/bacula-dir"
17991   ;;
17992 unknown)
17993         DISTVER=unknown
17994         TAPEDRIVE="/dev/nst0"
17995   ;;
17996 *)
17997   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17998   ;;
17999 esac
18000
18001
18002
18003 LIBS="$PTHREAD_LIB $LIBS"
18004
18005 cat >>confdefs.h <<_ACEOF
18006 #define lld "$lld"
18007 _ACEOF
18008
18009 cat >>confdefs.h <<_ACEOF
18010 #define llu "$llu"
18011 _ACEOF
18012
18013
18014
18015
18016
18017
18018
18019 MCOMMON=./autoconf/Make.common
18020
18021
18022 if test "x${subsysdir}" = "x${sbindir}" ; then
18023    echo " "
18024    echo " "
18025    echo "You have set both --sbindir and --with-subsys-dir"
18026    echo "  equal to: ${subsysdir} "
18027    echo "This is not permitted. Please reconfigure."
18028    echo " "
18029    echo "Aborting configuration ..."
18030    echo " "
18031    echo " "
18032    exit 1
18033 fi
18034
18035                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         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/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"
18036           ac_config_commands="$ac_config_commands default"
18037 cat >confcache <<\_ACEOF
18038 # This file is a shell script that caches the results of configure
18039 # tests run on this system so they can be shared between configure
18040 # scripts and configure runs, see configure's option --config-cache.
18041 # It is not useful on other systems.  If it contains results you don't
18042 # want to keep, you may remove or edit it.
18043 #
18044 # config.status only pays attention to the cache file if you give it
18045 # the --recheck option to rerun configure.
18046 #
18047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18049 # following values.
18050
18051 _ACEOF
18052
18053 # The following way of writing the cache mishandles newlines in values,
18054 # but we know of no workaround that is simple, portable, and efficient.
18055 # So, don't put newlines in cache variables' values.
18056 # Ultrix sh set writes to stderr and can't be redirected directly,
18057 # and sets the high bit in the cache file unless we assign to the vars.
18058 {
18059   (set) 2>&1 |
18060     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18061     *ac_space=\ *)
18062       # `set' does not quote correctly, so add quotes (double-quote
18063       # substitution turns \\\\ into \\, and sed turns \\ into \).
18064       sed -n \
18065         "s/'/'\\\\''/g;
18066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18067       ;;
18068     *)
18069       # `set' quotes correctly as required by POSIX, so do not add quotes.
18070       sed -n \
18071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18072       ;;
18073     esac;
18074 } |
18075   sed '
18076      t clear
18077      : clear
18078      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18079      t end
18080      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18081      : end' >>confcache
18082 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18083   if test -w $cache_file; then
18084     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18085     cat confcache >$cache_file
18086   else
18087     echo "not updating unwritable cache $cache_file"
18088   fi
18089 fi
18090 rm -f confcache
18091
18092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18093 # Let make expand exec_prefix.
18094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18095
18096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18098 # trailing colons and then remove the whole line if VPATH becomes empty
18099 # (actually we leave an empty line to preserve line numbers).
18100 if test "x$srcdir" = x.; then
18101   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18102 s/:*\$(srcdir):*/:/;
18103 s/:*\${srcdir}:*/:/;
18104 s/:*@srcdir@:*/:/;
18105 s/^\([^=]*=[    ]*\):*/\1/;
18106 s/:*$//;
18107 s/^[^=]*=[      ]*$//;
18108 }'
18109 fi
18110
18111 DEFS=-DHAVE_CONFIG_H
18112
18113 ac_libobjs=
18114 ac_ltlibobjs=
18115 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18116   # 1. Remove the extension, and $U if already installed.
18117   ac_i=`echo "$ac_i" |
18118          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18119   # 2. Add them.
18120   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18121   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18122 done
18123 LIBOBJS=$ac_libobjs
18124
18125 LTLIBOBJS=$ac_ltlibobjs
18126
18127
18128
18129 : ${CONFIG_STATUS=./config.status}
18130 ac_clean_files_save=$ac_clean_files
18131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18132 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18133 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18134 cat >$CONFIG_STATUS <<_ACEOF
18135 #! $SHELL
18136 # Generated by $as_me.
18137 # Run this file to recreate the current configuration.
18138 # Compiler output produced by configure, useful for debugging
18139 # configure, is in config.log if it exists.
18140
18141 debug=false
18142 ac_cs_recheck=false
18143 ac_cs_silent=false
18144 SHELL=\${CONFIG_SHELL-$SHELL}
18145 _ACEOF
18146
18147 cat >>$CONFIG_STATUS <<\_ACEOF
18148 ## --------------------- ##
18149 ## M4sh Initialization.  ##
18150 ## --------------------- ##
18151
18152 # Be Bourne compatible
18153 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18154   emulate sh
18155   NULLCMD=:
18156   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18157   # is contrary to our usage.  Disable this feature.
18158   alias -g '${1+"$@"}'='"$@"'
18159 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18160   set -o posix
18161 fi
18162
18163 # Support unset when possible.
18164 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18165   as_unset=unset
18166 else
18167   as_unset=false
18168 fi
18169
18170
18171 # Work around bugs in pre-3.0 UWIN ksh.
18172 $as_unset ENV MAIL MAILPATH
18173 PS1='$ '
18174 PS2='> '
18175 PS4='+ '
18176
18177 # NLS nuisances.
18178 for as_var in \
18179   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18180   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18181   LC_TELEPHONE LC_TIME
18182 do
18183   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18184     eval $as_var=C; export $as_var
18185   else
18186     $as_unset $as_var
18187   fi
18188 done
18189
18190 # Required to use basename.
18191 if expr a : '\(a\)' >/dev/null 2>&1; then
18192   as_expr=expr
18193 else
18194   as_expr=false
18195 fi
18196
18197 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18198   as_basename=basename
18199 else
18200   as_basename=false
18201 fi
18202
18203
18204 # Name of the executable.
18205 as_me=`$as_basename "$0" ||
18206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18207          X"$0" : 'X\(//\)$' \| \
18208          X"$0" : 'X\(/\)$' \| \
18209          .     : '\(.\)' 2>/dev/null ||
18210 echo X/"$0" |
18211     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18212           /^X\/\(\/\/\)$/{ s//\1/; q; }
18213           /^X\/\(\/\).*/{ s//\1/; q; }
18214           s/.*/./; q'`
18215
18216
18217 # PATH needs CR, and LINENO needs CR and PATH.
18218 # Avoid depending upon Character Ranges.
18219 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18220 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18221 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18222 as_cr_digits='0123456789'
18223 as_cr_alnum=$as_cr_Letters$as_cr_digits
18224
18225 # The user is always right.
18226 if test "${PATH_SEPARATOR+set}" != set; then
18227   echo "#! /bin/sh" >conf$$.sh
18228   echo  "exit 0"   >>conf$$.sh
18229   chmod +x conf$$.sh
18230   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18231     PATH_SEPARATOR=';'
18232   else
18233     PATH_SEPARATOR=:
18234   fi
18235   rm -f conf$$.sh
18236 fi
18237
18238
18239   as_lineno_1=$LINENO
18240   as_lineno_2=$LINENO
18241   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18242   test "x$as_lineno_1" != "x$as_lineno_2" &&
18243   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18244   # Find who we are.  Look in the path if we contain no path at all
18245   # relative or not.
18246   case $0 in
18247     *[\\/]* ) as_myself=$0 ;;
18248     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18249 for as_dir in $PATH
18250 do
18251   IFS=$as_save_IFS
18252   test -z "$as_dir" && as_dir=.
18253   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18254 done
18255
18256        ;;
18257   esac
18258   # We did not find ourselves, most probably we were run as `sh COMMAND'
18259   # in which case we are not to be found in the path.
18260   if test "x$as_myself" = x; then
18261     as_myself=$0
18262   fi
18263   if test ! -f "$as_myself"; then
18264     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18265 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18266    { (exit 1); exit 1; }; }
18267   fi
18268   case $CONFIG_SHELL in
18269   '')
18270     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18272 do
18273   IFS=$as_save_IFS
18274   test -z "$as_dir" && as_dir=.
18275   for as_base in sh bash ksh sh5; do
18276          case $as_dir in
18277          /*)
18278            if ("$as_dir/$as_base" -c '
18279   as_lineno_1=$LINENO
18280   as_lineno_2=$LINENO
18281   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18282   test "x$as_lineno_1" != "x$as_lineno_2" &&
18283   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18284              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18285              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18286              CONFIG_SHELL=$as_dir/$as_base
18287              export CONFIG_SHELL
18288              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18289            fi;;
18290          esac
18291        done
18292 done
18293 ;;
18294   esac
18295
18296   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18297   # uniformly replaced by the line number.  The first 'sed' inserts a
18298   # line-number line before each line; the second 'sed' does the real
18299   # work.  The second script uses 'N' to pair each line-number line
18300   # with the numbered line, and appends trailing '-' during
18301   # substitution so that $LINENO is not a special case at line end.
18302   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18303   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18304   sed '=' <$as_myself |
18305     sed '
18306       N
18307       s,$,-,
18308       : loop
18309       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18310       t loop
18311       s,-$,,
18312       s,^['$as_cr_digits']*\n,,
18313     ' >$as_me.lineno &&
18314   chmod +x $as_me.lineno ||
18315     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18316 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18317    { (exit 1); exit 1; }; }
18318
18319   # Don't try to exec as it changes $[0], causing all sort of problems
18320   # (the dirname of $[0] is not the place where we might find the
18321   # original and so on.  Autoconf is especially sensible to this).
18322   . ./$as_me.lineno
18323   # Exit status is that of the last command.
18324   exit
18325 }
18326
18327
18328 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18329   *c*,-n*) ECHO_N= ECHO_C='
18330 ' ECHO_T='      ' ;;
18331   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18332   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18333 esac
18334
18335 if expr a : '\(a\)' >/dev/null 2>&1; then
18336   as_expr=expr
18337 else
18338   as_expr=false
18339 fi
18340
18341 rm -f conf$$ conf$$.exe conf$$.file
18342 echo >conf$$.file
18343 if ln -s conf$$.file conf$$ 2>/dev/null; then
18344   # We could just check for DJGPP; but this test a) works b) is more generic
18345   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18346   if test -f conf$$.exe; then
18347     # Don't use ln at all; we don't have any links
18348     as_ln_s='cp -p'
18349   else
18350     as_ln_s='ln -s'
18351   fi
18352 elif ln conf$$.file conf$$ 2>/dev/null; then
18353   as_ln_s=ln
18354 else
18355   as_ln_s='cp -p'
18356 fi
18357 rm -f conf$$ conf$$.exe conf$$.file
18358
18359 if mkdir -p . 2>/dev/null; then
18360   as_mkdir_p=:
18361 else
18362   as_mkdir_p=false
18363 fi
18364
18365 as_executable_p="test -f"
18366
18367 # Sed expression to map a string onto a valid CPP name.
18368 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18369
18370 # Sed expression to map a string onto a valid variable name.
18371 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18372
18373
18374 # IFS
18375 # We need space, tab and new line, in precisely that order.
18376 as_nl='
18377 '
18378 IFS="   $as_nl"
18379
18380 # CDPATH.
18381 $as_unset CDPATH
18382
18383 exec 6>&1
18384
18385 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18386 # report actual input values of CONFIG_FILES etc. instead of their
18387 # values after options handling.  Logging --version etc. is OK.
18388 exec 5>>config.log
18389 {
18390   echo
18391   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18392 ## Running $as_me. ##
18393 _ASBOX
18394 } >&5
18395 cat >&5 <<_CSEOF
18396
18397 This file was extended by $as_me, which was
18398 generated by GNU Autoconf 2.57.  Invocation command line was
18399
18400   CONFIG_FILES    = $CONFIG_FILES
18401   CONFIG_HEADERS  = $CONFIG_HEADERS
18402   CONFIG_LINKS    = $CONFIG_LINKS
18403   CONFIG_COMMANDS = $CONFIG_COMMANDS
18404   $ $0 $@
18405
18406 _CSEOF
18407 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18408 echo >&5
18409 _ACEOF
18410
18411 # Files that config.status was made for.
18412 if test -n "$ac_config_files"; then
18413   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18414 fi
18415
18416 if test -n "$ac_config_headers"; then
18417   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18418 fi
18419
18420 if test -n "$ac_config_links"; then
18421   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18422 fi
18423
18424 if test -n "$ac_config_commands"; then
18425   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18426 fi
18427
18428 cat >>$CONFIG_STATUS <<\_ACEOF
18429
18430 ac_cs_usage="\
18431 \`$as_me' instantiates files from templates according to the
18432 current configuration.
18433
18434 Usage: $0 [OPTIONS] [FILE]...
18435
18436   -h, --help       print this help, then exit
18437   -V, --version    print version number, then exit
18438   -q, --quiet      do not print progress messages
18439   -d, --debug      don't remove temporary files
18440       --recheck    update $as_me by reconfiguring in the same conditions
18441   --file=FILE[:TEMPLATE]
18442                    instantiate the configuration file FILE
18443   --header=FILE[:TEMPLATE]
18444                    instantiate the configuration header FILE
18445
18446 Configuration files:
18447 $config_files
18448
18449 Configuration headers:
18450 $config_headers
18451
18452 Configuration commands:
18453 $config_commands
18454
18455 Report bugs to <bug-autoconf@gnu.org>."
18456 _ACEOF
18457
18458 cat >>$CONFIG_STATUS <<_ACEOF
18459 ac_cs_version="\\
18460 config.status
18461 configured by $0, generated by GNU Autoconf 2.57,
18462   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18463
18464 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18465 Free Software Foundation, Inc.
18466 This config.status script is free software; the Free Software Foundation
18467 gives unlimited permission to copy, distribute and modify it."
18468 srcdir=$srcdir
18469 INSTALL="$INSTALL"
18470 _ACEOF
18471
18472 cat >>$CONFIG_STATUS <<\_ACEOF
18473 # If no file are specified by the user, then we need to provide default
18474 # value.  By we need to know if files were specified by the user.
18475 ac_need_defaults=:
18476 while test $# != 0
18477 do
18478   case $1 in
18479   --*=*)
18480     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18481     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18482     ac_shift=:
18483     ;;
18484   -*)
18485     ac_option=$1
18486     ac_optarg=$2
18487     ac_shift=shift
18488     ;;
18489   *) # This is not an option, so the user has probably given explicit
18490      # arguments.
18491      ac_option=$1
18492      ac_need_defaults=false;;
18493   esac
18494
18495   case $ac_option in
18496   # Handling of the options.
18497 _ACEOF
18498 cat >>$CONFIG_STATUS <<\_ACEOF
18499   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18500     ac_cs_recheck=: ;;
18501   --version | --vers* | -V )
18502     echo "$ac_cs_version"; exit 0 ;;
18503   --he | --h)
18504     # Conflict between --help and --header
18505     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18506 Try \`$0 --help' for more information." >&5
18507 echo "$as_me: error: ambiguous option: $1
18508 Try \`$0 --help' for more information." >&2;}
18509    { (exit 1); exit 1; }; };;
18510   --help | --hel | -h )
18511     echo "$ac_cs_usage"; exit 0 ;;
18512   --debug | --d* | -d )
18513     debug=: ;;
18514   --file | --fil | --fi | --f )
18515     $ac_shift
18516     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18517     ac_need_defaults=false;;
18518   --header | --heade | --head | --hea )
18519     $ac_shift
18520     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18521     ac_need_defaults=false;;
18522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18523   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18524     ac_cs_silent=: ;;
18525
18526   # This is an error.
18527   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18528 Try \`$0 --help' for more information." >&5
18529 echo "$as_me: error: unrecognized option: $1
18530 Try \`$0 --help' for more information." >&2;}
18531    { (exit 1); exit 1; }; } ;;
18532
18533   *) ac_config_targets="$ac_config_targets $1" ;;
18534
18535   esac
18536   shift
18537 done
18538
18539 ac_configure_extra_args=
18540
18541 if $ac_cs_silent; then
18542   exec 6>/dev/null
18543   ac_configure_extra_args="$ac_configure_extra_args --silent"
18544 fi
18545
18546 _ACEOF
18547 cat >>$CONFIG_STATUS <<_ACEOF
18548 if \$ac_cs_recheck; then
18549   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18550   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18551 fi
18552
18553 _ACEOF
18554
18555
18556
18557
18558
18559 cat >>$CONFIG_STATUS <<\_ACEOF
18560 for ac_config_target in $ac_config_targets
18561 do
18562   case "$ac_config_target" in
18563   # Handling of arguments.
18564   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18565   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18566   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18567   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18568   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18569   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18570   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18571   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18572   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18573   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18574   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18575   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18576   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18577   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18578   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18579   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18580   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18581   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18582   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18583   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18584   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18585   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18586   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18587   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18588   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18589   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18590   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18591   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18592   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18593   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18594   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18595   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18596   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18597   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18598   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18599   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18600   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18601   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18602   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18603   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18604   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18605   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18606   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18607   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18608   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18609   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18610   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18611   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18612   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18613   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18614   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18615   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18616   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18617   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18618   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18619   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18620   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18621   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18622   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18623   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18624   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18625   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18626   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18627   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18628   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18629   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18630   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18631   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18632   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18633   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18634   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18635   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18636   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18637   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18638   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18639   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18640   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18641   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18642   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18643 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18644    { (exit 1); exit 1; }; };;
18645   esac
18646 done
18647
18648 # If the user did not use the arguments to specify the items to instantiate,
18649 # then the envvar interface is used.  Set only those that are not.
18650 # We use the long form for the default assignment because of an extremely
18651 # bizarre bug on SunOS 4.1.3.
18652 if $ac_need_defaults; then
18653   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18654   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18655   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18656 fi
18657
18658 # Have a temporary directory for convenience.  Make it in the build tree
18659 # simply because there is no reason to put it here, and in addition,
18660 # creating and moving files from /tmp can sometimes cause problems.
18661 # Create a temporary directory, and hook for its removal unless debugging.
18662 $debug ||
18663 {
18664   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18665   trap '{ (exit 1); exit 1; }' 1 2 13 15
18666 }
18667
18668 # Create a (secure) tmp directory for tmp files.
18669
18670 {
18671   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18672   test -n "$tmp" && test -d "$tmp"
18673 }  ||
18674 {
18675   tmp=./confstat$$-$RANDOM
18676   (umask 077 && mkdir $tmp)
18677 } ||
18678 {
18679    echo "$me: cannot create a temporary directory in ." >&2
18680    { (exit 1); exit 1; }
18681 }
18682
18683 _ACEOF
18684
18685 cat >>$CONFIG_STATUS <<_ACEOF
18686
18687 #
18688 # CONFIG_FILES section.
18689 #
18690
18691 # No need to generate the scripts if there are no CONFIG_FILES.
18692 # This happens for instance when ./config.status config.h
18693 if test -n "\$CONFIG_FILES"; then
18694   # Protect against being on the right side of a sed subst in config.status.
18695   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18696    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18697 s,@SHELL@,$SHELL,;t t
18698 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18699 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18700 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18701 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18702 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18703 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18704 s,@exec_prefix@,$exec_prefix,;t t
18705 s,@prefix@,$prefix,;t t
18706 s,@program_transform_name@,$program_transform_name,;t t
18707 s,@bindir@,$bindir,;t t
18708 s,@sbindir@,$sbindir,;t t
18709 s,@libexecdir@,$libexecdir,;t t
18710 s,@datadir@,$datadir,;t t
18711 s,@sysconfdir@,$sysconfdir,;t t
18712 s,@sharedstatedir@,$sharedstatedir,;t t
18713 s,@localstatedir@,$localstatedir,;t t
18714 s,@libdir@,$libdir,;t t
18715 s,@includedir@,$includedir,;t t
18716 s,@oldincludedir@,$oldincludedir,;t t
18717 s,@infodir@,$infodir,;t t
18718 s,@mandir@,$mandir,;t t
18719 s,@build_alias@,$build_alias,;t t
18720 s,@host_alias@,$host_alias,;t t
18721 s,@target_alias@,$target_alias,;t t
18722 s,@DEFS@,$DEFS,;t t
18723 s,@ECHO_C@,$ECHO_C,;t t
18724 s,@ECHO_N@,$ECHO_N,;t t
18725 s,@ECHO_T@,$ECHO_T,;t t
18726 s,@LIBS@,$LIBS,;t t
18727 s,@BUILD_DIR@,$BUILD_DIR,;t t
18728 s,@TRUEPRG@,$TRUEPRG,;t t
18729 s,@FALSEPRG@,$FALSEPRG,;t t
18730 s,@build@,$build,;t t
18731 s,@build_cpu@,$build_cpu,;t t
18732 s,@build_vendor@,$build_vendor,;t t
18733 s,@build_os@,$build_os,;t t
18734 s,@host@,$host,;t t
18735 s,@host_cpu@,$host_cpu,;t t
18736 s,@host_vendor@,$host_vendor,;t t
18737 s,@host_os@,$host_os,;t t
18738 s,@VERSION@,$VERSION,;t t
18739 s,@DATE@,$DATE,;t t
18740 s,@LSMDATE@,$LSMDATE,;t t
18741 s,@CC@,$CC,;t t
18742 s,@CFLAGS@,$CFLAGS,;t t
18743 s,@LDFLAGS@,$LDFLAGS,;t t
18744 s,@CPPFLAGS@,$CPPFLAGS,;t t
18745 s,@ac_ct_CC@,$ac_ct_CC,;t t
18746 s,@EXEEXT@,$EXEEXT,;t t
18747 s,@OBJEXT@,$OBJEXT,;t t
18748 s,@CXX@,$CXX,;t t
18749 s,@CXXFLAGS@,$CXXFLAGS,;t t
18750 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18751 s,@CPP@,$CPP,;t t
18752 s,@EGREP@,$EGREP,;t t
18753 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18754 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18755 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18756 s,@RANLIB@,$RANLIB,;t t
18757 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18758 s,@MV@,$MV,;t t
18759 s,@RM@,$RM,;t t
18760 s,@CP@,$CP,;t t
18761 s,@SED@,$SED,;t t
18762 s,@AWK@,$AWK,;t t
18763 s,@ECHO@,$ECHO,;t t
18764 s,@CMP@,$CMP,;t t
18765 s,@TBL@,$TBL,;t t
18766 s,@AR@,$AR,;t t
18767 s,@OPENSSL@,$OPENSSL,;t t
18768 s,@MTX@,$MTX,;t t
18769 s,@PKGCONFIG@,$PKGCONFIG,;t t
18770 s,@ARFLAGS@,$ARFLAGS,;t t
18771 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18772 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18773 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18774 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18775 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18776 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18777 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18778 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18779 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18780 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18781 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18782 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18783 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18784 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18785 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18786 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18787 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18788 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18789 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18790 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18791 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18792 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18793 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18794 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18795 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18796 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18797 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18798 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18799 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18800 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18801 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18802 s,@MSGFMT@,$MSGFMT,;t t
18803 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18804 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18805 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18806 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18807 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18808 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18809 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18810 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18811 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18812 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18813 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18814 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18815 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18816 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18817 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18818 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18819 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18820 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18821 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18822 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18823 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18824 s,@GNOME_DIR@,$GNOME_DIR,;t t
18825 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18826 s,@STATIC_FD@,$STATIC_FD,;t t
18827 s,@STATIC_SD@,$STATIC_SD,;t t
18828 s,@STATIC_DIR@,$STATIC_DIR,;t t
18829 s,@STATIC_CONS@,$STATIC_CONS,;t t
18830 s,@ALL_DIRS@,$ALL_DIRS,;t t
18831 s,@CONS_INC@,$CONS_INC,;t t
18832 s,@CONS_OBJ@,$CONS_OBJ,;t t
18833 s,@CONS_SRC@,$CONS_SRC,;t t
18834 s,@CONS_LIBS@,$CONS_LIBS,;t t
18835 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18836 s,@READLINE_SRC@,$READLINE_SRC,;t t
18837 s,@working_dir@,$working_dir,;t t
18838 s,@scriptdir@,$scriptdir,;t t
18839 s,@dump_email@,$dump_email,;t t
18840 s,@job_email@,$job_email,;t t
18841 s,@smtp_host@,$smtp_host,;t t
18842 s,@piddir@,$piddir,;t t
18843 s,@subsysdir@,$subsysdir,;t t
18844 s,@baseport@,$baseport,;t t
18845 s,@dir_port@,$dir_port,;t t
18846 s,@fd_port@,$fd_port,;t t
18847 s,@sd_port@,$sd_port,;t t
18848 s,@dir_password@,$dir_password,;t t
18849 s,@fd_password@,$fd_password,;t t
18850 s,@sd_password@,$sd_password,;t t
18851 s,@dir_user@,$dir_user,;t t
18852 s,@dir_group@,$dir_group,;t t
18853 s,@sd_user@,$sd_user,;t t
18854 s,@sd_group@,$sd_group,;t t
18855 s,@fd_user@,$fd_user,;t t
18856 s,@fd_group@,$fd_group,;t t
18857 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18858 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18859 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18860 s,@cats@,$cats,;t t
18861 s,@DB_NAME@,$DB_NAME,;t t
18862 s,@GETCONF@,$GETCONF,;t t
18863 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18864 s,@X_CFLAGS@,$X_CFLAGS,;t t
18865 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18866 s,@X_LIBS@,$X_LIBS,;t t
18867 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18868 s,@LIBOBJS@,$LIBOBJS,;t t
18869 s,@ALLOCA@,$ALLOCA,;t t
18870 s,@FDLIBS@,$FDLIBS,;t t
18871 s,@DEBUG@,$DEBUG,;t t
18872 s,@DINCLUDE@,$DINCLUDE,;t t
18873 s,@DLIB@,$DLIB,;t t
18874 s,@DB_LIBS@,$DB_LIBS,;t t
18875 s,@WCFLAGS@,$WCFLAGS,;t t
18876 s,@WLDFLAGS@,$WLDFLAGS,;t t
18877 s,@OBJLIST@,$OBJLIST,;t t
18878 s,@hostname@,$hostname,;t t
18879 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18880 s,@PSCMD@,$PSCMD,;t t
18881 s,@WIN32@,$WIN32,;t t
18882 s,@DISTNAME@,$DISTNAME,;t t
18883 s,@DISTVER@,$DISTVER,;t t
18884 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18885 /@MCOMMON@/r $MCOMMON
18886 s,@MCOMMON@,,;t t
18887 CEOF
18888
18889 _ACEOF
18890
18891   cat >>$CONFIG_STATUS <<\_ACEOF
18892   # Split the substitutions into bite-sized pieces for seds with
18893   # small command number limits, like on Digital OSF/1 and HP-UX.
18894   ac_max_sed_lines=48
18895   ac_sed_frag=1 # Number of current file.
18896   ac_beg=1 # First line for current file.
18897   ac_end=$ac_max_sed_lines # Line after last line for current file.
18898   ac_more_lines=:
18899   ac_sed_cmds=
18900   while $ac_more_lines; do
18901     if test $ac_beg -gt 1; then
18902       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18903     else
18904       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18905     fi
18906     if test ! -s $tmp/subs.frag; then
18907       ac_more_lines=false
18908     else
18909       # The purpose of the label and of the branching condition is to
18910       # speed up the sed processing (if there are no `@' at all, there
18911       # is no need to browse any of the substitutions).
18912       # These are the two extra sed commands mentioned above.
18913       (echo ':t
18914   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18915       if test -z "$ac_sed_cmds"; then
18916         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18917       else
18918         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18919       fi
18920       ac_sed_frag=`expr $ac_sed_frag + 1`
18921       ac_beg=$ac_end
18922       ac_end=`expr $ac_end + $ac_max_sed_lines`
18923     fi
18924   done
18925   if test -z "$ac_sed_cmds"; then
18926     ac_sed_cmds=cat
18927   fi
18928 fi # test -n "$CONFIG_FILES"
18929
18930 _ACEOF
18931 cat >>$CONFIG_STATUS <<\_ACEOF
18932 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18933   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18934   case $ac_file in
18935   - | *:- | *:-:* ) # input from stdin
18936         cat >$tmp/stdin
18937         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18938         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18939   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18940         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18941   * )   ac_file_in=$ac_file.in ;;
18942   esac
18943
18944   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18945   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18947          X"$ac_file" : 'X\(//\)[^/]' \| \
18948          X"$ac_file" : 'X\(//\)$' \| \
18949          X"$ac_file" : 'X\(/\)' \| \
18950          .     : '\(.\)' 2>/dev/null ||
18951 echo X"$ac_file" |
18952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18953           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18954           /^X\(\/\/\)$/{ s//\1/; q; }
18955           /^X\(\/\).*/{ s//\1/; q; }
18956           s/.*/./; q'`
18957   { if $as_mkdir_p; then
18958     mkdir -p "$ac_dir"
18959   else
18960     as_dir="$ac_dir"
18961     as_dirs=
18962     while test ! -d "$as_dir"; do
18963       as_dirs="$as_dir $as_dirs"
18964       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18966          X"$as_dir" : 'X\(//\)[^/]' \| \
18967          X"$as_dir" : 'X\(//\)$' \| \
18968          X"$as_dir" : 'X\(/\)' \| \
18969          .     : '\(.\)' 2>/dev/null ||
18970 echo X"$as_dir" |
18971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18972           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18973           /^X\(\/\/\)$/{ s//\1/; q; }
18974           /^X\(\/\).*/{ s//\1/; q; }
18975           s/.*/./; q'`
18976     done
18977     test ! -n "$as_dirs" || mkdir $as_dirs
18978   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18979 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18980    { (exit 1); exit 1; }; }; }
18981
18982   ac_builddir=.
18983
18984 if test "$ac_dir" != .; then
18985   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18986   # A "../" for each directory in $ac_dir_suffix.
18987   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18988 else
18989   ac_dir_suffix= ac_top_builddir=
18990 fi
18991
18992 case $srcdir in
18993   .)  # No --srcdir option.  We are building in place.
18994     ac_srcdir=.
18995     if test -z "$ac_top_builddir"; then
18996        ac_top_srcdir=.
18997     else
18998        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18999     fi ;;
19000   [\\/]* | ?:[\\/]* )  # Absolute path.
19001     ac_srcdir=$srcdir$ac_dir_suffix;
19002     ac_top_srcdir=$srcdir ;;
19003   *) # Relative path.
19004     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19005     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19006 esac
19007 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19008 # absolute.
19009 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19010 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19011 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19012 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19013
19014
19015   case $INSTALL in
19016   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19017   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19018   esac
19019
19020   if test x"$ac_file" != x-; then
19021     { echo "$as_me:$LINENO: creating $ac_file" >&5
19022 echo "$as_me: creating $ac_file" >&6;}
19023     rm -f "$ac_file"
19024   fi
19025   # Let's still pretend it is `configure' which instantiates (i.e., don't
19026   # use $as_me), people would be surprised to read:
19027   #    /* config.h.  Generated by config.status.  */
19028   if test x"$ac_file" = x-; then
19029     configure_input=
19030   else
19031     configure_input="$ac_file.  "
19032   fi
19033   configure_input=$configure_input"Generated from `echo $ac_file_in |
19034                                      sed 's,.*/,,'` by configure."
19035
19036   # First look for the input files in the build tree, otherwise in the
19037   # src tree.
19038   ac_file_inputs=`IFS=:
19039     for f in $ac_file_in; do
19040       case $f in
19041       -) echo $tmp/stdin ;;
19042       [\\/$]*)
19043          # Absolute (can't be DOS-style, as IFS=:)
19044          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19045 echo "$as_me: error: cannot find input file: $f" >&2;}
19046    { (exit 1); exit 1; }; }
19047          echo $f;;
19048       *) # Relative
19049          if test -f "$f"; then
19050            # Build tree
19051            echo $f
19052          elif test -f "$srcdir/$f"; then
19053            # Source tree
19054            echo $srcdir/$f
19055          else
19056            # /dev/null tree
19057            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19058 echo "$as_me: error: cannot find input file: $f" >&2;}
19059    { (exit 1); exit 1; }; }
19060          fi;;
19061       esac
19062     done` || { (exit 1); exit 1; }
19063 _ACEOF
19064 cat >>$CONFIG_STATUS <<_ACEOF
19065   sed "$ac_vpsub
19066 $extrasub
19067 _ACEOF
19068 cat >>$CONFIG_STATUS <<\_ACEOF
19069 :t
19070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19071 s,@configure_input@,$configure_input,;t t
19072 s,@srcdir@,$ac_srcdir,;t t
19073 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19074 s,@top_srcdir@,$ac_top_srcdir,;t t
19075 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19076 s,@builddir@,$ac_builddir,;t t
19077 s,@abs_builddir@,$ac_abs_builddir,;t t
19078 s,@top_builddir@,$ac_top_builddir,;t t
19079 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19080 s,@INSTALL@,$ac_INSTALL,;t t
19081 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19082   rm -f $tmp/stdin
19083   if test x"$ac_file" != x-; then
19084     mv $tmp/out $ac_file
19085   else
19086     cat $tmp/out
19087     rm -f $tmp/out
19088   fi
19089
19090 done
19091 _ACEOF
19092 cat >>$CONFIG_STATUS <<\_ACEOF
19093
19094 #
19095 # CONFIG_HEADER section.
19096 #
19097
19098 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19099 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19100 #
19101 # ac_d sets the value in "#define NAME VALUE" lines.
19102 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19103 ac_dB='[        ].*$,\1#\2'
19104 ac_dC=' '
19105 ac_dD=',;t'
19106 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19107 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19108 ac_uB='$,\1#\2define\3'
19109 ac_uC=' '
19110 ac_uD=',;t'
19111
19112 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19113   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19114   case $ac_file in
19115   - | *:- | *:-:* ) # input from stdin
19116         cat >$tmp/stdin
19117         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19118         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19119   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19120         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19121   * )   ac_file_in=$ac_file.in ;;
19122   esac
19123
19124   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19125 echo "$as_me: creating $ac_file" >&6;}
19126
19127   # First look for the input files in the build tree, otherwise in the
19128   # src tree.
19129   ac_file_inputs=`IFS=:
19130     for f in $ac_file_in; do
19131       case $f in
19132       -) echo $tmp/stdin ;;
19133       [\\/$]*)
19134          # Absolute (can't be DOS-style, as IFS=:)
19135          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19136 echo "$as_me: error: cannot find input file: $f" >&2;}
19137    { (exit 1); exit 1; }; }
19138          echo $f;;
19139       *) # Relative
19140          if test -f "$f"; then
19141            # Build tree
19142            echo $f
19143          elif test -f "$srcdir/$f"; then
19144            # Source tree
19145            echo $srcdir/$f
19146          else
19147            # /dev/null tree
19148            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19149 echo "$as_me: error: cannot find input file: $f" >&2;}
19150    { (exit 1); exit 1; }; }
19151          fi;;
19152       esac
19153     done` || { (exit 1); exit 1; }
19154   # Remove the trailing spaces.
19155   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19156
19157 _ACEOF
19158
19159 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19160 # `conftest.undefs', that substitutes the proper values into
19161 # config.h.in to produce config.h.  The first handles `#define'
19162 # templates, and the second `#undef' templates.
19163 # And first: Protect against being on the right side of a sed subst in
19164 # config.status.  Protect against being in an unquoted here document
19165 # in config.status.
19166 rm -f conftest.defines conftest.undefs
19167 # Using a here document instead of a string reduces the quoting nightmare.
19168 # Putting comments in sed scripts is not portable.
19169 #
19170 # `end' is used to avoid that the second main sed command (meant for
19171 # 0-ary CPP macros) applies to n-ary macro definitions.
19172 # See the Autoconf documentation for `clear'.
19173 cat >confdef2sed.sed <<\_ACEOF
19174 s/[\\&,]/\\&/g
19175 s,[\\$`],\\&,g
19176 t clear
19177 : clear
19178 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19179 t end
19180 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19181 : end
19182 _ACEOF
19183 # If some macros were called several times there might be several times
19184 # the same #defines, which is useless.  Nevertheless, we may not want to
19185 # sort them, since we want the *last* AC-DEFINE to be honored.
19186 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19187 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19188 rm -f confdef2sed.sed
19189
19190 # This sed command replaces #undef with comments.  This is necessary, for
19191 # example, in the case of _POSIX_SOURCE, which is predefined and required
19192 # on some systems where configure will not decide to define it.
19193 cat >>conftest.undefs <<\_ACEOF
19194 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19195 _ACEOF
19196
19197 # Break up conftest.defines because some shells have a limit on the size
19198 # of here documents, and old seds have small limits too (100 cmds).
19199 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19200 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19201 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19202 echo '  :' >>$CONFIG_STATUS
19203 rm -f conftest.tail
19204 while grep . conftest.defines >/dev/null
19205 do
19206   # Write a limited-size here document to $tmp/defines.sed.
19207   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19208   # Speed up: don't consider the non `#define' lines.
19209   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19210   # Work around the forget-to-reset-the-flag bug.
19211   echo 't clr' >>$CONFIG_STATUS
19212   echo ': clr' >>$CONFIG_STATUS
19213   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19214   echo 'CEOF
19215   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19216   rm -f $tmp/in
19217   mv $tmp/out $tmp/in
19218 ' >>$CONFIG_STATUS
19219   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19220   rm -f conftest.defines
19221   mv conftest.tail conftest.defines
19222 done
19223 rm -f conftest.defines
19224 echo '  fi # grep' >>$CONFIG_STATUS
19225 echo >>$CONFIG_STATUS
19226
19227 # Break up conftest.undefs because some shells have a limit on the size
19228 # of here documents, and old seds have small limits too (100 cmds).
19229 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19230 rm -f conftest.tail
19231 while grep . conftest.undefs >/dev/null
19232 do
19233   # Write a limited-size here document to $tmp/undefs.sed.
19234   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19235   # Speed up: don't consider the non `#undef'
19236   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19237   # Work around the forget-to-reset-the-flag bug.
19238   echo 't clr' >>$CONFIG_STATUS
19239   echo ': clr' >>$CONFIG_STATUS
19240   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19241   echo 'CEOF
19242   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19243   rm -f $tmp/in
19244   mv $tmp/out $tmp/in
19245 ' >>$CONFIG_STATUS
19246   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19247   rm -f conftest.undefs
19248   mv conftest.tail conftest.undefs
19249 done
19250 rm -f conftest.undefs
19251
19252 cat >>$CONFIG_STATUS <<\_ACEOF
19253   # Let's still pretend it is `configure' which instantiates (i.e., don't
19254   # use $as_me), people would be surprised to read:
19255   #    /* config.h.  Generated by config.status.  */
19256   if test x"$ac_file" = x-; then
19257     echo "/* Generated by configure.  */" >$tmp/config.h
19258   else
19259     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19260   fi
19261   cat $tmp/in >>$tmp/config.h
19262   rm -f $tmp/in
19263   if test x"$ac_file" != x-; then
19264     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19265       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19266 echo "$as_me: $ac_file is unchanged" >&6;}
19267     else
19268       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19269 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19270          X"$ac_file" : 'X\(//\)[^/]' \| \
19271          X"$ac_file" : 'X\(//\)$' \| \
19272          X"$ac_file" : 'X\(/\)' \| \
19273          .     : '\(.\)' 2>/dev/null ||
19274 echo X"$ac_file" |
19275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19277           /^X\(\/\/\)$/{ s//\1/; q; }
19278           /^X\(\/\).*/{ s//\1/; q; }
19279           s/.*/./; q'`
19280       { if $as_mkdir_p; then
19281     mkdir -p "$ac_dir"
19282   else
19283     as_dir="$ac_dir"
19284     as_dirs=
19285     while test ! -d "$as_dir"; do
19286       as_dirs="$as_dir $as_dirs"
19287       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19289          X"$as_dir" : 'X\(//\)[^/]' \| \
19290          X"$as_dir" : 'X\(//\)$' \| \
19291          X"$as_dir" : 'X\(/\)' \| \
19292          .     : '\(.\)' 2>/dev/null ||
19293 echo X"$as_dir" |
19294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19295           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19296           /^X\(\/\/\)$/{ s//\1/; q; }
19297           /^X\(\/\).*/{ s//\1/; q; }
19298           s/.*/./; q'`
19299     done
19300     test ! -n "$as_dirs" || mkdir $as_dirs
19301   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19302 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19303    { (exit 1); exit 1; }; }; }
19304
19305       rm -f $ac_file
19306       mv $tmp/config.h $ac_file
19307     fi
19308   else
19309     cat $tmp/config.h
19310     rm -f $tmp/config.h
19311   fi
19312 done
19313 _ACEOF
19314 cat >>$CONFIG_STATUS <<\_ACEOF
19315
19316 #
19317 # CONFIG_COMMANDS section.
19318 #
19319 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19320   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19321   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19322   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19323 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19324          X"$ac_dest" : 'X\(//\)[^/]' \| \
19325          X"$ac_dest" : 'X\(//\)$' \| \
19326          X"$ac_dest" : 'X\(/\)' \| \
19327          .     : '\(.\)' 2>/dev/null ||
19328 echo X"$ac_dest" |
19329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19331           /^X\(\/\/\)$/{ s//\1/; q; }
19332           /^X\(\/\).*/{ s//\1/; q; }
19333           s/.*/./; q'`
19334   ac_builddir=.
19335
19336 if test "$ac_dir" != .; then
19337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19338   # A "../" for each directory in $ac_dir_suffix.
19339   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19340 else
19341   ac_dir_suffix= ac_top_builddir=
19342 fi
19343
19344 case $srcdir in
19345   .)  # No --srcdir option.  We are building in place.
19346     ac_srcdir=.
19347     if test -z "$ac_top_builddir"; then
19348        ac_top_srcdir=.
19349     else
19350        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19351     fi ;;
19352   [\\/]* | ?:[\\/]* )  # Absolute path.
19353     ac_srcdir=$srcdir$ac_dir_suffix;
19354     ac_top_srcdir=$srcdir ;;
19355   *) # Relative path.
19356     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19357     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19358 esac
19359 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19360 # absolute.
19361 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19362 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19363 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19364 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19365
19366
19367   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19368 echo "$as_me: executing $ac_dest commands" >&6;}
19369   case $ac_dest in
19370     default ) (echo "Doing make of dependencies"; make depend;)
19371  ;;
19372   esac
19373 done
19374 _ACEOF
19375
19376 cat >>$CONFIG_STATUS <<\_ACEOF
19377
19378 { (exit 0); exit 0; }
19379 _ACEOF
19380 chmod +x $CONFIG_STATUS
19381 ac_clean_files=$ac_clean_files_save
19382
19383
19384 # configure is writing to config.log, and then calls config.status.
19385 # config.status does its own redirection, appending to config.log.
19386 # Unfortunately, on DOS this fails, as config.log is still kept open
19387 # by configure, so config.status won't be able to write to it; its
19388 # output is simply discarded.  So we exec the FD to /dev/null,
19389 # effectively closing config.log, so it can be properly (re)opened and
19390 # appended to by config.status.  When coming back to configure, we
19391 # need to make the FD available again.
19392 if test "$no_create" != yes; then
19393   ac_cs_success=:
19394   ac_config_status_args=
19395   test "$silent" = yes &&
19396     ac_config_status_args="$ac_config_status_args --quiet"
19397   exec 5>/dev/null
19398   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19399   exec 5>>config.log
19400   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19401   # would make configure fail if this is the last instruction.
19402   $ac_cs_success || { (exit 1); exit 1; }
19403 fi
19404
19405
19406 cd scripts
19407 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19408 chmod 755 bconsole gconsole mtx-changer
19409 cd ..
19410
19411 c=src/cats
19412
19413 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19414 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19415
19416 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19417 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19418
19419 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19420 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19421
19422 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19423 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19424
19425 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19426 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19427
19428 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19429 chmod 755 $c/sqlite
19430 chmod 755 $c/mysql
19431
19432 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19433    largefile_support="yes"
19434 fi
19435
19436 #
19437 # A whole lot of hand springs to get the compiler version.
19438 #  This is because gcc changed the output in version 3.0
19439 #
19440 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19441 if test "x${CCVERSION}" = "x" ; then
19442   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19443 fi
19444 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19445 if test x"${CXXVERSION}" = x ; then
19446   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19447 fi
19448
19449 if test "x${subsysdir}" = "x${sbindir}" ; then
19450    echo " "
19451    echo " "
19452    echo "You have set --sbindir and --with-subsys-dir"
19453    echo "  both equal to: ${subsysdir} "
19454    echo "  This is not permitted. Please reconfigure."
19455    echo "Aborting configuration ..."
19456    echo " "
19457    echo " "
19458    exit 1
19459 fi
19460
19461 echo "
19462 Configuration on `date`:
19463
19464   Host:                       $host -- ${DISTNAME} ${DISTVER}
19465   Bacula version:             ${VERSION} (${DATE})
19466   Source code location:       ${srcdir}
19467   Install binaries:           ${sbindir}
19468   Install config files:       ${sysconfdir}
19469   Scripts directory:          ${scriptdir}
19470   Working directory:          ${working_dir}
19471   PID directory:              ${piddir}
19472   Subsys directory:           ${subsysdir}
19473   C Compiler:                 ${CC} ${CCVERSION}
19474   C++ Compiler:               ${CXX} ${CXXVERSION}
19475   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19476   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19477   Libraries:                  ${LIBS}
19478   Statically Linked Tools:    ${support_static_tools}
19479   Statically Linked FD:       ${support_static_fd}
19480   Statically Linked SD:       ${support_static_sd}
19481   Statically Linked DIR:      ${support_static_dir}
19482   Statically Linked CONS:     ${support_static_cons}
19483   Database type:              ${db_name}
19484   Database lib:               ${DB_LIBS}
19485
19486   Job Output Email:           ${job_email}
19487   Traceback Email:            ${dump_email}
19488   SMTP Host Address:          ${smtp_host}
19489
19490   Director Port:              ${dir_port}
19491   File daemon Port:           ${fd_port}
19492   Storage daemon Port:        ${sd_port}
19493
19494   Director User:              ${dir_user}
19495   Director Group:             ${dir_group}
19496   Storage Daemon User:        ${dir_user}
19497   Storage DaemonGroup:        ${dir_group}
19498   File Daemon User:           ${dir_user}
19499   File Daemon Group:          ${dir_group}
19500
19501   SQL binaries Directory      ${SQL_BINDIR}
19502
19503   Large file support:         $largefile_support
19504   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19505   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19506   TCP Wrappers support:       ${TCPW_MSG}
19507   ZLIB support:               ${have_zlib}
19508   enable-smartalloc:          ${support_smartalloc}
19509   enable-gnome:               ${support_gnome} ${gnome_version}
19510   client-only:                ${build_client_only}
19511
19512   " > config.out
19513
19514 cat config.out
19515
19516 # old stuff
19517 # cweb support:               ${got_cweb} ${CWEB_SRC}
19518 # gmp support:                ${got_gmp} ${GMP_SRC}