]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add Scott's gnome helper targets
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-conio            disable conio support enabled
867
868   --disable-readline      disable readline support disable
869
870   --disable-largefile     omit support for large files
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-gnome-includes   Specify location of GNOME headers
876   --with-gnome-libs       Specify location of GNOME libs
877   --with-gnome            Specify prefix for GNOME files
878  --with-readline=DIR             specify readline library directory
879   --with-tcp-wrappers=DIR        enable tcpwrappers support
880   --with-working-dir=PATH        specify path of Bacula working directory
881   --with-scriptdir=PATH    specify path of Bacula scripts directory
882   --with-dump-email=EMAIL        dump email address
883   --with-job-email=EMAIL         job output email address
884   --with-smtp-host=HOST          SMTP mail host address
885   --with-pid-dir=PATH            specify location of Bacula pid files
886   --with-subsys-dir=PATH         specify location of Bacula subsys file
887   --with-baseport=PORT           specify base port address for daemons
888   --with-dir-password=PASSWORD   specify Director's password
889   --with-fd-password=PASSWORD    specify Client's password
890   --with-sd-password=PASSWORD    specify Storage daemon's password
891   --with-dir-user=USER           specify user for Director daemon
892   --with-dir-group=GROUP                 specify group for Director daemon
893   --with-sd-user=USER            specify user for Storage daemon
894   --with-sd-group=GROUP          specify group for Storage daemon
895   --with-fd-user=USER            specify user for File daemon
896   --with-fd-group=GROUP          specify group for File daemon
897   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
898                           base install directory, defaults to /usr/local/pgsql
899
900   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
901                           install directory, default is to search through
902                           a number of common places for the MySQL files.
903
904   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
905                           install directory, default is to search through
906                           a number of common places for the MySQL files.
907
908   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
909                           install directory, default is to search through
910                           a number of common places for the SQLite files.
911   --with-x                use the X Window System
912
913 Some influential environment variables:
914   CC          C compiler command
915   CFLAGS      C compiler flags
916   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
917               nonstandard directory <lib dir>
918   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
919               headers in a nonstandard directory <include dir>
920   CXX         C++ compiler command
921   CXXFLAGS    C++ compiler flags
922   CPP         C preprocessor
923
924 Use these variables to override the choices made by `configure' or to help
925 it to find libraries and programs with nonstandard names/locations.
926
927 _ACEOF
928 fi
929
930 if test "$ac_init_help" = "recursive"; then
931   # If there are subdirs, report their specific --help.
932   ac_popdir=`pwd`
933   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
934     test -d $ac_dir || continue
935     ac_builddir=.
936
937 if test "$ac_dir" != .; then
938   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
939   # A "../" for each directory in $ac_dir_suffix.
940   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 else
942   ac_dir_suffix= ac_top_builddir=
943 fi
944
945 case $srcdir in
946   .)  # No --srcdir option.  We are building in place.
947     ac_srcdir=.
948     if test -z "$ac_top_builddir"; then
949        ac_top_srcdir=.
950     else
951        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952     fi ;;
953   [\\/]* | ?:[\\/]* )  # Absolute path.
954     ac_srcdir=$srcdir$ac_dir_suffix;
955     ac_top_srcdir=$srcdir ;;
956   *) # Relative path.
957     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
958     ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 esac
960 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 # absolute.
962 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
963 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
964 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
965 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
966
967     cd $ac_dir
968     # Check for guested configure; otherwise get Cygnus style configure.
969     if test -f $ac_srcdir/configure.gnu; then
970       echo
971       $SHELL $ac_srcdir/configure.gnu  --help=recursive
972     elif test -f $ac_srcdir/configure; then
973       echo
974       $SHELL $ac_srcdir/configure  --help=recursive
975     elif test -f $ac_srcdir/configure.ac ||
976            test -f $ac_srcdir/configure.in; then
977       echo
978       $ac_configure --help
979     else
980       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981     fi
982     cd $ac_popdir
983   done
984 fi
985
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988   cat <<\_ACEOF
989
990 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
991 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995   exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.57.  Invocation command line was
1004
1005   $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036   IFS=$as_save_IFS
1037   test -z "$as_dir" && as_dir=.
1038   echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065   for ac_arg
1066   do
1067     case $ac_arg in
1068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070     | -silent | --silent | --silen | --sile | --sil)
1071       continue ;;
1072     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074     esac
1075     case $ac_pass in
1076     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077     2)
1078       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079       if test $ac_must_keep_next = true; then
1080         ac_must_keep_next=false # Got value, back to normal.
1081       else
1082         case $ac_arg in
1083           *=* | --config-cache | -C | -disable-* | --disable-* \
1084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086           | -with-* | --with-* | -without-* | --without-* | --x)
1087             case "$ac_configure_args0 " in
1088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089             esac
1090             ;;
1091           -* ) ac_must_keep_next=true ;;
1092         esac
1093       fi
1094       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095       # Get rid of the leading space.
1096       ac_sep=" "
1097       ;;
1098     esac
1099   done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log.  We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110   # Save into config.log some information that might help in debugging.
1111   {
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119     echo
1120     # The following way of writing the cache mishandles newlines in values,
1121 {
1122   (set) 2>&1 |
1123     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124     *ac_space=\ *)
1125       sed -n \
1126         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128       ;;
1129     *)
1130       sed -n \
1131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132       ;;
1133     esac;
1134 }
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142     echo
1143     for ac_var in $ac_subst_vars
1144     do
1145       eval ac_val=$`echo $ac_var`
1146       echo "$ac_var='"'"'$ac_val'"'"'"
1147     done | sort
1148     echo
1149
1150     if test -n "$ac_subst_files"; then
1151       cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156       echo
1157       for ac_var in $ac_subst_files
1158       do
1159         eval ac_val=$`echo $ac_var`
1160         echo "$ac_var='"'"'$ac_val'"'"'"
1161       done | sort
1162       echo
1163     fi
1164
1165     if test -s confdefs.h; then
1166       cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171       echo
1172       sed "/^$/d" confdefs.h | sort
1173       echo
1174     fi
1175     test "$ac_signal" != 0 &&
1176       echo "$as_me: caught signal $ac_signal"
1177     echo "$as_me: exit $exit_status"
1178   } >&5
1179   rm -f core core.* *.core &&
1180   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181     exit $exit_status
1182      ' 0
1183 for ac_signal in 1 2 13 15; do
1184   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223   if test "x$prefix" != xNONE; then
1224     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225   else
1226     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227   fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230   if test -r "$ac_site_file"; then
1231     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233     sed 's/^/| /' "$ac_site_file" >&5
1234     . "$ac_site_file"
1235   fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239   # Some versions of bash will fail to source /dev/null (special
1240   # files actually), so we avoid doing that.
1241   if test -f "$cache_file"; then
1242     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244     case $cache_file in
1245       [\\/]* | ?:[\\/]* ) . $cache_file;;
1246       *)                      . ./$cache_file;;
1247     esac
1248   fi
1249 else
1250   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252   >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261   eval ac_new_set=\$ac_env_${ac_var}_set
1262   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263   eval ac_new_val="\$ac_env_${ac_var}_value"
1264   case $ac_old_set,$ac_new_set in
1265     set,)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,set)
1270       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272       ac_cache_corrupted=: ;;
1273     ,);;
1274     *)
1275       if test "x$ac_old_val" != "x$ac_new_val"; then
1276         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279 echo "$as_me:   former value:  $ac_old_val" >&2;}
1280         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281 echo "$as_me:   current value: $ac_new_val" >&2;}
1282         ac_cache_corrupted=:
1283       fi;;
1284   esac
1285   # Pass precious variables to config.status.
1286   if test "$ac_new_set" = set; then
1287     case $ac_new_val in
1288     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290     *) ac_arg=$ac_var=$ac_new_val ;;
1291     esac
1292     case " $ac_configure_args " in
1293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295     esac
1296   fi
1297 done
1298 if $ac_cache_corrupted; then
1299   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 BUILD_DIR=`pwd`
1331 cd ..
1332 TOP_DIR=`pwd`
1333 cd ${BUILD_DIR}
1334
1335 ac_aux_dir=
1336 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1337   if test -f $ac_dir/install-sh; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/install-sh -c"
1340     break
1341   elif test -f $ac_dir/install.sh; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/install.sh -c"
1344     break
1345   elif test -f $ac_dir/shtool; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/shtool install -c"
1348     break
1349   fi
1350 done
1351 if test -z "$ac_aux_dir"; then
1352   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1353 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1354    { (exit 1); exit 1; }; }
1355 fi
1356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359
1360           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1361
1362
1363
1364
1365
1366 for ac_prog in true
1367 do
1368   # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:$LINENO: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1373   echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375   case $TRUEPRG in
1376   [\\/]* | ?:[\\/]*)
1377   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1378   ;;
1379   *)
1380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 for as_dir in $PATH
1382 do
1383   IFS=$as_save_IFS
1384   test -z "$as_dir" && as_dir=.
1385   for ac_exec_ext in '' $ac_executable_extensions; do
1386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1389     break 2
1390   fi
1391 done
1392 done
1393
1394   ;;
1395 esac
1396 fi
1397 TRUEPRG=$ac_cv_path_TRUEPRG
1398
1399 if test -n "$TRUEPRG"; then
1400   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1401 echo "${ECHO_T}$TRUEPRG" >&6
1402 else
1403   echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1405 fi
1406
1407   test -n "$TRUEPRG" && break
1408 done
1409 test -n "$TRUEPRG" || TRUEPRG=":"
1410
1411 for ac_prog in false
1412 do
1413   # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   case $FALSEPRG in
1421   [\\/]* | ?:[\\/]*)
1422   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1423   ;;
1424   *)
1425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   for ac_exec_ext in '' $ac_executable_extensions; do
1431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434     break 2
1435   fi
1436 done
1437 done
1438
1439   ;;
1440 esac
1441 fi
1442 FALSEPRG=$ac_cv_path_FALSEPRG
1443
1444 if test -n "$FALSEPRG"; then
1445   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1446 echo "${ECHO_T}$FALSEPRG" >&6
1447 else
1448   echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452   test -n "$FALSEPRG" && break
1453 done
1454 test -n "$FALSEPRG" || FALSEPRG=":"
1455
1456
1457 # Make sure we can run config.sub.
1458 $ac_config_sub sun4 >/dev/null 2>&1 ||
1459   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1460 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 echo "$as_me:$LINENO: checking build system type" >&5
1464 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1465 if test "${ac_cv_build+set}" = set; then
1466   echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468   ac_cv_build_alias=$build_alias
1469 test -z "$ac_cv_build_alias" &&
1470   ac_cv_build_alias=`$ac_config_guess`
1471 test -z "$ac_cv_build_alias" &&
1472   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1473 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1474    { (exit 1); exit 1; }; }
1475 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1476   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1478    { (exit 1); exit 1; }; }
1479
1480 fi
1481 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1482 echo "${ECHO_T}$ac_cv_build" >&6
1483 build=$ac_cv_build
1484 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487
1488
1489 echo "$as_me:$LINENO: checking host system type" >&5
1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1491 if test "${ac_cv_host+set}" = set; then
1492   echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494   ac_cv_host_alias=$host_alias
1495 test -z "$ac_cv_host_alias" &&
1496   ac_cv_host_alias=$ac_cv_build_alias
1497 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1498   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1499 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 fi
1503 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1504 echo "${ECHO_T}$ac_cv_host" >&6
1505 host=$ac_cv_host
1506 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1509
1510
1511
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1516
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1856 /* confdefs.h.  */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h.  */
1861
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1874 # of exeext.
1875 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1876 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879   (eval $ac_link_default) 2>&5
1880   ac_status=$?
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); }; then
1883   # Find the output, starting from the most likely.  This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # resort.
1886
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 ac_cv_exeext=
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896         ;;
1897     conftest.$ac_ext )
1898         # This is the source file.
1899         ;;
1900     [ab].out )
1901         # We found the default executable, but exeext='' is most
1902         # certainly right.
1903         break;;
1904     *.* )
1905         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906         # FIXME: I believe we export ac_cv_exeext for Libtool,
1907         # but it would be cool to find out if it's true.  Does anybody
1908         # maintain Libtool? --akim.
1909         export ac_cv_exeext
1910         break;;
1911     * )
1912         break;;
1913   esac
1914 done
1915 else
1916   echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923    { (exit 77); exit 77; }; }
1924 fi
1925
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1929
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937   if { ac_try='./$ac_file'
1938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939   (eval $ac_try) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; }; then
1943     cross_compiling=no
1944   else
1945     if test "$cross_compiling" = maybe; then
1946         cross_compiling=yes
1947     else
1948         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955     fi
1956   fi
1957 fi
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1960
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run.  If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1969
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973   (eval $ac_link) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }; then
1977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 # `rm'.
1981 for ac_file in conftest.exe conftest conftest.*; do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986           export ac_cv_exeext
1987           break;;
1988     * ) break;;
1989   esac
1990 done
1991 else
1992   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2002
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2005 ac_exeext=$EXEEXT
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; then
2033   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034   case $ac_file in
2035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037        break;;
2038   esac
2039 done
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2056 ac_objext=$OBJEXT
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   cat >conftest.$ac_ext <<_ACEOF
2063 #line $LINENO "configure"
2064 /* confdefs.h.  */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h.  */
2069
2070 int
2071 main ()
2072 {
2073 #ifndef __GNUC__
2074        choke me
2075 #endif
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_compiler_gnu=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_compiler_gnu=no
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2102
2103 fi
2104 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2105 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2106 GCC=`test $ac_compiler_gnu = yes && echo yes`
2107 ac_test_CFLAGS=${CFLAGS+set}
2108 ac_save_CFLAGS=$CFLAGS
2109 CFLAGS="-g"
2110 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_g+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   cat >conftest.$ac_ext <<_ACEOF
2116 #line $LINENO "configure"
2117 /* confdefs.h.  */
2118 _ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h.  */
2122
2123 int
2124 main ()
2125 {
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133   (eval $ac_compile) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); } &&
2137          { ac_try='test -s conftest.$ac_objext'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; }; then
2143   ac_cv_prog_cc_g=yes
2144 else
2145   echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2147
2148 ac_cv_prog_cc_g=no
2149 fi
2150 rm -f conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2153 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2154 if test "$ac_test_CFLAGS" = set; then
2155   CFLAGS=$ac_save_CFLAGS
2156 elif test $ac_cv_prog_cc_g = yes; then
2157   if test "$GCC" = yes; then
2158     CFLAGS="-g -O2"
2159   else
2160     CFLAGS="-g"
2161   fi
2162 else
2163   if test "$GCC" = yes; then
2164     CFLAGS="-O2"
2165   else
2166     CFLAGS=
2167   fi
2168 fi
2169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   ac_cv_prog_cc_stdc=no
2175 ac_save_CC=$CC
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2178 /* confdefs.h.  */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h.  */
2183 #include <stdarg.h>
2184 #include <stdio.h>
2185 #include <sys/types.h>
2186 #include <sys/stat.h>
2187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2188 struct buf { int x; };
2189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2190 static char *e (p, i)
2191      char **p;
2192      int i;
2193 {
2194   return p[i];
2195 }
2196 static char *f (char * (*g) (char **, int), char **p, ...)
2197 {
2198   char *s;
2199   va_list v;
2200   va_start (v,p);
2201   s = g (p, va_arg (v,int));
2202   va_end (v);
2203   return s;
2204 }
2205 int test (int i, double x);
2206 struct s1 {int (*f) (int a);};
2207 struct s2 {int (*f) (double a);};
2208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2209 int argc;
2210 char **argv;
2211 int
2212 main ()
2213 {
2214 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 # Don't try gcc -ansi; that turns off useful extensions and
2220 # breaks some systems' header files.
2221 # AIX                   -qlanglvl=ansi
2222 # Ultrix and OSF/1      -std1
2223 # HP-UX 10.20 and later -Ae
2224 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2225 # SVR4                  -Xc -D__EXTENSIONS__
2226 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2227 do
2228   CC="$ac_save_CC $ac_arg"
2229   rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231   (eval $ac_compile) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); } &&
2235          { ac_try='test -s conftest.$ac_objext'
2236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237   (eval $ac_try) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241   ac_cv_prog_cc_stdc=$ac_arg
2242 break
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 fi
2248 rm -f conftest.$ac_objext
2249 done
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2251 CC=$ac_save_CC
2252
2253 fi
2254
2255 case "x$ac_cv_prog_cc_stdc" in
2256   x|xno)
2257     echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2259   *)
2260     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262     CC="$CC $ac_cv_prog_cc_stdc" ;;
2263 esac
2264
2265 # Some people use a C++ compiler to compile C.  Since we use `exit',
2266 # in C++ we need to declare it.  In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #ifndef __cplusplus
2271   choke me
2272 #endif
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   for ac_declaration in \
2287    ''\
2288    '#include <stdlib.h>' \
2289    'extern "C" void std::exit (int) throw (); using std::exit;' \
2290    'extern "C" void std::exit (int); using std::exit;' \
2291    'extern "C" void exit (int) throw ();' \
2292    'extern "C" void exit (int);' \
2293    'void exit (int);'
2294 do
2295   cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302 #include <stdlib.h>
2303 $ac_declaration
2304 int
2305 main ()
2306 {
2307 exit (42);
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -s conftest.$ac_objext'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324   :
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 continue
2330 fi
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2332   cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339 $ac_declaration
2340 int
2341 main ()
2342 {
2343 exit (42);
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350   (eval $ac_compile) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); } &&
2354          { ac_try='test -s conftest.$ac_objext'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360   break
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 fi
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 done
2368 rm -f conftest*
2369 if test -n "$ac_declaration"; then
2370   echo '#ifdef __cplusplus' >>confdefs.h
2371   echo $ac_declaration      >>confdefs.h
2372   echo '#endif'             >>confdefs.h
2373 fi
2374
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 fi
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_ext=c
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386
2387 ac_ext=cc
2388 ac_cpp='$CXXCPP $CPPFLAGS'
2389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2394   do
2395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CXX+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$CXX"; then
2403   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418
2419 fi
2420 fi
2421 CXX=$ac_cv_prog_CXX
2422 if test -n "$CXX"; then
2423   echo "$as_me:$LINENO: result: $CXX" >&5
2424 echo "${ECHO_T}$CXX" >&6
2425 else
2426   echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428 fi
2429
2430     test -n "$CXX" && break
2431   done
2432 fi
2433 if test -z "$CXX"; then
2434   ac_ct_CXX=$CXX
2435   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2436 do
2437   # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   if test -n "$ac_ct_CXX"; then
2445   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452   for ac_exec_ext in '' $ac_executable_extensions; do
2453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454     ac_cv_prog_ac_ct_CXX="$ac_prog"
2455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456     break 2
2457   fi
2458 done
2459 done
2460
2461 fi
2462 fi
2463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2464 if test -n "$ac_ct_CXX"; then
2465   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2466 echo "${ECHO_T}$ac_ct_CXX" >&6
2467 else
2468   echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2470 fi
2471
2472   test -n "$ac_ct_CXX" && break
2473 done
2474 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2475
2476   CXX=$ac_ct_CXX
2477 fi
2478
2479
2480 # Provide some information about the compiler.
2481 echo "$as_me:$LINENO:" \
2482      "checking for C++ compiler version" >&5
2483 ac_compiler=`set X $ac_compile; echo $2`
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2485   (eval $ac_compiler --version </dev/null >&5) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2490   (eval $ac_compiler -v </dev/null >&5) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }
2494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2495   (eval $ac_compiler -V </dev/null >&5) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }
2499
2500 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2501 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2502 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512
2513 int
2514 main ()
2515 {
2516 #ifndef __GNUC__
2517        choke me
2518 #endif
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_compiler_gnu=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_compiler_gnu=no
2542 fi
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2545
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2549 GXX=`test $ac_compiler_gnu = yes && echo yes`
2550 ac_test_CXXFLAGS=${CXXFLAGS+set}
2551 ac_save_CXXFLAGS=$CXXFLAGS
2552 CXXFLAGS="-g"
2553 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2554 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2555 if test "${ac_cv_prog_cxx_g+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); } &&
2580          { ac_try='test -s conftest.$ac_objext'
2581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582   (eval $ac_try) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_cv_prog_cxx_g=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 ac_cv_prog_cxx_g=no
2592 fi
2593 rm -f conftest.$ac_objext conftest.$ac_ext
2594 fi
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2597 if test "$ac_test_CXXFLAGS" = set; then
2598   CXXFLAGS=$ac_save_CXXFLAGS
2599 elif test $ac_cv_prog_cxx_g = yes; then
2600   if test "$GXX" = yes; then
2601     CXXFLAGS="-g -O2"
2602   else
2603     CXXFLAGS="-g"
2604   fi
2605 else
2606   if test "$GXX" = yes; then
2607     CXXFLAGS="-O2"
2608   else
2609     CXXFLAGS=
2610   fi
2611 fi
2612 for ac_declaration in \
2613    ''\
2614    '#include <stdlib.h>' \
2615    'extern "C" void std::exit (int) throw (); using std::exit;' \
2616    'extern "C" void std::exit (int); using std::exit;' \
2617    'extern "C" void exit (int) throw ();' \
2618    'extern "C" void exit (int);' \
2619    'void exit (int);'
2620 do
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 #include <stdlib.h>
2629 $ac_declaration
2630 int
2631 main ()
2632 {
2633 exit (42);
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640   (eval $ac_compile) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } &&
2644          { ac_try='test -s conftest.$ac_objext'
2645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); }; }; then
2650   :
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 continue
2656 fi
2657 rm -f conftest.$ac_objext conftest.$ac_ext
2658   cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665 $ac_declaration
2666 int
2667 main ()
2668 {
2669 exit (42);
2670   ;
2671   return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676   (eval $ac_compile) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); } &&
2680          { ac_try='test -s conftest.$ac_objext'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; }; then
2686   break
2687 else
2688   echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 fi
2692 rm -f conftest.$ac_objext conftest.$ac_ext
2693 done
2694 rm -f conftest*
2695 if test -n "$ac_declaration"; then
2696   echo '#ifdef __cplusplus' >>confdefs.h
2697   echo $ac_declaration      >>confdefs.h
2698   echo '#endif'             >>confdefs.h
2699 fi
2700
2701 ac_ext=c
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706
2707 if test "x$CC" != xcc; then
2708   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2709 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2710 else
2711   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2712 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2713 fi
2714 set dummy $CC; ac_cc=`echo $2 |
2715                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2716 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   cat >conftest.$ac_ext <<_ACEOF
2720 #line $LINENO "configure"
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 # Make sure it works both with $CC and with simple cc.
2736 # We do the test twice because some compilers refuse to overwrite an
2737 # existing .o file with -o, though they will create one.
2738 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2739 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } &&
2744    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); };
2749 then
2750   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2751   if test "x$CC" != xcc; then
2752     # Test first that cc exists at all.
2753     if { ac_try='cc -c conftest.$ac_ext >&5'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2760       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); };
2770       then
2771         # cc works too.
2772         :
2773       else
2774         # cc exists but doesn't like -o.
2775         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2776       fi
2777     fi
2778   fi
2779 else
2780   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2781 fi
2782 rm -f conftest*
2783
2784 fi
2785 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2786   echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788 else
2789   echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2791
2792 cat >>confdefs.h <<\_ACEOF
2793 #define NO_MINUS_C_MINUS_O 1
2794 _ACEOF
2795
2796 fi
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2805 # On Suns, sometimes $CPP names a directory.
2806 if test -n "$CPP" && test -d "$CPP"; then
2807   CPP=
2808 fi
2809 if test -z "$CPP"; then
2810   if test "${ac_cv_prog_CPP+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813       # Double quotes because CPP needs to be expanded
2814     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2815     do
2816       ac_preproc_ok=false
2817 for ac_c_preproc_warn_flag in '' yes
2818 do
2819   # Use a header file that comes with gcc, so configuring glibc
2820   # with a fresh cross-compiler works.
2821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822   # <limits.h> exists even on freestanding compilers.
2823   # On the NeXT, cc -E runs the code through the compiler's parser,
2824   # not just through cpp. "Syntax error" is here to catch this case.
2825   cat >conftest.$ac_ext <<_ACEOF
2826 #line $LINENO "configure"
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 #ifdef __STDC__
2833 # include <limits.h>
2834 #else
2835 # include <assert.h>
2836 #endif
2837                      Syntax error
2838 _ACEOF
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } >/dev/null; then
2847   if test -s conftest.err; then
2848     ac_cpp_err=$ac_c_preproc_warn_flag
2849   else
2850     ac_cpp_err=
2851   fi
2852 else
2853   ac_cpp_err=yes
2854 fi
2855 if test -z "$ac_cpp_err"; then
2856   :
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861   # Broken: fails on valid input.
2862 continue
2863 fi
2864 rm -f conftest.err conftest.$ac_ext
2865
2866   # OK, works on sane cases.  Now check whether non-existent headers
2867   # can be detected and how.
2868   cat >conftest.$ac_ext <<_ACEOF
2869 #line $LINENO "configure"
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875 #include <ac_nonexistent.h>
2876 _ACEOF
2877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } >/dev/null; then
2885   if test -s conftest.err; then
2886     ac_cpp_err=$ac_c_preproc_warn_flag
2887   else
2888     ac_cpp_err=
2889   fi
2890 else
2891   ac_cpp_err=yes
2892 fi
2893 if test -z "$ac_cpp_err"; then
2894   # Broken: success on invalid input.
2895 continue
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900   # Passes both tests.
2901 ac_preproc_ok=:
2902 break
2903 fi
2904 rm -f conftest.err conftest.$ac_ext
2905
2906 done
2907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2908 rm -f conftest.err conftest.$ac_ext
2909 if $ac_preproc_ok; then
2910   break
2911 fi
2912
2913     done
2914     ac_cv_prog_CPP=$CPP
2915
2916 fi
2917   CPP=$ac_cv_prog_CPP
2918 else
2919   ac_cv_prog_CPP=$CPP
2920 fi
2921 echo "$as_me:$LINENO: result: $CPP" >&5
2922 echo "${ECHO_T}$CPP" >&6
2923 ac_preproc_ok=false
2924 for ac_c_preproc_warn_flag in '' yes
2925 do
2926   # Use a header file that comes with gcc, so configuring glibc
2927   # with a fresh cross-compiler works.
2928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929   # <limits.h> exists even on freestanding compilers.
2930   # On the NeXT, cc -E runs the code through the compiler's parser,
2931   # not just through cpp. "Syntax error" is here to catch this case.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939 #ifdef __STDC__
2940 # include <limits.h>
2941 #else
2942 # include <assert.h>
2943 #endif
2944                      Syntax error
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } >/dev/null; then
2954   if test -s conftest.err; then
2955     ac_cpp_err=$ac_c_preproc_warn_flag
2956   else
2957     ac_cpp_err=
2958   fi
2959 else
2960   ac_cpp_err=yes
2961 fi
2962 if test -z "$ac_cpp_err"; then
2963   :
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Broken: fails on valid input.
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_ext
2972
2973   # OK, works on sane cases.  Now check whether non-existent headers
2974   # can be detected and how.
2975   cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982 #include <ac_nonexistent.h>
2983 _ACEOF
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } >/dev/null; then
2992   if test -s conftest.err; then
2993     ac_cpp_err=$ac_c_preproc_warn_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   # Broken: success on invalid input.
3002 continue
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Passes both tests.
3008 ac_preproc_ok=:
3009 break
3010 fi
3011 rm -f conftest.err conftest.$ac_ext
3012
3013 done
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3017   :
3018 else
3019   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3022 See \`config.log' for more details." >&2;}
3023    { (exit 1); exit 1; }; }
3024 fi
3025
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
3032
3033 echo "$as_me:$LINENO: checking for egrep" >&5
3034 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3035 if test "${ac_cv_prog_egrep+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3039     then ac_cv_prog_egrep='grep -E'
3040     else ac_cv_prog_egrep='egrep'
3041     fi
3042 fi
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3044 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3045  EGREP=$ac_cv_prog_egrep
3046
3047
3048 if test $ac_cv_c_compiler_gnu = yes; then
3049     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3050 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3051 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3052   echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054     ac_pattern="Autoconf.*'x'"
3055   cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <sgtty.h>
3063 Autoconf TIOCGETP
3064 _ACEOF
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3066   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3067   ac_cv_prog_gcc_traditional=yes
3068 else
3069   ac_cv_prog_gcc_traditional=no
3070 fi
3071 rm -f conftest*
3072
3073
3074   if test $ac_cv_prog_gcc_traditional = no; then
3075     cat >conftest.$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 #include <termio.h>
3083 Autoconf TCGETA
3084 _ACEOF
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3087   ac_cv_prog_gcc_traditional=yes
3088 fi
3089 rm -f conftest*
3090
3091   fi
3092 fi
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3094 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3095   if test $ac_cv_prog_gcc_traditional = yes; then
3096     CC="$CC -traditional"
3097   fi
3098 fi
3099
3100 if test x$CC = xgcc
3101 then
3102    cat >>confdefs.h <<\_ACEOF
3103 #define HAVE_GCC 1
3104 _ACEOF
3105
3106 fi
3107
3108 # Find a good install program.  We prefer a C program (faster),
3109 # so one script is as good as another.  But avoid the broken or
3110 # incompatible versions:
3111 # SysV /etc/install, /usr/sbin/install
3112 # SunOS /usr/etc/install
3113 # IRIX /sbin/install
3114 # AIX /bin/install
3115 # AmigaOS /C/install, which installs bootblocks on floppy discs
3116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3122 if test -z "$INSTALL"; then
3123 if test "${ac_cv_path_install+set}" = set; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   # Account for people who put trailing slashes in PATH elements.
3132 case $as_dir/ in
3133   ./ | .// | /cC/* | \
3134   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3135   /usr/ucb/* ) ;;
3136   *)
3137     # OSF1 and SCO ODT 3.0 have their own names for install.
3138     # Don't use installbsd from OSF since it installs stuff as root
3139     # by default.
3140     for ac_prog in ginstall scoinst install; do
3141       for ac_exec_ext in '' $ac_executable_extensions; do
3142         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3143           if test $ac_prog = install &&
3144             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3145             # AIX install.  It has an incompatible calling convention.
3146             :
3147           elif test $ac_prog = install &&
3148             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3149             # program-specific install script used by HP pwplus--don't use.
3150             :
3151           else
3152             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3153             break 3
3154           fi
3155         fi
3156       done
3157     done
3158     ;;
3159 esac
3160 done
3161
3162
3163 fi
3164   if test "${ac_cv_path_install+set}" = set; then
3165     INSTALL=$ac_cv_path_install
3166   else
3167     # As a last resort, use the slow shell script.  We don't cache a
3168     # path for INSTALL within a source directory, because that will
3169     # break other packages using the cache if that directory is
3170     # removed, or if the path is relative.
3171     INSTALL=$ac_install_sh
3172   fi
3173 fi
3174 echo "$as_me:$LINENO: result: $INSTALL" >&5
3175 echo "${ECHO_T}$INSTALL" >&6
3176
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3180
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3182
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3184
3185 if test -n "$ac_tool_prefix"; then
3186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if test -n "$RANLIB"; then
3194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201   for ac_exec_ext in '' $ac_executable_extensions; do
3202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208 done
3209
3210 fi
3211 fi
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214   echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3216 else
3217   echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 fi
3220
3221 fi
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223   ac_ct_RANLIB=$RANLIB
3224   # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -n "$ac_ct_RANLIB"; then
3232   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_ac_ct_RANLIB="ranlib"
3242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246 done
3247
3248   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3249 fi
3250 fi
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3255 else
3256   echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 fi
3259
3260   RANLIB=$ac_ct_RANLIB
3261 else
3262   RANLIB="$ac_cv_prog_RANLIB"
3263 fi
3264
3265 # Extract the first word of "mv", so it can be a program name with args.
3266 set dummy mv; ac_word=$2
3267 echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_path_MV+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   case $MV in
3273   [\\/]* | ?:[\\/]*)
3274   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3275   ;;
3276   *)
3277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282   for ac_exec_ext in '' $ac_executable_extensions; do
3283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289 done
3290
3291   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3292   ;;
3293 esac
3294 fi
3295 MV=$ac_cv_path_MV
3296
3297 if test -n "$MV"; then
3298   echo "$as_me:$LINENO: result: $MV" >&5
3299 echo "${ECHO_T}$MV" >&6
3300 else
3301   echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303 fi
3304
3305 # Extract the first word of "rm", so it can be a program name with args.
3306 set dummy rm; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_path_RM+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   case $RM in
3313   [\\/]* | ?:[\\/]*)
3314   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3315   ;;
3316   *)
3317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322   for ac_exec_ext in '' $ac_executable_extensions; do
3323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329 done
3330
3331   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3332   ;;
3333 esac
3334 fi
3335 RM=$ac_cv_path_RM
3336
3337 if test -n "$RM"; then
3338   echo "$as_me:$LINENO: result: $RM" >&5
3339 echo "${ECHO_T}$RM" >&6
3340 else
3341   echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345 # Extract the first word of "cp", so it can be a program name with args.
3346 set dummy cp; ac_word=$2
3347 echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_path_CP+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352   case $CP in
3353   [\\/]* | ?:[\\/]*)
3354   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3355   ;;
3356   *)
3357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362   for ac_exec_ext in '' $ac_executable_extensions; do
3363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369 done
3370
3371   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3372   ;;
3373 esac
3374 fi
3375 CP=$ac_cv_path_CP
3376
3377 if test -n "$CP"; then
3378   echo "$as_me:$LINENO: result: $CP" >&5
3379 echo "${ECHO_T}$CP" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 # Extract the first word of "sed", so it can be a program name with args.
3386 set dummy sed; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_path_SED+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   case $SED in
3393   [\\/]* | ?:[\\/]*)
3394   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3395   ;;
3396   *)
3397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402   for ac_exec_ext in '' $ac_executable_extensions; do
3403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409 done
3410
3411   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3412   ;;
3413 esac
3414 fi
3415 SED=$ac_cv_path_SED
3416
3417 if test -n "$SED"; then
3418   echo "$as_me:$LINENO: result: $SED" >&5
3419 echo "${ECHO_T}$SED" >&6
3420 else
3421   echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3423 fi
3424
3425 # Extract the first word of "awk", so it can be a program name with args.
3426 set dummy awk; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_path_AWK+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   case $AWK in
3433   [\\/]* | ?:[\\/]*)
3434   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3435   ;;
3436   *)
3437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442   for ac_exec_ext in '' $ac_executable_extensions; do
3443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446     break 2
3447   fi
3448 done
3449 done
3450
3451   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3452   ;;
3453 esac
3454 fi
3455 AWK=$ac_cv_path_AWK
3456
3457 if test -n "$AWK"; then
3458   echo "$as_me:$LINENO: result: $AWK" >&5
3459 echo "${ECHO_T}$AWK" >&6
3460 else
3461   echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465 # Extract the first word of "echo", so it can be a program name with args.
3466 set dummy echo; ac_word=$2
3467 echo "$as_me:$LINENO: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_path_ECHO+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   case $ECHO in
3473   [\\/]* | ?:[\\/]*)
3474   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3475   ;;
3476   *)
3477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482   for ac_exec_ext in '' $ac_executable_extensions; do
3483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489 done
3490
3491   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3492   ;;
3493 esac
3494 fi
3495 ECHO=$ac_cv_path_ECHO
3496
3497 if test -n "$ECHO"; then
3498   echo "$as_me:$LINENO: result: $ECHO" >&5
3499 echo "${ECHO_T}$ECHO" >&6
3500 else
3501   echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503 fi
3504
3505 # Extract the first word of "cmp", so it can be a program name with args.
3506 set dummy cmp; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_path_CMP+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   case $CMP in
3513   [\\/]* | ?:[\\/]*)
3514   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3515   ;;
3516   *)
3517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522   for ac_exec_ext in '' $ac_executable_extensions; do
3523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529 done
3530
3531   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3532   ;;
3533 esac
3534 fi
3535 CMP=$ac_cv_path_CMP
3536
3537 if test -n "$CMP"; then
3538   echo "$as_me:$LINENO: result: $CMP" >&5
3539 echo "${ECHO_T}$CMP" >&6
3540 else
3541   echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3543 fi
3544
3545 # Extract the first word of "tbl", so it can be a program name with args.
3546 set dummy tbl; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_path_TBL+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   case $TBL in
3553   [\\/]* | ?:[\\/]*)
3554   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3555   ;;
3556   *)
3557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562   for ac_exec_ext in '' $ac_executable_extensions; do
3563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569 done
3570
3571   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3572   ;;
3573 esac
3574 fi
3575 TBL=$ac_cv_path_TBL
3576
3577 if test -n "$TBL"; then
3578   echo "$as_me:$LINENO: result: $TBL" >&5
3579 echo "${ECHO_T}$TBL" >&6
3580 else
3581   echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3583 fi
3584
3585 # Extract the first word of "ar", so it can be a program name with args.
3586 set dummy ar; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_path_AR+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   case $AR in
3593   [\\/]* | ?:[\\/]*)
3594   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3595   ;;
3596   *)
3597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602   for ac_exec_ext in '' $ac_executable_extensions; do
3603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606     break 2
3607   fi
3608 done
3609 done
3610
3611   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3612   ;;
3613 esac
3614 fi
3615 AR=$ac_cv_path_AR
3616
3617 if test -n "$AR"; then
3618   echo "$as_me:$LINENO: result: $AR" >&5
3619 echo "${ECHO_T}$AR" >&6
3620 else
3621   echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624
3625 # Extract the first word of "ranlib", so it can be a program name with args.
3626 set dummy ranlib; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_path_RANLIB+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   case $RANLIB in
3633   [\\/]* | ?:[\\/]*)
3634   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3635   ;;
3636   *)
3637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642   for ac_exec_ext in '' $ac_executable_extensions; do
3643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649 done
3650
3651   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3652   ;;
3653 esac
3654 fi
3655 RANLIB=$ac_cv_path_RANLIB
3656
3657 if test -n "$RANLIB"; then
3658   echo "$as_me:$LINENO: result: $RANLIB" >&5
3659 echo "${ECHO_T}$RANLIB" >&6
3660 else
3661   echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3663 fi
3664
3665 # Extract the first word of "openssl", so it can be a program name with args.
3666 set dummy openssl; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_path_OPENSSL+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   case $OPENSSL in
3673   [\\/]* | ?:[\\/]*)
3674   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3675   ;;
3676   *)
3677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682   for ac_exec_ext in '' $ac_executable_extensions; do
3683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689 done
3690
3691   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3692   ;;
3693 esac
3694 fi
3695 OPENSSL=$ac_cv_path_OPENSSL
3696
3697 if test -n "$OPENSSL"; then
3698   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3699 echo "${ECHO_T}$OPENSSL" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705 # Extract the first word of "mtx", so it can be a program name with args.
3706 set dummy mtx; ac_word=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_path_MTX+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   case $MTX in
3713   [\\/]* | ?:[\\/]*)
3714   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3715   ;;
3716   *)
3717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729 done
3730
3731   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3732   ;;
3733 esac
3734 fi
3735 MTX=$ac_cv_path_MTX
3736
3737 if test -n "$MTX"; then
3738   echo "$as_me:$LINENO: result: $MTX" >&5
3739 echo "${ECHO_T}$MTX" >&6
3740 else
3741   echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3743 fi
3744
3745 # Extract the first word of "pkg-config", so it can be a program name with args.
3746 set dummy pkg-config; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3750   echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752   case $PKGCONFIG in
3753   [\\/]* | ?:[\\/]*)
3754   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3755   ;;
3756   *)
3757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770
3771   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3772   ;;
3773 esac
3774 fi
3775 PKGCONFIG=$ac_cv_path_PKGCONFIG
3776
3777 if test -n "$PKGCONFIG"; then
3778   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3779 echo "${ECHO_T}$PKGCONFIG" >&6
3780 else
3781   echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 test -n "$ARFLAG" || ARFLAGS="cr"
3787
3788
3789 MAKE_SHELL=/bin/sh
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799 echo "$as_me:$LINENO: checking for Operating System" >&5
3800 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3801
3802 case $host_os in
3803   *cygwin* ) CYGWIN=yes;;
3804          * ) CYGWIN=no;;
3805 esac
3806
3807 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3808 then
3809
3810
3811 if $TRUEPRG; then
3812   HAVE_SUN_OS_TRUE=
3813   HAVE_SUN_OS_FALSE='#'
3814 else
3815   HAVE_SUN_OS_TRUE='#'
3816   HAVE_SUN_OS_FALSE=
3817 fi
3818         cat >>confdefs.h <<\_ACEOF
3819 #define HAVE_SUN_OS 1
3820 _ACEOF
3821
3822 else
3823
3824
3825 if $FALSEPRG; then
3826   HAVE_SUN_OS_TRUE=
3827   HAVE_SUN_OS_FALSE='#'
3828 else
3829   HAVE_SUN_OS_TRUE='#'
3830   HAVE_SUN_OS_FALSE=
3831 fi
3832 fi
3833
3834 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3835 then
3836
3837
3838 if $TRUEPRG; then
3839   HAVE_OSF1_OS_TRUE=
3840   HAVE_OSF1_OS_FALSE='#'
3841 else
3842   HAVE_OSF1_OS_TRUE='#'
3843   HAVE_OSF1_OS_FALSE=
3844 fi
3845         cat >>confdefs.h <<\_ACEOF
3846 #define HAVE_OSF1_OS 1
3847 _ACEOF
3848
3849 else
3850
3851
3852 if $FALSEPRG; then
3853   HAVE_OSF1_OS_TRUE=
3854   HAVE_OSF1_OS_FALSE='#'
3855 else
3856   HAVE_OSF1_OS_TRUE='#'
3857   HAVE_OSF1_OS_FALSE=
3858 fi
3859 fi
3860
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3862 then
3863
3864
3865 if $TRUEPRG; then
3866   HAVE_AIX_OS_TRUE=
3867   HAVE_AIX_OS_FALSE='#'
3868 else
3869   HAVE_AIX_OS_TRUE='#'
3870   HAVE_AIX_OS_FALSE=
3871 fi
3872         cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_AIX_OS 1
3874 _ACEOF
3875
3876 else
3877
3878
3879 if $FALSEPRG; then
3880   HAVE_AIX_OS_TRUE=
3881   HAVE_AIX_OS_FALSE='#'
3882 else
3883   HAVE_AIX_OS_TRUE='#'
3884   HAVE_AIX_OS_FALSE=
3885 fi
3886 fi
3887
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3889 then
3890
3891
3892 if $TRUEPRG; then
3893   HAVE_HPUX_OS_TRUE=
3894   HAVE_HPUX_OS_FALSE='#'
3895 else
3896   HAVE_HPUX_OS_TRUE='#'
3897   HAVE_HPUX_OS_FALSE=
3898 fi
3899         cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_HPUX_OS 1
3901 _ACEOF
3902
3903 else
3904
3905
3906 if $FALSEPRG; then
3907   HAVE_HPUX_OS_TRUE=
3908   HAVE_HPUX_OS_FALSE='#'
3909 else
3910   HAVE_HPUX_OS_TRUE='#'
3911   HAVE_HPUX_OS_FALSE=
3912 fi
3913 fi
3914
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3916 then
3917
3918
3919 if $TRUEPRG; then
3920   HAVE_LINUX_OS_TRUE=
3921   HAVE_LINUX_OS_FALSE='#'
3922 else
3923   HAVE_LINUX_OS_TRUE='#'
3924   HAVE_LINUX_OS_FALSE=
3925 fi
3926         cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_LINUX_OS 1
3928 _ACEOF
3929
3930 else
3931
3932
3933 if $FALSEPRG; then
3934   HAVE_LINUX_OS_TRUE=
3935   HAVE_LINUX_OS_FALSE='#'
3936 else
3937   HAVE_LINUX_OS_TRUE='#'
3938   HAVE_LINUX_OS_FALSE=
3939 fi
3940 fi
3941
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3943 then
3944
3945
3946 if $TRUEPRG; then
3947   HAVE_FREEBSD_OS_TRUE=
3948   HAVE_FREEBSD_OS_FALSE='#'
3949 else
3950   HAVE_FREEBSD_OS_TRUE='#'
3951   HAVE_FREEBSD_OS_FALSE=
3952 fi
3953         cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_FREEBSD_OS 1
3955 _ACEOF
3956
3957 else
3958
3959
3960 if $FALSEPRG; then
3961   HAVE_FREEBSD_OS_TRUE=
3962   HAVE_FREEBSD_OS_FALSE='#'
3963 else
3964   HAVE_FREEBSD_OS_TRUE='#'
3965   HAVE_FREEBSD_OS_FALSE=
3966 fi
3967 fi
3968
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3970 then
3971
3972
3973 if $TRUEPRG; then
3974   HAVE_NETBSD_OS_TRUE=
3975   HAVE_NETBSD_OS_FALSE='#'
3976 else
3977   HAVE_NETBSD_OS_TRUE='#'
3978   HAVE_NETBSD_OS_FALSE=
3979 fi
3980         cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_NETBSD_OS 1
3982 _ACEOF
3983
3984 else
3985
3986
3987 if $FALSEPRG; then
3988   HAVE_NETBSD_OS_TRUE=
3989   HAVE_NETBSD_OS_FALSE='#'
3990 else
3991   HAVE_NETBSD_OS_TRUE='#'
3992   HAVE_NETBSD_OS_FALSE=
3993 fi
3994 fi
3995
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3997 then
3998
3999
4000 if $TRUEPRG; then
4001   HAVE_OPENBSD_OS_TRUE=
4002   HAVE_OPENBSD_OS_FALSE='#'
4003 else
4004   HAVE_OPENBSD_OS_TRUE='#'
4005   HAVE_OPENBSD_OS_FALSE=
4006 fi
4007         cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_OPENBSD_OS 1
4009 _ACEOF
4010
4011 else
4012
4013
4014 if $FALSEPRG; then
4015   HAVE_OPENBSD_OS_TRUE=
4016   HAVE_OPENBSD_OS_FALSE='#'
4017 else
4018   HAVE_OPENBSD_OS_TRUE='#'
4019   HAVE_OPENBSD_OS_FALSE=
4020 fi
4021 fi
4022
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4024 then
4025
4026
4027 if $TRUEPRG; then
4028   HAVE_BSDI_OS_TRUE=
4029   HAVE_BSDI_OS_FALSE='#'
4030 else
4031   HAVE_BSDI_OS_TRUE='#'
4032   HAVE_BSDI_OS_FALSE=
4033 fi
4034         cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_BSDI_OS 1
4036 _ACEOF
4037
4038 else
4039
4040
4041 if $FALSEPRG; then
4042   HAVE_BSDI_OS_TRUE=
4043   HAVE_BSDI_OS_FALSE='#'
4044 else
4045   HAVE_BSDI_OS_TRUE='#'
4046   HAVE_BSDI_OS_FALSE=
4047 fi
4048 fi
4049
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4051 then
4052
4053
4054 if $TRUEPRG; then
4055   HAVE_SGI_OS_TRUE=
4056   HAVE_SGI_OS_FALSE='#'
4057 else
4058   HAVE_SGI_OS_TRUE='#'
4059   HAVE_SGI_OS_FALSE=
4060 fi
4061         cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_SGI_OS 1
4063 _ACEOF
4064
4065 else
4066
4067
4068 if $FALSEPRG; then
4069   HAVE_SGI_OS_TRUE=
4070   HAVE_SGI_OS_FALSE='#'
4071 else
4072   HAVE_SGI_OS_TRUE='#'
4073   HAVE_SGI_OS_FALSE=
4074 fi
4075 fi
4076
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4078 then
4079
4080
4081 if $TRUEPRG; then
4082   HAVE_IRIX_OS_TRUE=
4083   HAVE_IRIX_OS_FALSE='#'
4084 else
4085   HAVE_IRIX_OS_TRUE='#'
4086   HAVE_IRIX_OS_FALSE=
4087 fi
4088         cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_IRIX_OS 1
4090 _ACEOF
4091
4092 else
4093
4094
4095 if $FALSEPRG; then
4096   HAVE_IRIX_OS_TRUE=
4097   HAVE_IRIX_OS_FALSE='#'
4098 else
4099   HAVE_IRIX_OS_TRUE='#'
4100   HAVE_IRIX_OS_FALSE=
4101 fi
4102 fi
4103
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4105 then
4106
4107
4108 if $TRUEPRG; then
4109   HAVE_DARWIN_OS_TRUE=
4110   HAVE_DARWIN_OS_FALSE='#'
4111 else
4112   HAVE_DARWIN_OS_TRUE='#'
4113   HAVE_DARWIN_OS_FALSE=
4114 fi
4115     cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_DARWIN_OS 1
4117 _ACEOF
4118
4119 else
4120
4121
4122 if $FALSEPRG; then
4123   HAVE_DARWIN_OS_TRUE=
4124   HAVE_DARWIN_OS_FALSE='#'
4125 else
4126   HAVE_DARWIN_OS_TRUE='#'
4127   HAVE_DARWIN_OS_FALSE=
4128 fi
4129 fi
4130
4131 echo "$as_me:$LINENO: result: \" \"" >&5
4132 echo "${ECHO_T}\" \"" >&6
4133
4134
4135 # -----------------------------------------------------------
4136 # ----------------------------------------------------------
4137 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4138 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4139 if test "x$DISTNAME" != "x"
4140 then
4141         echo "distname set to $DISTNAME"
4142 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4143 then
4144         DISTNAME=alpha
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4146 then
4147         DISTNAME=aix
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4149 then
4150         DISTNAME=hpux
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4152 then
4153         DISTNAME=solaris
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4155 then
4156         DISTNAME=freebsd
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4158 then
4159         DISTNAME=netbsd
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4161 then
4162         DISTNAME=openbsd
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4164 then
4165         DISTNAME=irix
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4167 then
4168         DISTNAME=bsdi
4169 elif test -f /etc/SuSE-release
4170 then
4171         DISTNAME=suse
4172 elif test -d /etc/SuSEconfig
4173 then
4174         DISTNAME=suse5
4175 elif test -f /etc/mandrake-release
4176 then
4177         DISTNAME=mandrake
4178 elif test -f /etc/redhat-release
4179 then
4180         DISTNAME=redhat
4181 elif test -f /etc/gentoo-release
4182 then
4183         DISTNAME=gentoo
4184 elif test -f /etc/debian_version
4185 then
4186         DISTNAME=debian
4187 elif test -f /etc/slackware-version
4188 then
4189         DISTNAME=slackware
4190 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4191 then
4192     DISTNAME=darwin
4193 elif test -f /etc/engarde-version
4194 then
4195         DISTNAME=engarde
4196 elif test "$CYGWIN" = yes
4197 then
4198         DISTNAME=cygwin
4199         cat >>confdefs.h <<\_ACEOF
4200 #define HAVE_CYGWIN 1
4201 _ACEOF
4202
4203 else
4204         DISTNAME=unknown
4205 fi
4206 echo "$as_me:$LINENO: result: \" \"" >&5
4207 echo "${ECHO_T}\" \"" >&6
4208
4209
4210 # -----------------------------------------------------------
4211 # ----------------------------------------------------------
4212
4213
4214
4215 if false; then
4216   INSIDE_GNOME_COMMON_TRUE=
4217   INSIDE_GNOME_COMMON_FALSE='#'
4218 else
4219   INSIDE_GNOME_COMMON_TRUE='#'
4220   INSIDE_GNOME_COMMON_FALSE=
4221 fi
4222
4223         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4224
4225         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4226
4227
4228 # ------------------------------------------------------------------
4229 #  If the user has not set --prefix, we set our default to nothing.
4230 #  In this case, if the user has not set --sysconfdir, we set it
4231 #  to the package default of /etc/bacula.  If either --prefix or
4232 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4233 # ------------------------------------------------------------------
4234 if test x${prefix} = xNONE ; then
4235     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4236         sysconfdir=/etc/bacula
4237     fi
4238     prefix=
4239 fi
4240 sysconfdir=`eval echo ${sysconfdir}`
4241
4242 # -------------------------------------------------------------------------
4243 #  If the user has not set --exec-prefix, we default to ${prefix}
4244 # -------------------------------------------------------------------------
4245 if test x${exec_prefix} = xNONE ; then
4246     exec_prefix=${prefix}
4247 fi
4248
4249 # ------------------------------------------------------------------
4250 # If the user has not set --sbindir, we set our default as /sbin
4251 # ------------------------------------------------------------------
4252 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4253     sbindir=${exec_prefix}/sbin
4254 fi
4255 sbindir=`eval echo ${sbindir}`
4256
4257 # ------------------------------------------------------------------
4258 # All list of languages for which a translation exist. Each
4259 #  language is separated by a space.
4260 # ------------------------------------------------------------------
4261 ALL_LINGUAS=""
4262
4263 for ac_prog in msgfmt
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_MSGFMT+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   case $MSGFMT in
4273   [\\/]* | ?:[\\/]*)
4274   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4275   ;;
4276   *)
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282   for ac_exec_ext in '' $ac_executable_extensions; do
4283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289 done
4290
4291   ;;
4292 esac
4293 fi
4294 MSGFMT=$ac_cv_path_MSGFMT
4295
4296 if test -n "$MSGFMT"; then
4297   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4298 echo "${ECHO_T}$MSGFMT" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$MSGFMT" && break
4305 done
4306 test -n "$MSGFMT" || MSGFMT="no"
4307
4308 if test "$MSGFMT" = "no"
4309 then
4310    echo 'msgfmt program not found, disabling NLS !'
4311    USE_NLS=no
4312    USE_INCLUDED_LIBINTL=no
4313 #else
4314 #   AM_GNU_GETTEXT
4315 fi
4316
4317
4318 support_mysql=no
4319 support_sqlite=no
4320 support_postgresql=no
4321 support_smartalloc=yes
4322 support_readline=no
4323 support_conio=yes
4324 support_gnome=no
4325 gnome_version=
4326 support_static_tools=no
4327 support_static_fd=no
4328 support_static_sd=no
4329 support_static_dir=no
4330 support_static_cons=no
4331 build_client_only=no
4332 cats=
4333 db_name=Internal
4334 DB_NAME=bdb
4335
4336
4337 # -------------------------------------------
4338 # gnome (default off)
4339 # -------------------------------------------
4340 # Check whether --enable-gnome or --disable-gnome was given.
4341 if test "${enable_gnome+set}" = set; then
4342   enableval="$enable_gnome"
4343   if test x$enableval = xyes; then
4344     support_gnome=yes
4345   fi
4346 fi;
4347
4348 GNOME_DIR=
4349 if test x$support_gnome = xyes; then
4350   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4351   pkg=$?
4352   if test $pkg = 0; then
4353      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4354      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4355      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4356      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4357
4358
4359
4360
4361      GNOME_DIR=src/gnome2-console
4362      gnome_version="Version 2.x"
4363   else
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4376 if test "${with_gnome_includes+set}" = set; then
4377   withval="$with_gnome_includes"
4378
4379         CFLAGS="$CFLAGS -I$withval"
4380
4381 fi;
4382
4383
4384 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4385 if test "${with_gnome_libs+set}" = set; then
4386   withval="$with_gnome_libs"
4387
4388         LDFLAGS="$LDFLAGS -L$withval"
4389         gnome_prefix=$withval
4390
4391 fi;
4392
4393
4394 # Check whether --with-gnome or --without-gnome was given.
4395 if test "${with_gnome+set}" = set; then
4396   withval="$with_gnome"
4397   if test x$withval = xyes; then
4398                         want_gnome=yes
4399                                                                         :
4400                 else
4401                         if test "x$withval" = xno; then
4402                                 want_gnome=no
4403                         else
4404                                 want_gnome=yes
4405                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4406                                 CFLAGS="$CFLAGS -I$withval/include"
4407                                 gnome_prefix=$withval/lib
4408                         fi
4409                 fi
4410 else
4411   want_gnome=yes
4412 fi;
4413
4414         if test "x$want_gnome" = xyes; then
4415
4416             # Extract the first word of "gnome-config", so it can be a program name with args.
4417 set dummy gnome-config; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   case $GNOME_CONFIG in
4424   [\\/]* | ?:[\\/]*)
4425   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4426   ;;
4427   *)
4428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441
4442   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4443   ;;
4444 esac
4445 fi
4446 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4447
4448 if test -n "$GNOME_CONFIG"; then
4449   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4450 echo "${ECHO_T}$GNOME_CONFIG" >&6
4451 else
4452   echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4454 fi
4455
4456             if test "$GNOME_CONFIG" = "no"; then
4457               no_gnome_config="yes"
4458             else
4459               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4460 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4461               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4462                 echo "$as_me:$LINENO: result: yes" >&5
4463 echo "${ECHO_T}yes" >&6
4464
4465
4466         # Extract the first word of "orbit-config", so it can be a program name with args.
4467 set dummy orbit-config; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   case $ORBIT_CONFIG in
4474   [\\/]* | ?:[\\/]*)
4475   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4476   ;;
4477   *)
4478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491
4492   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4493   ;;
4494 esac
4495 fi
4496 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4497
4498 if test -n "$ORBIT_CONFIG"; then
4499   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4500 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4501 else
4502   echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506         # Extract the first word of "orbit-idl", so it can be a program name with args.
4507 set dummy orbit-idl; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   case $ORBIT_IDL in
4514   [\\/]* | ?:[\\/]*)
4515   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4516   ;;
4517   *)
4518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531
4532   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4533   ;;
4534 esac
4535 fi
4536 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4537
4538 if test -n "$ORBIT_IDL"; then
4539   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4540 echo "${ECHO_T}$ORBIT_IDL" >&6
4541 else
4542   echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544 fi
4545
4546         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4547 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4548 if test "${gnome_cv_orbit_found+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551
4552                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4553                         gnome_cv_orbit_found=no
4554                 else
4555                         gnome_cv_orbit_found=yes
4556                 fi
4557
4558 fi
4559 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4560 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4561
4562
4563 if test x$gnome_cv_orbit_found = xyes; then
4564   HAVE_ORBIT_TRUE=
4565   HAVE_ORBIT_FALSE='#'
4566 else
4567   HAVE_ORBIT_TRUE='#'
4568   HAVE_ORBIT_FALSE=
4569 fi
4570         if test x$gnome_cv_orbit_found = xyes; then
4571
4572                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4573                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4574
4575
4576         else
4577                 if test xfail = xfailure; then
4578                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4579 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4580    { (exit 1); exit 1; }; }
4581                 fi
4582         fi
4583
4584         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4585 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4586 if test "${gnome_cv_gnorba_found+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589
4590                 gnome_cv_gnorba_found=no
4591                 if test x$gnome_cv_orbit_found = xyes; then
4592                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4593                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4594                         if test -n "$GNORBA_LIBS"; then
4595                                 gnome_cv_gnorba_found=yes
4596                         fi
4597                 fi
4598
4599 fi
4600 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4601 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4602
4603
4604 if test x$gnome_cv_gnorba_found = xyes; then
4605   HAVE_GNORBA_TRUE=
4606   HAVE_GNORBA_FALSE='#'
4607 else
4608   HAVE_GNORBA_TRUE='#'
4609   HAVE_GNORBA_FALSE=
4610 fi
4611         if test x$gnome_cv_orbit_found = xyes; then
4612
4613                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4614                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4615
4616
4617         else
4618                 if test xfail = xfailure; then
4619                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4620 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4621    { (exit 1); exit 1; }; }
4622                 fi
4623         fi
4624
4625                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4626                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4627                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4628                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4629                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4630                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4631                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4632
4633               else
4634                 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636                 no_gnome_config="yes"
4637               fi
4638             fi
4639
4640             if test x$exec_prefix = xNONE; then
4641                 if test x$prefix = xNONE; then
4642                     gnome_prefix=$ac_default_prefix/lib
4643                 else
4644                     gnome_prefix=$prefix/lib
4645                 fi
4646             else
4647                 gnome_prefix=`eval echo \`echo $libdir\``
4648             fi
4649
4650             if test "$no_gnome_config" = "yes"; then
4651               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4652 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4653               if test -f $gnome_prefix/gnomeConf.sh; then
4654                 echo "$as_me:$LINENO: result: found" >&5
4655 echo "${ECHO_T}found" >&6
4656                 echo "loading gnome configuration from" \
4657                      "$gnome_prefix/gnomeConf.sh"
4658                 . $gnome_prefix/gnomeConf.sh
4659
4660               else
4661                 echo "$as_me:$LINENO: result: not found" >&5
4662 echo "${ECHO_T}not found" >&6
4663                 if test xfail = xfail; then
4664                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4665 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4666    { (exit 1); exit 1; }; }
4667                 fi
4668               fi
4669             fi
4670         fi
4671
4672         if test -n ""; then
4673           n=""
4674           for i in $n; do
4675             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4676 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4677             case $i in
4678               applets)
4679
4680                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4681                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4682 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4683               docklets)
4684
4685                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4686                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4687 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4688               capplet)
4689
4690                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4691                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4692 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4693               *)
4694                 echo "$as_me:$LINENO: result: unknown library" >&5
4695 echo "${ECHO_T}unknown library" >&6
4696             esac
4697             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4698             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4699           done
4700         fi
4701
4702
4703      GNOME_DIR=src/gnome-console
4704      gnome_version="Version 1.4"
4705   fi
4706 fi
4707
4708
4709
4710 # -------------------------------------------
4711 # smartalloc (default off)
4712 # -------------------------------------------
4713 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4714 if test "${enable_smartalloc+set}" = set; then
4715   enableval="$enable_smartalloc"
4716   if test x$enableval = xno; then
4717     support_smartalloc=no
4718   fi
4719 fi;
4720
4721 if test x$support_smartalloc = xyes; then
4722    cat >>confdefs.h <<\_ACEOF
4723 #define SMARTALLOC 1
4724 _ACEOF
4725
4726 fi
4727
4728 # -------------------------------------------
4729 # static-tools (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-static-tools or --disable-static-tools was given.
4732 if test "${enable_static_tools+set}" = set; then
4733   enableval="$enable_static_tools"
4734   if test x$enableval = xyes; then
4735      support_static_tools=yes
4736    fi
4737 fi;
4738
4739 TTOOL_LDFLAGS=
4740 if test x$support_static_tools = xyes; then
4741    TTOOL_LDFLAGS="-static"
4742 fi
4743
4744
4745 # -------------------------------------------
4746 # static-fd    (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-static-fd or --disable-static-fd was given.
4749 if test "${enable_static_fd+set}" = set; then
4750   enableval="$enable_static_fd"
4751   if test x$enableval = xyes; then
4752      support_static_fd=yes
4753    fi
4754 fi;
4755
4756 STATIC_FD=
4757 if test x$support_static_fd = xyes; then
4758    STATIC_FD="static-bacula-fd"
4759 fi
4760
4761
4762 # -------------------------------------------
4763 # static-sd    (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-sd or --disable-static-sd was given.
4766 if test "${enable_static_sd+set}" = set; then
4767   enableval="$enable_static_sd"
4768   if test x$enableval = xyes; then
4769      support_static_sd=yes
4770    fi
4771 fi;
4772
4773 STATIC_SD=
4774 if test x$support_static_sd = xyes; then
4775    STATIC_SD="static-bacula-sd"
4776 fi
4777
4778
4779 # -------------------------------------------
4780 # static-dir   (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-dir or --disable-static-dir was given.
4783 if test "${enable_static_dir+set}" = set; then
4784   enableval="$enable_static_dir"
4785   if test x$enableval = xyes; then
4786      support_static_dir=yes
4787    fi
4788 fi;
4789
4790 STATIC_DIR=
4791 if test x$support_static_dir = xyes; then
4792    STATIC_DIR="static-bacula-dir"
4793 fi
4794
4795
4796 # -------------------------------------------
4797 # static-cons  (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-cons or --disable-static-cons was given.
4800 if test "${enable_static_cons+set}" = set; then
4801   enableval="$enable_static_cons"
4802   if test x$enableval = xyes; then
4803      support_static_cons=yes
4804    fi
4805 fi;
4806
4807 STATIC_CONS=
4808 STATIC_GNOME_CONS=
4809 if test x$support_static_cons = xyes; then
4810    STATIC_CONS="static-bconsole"
4811    STATIC_GNOME_CONS="static-gnome-console"
4812 fi
4813
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    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4849 if test "${ac_cv_header_stdc+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 #include <stdlib.h>
4860 #include <stdarg.h>
4861 #include <string.h>
4862 #include <float.h>
4863
4864 int
4865 main ()
4866 {
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874   (eval $ac_compile) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } &&
4878          { ac_try='test -s conftest.$ac_objext'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; }; then
4884   ac_cv_header_stdc=yes
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 ac_cv_header_stdc=no
4890 fi
4891 rm -f conftest.$ac_objext conftest.$ac_ext
4892
4893 if test $ac_cv_header_stdc = yes; then
4894   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4895   cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <string.h>
4903
4904 _ACEOF
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906   $EGREP "memchr" >/dev/null 2>&1; then
4907   :
4908 else
4909   ac_cv_header_stdc=no
4910 fi
4911 rm -f conftest*
4912
4913 fi
4914
4915 if test $ac_cv_header_stdc = yes; then
4916   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917   cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924 #include <stdlib.h>
4925
4926 _ACEOF
4927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4928   $EGREP "free" >/dev/null 2>&1; then
4929   :
4930 else
4931   ac_cv_header_stdc=no
4932 fi
4933 rm -f conftest*
4934
4935 fi
4936
4937 if test $ac_cv_header_stdc = yes; then
4938   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4939   if test "$cross_compiling" = yes; then
4940   :
4941 else
4942   cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #include <ctype.h>
4950 #if ((' ' & 0x0FF) == 0x020)
4951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4953 #else
4954 # define ISLOWER(c) \
4955                    (('a' <= (c) && (c) <= 'i') \
4956                      || ('j' <= (c) && (c) <= 'r') \
4957                      || ('s' <= (c) && (c) <= 'z'))
4958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4959 #endif
4960
4961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4962 int
4963 main ()
4964 {
4965   int i;
4966   for (i = 0; i < 256; i++)
4967     if (XOR (islower (i), ISLOWER (i))
4968         || toupper (i) != TOUPPER (i))
4969       exit(2);
4970   exit (0);
4971 }
4972 _ACEOF
4973 rm -f conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975   (eval $ac_link) 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; }; then
4984   :
4985 else
4986   echo "$as_me: program exited with status $ac_status" >&5
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 ( exit $ac_status )
4991 ac_cv_header_stdc=no
4992 fi
4993 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994 fi
4995 fi
4996 fi
4997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4999 if test $ac_cv_header_stdc = yes; then
5000
5001 cat >>confdefs.h <<\_ACEOF
5002 #define STDC_HEADERS 1
5003 _ACEOF
5004
5005 fi
5006
5007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5018                   inttypes.h stdint.h unistd.h
5019 do
5020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021 echo "$as_me:$LINENO: checking for $ac_header" >&5
5022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5028 /* confdefs.h.  */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h.  */
5033 $ac_includes_default
5034
5035 #include <$ac_header>
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -s conftest.$ac_objext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   eval "$as_ac_Header=yes"
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 eval "$as_ac_Header=no"
5055 fi
5056 rm -f conftest.$ac_objext conftest.$ac_ext
5057 fi
5058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5061   cat >>confdefs.h <<_ACEOF
5062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5063 _ACEOF
5064
5065 fi
5066
5067 done
5068
5069
5070 if test "${ac_cv_header_termcap_h+set}" = set; then
5071   echo "$as_me:$LINENO: checking for termcap.h" >&5
5072 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5073 if test "${ac_cv_header_termcap_h+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 fi
5076 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5077 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5078 else
5079   # Is the header compilable?
5080 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5081 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 $ac_includes_default
5090 #include <termcap.h>
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094   (eval $ac_compile) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } &&
5098          { ac_try='test -s conftest.$ac_objext'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; }; then
5104   ac_header_compiler=yes
5105 else
5106   echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 ac_header_compiler=no
5110 fi
5111 rm -f conftest.$ac_objext conftest.$ac_ext
5112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5113 echo "${ECHO_T}$ac_header_compiler" >&6
5114
5115 # Is the header present?
5116 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5117 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 #include <termcap.h>
5126 _ACEOF
5127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } >/dev/null; then
5135   if test -s conftest.err; then
5136     ac_cpp_err=$ac_c_preproc_warn_flag
5137   else
5138     ac_cpp_err=
5139   fi
5140 else
5141   ac_cpp_err=yes
5142 fi
5143 if test -z "$ac_cpp_err"; then
5144   ac_header_preproc=yes
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149   ac_header_preproc=no
5150 fi
5151 rm -f conftest.err conftest.$ac_ext
5152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153 echo "${ECHO_T}$ac_header_preproc" >&6
5154
5155 # So?  What about this header?
5156 case $ac_header_compiler:$ac_header_preproc in
5157   yes:no )
5158     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5159 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5162     (
5163       cat <<\_ASBOX
5164 ## ------------------------------------ ##
5165 ## Report this to bug-autoconf@gnu.org. ##
5166 ## ------------------------------------ ##
5167 _ASBOX
5168     ) |
5169       sed "s/^/$as_me: WARNING:     /" >&2
5170     ;;
5171   no:yes )
5172     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5173 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5174     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5175 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5176     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5177 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5178     (
5179       cat <<\_ASBOX
5180 ## ------------------------------------ ##
5181 ## Report this to bug-autoconf@gnu.org. ##
5182 ## ------------------------------------ ##
5183 _ASBOX
5184     ) |
5185       sed "s/^/$as_me: WARNING:     /" >&2
5186     ;;
5187 esac
5188 echo "$as_me:$LINENO: checking for termcap.h" >&5
5189 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_termcap_h+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   ac_cv_header_termcap_h=$ac_header_preproc
5194 fi
5195 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5196 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5197
5198 fi
5199 if test $ac_cv_header_termcap_h = yes; then
5200    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5201 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5202 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   ac_check_lib_save_LIBS=$LIBS
5206 LIBS="-ltermcap  $LIBS"
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214
5215 /* Override any gcc2 internal prototype to avoid an error.  */
5216 #ifdef __cplusplus
5217 extern "C"
5218 #endif
5219 /* We use char because int might match the return type of a gcc2
5220    builtin and then its argument prototype would still apply.  */
5221 char tgetent ();
5222 int
5223 main ()
5224 {
5225 tgetent ();
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232   (eval $ac_link) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } &&
5236          { ac_try='test -s conftest$ac_exeext'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   ac_cv_lib_termcap_tgetent=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_cv_lib_termcap_tgetent=no
5248 fi
5249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5250 LIBS=$ac_check_lib_save_LIBS
5251 fi
5252 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5253 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5254 if test $ac_cv_lib_termcap_tgetent = yes; then
5255    CONS_LIBS="-ltermcap"
5256          CONS_OBJ="conio.o"
5257          CONS_SRC="conio.c"
5258          got_conio="yes"
5259          support_readline=no
5260
5261 cat >>confdefs.h <<\_ACEOF
5262 #define HAVE_CONIO 1
5263 _ACEOF
5264
5265
5266 else
5267    echo " "; echo "termcap library not found. CONIO turned off ..."; echo " "
5268 fi
5269
5270
5271 else
5272   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5273 fi
5274
5275
5276 fi
5277
5278
5279 # ---------------------------------------------------
5280 # Check for readline support/directory (default off)
5281 # ---------------------------------------------------
5282 # this allows you to turn it completely off
5283 # Check whether --enable-readline or --disable-readline was given.
5284 if test "${enable_readline+set}" = set; then
5285   enableval="$enable_readline"
5286   if test x$enableval = xno; then
5287     support_readline=no
5288   fi
5289 fi;
5290
5291 got_readline="no"
5292 READLINE_SRC=
5293 if test x$support_readline = xyes; then
5294
5295 # Check whether --with-readline or --without-readline was given.
5296 if test "${with_readline+set}" = set; then
5297   withval="$with_readline"
5298
5299         case "$with_readline" in
5300         no) : ;;
5301         yes|*)
5302           if test "$with_readline" != "yes"; then
5303             CONS_INC="-I${with_readline}"
5304             CONS_LDFLAGS="-L$with_readline"
5305           else
5306              with_readline="/usr/include/readline"
5307           fi
5308           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5310   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5311 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 fi
5315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5317 else
5318   # Is the header compilable?
5319 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5320 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 $ac_includes_default
5329 #include <${with_readline}/readline.h>
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333   (eval $ac_compile) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -s conftest.$ac_objext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   ac_header_compiler=yes
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_header_compiler=no
5349 fi
5350 rm -f conftest.$ac_objext conftest.$ac_ext
5351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5352 echo "${ECHO_T}$ac_header_compiler" >&6
5353
5354 # Is the header present?
5355 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5356 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364 #include <${with_readline}/readline.h>
5365 _ACEOF
5366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5368   ac_status=$?
5369   grep -v '^ *+' conftest.er1 >conftest.err
5370   rm -f conftest.er1
5371   cat conftest.err >&5
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } >/dev/null; then
5374   if test -s conftest.err; then
5375     ac_cpp_err=$ac_c_preproc_warn_flag
5376   else
5377     ac_cpp_err=
5378   fi
5379 else
5380   ac_cpp_err=yes
5381 fi
5382 if test -z "$ac_cpp_err"; then
5383   ac_header_preproc=yes
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388   ac_header_preproc=no
5389 fi
5390 rm -f conftest.err conftest.$ac_ext
5391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5392 echo "${ECHO_T}$ac_header_preproc" >&6
5393
5394 # So?  What about this header?
5395 case $ac_header_compiler:$ac_header_preproc in
5396   yes:no )
5397     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5398 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5399     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5400 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5401     (
5402       cat <<\_ASBOX
5403 ## ------------------------------------ ##
5404 ## Report this to bug-autoconf@gnu.org. ##
5405 ## ------------------------------------ ##
5406 _ASBOX
5407     ) |
5408       sed "s/^/$as_me: WARNING:     /" >&2
5409     ;;
5410   no:yes )
5411     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5412 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5413     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5414 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5415     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5417     (
5418       cat <<\_ASBOX
5419 ## ------------------------------------ ##
5420 ## Report this to bug-autoconf@gnu.org. ##
5421 ## ------------------------------------ ##
5422 _ASBOX
5423     ) |
5424       sed "s/^/$as_me: WARNING:     /" >&2
5425     ;;
5426 esac
5427 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5428 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   eval "$as_ac_Header=$ac_header_preproc"
5433 fi
5434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5436
5437 fi
5438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5439    cat >>confdefs.h <<\_ACEOF
5440 #define HAVE_READLINE 1
5441 _ACEOF
5442
5443                CONS_LIBS="-lreadline -ltermcap"
5444                got_readline="yes"
5445
5446 else
5447    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5448 echo "$as_me: error: *** readline library missing" >&2;}
5449    { (exit 1); exit 1; }; }
5450
5451
5452 fi
5453
5454
5455           ;;
5456         esac
5457
5458 else
5459
5460        # check for standard readline library
5461        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5462   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5463 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5464 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 fi
5467 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5468 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5469 else
5470   # Is the header compilable?
5471 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5472 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480 $ac_includes_default
5481 #include </usr/include/readline/readline.h>
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485   (eval $ac_compile) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } &&
5489          { ac_try='test -s conftest.$ac_objext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_header_compiler=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 ac_header_compiler=no
5501 fi
5502 rm -f conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5504 echo "${ECHO_T}$ac_header_compiler" >&6
5505
5506 # Is the header present?
5507 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5508 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516 #include </usr/include/readline/readline.h>
5517 _ACEOF
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } >/dev/null; then
5526   if test -s conftest.err; then
5527     ac_cpp_err=$ac_c_preproc_warn_flag
5528   else
5529     ac_cpp_err=
5530   fi
5531 else
5532   ac_cpp_err=yes
5533 fi
5534 if test -z "$ac_cpp_err"; then
5535   ac_header_preproc=yes
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540   ac_header_preproc=no
5541 fi
5542 rm -f conftest.err conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5544 echo "${ECHO_T}$ac_header_preproc" >&6
5545
5546 # So?  What about this header?
5547 case $ac_header_compiler:$ac_header_preproc in
5548   yes:no )
5549     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5550 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5551     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5552 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5553     (
5554       cat <<\_ASBOX
5555 ## ------------------------------------ ##
5556 ## Report this to bug-autoconf@gnu.org. ##
5557 ## ------------------------------------ ##
5558 _ASBOX
5559     ) |
5560       sed "s/^/$as_me: WARNING:     /" >&2
5561     ;;
5562   no:yes )
5563     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5565     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5567     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5569     (
5570       cat <<\_ASBOX
5571 ## ------------------------------------ ##
5572 ## Report this to bug-autoconf@gnu.org. ##
5573 ## ------------------------------------ ##
5574 _ASBOX
5575     ) |
5576       sed "s/^/$as_me: WARNING:     /" >&2
5577     ;;
5578 esac
5579 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5580 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5581 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5585 fi
5586 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5587 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5588
5589 fi
5590 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5591    cat >>confdefs.h <<\_ACEOF
5592 #define HAVE_READLINE 1
5593 _ACEOF
5594
5595            got_readline="yes"
5596            CONS_INC="-I/usr/include/readline"
5597            CONS_LIBS="-lreadline -ltermcap"
5598
5599 else
5600
5601            # Did not find standard library, so try Bacula's default
5602             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5605 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 fi
5609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5611 else
5612   # Is the header compilable?
5613 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5614 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 /* confdefs.h.  */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h.  */
5622 $ac_includes_default
5623 #include <${TOP_DIR}/depkgs/readline/readline.h>
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627   (eval $ac_compile) 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } &&
5631          { ac_try='test -s conftest.$ac_objext'
5632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633   (eval $ac_try) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); }; }; then
5637   ac_header_compiler=yes
5638 else
5639   echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642 ac_header_compiler=no
5643 fi
5644 rm -f conftest.$ac_objext conftest.$ac_ext
5645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6
5647
5648 # Is the header present?
5649 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5650 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5651 cat >conftest.$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 #include <${TOP_DIR}/depkgs/readline/readline.h>
5659 _ACEOF
5660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } >/dev/null; then
5668   if test -s conftest.err; then
5669     ac_cpp_err=$ac_c_preproc_warn_flag
5670   else
5671     ac_cpp_err=
5672   fi
5673 else
5674   ac_cpp_err=yes
5675 fi
5676 if test -z "$ac_cpp_err"; then
5677   ac_header_preproc=yes
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682   ac_header_preproc=no
5683 fi
5684 rm -f conftest.err conftest.$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5686 echo "${ECHO_T}$ac_header_preproc" >&6
5687
5688 # So?  What about this header?
5689 case $ac_header_compiler:$ac_header_preproc in
5690   yes:no )
5691     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5692 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5693     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5694 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5695     (
5696       cat <<\_ASBOX
5697 ## ------------------------------------ ##
5698 ## Report this to bug-autoconf@gnu.org. ##
5699 ## ------------------------------------ ##
5700 _ASBOX
5701     ) |
5702       sed "s/^/$as_me: WARNING:     /" >&2
5703     ;;
5704   no:yes )
5705     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5706 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5707     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5708 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5709     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5711     (
5712       cat <<\_ASBOX
5713 ## ------------------------------------ ##
5714 ## Report this to bug-autoconf@gnu.org. ##
5715 ## ------------------------------------ ##
5716 _ASBOX
5717     ) |
5718       sed "s/^/$as_me: WARNING:     /" >&2
5719     ;;
5720 esac
5721 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5722 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   eval "$as_ac_Header=$ac_header_preproc"
5727 fi
5728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5730
5731 fi
5732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5733    cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_READLINE 1
5735 _ACEOF
5736
5737                  got_readline="yes"
5738                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5739                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5740                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5741                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5742
5743 else
5744    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5745 echo "$as_me: error: *** readline library missing" >&2;}
5746    { (exit 1); exit 1; }; }
5747
5748
5749 fi
5750
5751
5752
5753
5754 fi
5755
5756
5757
5758
5759 fi;
5760 fi
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 # Minimal stuff for readline Makefile configuration
5772 MAKE_SHELL=/bin/sh
5773
5774
5775 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5776 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5777 if test "${ac_cv_header_stat_broken+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   cat >conftest.$ac_ext <<_ACEOF
5781 #line $LINENO "configure"
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 #include <sys/types.h>
5788 #include <sys/stat.h>
5789
5790 #if defined(S_ISBLK) && defined(S_IFDIR)
5791 # if S_ISBLK (S_IFDIR)
5792 You lose.
5793 # endif
5794 #endif
5795
5796 #if defined(S_ISBLK) && defined(S_IFCHR)
5797 # if S_ISBLK (S_IFCHR)
5798 You lose.
5799 # endif
5800 #endif
5801
5802 #if defined(S_ISLNK) && defined(S_IFREG)
5803 # if S_ISLNK (S_IFREG)
5804 You lose.
5805 # endif
5806 #endif
5807
5808 #if defined(S_ISSOCK) && defined(S_IFREG)
5809 # if S_ISSOCK (S_IFREG)
5810 You lose.
5811 # endif
5812 #endif
5813
5814 _ACEOF
5815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816   $EGREP "You lose" >/dev/null 2>&1; then
5817   ac_cv_header_stat_broken=yes
5818 else
5819   ac_cv_header_stat_broken=no
5820 fi
5821 rm -f conftest*
5822
5823 fi
5824 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5825 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5826 if test $ac_cv_header_stat_broken = yes; then
5827
5828 cat >>confdefs.h <<\_ACEOF
5829 #define STAT_MACROS_BROKEN 1
5830 _ACEOF
5831
5832 fi
5833
5834
5835
5836
5837
5838
5839 ac_header_dirent=no
5840 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5841   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5842 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5843 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854 #include <sys/types.h>
5855 #include <$ac_hdr>
5856
5857 int
5858 main ()
5859 {
5860 if ((DIR *) 0)
5861 return 0;
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -s conftest.$ac_objext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   eval "$as_ac_Header=yes"
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 eval "$as_ac_Header=no"
5884 fi
5885 rm -f conftest.$ac_objext conftest.$ac_ext
5886 fi
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5890   cat >>confdefs.h <<_ACEOF
5891 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5892 _ACEOF
5893
5894 ac_header_dirent=$ac_hdr; break
5895 fi
5896
5897 done
5898 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5899 if test $ac_header_dirent = dirent.h; then
5900   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5902 if test "${ac_cv_search_opendir+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   ac_func_search_save_LIBS=$LIBS
5906 ac_cv_search_opendir=no
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914
5915 /* Override any gcc2 internal prototype to avoid an error.  */
5916 #ifdef __cplusplus
5917 extern "C"
5918 #endif
5919 /* We use char because int might match the return type of a gcc2
5920    builtin and then its argument prototype would still apply.  */
5921 char opendir ();
5922 int
5923 main ()
5924 {
5925 opendir ();
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5932   (eval $ac_link) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -s conftest$ac_exeext'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_cv_search_opendir="none required"
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 fi
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 if test "$ac_cv_search_opendir" = no; then
5950   for ac_lib in dir; do
5951     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5952     cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
5960 /* Override any gcc2 internal prototype to avoid an error.  */
5961 #ifdef __cplusplus
5962 extern "C"
5963 #endif
5964 /* We use char because int might match the return type of a gcc2
5965    builtin and then its argument prototype would still apply.  */
5966 char opendir ();
5967 int
5968 main ()
5969 {
5970 opendir ();
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977   (eval $ac_link) 2>&5
5978   ac_status=$?
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } &&
5981          { ac_try='test -s conftest$ac_exeext'
5982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983   (eval $ac_try) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; }; then
5987   ac_cv_search_opendir="-l$ac_lib"
5988 break
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 fi
5994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5995   done
5996 fi
5997 LIBS=$ac_func_search_save_LIBS
5998 fi
5999 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6000 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6001 if test "$ac_cv_search_opendir" != no; then
6002   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6003
6004 fi
6005
6006 else
6007   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6008 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6009 if test "${ac_cv_search_opendir+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   ac_func_search_save_LIBS=$LIBS
6013 ac_cv_search_opendir=no
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021
6022 /* Override any gcc2 internal prototype to avoid an error.  */
6023 #ifdef __cplusplus
6024 extern "C"
6025 #endif
6026 /* We use char because int might match the return type of a gcc2
6027    builtin and then its argument prototype would still apply.  */
6028 char opendir ();
6029 int
6030 main ()
6031 {
6032 opendir ();
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039   (eval $ac_link) 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); } &&
6043          { ac_try='test -s conftest$ac_exeext'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; }; then
6049   ac_cv_search_opendir="none required"
6050 else
6051   echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 fi
6055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6056 if test "$ac_cv_search_opendir" = no; then
6057   for ac_lib in x; do
6058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6059     cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067 /* Override any gcc2 internal prototype to avoid an error.  */
6068 #ifdef __cplusplus
6069 extern "C"
6070 #endif
6071 /* We use char because int might match the return type of a gcc2
6072    builtin and then its argument prototype would still apply.  */
6073 char opendir ();
6074 int
6075 main ()
6076 {
6077 opendir ();
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6084   (eval $ac_link) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -s conftest$ac_exeext'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_search_opendir="-l$ac_lib"
6095 break
6096 else
6097   echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 fi
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102   done
6103 fi
6104 LIBS=$ac_func_search_save_LIBS
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6107 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6108 if test "$ac_cv_search_opendir" != no; then
6109   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6110
6111 fi
6112
6113 fi
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6125 do
6126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6127 echo "$as_me:$LINENO: checking for $ac_func" >&5
6128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_var+set}\" = set"; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   cat >conftest.$ac_ext <<_ACEOF
6133 #line $LINENO "configure"
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 /* System header to define __stub macros and hopefully few prototypes,
6140     which can conflict with char $ac_func (); below.
6141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142     <limits.h> exists even on freestanding compilers.  */
6143 #ifdef __STDC__
6144 # include <limits.h>
6145 #else
6146 # include <assert.h>
6147 #endif
6148 /* Override any gcc2 internal prototype to avoid an error.  */
6149 #ifdef __cplusplus
6150 extern "C"
6151 {
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154    builtin and then its argument prototype would still apply.  */
6155 char $ac_func ();
6156 /* The GNU C library defines this for functions which it implements
6157     to always fail with ENOSYS.  Some functions are actually named
6158     something starting with __ and the normal name is an alias.  */
6159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6160 choke me
6161 #else
6162 char (*f) () = $ac_func;
6163 #endif
6164 #ifdef __cplusplus
6165 }
6166 #endif
6167
6168 int
6169 main ()
6170 {
6171 return f != $ac_func;
6172   ;
6173   return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178   (eval $ac_link) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } &&
6182          { ac_try='test -s conftest$ac_exeext'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   eval "$as_ac_var=yes"
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 eval "$as_ac_var=no"
6194 fi
6195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6196 fi
6197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6199 if test `eval echo '${'$as_ac_var'}'` = yes; then
6200   cat >>confdefs.h <<_ACEOF
6201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6202 _ACEOF
6203
6204 fi
6205 done
6206
6207
6208 for ac_func in nanosleep
6209 do
6210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6211 echo "$as_me:$LINENO: checking for $ac_func" >&5
6212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6213 if eval "test \"\${$as_ac_var+set}\" = set"; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   cat >conftest.$ac_ext <<_ACEOF
6217 #line $LINENO "configure"
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223 /* System header to define __stub macros and hopefully few prototypes,
6224     which can conflict with char $ac_func (); below.
6225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226     <limits.h> exists even on freestanding compilers.  */
6227 #ifdef __STDC__
6228 # include <limits.h>
6229 #else
6230 # include <assert.h>
6231 #endif
6232 /* Override any gcc2 internal prototype to avoid an error.  */
6233 #ifdef __cplusplus
6234 extern "C"
6235 {
6236 #endif
6237 /* We use char because int might match the return type of a gcc2
6238    builtin and then its argument prototype would still apply.  */
6239 char $ac_func ();
6240 /* The GNU C library defines this for functions which it implements
6241     to always fail with ENOSYS.  Some functions are actually named
6242     something starting with __ and the normal name is an alias.  */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 choke me
6245 #else
6246 char (*f) () = $ac_func;
6247 #endif
6248 #ifdef __cplusplus
6249 }
6250 #endif
6251
6252 int
6253 main ()
6254 {
6255 return f != $ac_func;
6256   ;
6257   return 0;
6258 }
6259 _ACEOF
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262   (eval $ac_link) 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } &&
6266          { ac_try='test -s conftest$ac_exeext'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; }; then
6272   eval "$as_ac_var=yes"
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 eval "$as_ac_var=no"
6278 fi
6279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6280 fi
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6283 if test `eval echo '${'$as_ac_var'}'` = yes; then
6284   cat >>confdefs.h <<_ACEOF
6285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6286 _ACEOF
6287
6288 fi
6289 done
6290
6291
6292
6293 for ac_header in varargs.h
6294 do
6295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297   echo "$as_me:$LINENO: checking for $ac_header" >&5
6298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 fi
6302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304 else
6305   # Is the header compilable?
6306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 $ac_includes_default
6316 #include <$ac_header>
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320   (eval $ac_compile) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -s conftest.$ac_objext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   ac_header_compiler=yes
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 ac_header_compiler=no
6336 fi
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339 echo "${ECHO_T}$ac_header_compiler" >&6
6340
6341 # Is the header present?
6342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6344 cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351 #include <$ac_header>
6352 _ACEOF
6353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } >/dev/null; then
6361   if test -s conftest.err; then
6362     ac_cpp_err=$ac_c_preproc_warn_flag
6363   else
6364     ac_cpp_err=
6365   fi
6366 else
6367   ac_cpp_err=yes
6368 fi
6369 if test -z "$ac_cpp_err"; then
6370   ac_header_preproc=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375   ac_header_preproc=no
6376 fi
6377 rm -f conftest.err conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379 echo "${ECHO_T}$ac_header_preproc" >&6
6380
6381 # So?  What about this header?
6382 case $ac_header_compiler:$ac_header_preproc in
6383   yes:no )
6384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6388     (
6389       cat <<\_ASBOX
6390 ## ------------------------------------ ##
6391 ## Report this to bug-autoconf@gnu.org. ##
6392 ## ------------------------------------ ##
6393 _ASBOX
6394     ) |
6395       sed "s/^/$as_me: WARNING:     /" >&2
6396     ;;
6397   no:yes )
6398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6400     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6404     (
6405       cat <<\_ASBOX
6406 ## ------------------------------------ ##
6407 ## Report this to bug-autoconf@gnu.org. ##
6408 ## ------------------------------------ ##
6409 _ASBOX
6410     ) |
6411       sed "s/^/$as_me: WARNING:     /" >&2
6412     ;;
6413 esac
6414 echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   eval "$as_ac_Header=$ac_header_preproc"
6420 fi
6421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423
6424 fi
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426   cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428 _ACEOF
6429
6430 fi
6431
6432 done
6433
6434
6435 # End of readline/conio stuff
6436 # -----------------------------------------------------------------------
6437
6438
6439 # ---------------------------------------------------
6440 # Check for GMP support/directory
6441 # ---------------------------------------------------
6442 #GMP_SRC=
6443 #local_gmp="no"
6444 #AC_ARG_WITH(gmp,
6445 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6446 #  [
6447 #     case "$with_gmp" in
6448 #     no) : ;;
6449 #     yes|*)
6450 #       if test "$with_gmp" != "yes"; then
6451 #         GMP_INC="-I$with_gmp"
6452 #         GMP_LIBS="-lgmp"
6453 #         GMP_LDFLAGS="-L$with_gmp"
6454 #       else
6455 #          with_gmp="/usr/include"
6456 #       fi
6457 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6458 #          [ AC_MSG_RESULT(yes)
6459 #            AC_DEFINE(HAVE_GMP)
6460 #            GMP_LIBS="-lgmp"
6461 #            got_gmp="yes"
6462 #          ],
6463 #          [ AC_MSG_ERROR([*** gmp library missing])
6464 #          ]
6465 #       )
6466 #       ;;
6467 #     esac
6468 #  ],[
6469 #    # check for standard gmp library
6470 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6471 #    [ AC_MSG_RESULT(yes)
6472 #      AC_DEFINE(HAVE_GMP)
6473 #      got_gmp="yes"
6474 #      GMP_INC=
6475 #      GMP_LIBS="-lgmp"
6476 #    ], [
6477 #      # Did not find standard library, so use our own
6478 #      AC_MSG_RESULT(yes)
6479 #      AC_DEFINE(HAVE_GMP)
6480 #      got_gmp="yes"
6481 #      local_gmp="yes"
6482 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6483 #      GMP_LIBS="-lgmp"
6484 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6485 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6486 #    ])
6487 #  ]
6488 #)
6489 #AC_SUBST(GMP_INC)
6490 #AC_SUBST(GMP_LIBS)
6491 #AC_SUBST(GMP_LDFLAGS)
6492 #AC_SUBST(GMP_SRC)
6493
6494 # End of GMP stuff
6495 # -----------------------------------------------------------------------
6496
6497
6498 # ---------------------------------------------------
6499 # Check for CWEB support/directory
6500 # ---------------------------------------------------
6501 #CWEB_SRC=
6502 #CWEB=/bin
6503 #local_cweb="no"
6504 #AC_ARG_WITH(cweb,
6505 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6506 #  [
6507 #     case "$with_cweb" in
6508 #     no) : ;;
6509 #     yes|*)
6510 #       if test "$with_cweb" != "yes"; then
6511 #         CWEB_INC="-I$with_cweb"
6512 #         CWEB_LIBS="-lcweb"
6513 #         CWEB_LDFLAGS="-L$with_cweb"
6514 #       else
6515 #          with_cweb="/usr/include"
6516 #       fi
6517 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6518 #          [ AC_MSG_RESULT(yes)
6519 #            AC_DEFINE(HAVE_CWEB)
6520 #            CWEB_LIBS="-lcweb"
6521 #            got_cweb="yes"
6522 #          ],
6523 #          [ AC_MSG_ERROR([*** cweb library missing])
6524 #          ]
6525 #       )
6526 #       ;;
6527 #     esac
6528 #  ],[
6529 #    # check for standard cweb library
6530 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6531 #    [ AC_MSG_RESULT(yes)
6532 #      AC_DEFINE(HAVE_CWEB)
6533 #      got_cweb="yes"
6534 #      CWEB_INC=
6535 #      CWEB_LIBS="-lcweb"
6536 #    ], [
6537 #      # Did not find starndard library, so use our own
6538 #      AC_MSG_RESULT(yes)
6539 #      AC_DEFINE(HAVE_CWEB)
6540 #      got_cweb="yes"
6541 #      local_cweb="yes"
6542 #      CWEB=${TOP_DIR}/depkgs/cweb
6543 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6544 #      CWEB_LIBS="-lcweb"
6545 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6546 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6547 #    ])
6548 #  ]
6549 #)
6550 #AC_SUBST(CWEB)
6551 #AC_SUBST(CWEB_INC)
6552 #AC_SUBST(CWEB_LIBS)
6553 #AC_SUBST(CWEB_LDFLAGS)
6554 #AC_SUBST(CWEB_SRC)
6555
6556 # End of CWEB stuff
6557 # -----------------------------------------------------------------------
6558
6559
6560
6561 # -----------------------------------------------------------
6562 # Check whether user wants TCP wrappers support (default off)
6563 # -----------------------------------------------------------
6564 TCPW_MSG="no"
6565
6566 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6567 if test "${with_tcp_wrappers+set}" = set; then
6568   withval="$with_tcp_wrappers"
6569
6570     if test "x$withval" != "xno" ; then
6571        saved_LIBS="$LIBS"
6572        LIBS="$saved_LIBS -lwrap"
6573        echo "$as_me:$LINENO: checking for libwrap" >&5
6574 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6575        cat >conftest.$ac_ext <<_ACEOF
6576 #line $LINENO "configure"
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582  #include <tcpd.h>
6583              int deny_severity = 0;
6584              int allow_severity = 0;
6585              struct request_info *req;
6586 int
6587 main ()
6588 {
6589  hosts_access(req);
6590   ;
6591   return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596   (eval $ac_link) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -s conftest$ac_exeext'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; }; then
6606
6607             echo "$as_me:$LINENO: result: yes" >&5
6608 echo "${ECHO_T}yes" >&6
6609             cat >>confdefs.h <<\_ACEOF
6610 #define HAVE_LIBWRAP 1
6611 _ACEOF
6612
6613             TCPW_MSG="yes"
6614
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619
6620             LIBS="$saved_LIBS -lwrap -lnsl"
6621             cat >conftest.$ac_ext <<_ACEOF
6622 #line $LINENO "configure"
6623 /* confdefs.h.  */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h.  */
6628  #include <tcpd.h>
6629                  int deny_severity = 0;
6630                  int allow_severity = 0;
6631                  struct request_info *req;
6632 int
6633 main ()
6634 {
6635  hosts_access(req);
6636   ;
6637   return 0;
6638 }
6639 _ACEOF
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642   (eval $ac_link) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } &&
6646          { ac_try='test -s conftest$ac_exeext'
6647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648   (eval $ac_try) 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); }; }; then
6652
6653                  echo "$as_me:$LINENO: result: yes" >&5
6654 echo "${ECHO_T}yes" >&6
6655                  cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_LIBWRAP 1
6657 _ACEOF
6658
6659                  TCPW_MSG="yes"
6660
6661 else
6662   echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6664
6665 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6666 echo "$as_me: error: *** libwrap missing" >&2;}
6667    { (exit 1); exit 1; }; }
6668
6669 fi
6670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6671
6672 fi
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674     fi
6675
6676
6677 fi;
6678
6679 # ------------------------------------------
6680 # Where to place working dir
6681 # ------------------------------------------
6682 working_dir=`eval echo ${prefix}/var/bacula/working`
6683
6684 # Check whether --with-working-dir or --without-working-dir was given.
6685 if test "${with_working_dir+set}" = set; then
6686   withval="$with_working_dir"
6687
6688        if test "x$withval" != "xno" ; then
6689               working_dir=$withval
6690        fi
6691
6692
6693 fi;
6694
6695
6696
6697
6698 # ------------------------------------------
6699 # Where to place scriptdir (script files)
6700 # ------------------------------------------
6701 scriptdir=`eval echo ${sysconfdir}`
6702
6703 # Check whether --with-scriptdir or --without-scriptdir was given.
6704 if test "${with_scriptdir+set}" = set; then
6705   withval="$with_scriptdir"
6706
6707        if test "x$withval" != "xno" ; then
6708               scriptdir=$withval
6709        fi
6710
6711
6712 fi;
6713
6714
6715
6716
6717 # ------------------------------------------
6718 # Where to send dump email
6719 # ------------------------------------------
6720 dump_email=root@localhost
6721
6722 # Check whether --with-dump-email or --without-dump-email was given.
6723 if test "${with_dump_email+set}" = set; then
6724   withval="$with_dump_email"
6725
6726        if test "x$withval" != "xno" ; then
6727               dump_email=$withval
6728        fi
6729
6730
6731 fi;
6732
6733
6734
6735 # ------------------------------------------
6736 # Where to send job email
6737 # ------------------------------------------
6738 job_email=root@localhost
6739
6740 # Check whether --with-job-email or --without-job-email was given.
6741 if test "${with_job_email+set}" = set; then
6742   withval="$with_job_email"
6743
6744        if test "x$withval" != "xno" ; then
6745               job_email=$withval
6746        fi
6747
6748
6749 fi;
6750
6751
6752
6753 # ------------------------------------------
6754 # Where to find smtp host
6755 # ------------------------------------------
6756 smtp_host=localhost
6757
6758 # Check whether --with-smtp_host or --without-smtp_host was given.
6759 if test "${with_smtp_host+set}" = set; then
6760   withval="$with_smtp_host"
6761
6762        if test "x$withval" != "xno" ; then
6763               smtp_host=$withval
6764        fi
6765
6766
6767 fi;
6768
6769
6770
6771
6772 # ------------------------------------
6773 # Where to place pid files
6774 # ------------------------------------
6775 piddir=/var/run
6776
6777 # Check whether --with-pid-dir or --without-pid-dir was given.
6778 if test "${with_pid_dir+set}" = set; then
6779   withval="$with_pid_dir"
6780
6781         if test "x$withval" != "xno" ; then
6782             piddir=$withval
6783         fi
6784
6785
6786 fi;
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define _PATH_BACULA_PIDDIR "$piddir"
6790 _ACEOF
6791
6792
6793
6794
6795 # ------------------------------------
6796 # Where to place subsys "lock file"
6797 # ------------------------------------
6798 subsysdir=/var/run/subsys
6799
6800 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6801 if test "${with_subsys_dir+set}" = set; then
6802   withval="$with_subsys_dir"
6803
6804         if test "x$withval" != "xno" ; then
6805             subsysdir=$withval
6806         fi
6807
6808
6809 fi;
6810
6811
6812
6813
6814
6815 # ------------------------------------
6816 # Where to start assigning ports
6817 # ------------------------------------
6818 baseport=9101
6819
6820 # Check whether --with-baseport or --without-baseport was given.
6821 if test "${with_baseport+set}" = set; then
6822   withval="$with_baseport"
6823
6824         if test "x$withval" != "xno" ; then
6825              baseport=$withval
6826         fi
6827
6828
6829 fi;
6830
6831
6832 dir_port=`expr $baseport`
6833 fd_port=`expr $baseport + 1`
6834 sd_port=`expr $fd_port + 1`
6835
6836
6837
6838
6839
6840
6841 # ------------------------------------------
6842 # Generate passwords
6843 # ------------------------------------------
6844 dir_password=
6845
6846 # Check whether --with-dir-password or --without-dir-password was given.
6847 if test "${with_dir_password+set}" = set; then
6848   withval="$with_dir_password"
6849
6850        if test "x$withval" != "xno" ; then
6851            dir_password=$withval
6852        fi
6853
6854
6855 fi;
6856
6857 if test "x$dir_password" = "x" ; then
6858    if test "x$OPENSSL" = "xnone" ; then
6859 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6860       key=`autoconf/randpass 33`
6861    else
6862       key=`openssl rand -base64 33`
6863    fi
6864    dir_password=$key
6865 fi
6866
6867 fd_password=
6868
6869 # Check whether --with-fd-password or --without-fd-password was given.
6870 if test "${with_fd_password+set}" = set; then
6871   withval="$with_fd_password"
6872
6873        if test "x$withval" != "xno" ; then
6874            fd_password=$withval
6875        fi
6876
6877
6878 fi;
6879
6880 if test "x$fd_password" = "x" ; then
6881    if test "x$OPENSSL" = "xnone" ; then
6882 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6883       key=`autoconf/randpass 37`
6884    else
6885       key=`openssl rand -base64 33`
6886    fi
6887    fd_password=$key
6888 fi
6889
6890 sd_password=
6891
6892 # Check whether --with-sd-password or --without-sd-password was given.
6893 if test "${with_sd_password+set}" = set; then
6894   withval="$with_sd_password"
6895
6896        if test "x$withval" != "xno" ; then
6897            sd_password=$withval
6898        fi
6899
6900
6901 fi;
6902
6903 if test "x$sd_password" = "x" ; then
6904    if test "x$OPENSSL" = "xnone" ; then
6905 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6906       key=`autoconf/randpass 41`
6907    else
6908       key=`openssl rand -base64 33`
6909    fi
6910    sd_password=$key
6911 fi
6912
6913
6914
6915
6916
6917
6918
6919 #
6920 # Handle users and groups for each daemon
6921 #
6922 dir_user=
6923
6924 # Check whether --with-dir_user or --without-dir_user was given.
6925 if test "${with_dir_user+set}" = set; then
6926   withval="$with_dir_user"
6927
6928         if test "x$withval" != "x" ; then
6929              dir_user=$withval
6930         fi
6931
6932
6933 fi;
6934
6935 dir_group=
6936
6937 # Check whether --with-dir_group or --without-dir_group was given.
6938 if test "${with_dir_group+set}" = set; then
6939   withval="$with_dir_group"
6940
6941         if test "x$withval" != "x" ; then
6942              dir_group=$withval
6943         fi
6944
6945
6946 fi;
6947
6948 sd_user=
6949
6950 # Check whether --with-sd_user or --without-sd_user was given.
6951 if test "${with_sd_user+set}" = set; then
6952   withval="$with_sd_user"
6953
6954         if test "x$withval" != "x" ; then
6955              sd_user=$withval
6956         fi
6957
6958
6959 fi;
6960
6961 sd_group=
6962
6963 # Check whether --with-sd_group or --without-sd_group was given.
6964 if test "${with_sd_group+set}" = set; then
6965   withval="$with_sd_group"
6966
6967         if test "x$withval" != "x" ; then
6968              sd_group=$withval
6969         fi
6970
6971
6972 fi;
6973
6974 fd_user=
6975
6976 # Check whether --with-fd_user or --without-fd_user was given.
6977 if test "${with_fd_user+set}" = set; then
6978   withval="$with_fd_user"
6979
6980         if test "x$withval" != "x" ; then
6981              fd_user=$withval
6982         fi
6983
6984
6985 fi;
6986
6987 fd_group=
6988
6989 # Check whether --with-fd_group or --without-fd_group was given.
6990 if test "${with_fd_group+set}" = set; then
6991   withval="$with_fd_group"
6992
6993         if test "x$withval" != "x" ; then
6994              fd_group=$withval
6995         fi
6996
6997
6998 fi;
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010 # ------------------------------------------------
7011 # Bacula check for various SQL database engines
7012 # ------------------------------------------------
7013
7014 db_found=no
7015 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7016 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7017
7018 # Check whether --with-postgresql or --without-postgresql was given.
7019 if test "${with_postgresql+set}" = set; then
7020   withval="$with_postgresql"
7021
7022   if test "$withval" != "no"; then
7023       if test "$db_found" = "yes"; then
7024           echo "$as_me:$LINENO: result: error" >&5
7025 echo "${ECHO_T}error" >&6
7026           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7027 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7028    { (exit 1); exit 1; }; };
7029       fi
7030       if test "$withval" = "yes"; then
7031           if test -f /usr/local/include/libpq-fe.h; then
7032               POSTGRESQL_INCDIR=/usr/local/include
7033               POSTGRESQL_LIBDIR=/usr/local/lib
7034               POSTGRESQL_BINDIR=/usr/local/bin
7035           elif test -f /usr/include/libpq-fe.h; then
7036               POSTGRESQL_INCDIR=/usr/include
7037               POSTGRESQL_LIBDIR=/usr/lib
7038               POSTGRESQL_BINDIR=/usr/bin
7039           elif test -f /usr/include/pgsql/libpq-fe.h; then
7040               POSTGRESQL_INCDIR=/usr/include/pgsql
7041               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7042               POSTGRESQL_BINDIR=/usr/bin
7043           else
7044               echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6
7046               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7047 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7048    { (exit 1); exit 1; }; }
7049           fi
7050       elif test -f $withval/libpq-fe.h; then
7051           POSTGRESQL_INCDIR=$withval
7052           POSTGRESQL_LIBDIR=$withval
7053           POSTGRESQL_BINDIR=$withval
7054       else
7055           echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6
7057           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7058 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7059    { (exit 1); exit 1; }; }
7060       fi
7061       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7062       echo "$as_me:$LINENO: checking for crypt" >&5
7063 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7064 if test "${ac_cv_func_crypt+set}" = set; then
7065   echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067   cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 /* System header to define __stub macros and hopefully few prototypes,
7075     which can conflict with char crypt (); below.
7076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077     <limits.h> exists even on freestanding compilers.  */
7078 #ifdef __STDC__
7079 # include <limits.h>
7080 #else
7081 # include <assert.h>
7082 #endif
7083 /* Override any gcc2 internal prototype to avoid an error.  */
7084 #ifdef __cplusplus
7085 extern "C"
7086 {
7087 #endif
7088 /* We use char because int might match the return type of a gcc2
7089    builtin and then its argument prototype would still apply.  */
7090 char crypt ();
7091 /* The GNU C library defines this for functions which it implements
7092     to always fail with ENOSYS.  Some functions are actually named
7093     something starting with __ and the normal name is an alias.  */
7094 #if defined (__stub_crypt) || defined (__stub___crypt)
7095 choke me
7096 #else
7097 char (*f) () = crypt;
7098 #endif
7099 #ifdef __cplusplus
7100 }
7101 #endif
7102
7103 int
7104 main ()
7105 {
7106 return f != crypt;
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113   (eval $ac_link) 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); } &&
7117          { ac_try='test -s conftest$ac_exeext'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; }; then
7123   ac_cv_func_crypt=yes
7124 else
7125   echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7127
7128 ac_cv_func_crypt=no
7129 fi
7130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7131 fi
7132 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7133 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7134 if test $ac_cv_func_crypt = yes; then
7135   :
7136 else
7137   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7138 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7139 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   ac_check_lib_save_LIBS=$LIBS
7143 LIBS="-lcrypt  $LIBS"
7144 cat >conftest.$ac_ext <<_ACEOF
7145 #line $LINENO "configure"
7146 /* confdefs.h.  */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h.  */
7151
7152 /* Override any gcc2 internal prototype to avoid an error.  */
7153 #ifdef __cplusplus
7154 extern "C"
7155 #endif
7156 /* We use char because int might match the return type of a gcc2
7157    builtin and then its argument prototype would still apply.  */
7158 char crypt ();
7159 int
7160 main ()
7161 {
7162 crypt ();
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169   (eval $ac_link) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } &&
7173          { ac_try='test -s conftest$ac_exeext'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; }; then
7179   ac_cv_lib_crypt_crypt=yes
7180 else
7181   echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_cv_lib_crypt_crypt=no
7185 fi
7186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7187 LIBS=$ac_check_lib_save_LIBS
7188 fi
7189 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7190 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7191 if test $ac_cv_lib_crypt_crypt = yes; then
7192   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7193 fi
7194
7195 fi
7196
7197       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7198       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7199       SQL_BINDIR=$POSTGRESQL_BINDIR
7200       cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_POSTGRESQL 1
7202 _ACEOF
7203
7204       echo "$as_me:$LINENO: result: yes" >&5
7205 echo "${ECHO_T}yes" >&6
7206       db_found=yes
7207       support_postgresql=yes
7208       db_name=PostgreSQL
7209       DB_NAME=postgresql
7210   else
7211       echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6
7213   fi
7214
7215 else
7216
7217   echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219
7220 fi;
7221
7222
7223
7224
7225
7226
7227
7228 db_found=no
7229 echo "$as_me:$LINENO: checking for MySQL support" >&5
7230 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7231
7232 # Check whether --with-mysql or --without-mysql was given.
7233 if test "${with_mysql+set}" = set; then
7234   withval="$with_mysql"
7235
7236   if test "$withval" != "no"; then
7237         if test "$withval" = "yes"; then
7238                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7239                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7240                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7241                         MYSQL_BINDIR=/usr/local/mysql/bin
7242                 elif test -f /usr/include/mysql/mysql.h; then
7243                         MYSQL_INCDIR=/usr/include/mysql
7244                         MYSQL_LIBDIR=/usr/lib/mysql
7245                         MYSQL_BINDIR=/usr/bin
7246                 elif test -f /usr/include/mysql.h; then
7247                         MYSQL_INCDIR=/usr/include
7248                         MYSQL_LIBDIR=/usr/lib
7249                         MYSQL_BINDIR=/usr/bin
7250                 elif test -f /usr/local/include/mysql/mysql.h; then
7251                         MYSQL_INCDIR=/usr/local/include/mysql
7252                         MYSQL_LIBDIR=/usr/local/lib/mysql
7253                         MYSQL_BINDIR=/usr/local/bin
7254                 elif test -f /usr/local/include/mysql.h; then
7255                         MYSQL_INCDIR=/usr/local/include
7256                         MYSQL_LIBDIR=/usr/local/lib
7257                         MYSQL_BINDIR=/usr/local/bin
7258                 else
7259                    echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6
7261                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7262 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7263    { (exit 1); exit 1; }; }
7264                 fi
7265         else
7266                 if test -f $withval/include/mysql/mysql.h; then
7267                         MYSQL_INCDIR=$withval/include/mysql
7268                         MYSQL_LIBDIR=$withval/lib/mysql
7269                         MYSQL_BINDIR=$withval/bin
7270                 elif test -f $withval/include/mysql.h; then
7271                         MYSQL_INCDIR=$withval/include
7272                         MYSQL_LIBDIR=$withval/lib
7273                         MYSQL_BINDIR=$withval/bin
7274                 else
7275                    echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7278 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7279    { (exit 1); exit 1; }; }
7280                 fi
7281         fi
7282     SQL_INCLUDE=-I$MYSQL_INCDIR
7283     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7284        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7285        cat >>confdefs.h <<\_ACEOF
7286 #define HAVE_THREAD_SAFE_MYSQL 1
7287 _ACEOF
7288
7289     else
7290        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7291     fi
7292     SQL_BINDIR=$MYSQL_BINDIR
7293
7294     cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_MYSQL 1
7296 _ACEOF
7297
7298     echo "$as_me:$LINENO: result: yes" >&5
7299 echo "${ECHO_T}yes" >&6
7300     db_found=yes
7301     support_mysql=yes
7302     db_name=MySQL
7303     DB_NAME=mysql
7304
7305   else
7306         echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6
7308   fi
7309
7310 else
7311
7312     echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6
7314
7315 fi;
7316
7317
7318 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7319 if test "${with_embedded_mysql+set}" = set; then
7320   withval="$with_embedded_mysql"
7321
7322   if test "$withval" != "no"; then
7323         if test "$withval" = "yes"; then
7324                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7325                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7326                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7327                         MYSQL_BINDIR=/usr/local/mysql/bin
7328                 elif test -f /usr/include/mysql/mysql.h; then
7329                         MYSQL_INCDIR=/usr/include/mysql
7330                         MYSQL_LIBDIR=/usr/lib/mysql
7331                         MYSQL_BINDIR=/usr/bin
7332                 elif test -f /usr/include/mysql.h; then
7333                         MYSQL_INCDIR=/usr/include
7334                         MYSQL_LIBDIR=/usr/lib
7335                         MYSQL_BINDIR=/usr/bin
7336                 elif test -f /usr/local/include/mysql/mysql.h; then
7337                         MYSQL_INCDIR=/usr/local/include/mysql
7338                         MYSQL_LIBDIR=/usr/local/lib/mysql
7339                         MYSQL_BINDIR=/usr/local/bin
7340                 elif test -f /usr/local/include/mysql.h; then
7341                         MYSQL_INCDIR=/usr/local/include
7342                         MYSQL_LIBDIR=/usr/local/lib
7343                         MYSQL_BINDIR=/usr/local/bin
7344                 else
7345                    echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6
7347                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7348 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7349    { (exit 1); exit 1; }; }
7350                 fi
7351         else
7352                 if test -f $withval/include/mysql/mysql.h; then
7353                         MYSQL_INCDIR=$withval/include/mysql
7354                         MYSQL_LIBDIR=$withval/lib/mysql
7355                         MYSQL_BINDIR=$withval/bin
7356                 elif test -f $withval/include/mysql.h; then
7357                         MYSQL_INCDIR=$withval/include
7358                         MYSQL_LIBDIR=$withval/lib
7359                         MYSQL_BINDIR=$withval/bin
7360                 else
7361                    echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7363                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7364 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7365    { (exit 1); exit 1; }; }
7366                 fi
7367         fi
7368     SQL_INCLUDE=-I$MYSQL_INCDIR
7369     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7370     SQL_BINDIR=$MYSQL_BINDIR
7371
7372     cat >>confdefs.h <<\_ACEOF
7373 #define HAVE_MYSQL 1
7374 _ACEOF
7375
7376     cat >>confdefs.h <<\_ACEOF
7377 #define HAVE_EMBEDDED_MYSQL 1
7378 _ACEOF
7379
7380     echo "$as_me:$LINENO: result: yes" >&5
7381 echo "${ECHO_T}yes" >&6
7382     db_found=yes
7383     support_mysql=yes
7384     db_name=MySQL
7385     DB_NAME=mysql
7386
7387   else
7388         echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390   fi
7391
7392 else
7393
7394   echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7396
7397 fi;
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 db_found=no
7408 echo "$as_me:$LINENO: checking for SQLite support" >&5
7409 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7410
7411 # Check whether --with-sqlite or --without-sqlite was given.
7412 if test "${with_sqlite+set}" = set; then
7413   withval="$with_sqlite"
7414
7415   if test "$withval" != "no"; then
7416         if test "$withval" = "yes"; then
7417                 if test -f /usr/local/include/sqlite.h; then
7418                         SQLITE_INCDIR=/usr/local/include
7419                         SQLITE_LIBDIR=/usr/local/lib
7420                         SQLITE_BINDIR=/usr/local/bin
7421                 elif test -f /usr/include/sqlite.h; then
7422                         SQLITE_INCDIR=/usr/include
7423                         SQLITE_LIBDIR=/usr/lib
7424                         SQLITE_BINDIR=/usr/bin
7425                 else
7426                    echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7428                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7429 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7430    { (exit 1); exit 1; }; }
7431                 fi
7432         else
7433                 if test -f $withval/sqlite.h; then
7434                         SQLITE_INCDIR=$withval
7435                         SQLITE_LIBDIR=$withval
7436                         SQLITE_BINDIR=$withval
7437                 else
7438                    echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7440                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7441 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7442    { (exit 1); exit 1; }; }
7443                 fi
7444         fi
7445     SQL_INCLUDE=-I$SQLITE_INCDIR
7446     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7447     SQL_BINDIR=$SQLITE_BINDIR
7448
7449     cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_SQLITE 1
7451 _ACEOF
7452
7453     echo "$as_me:$LINENO: result: yes" >&5
7454 echo "${ECHO_T}yes" >&6
7455     db_found=yes
7456     support_sqlite=yes
7457     db_name=SQLite
7458     DB_NAME=sqlite
7459
7460   else
7461         echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7463   fi
7464
7465 else
7466
7467   echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7469
7470 fi;
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 cat >>confdefs.h <<\_ACEOF
7481 #define PROTOTYPES 1
7482 _ACEOF
7483
7484
7485 if test -z "$CFLAGS"; then
7486     if test -z "$CCOPTS"; then
7487         CCOPTS='-g -O2'
7488     fi
7489     CFLAGS="$CCOPTS"
7490 fi
7491
7492
7493
7494
7495 largefile_support="no"
7496
7497    # Check whether --enable-largefile or --disable-largefile was given.
7498 if test "${enable_largefile+set}" = set; then
7499   enableval="$enable_largefile"
7500
7501 fi;
7502    if test "$enable_largefile" != no; then
7503      if test -n "$ac_tool_prefix"; then
7504   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7505 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7506 echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508 if test "${ac_cv_prog_GETCONF+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   if test -n "$GETCONF"; then
7512   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527
7528 fi
7529 fi
7530 GETCONF=$ac_cv_prog_GETCONF
7531 if test -n "$GETCONF"; then
7532   echo "$as_me:$LINENO: result: $GETCONF" >&5
7533 echo "${ECHO_T}$GETCONF" >&6
7534 else
7535   echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6
7537 fi
7538
7539 fi
7540 if test -z "$ac_cv_prog_GETCONF"; then
7541   ac_ct_GETCONF=$GETCONF
7542   # Extract the first word of "getconf", so it can be a program name with args.
7543 set dummy getconf; ac_word=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   if test -n "$ac_ct_GETCONF"; then
7550   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559     ac_cv_prog_ac_ct_GETCONF="getconf"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565
7566 fi
7567 fi
7568 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7569 if test -n "$ac_ct_GETCONF"; then
7570   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7571 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7572 else
7573   echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7575 fi
7576
7577   GETCONF=$ac_ct_GETCONF
7578 else
7579   GETCONF="$ac_cv_prog_GETCONF"
7580 fi
7581
7582      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7583 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7584 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7588         ac_cv_sys_largefile_CFLAGS=no
7589         case "$host_os" in
7590            # IRIX 6.2 and later require cc -n32.
7591            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7592              if test "$GCC" != yes; then
7593                ac_cv_sys_largefile_CFLAGS=-n32
7594              fi
7595              ac_save_CC="$CC"
7596              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7597              cat >conftest.$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7599 /* confdefs.h.  */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h.  */
7604
7605 int
7606 main ()
7607 {
7608
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615   (eval $ac_link) 2>&5
7616   ac_status=$?
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); } &&
7619          { ac_try='test -s conftest$ac_exeext'
7620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621   (eval $ac_try) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; }; then
7625   :
7626 else
7627   echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 ac_cv_sys_largefile_CFLAGS=no
7631 fi
7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7633              CC="$ac_save_CC"
7634            esac
7635       }
7636 fi
7637 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7638 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7639      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7640 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7641 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7645         ac_cv_sys_largefile_LDFLAGS=no
7646
7647       }
7648 fi
7649 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7650 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7651      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7652 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7653 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7657         ac_cv_sys_largefile_LIBS=no
7658
7659       }
7660 fi
7661 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7662 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7663
7664      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7665        case "$ac_flag" in
7666        no) ;;
7667        -D_FILE_OFFSET_BITS=*) ;;
7668        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7669        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7670        -D?* | -I?*)
7671          case "$ac_flag" in
7672    no) ;;
7673    ?*)
7674      case "$CPPFLAGS" in
7675      '') CPPFLAGS="$ac_flag" ;;
7676      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7677      esac ;;
7678    esac ;;
7679        *)
7680          case "$ac_flag" in
7681    no) ;;
7682    ?*)
7683      case "$CFLAGS" in
7684      '') CFLAGS="$ac_flag" ;;
7685      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7686      esac ;;
7687    esac ;;
7688        esac
7689      done
7690      case "$ac_cv_sys_largefile_LDFLAGS" in
7691    no) ;;
7692    ?*)
7693      case "$LDFLAGS" in
7694      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7695      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7696      esac ;;
7697    esac
7698      case "$ac_cv_sys_largefile_LIBS" in
7699    no) ;;
7700    ?*)
7701      case "$LIBS" in
7702      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7703      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7704      esac ;;
7705    esac
7706      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7707 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7708 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   ac_cv_sys_file_offset_bits=no
7712       case "$host_os" in
7713         # HP-UX 10.20 and later
7714         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7715           ac_cv_sys_file_offset_bits=64 ;;
7716         esac
7717       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7718         case "$ac_flag" in
7719         -D_FILE_OFFSET_BITS)
7720           ac_cv_sys_file_offset_bits=1 ;;
7721         -D_FILE_OFFSET_BITS=*)
7722           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7723         esac
7724       done
7725
7726 fi
7727 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7728 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7729    if test "$ac_cv_sys_file_offset_bits" != no; then
7730
7731 cat >>confdefs.h <<_ACEOF
7732 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7733 _ACEOF
7734
7735    fi
7736      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7737 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7738 if test "${ac_cv_sys_largefile_source+set}" = set; then
7739   echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741   ac_cv_sys_largefile_source=no
7742       case "$host_os" in
7743         # HP-UX 10.20 and later
7744         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7745           ac_cv_sys_largefile_source=1 ;;
7746         esac
7747       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7748         case "$ac_flag" in
7749         -D_LARGEFILE_SOURCE)
7750           ac_cv_sys_largefile_source=1 ;;
7751         -D_LARGEFILE_SOURCE=*)
7752           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7753         esac
7754       done
7755
7756 fi
7757 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7758 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7759    if test "$ac_cv_sys_largefile_source" != no; then
7760
7761 cat >>confdefs.h <<_ACEOF
7762 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7763 _ACEOF
7764
7765    fi
7766      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7767 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7768 if test "${ac_cv_sys_large_files+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   ac_cv_sys_large_files=no
7772       case "$host_os" in
7773         # AIX 4.2 and later
7774         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7775           ac_cv_sys_large_files=1 ;;
7776         esac
7777       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7778         case "$ac_flag" in
7779         -D_LARGE_FILES)
7780           ac_cv_sys_large_files=1 ;;
7781         -D_LARGE_FILES=*)
7782           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7783         esac
7784       done
7785
7786 fi
7787 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7788 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7789    if test "$ac_cv_sys_large_files" != no; then
7790
7791 cat >>confdefs.h <<_ACEOF
7792 #define _LARGE_FILES $ac_cv_sys_large_files
7793 _ACEOF
7794
7795    fi
7796    fi
7797
7798
7799
7800 echo "$as_me:$LINENO: checking for X" >&5
7801 echo $ECHO_N "checking for X... $ECHO_C" >&6
7802
7803
7804 # Check whether --with-x or --without-x was given.
7805 if test "${with_x+set}" = set; then
7806   withval="$with_x"
7807
7808 fi;
7809 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7810 if test "x$with_x" = xno; then
7811   # The user explicitly disabled X.
7812   have_x=disabled
7813 else
7814   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7815     # Both variables are already set.
7816     have_x=yes
7817   else
7818     if test "${ac_cv_have_x+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   # One or both of the vars are not set, and there is no cached value.
7822 ac_x_includes=no ac_x_libraries=no
7823 rm -fr conftest.dir
7824 if mkdir conftest.dir; then
7825   cd conftest.dir
7826   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7827   cat >Imakefile <<'_ACEOF'
7828 acfindx:
7829         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7830 _ACEOF
7831   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7832     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7833     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7834     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7835     for ac_extension in a so sl; do
7836       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7837          test -f $ac_im_libdir/libX11.$ac_extension; then
7838         ac_im_usrlibdir=$ac_im_libdir; break
7839       fi
7840     done
7841     # Screen out bogus values from the imake configuration.  They are
7842     # bogus both because they are the default anyway, and because
7843     # using them would break gcc on systems where it needs fixed includes.
7844     case $ac_im_incroot in
7845         /usr/include) ;;
7846         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7847     esac
7848     case $ac_im_usrlibdir in
7849         /usr/lib | /lib) ;;
7850         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7851     esac
7852   fi
7853   cd ..
7854   rm -fr conftest.dir
7855 fi
7856
7857 # Standard set of common directories for X headers.
7858 # Check X11 before X11Rn because it is often a symlink to the current release.
7859 ac_x_header_dirs='
7860 /usr/X11/include
7861 /usr/X11R6/include
7862 /usr/X11R5/include
7863 /usr/X11R4/include
7864
7865 /usr/include/X11
7866 /usr/include/X11R6
7867 /usr/include/X11R5
7868 /usr/include/X11R4
7869
7870 /usr/local/X11/include
7871 /usr/local/X11R6/include
7872 /usr/local/X11R5/include
7873 /usr/local/X11R4/include
7874
7875 /usr/local/include/X11
7876 /usr/local/include/X11R6
7877 /usr/local/include/X11R5
7878 /usr/local/include/X11R4
7879
7880 /usr/X386/include
7881 /usr/x386/include
7882 /usr/XFree86/include/X11
7883
7884 /usr/include
7885 /usr/local/include
7886 /usr/unsupported/include
7887 /usr/athena/include
7888 /usr/local/x11r5/include
7889 /usr/lpp/Xamples/include
7890
7891 /usr/openwin/include
7892 /usr/openwin/share/include'
7893
7894 if test "$ac_x_includes" = no; then
7895   # Guess where to find include files, by looking for Intrinsic.h.
7896   # First, try using that file with no special directory specified.
7897   cat >conftest.$ac_ext <<_ACEOF
7898 #line $LINENO "configure"
7899 /* confdefs.h.  */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h.  */
7904 #include <X11/Intrinsic.h>
7905 _ACEOF
7906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } >/dev/null; then
7914   if test -s conftest.err; then
7915     ac_cpp_err=$ac_c_preproc_warn_flag
7916   else
7917     ac_cpp_err=
7918   fi
7919 else
7920   ac_cpp_err=yes
7921 fi
7922 if test -z "$ac_cpp_err"; then
7923   # We can compile using X headers with no special include directory.
7924 ac_x_includes=
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929   for ac_dir in $ac_x_header_dirs; do
7930   if test -r "$ac_dir/X11/Intrinsic.h"; then
7931     ac_x_includes=$ac_dir
7932     break
7933   fi
7934 done
7935 fi
7936 rm -f conftest.err conftest.$ac_ext
7937 fi # $ac_x_includes = no
7938
7939 if test "$ac_x_libraries" = no; then
7940   # Check for the libraries.
7941   # See if we find them without any special options.
7942   # Don't add to $LIBS permanently.
7943   ac_save_LIBS=$LIBS
7944   LIBS="-lXt $LIBS"
7945   cat >conftest.$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 #include <X11/Intrinsic.h>
7953 int
7954 main ()
7955 {
7956 XtMalloc (0)
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963   (eval $ac_link) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } &&
7967          { ac_try='test -s conftest$ac_exeext'
7968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969   (eval $ac_try) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; }; then
7973   LIBS=$ac_save_LIBS
7974 # We can link X programs with no special library path.
7975 ac_x_libraries=
7976 else
7977   echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 LIBS=$ac_save_LIBS
7981 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7982 do
7983   # Don't even attempt the hair of trying to link an X program!
7984   for ac_extension in a so sl; do
7985     if test -r $ac_dir/libXt.$ac_extension; then
7986       ac_x_libraries=$ac_dir
7987       break 2
7988     fi
7989   done
7990 done
7991 fi
7992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7993 fi # $ac_x_libraries = no
7994
7995 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7996   # Didn't find X anywhere.  Cache the known absence of X.
7997   ac_cv_have_x="have_x=no"
7998 else
7999   # Record where we found X for the cache.
8000   ac_cv_have_x="have_x=yes \
8001                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8002 fi
8003 fi
8004
8005   fi
8006   eval "$ac_cv_have_x"
8007 fi # $with_x != no
8008
8009 if test "$have_x" != yes; then
8010   echo "$as_me:$LINENO: result: $have_x" >&5
8011 echo "${ECHO_T}$have_x" >&6
8012   no_x=yes
8013 else
8014   # If each of the values was on the command line, it overrides each guess.
8015   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8016   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8017   # Update the cache value to reflect the command line values.
8018   ac_cv_have_x="have_x=yes \
8019                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8020   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8021 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8022 fi
8023
8024 if test "$no_x" = yes; then
8025   # Not all programs may use this symbol, but it does not hurt to define it.
8026
8027 cat >>confdefs.h <<\_ACEOF
8028 #define X_DISPLAY_MISSING 1
8029 _ACEOF
8030
8031   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8032 else
8033   if test -n "$x_includes"; then
8034     X_CFLAGS="$X_CFLAGS -I$x_includes"
8035   fi
8036
8037   # It would also be nice to do this for all -L options, not just this one.
8038   if test -n "$x_libraries"; then
8039     X_LIBS="$X_LIBS -L$x_libraries"
8040     # For Solaris; some versions of Sun CC require a space after -R and
8041     # others require no space.  Words are not sufficient . . . .
8042     case `(uname -sr) 2>/dev/null` in
8043     "SunOS 5"*)
8044       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8045 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8046       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8047       cat >conftest.$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054
8055 int
8056 main ()
8057 {
8058
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065   (eval $ac_link) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -s conftest$ac_exeext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_R_nospace=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 ac_R_nospace=no
8081 fi
8082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8083       if test $ac_R_nospace = yes; then
8084         echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8086         X_LIBS="$X_LIBS -R$x_libraries"
8087       else
8088         LIBS="$ac_xsave_LIBS -R $x_libraries"
8089         cat >conftest.$ac_ext <<_ACEOF
8090 #line $LINENO "configure"
8091 /* confdefs.h.  */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h.  */
8096
8097 int
8098 main ()
8099 {
8100
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107   (eval $ac_link) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -s conftest$ac_exeext'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; }; then
8117   ac_R_space=yes
8118 else
8119   echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ac_R_space=no
8123 fi
8124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8125         if test $ac_R_space = yes; then
8126           echo "$as_me:$LINENO: result: yes" >&5
8127 echo "${ECHO_T}yes" >&6
8128           X_LIBS="$X_LIBS -R $x_libraries"
8129         else
8130           echo "$as_me:$LINENO: result: neither works" >&5
8131 echo "${ECHO_T}neither works" >&6
8132         fi
8133       fi
8134       LIBS=$ac_xsave_LIBS
8135     esac
8136   fi
8137
8138   # Check for system-dependent libraries X programs must link with.
8139   # Do this before checking for the system-independent R6 libraries
8140   # (-lICE), since we may need -lsocket or whatever for X linking.
8141
8142   if test "$ISC" = yes; then
8143     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8144   else
8145     # Martyn Johnson says this is needed for Ultrix, if the X
8146     # libraries were built with DECnet support.  And Karl Berry says
8147     # the Alpha needs dnet_stub (dnet does not exist).
8148     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8149     cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 /* confdefs.h.  */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h.  */
8156
8157 /* Override any gcc2 internal prototype to avoid an error.  */
8158 #ifdef __cplusplus
8159 extern "C"
8160 #endif
8161 /* We use char because int might match the return type of a gcc2
8162    builtin and then its argument prototype would still apply.  */
8163 char XOpenDisplay ();
8164 int
8165 main ()
8166 {
8167 XOpenDisplay ();
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174   (eval $ac_link) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } &&
8178          { ac_try='test -s conftest$ac_exeext'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   :
8185 else
8186   echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8190 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-ldnet  $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203
8204 /* Override any gcc2 internal prototype to avoid an error.  */
8205 #ifdef __cplusplus
8206 extern "C"
8207 #endif
8208 /* We use char because int might match the return type of a gcc2
8209    builtin and then its argument prototype would still apply.  */
8210 char dnet_ntoa ();
8211 int
8212 main ()
8213 {
8214 dnet_ntoa ();
8215   ;
8216   return 0;
8217 }
8218 _ACEOF
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221   (eval $ac_link) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); } &&
8225          { ac_try='test -s conftest$ac_exeext'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; }; then
8231   ac_cv_lib_dnet_dnet_ntoa=yes
8232 else
8233   echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 ac_cv_lib_dnet_dnet_ntoa=no
8237 fi
8238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8240 fi
8241 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8242 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8243 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8244   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8245 fi
8246
8247     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8248       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8249 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8250 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-ldnet_stub  $LIBS"
8255 cat >conftest.$ac_ext <<_ACEOF
8256 #line $LINENO "configure"
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262
8263 /* Override any gcc2 internal prototype to avoid an error.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 /* We use char because int might match the return type of a gcc2
8268    builtin and then its argument prototype would still apply.  */
8269 char dnet_ntoa ();
8270 int
8271 main ()
8272 {
8273 dnet_ntoa ();
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280   (eval $ac_link) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } &&
8284          { ac_try='test -s conftest$ac_exeext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_cv_lib_dnet_stub_dnet_ntoa=no
8296 fi
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8299 fi
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8301 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8302 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8303   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8304 fi
8305
8306     fi
8307 fi
8308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8309     LIBS="$ac_xsave_LIBS"
8310
8311     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8312     # to get the SysV transport functions.
8313     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8314     # needs -lnsl.
8315     # The nsl library prevents programs from opening the X display
8316     # on Irix 5.2, according to T.E. Dickey.
8317     # The functions gethostbyname, getservbyname, and inet_addr are
8318     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8319     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8320 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8321 if test "${ac_cv_func_gethostbyname+set}" = set; then
8322   echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324   cat >conftest.$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8326 /* confdefs.h.  */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h.  */
8331 /* System header to define __stub macros and hopefully few prototypes,
8332     which can conflict with char gethostbyname (); below.
8333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8334     <limits.h> exists even on freestanding compilers.  */
8335 #ifdef __STDC__
8336 # include <limits.h>
8337 #else
8338 # include <assert.h>
8339 #endif
8340 /* Override any gcc2 internal prototype to avoid an error.  */
8341 #ifdef __cplusplus
8342 extern "C"
8343 {
8344 #endif
8345 /* We use char because int might match the return type of a gcc2
8346    builtin and then its argument prototype would still apply.  */
8347 char gethostbyname ();
8348 /* The GNU C library defines this for functions which it implements
8349     to always fail with ENOSYS.  Some functions are actually named
8350     something starting with __ and the normal name is an alias.  */
8351 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8352 choke me
8353 #else
8354 char (*f) () = gethostbyname;
8355 #endif
8356 #ifdef __cplusplus
8357 }
8358 #endif
8359
8360 int
8361 main ()
8362 {
8363 return f != gethostbyname;
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370   (eval $ac_link) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } &&
8374          { ac_try='test -s conftest$ac_exeext'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   ac_cv_func_gethostbyname=yes
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 ac_cv_func_gethostbyname=no
8386 fi
8387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8388 fi
8389 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8390 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8391
8392     if test $ac_cv_func_gethostbyname = no; then
8393       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8394 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8395 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   ac_check_lib_save_LIBS=$LIBS
8399 LIBS="-lnsl  $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 /* confdefs.h.  */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h.  */
8407
8408 /* Override any gcc2 internal prototype to avoid an error.  */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 /* We use char because int might match the return type of a gcc2
8413    builtin and then its argument prototype would still apply.  */
8414 char gethostbyname ();
8415 int
8416 main ()
8417 {
8418 gethostbyname ();
8419   ;
8420   return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425   (eval $ac_link) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } &&
8429          { ac_try='test -s conftest$ac_exeext'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435   ac_cv_lib_nsl_gethostbyname=yes
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ac_cv_lib_nsl_gethostbyname=no
8441 fi
8442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8443 LIBS=$ac_check_lib_save_LIBS
8444 fi
8445 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8446 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8447 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8448   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8449 fi
8450
8451       if test $ac_cv_lib_nsl_gethostbyname = no; then
8452         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8453 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8454 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   ac_check_lib_save_LIBS=$LIBS
8458 LIBS="-lbsd  $LIBS"
8459 cat >conftest.$ac_ext <<_ACEOF
8460 #line $LINENO "configure"
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8466
8467 /* Override any gcc2 internal prototype to avoid an error.  */
8468 #ifdef __cplusplus
8469 extern "C"
8470 #endif
8471 /* We use char because int might match the return type of a gcc2
8472    builtin and then its argument prototype would still apply.  */
8473 char gethostbyname ();
8474 int
8475 main ()
8476 {
8477 gethostbyname ();
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484   (eval $ac_link) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -s conftest$ac_exeext'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; }; then
8494   ac_cv_lib_bsd_gethostbyname=yes
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499 ac_cv_lib_bsd_gethostbyname=no
8500 fi
8501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8503 fi
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8505 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8506 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8507   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8508 fi
8509
8510       fi
8511     fi
8512
8513     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8514     # socket/setsockopt and other routines are undefined under SCO ODT
8515     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8516     # on later versions), says Simon Leinen: it contains gethostby*
8517     # variants that don't use the name server (or something).  -lsocket
8518     # must be given before -lnsl if both are needed.  We assume that
8519     # if connect needs -lnsl, so does gethostbyname.
8520     echo "$as_me:$LINENO: checking for connect" >&5
8521 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8522 if test "${ac_cv_func_connect+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 /* System header to define __stub macros and hopefully few prototypes,
8533     which can conflict with char connect (); below.
8534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8535     <limits.h> exists even on freestanding compilers.  */
8536 #ifdef __STDC__
8537 # include <limits.h>
8538 #else
8539 # include <assert.h>
8540 #endif
8541 /* Override any gcc2 internal prototype to avoid an error.  */
8542 #ifdef __cplusplus
8543 extern "C"
8544 {
8545 #endif
8546 /* We use char because int might match the return type of a gcc2
8547    builtin and then its argument prototype would still apply.  */
8548 char connect ();
8549 /* The GNU C library defines this for functions which it implements
8550     to always fail with ENOSYS.  Some functions are actually named
8551     something starting with __ and the normal name is an alias.  */
8552 #if defined (__stub_connect) || defined (__stub___connect)
8553 choke me
8554 #else
8555 char (*f) () = connect;
8556 #endif
8557 #ifdef __cplusplus
8558 }
8559 #endif
8560
8561 int
8562 main ()
8563 {
8564 return f != connect;
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571   (eval $ac_link) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -s conftest$ac_exeext'
8576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577   (eval $ac_try) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); }; }; then
8581   ac_cv_func_connect=yes
8582 else
8583   echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 ac_cv_func_connect=no
8587 fi
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 fi
8590 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8591 echo "${ECHO_T}$ac_cv_func_connect" >&6
8592
8593     if test $ac_cv_func_connect = no; then
8594       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8595 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8596 if test "${ac_cv_lib_socket_connect+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8602 #line $LINENO "configure"
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608
8609 /* Override any gcc2 internal prototype to avoid an error.  */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 /* We use char because int might match the return type of a gcc2
8614    builtin and then its argument prototype would still apply.  */
8615 char connect ();
8616 int
8617 main ()
8618 {
8619 connect ();
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626   (eval $ac_link) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -s conftest$ac_exeext'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   ac_cv_lib_socket_connect=yes
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 ac_cv_lib_socket_connect=no
8642 fi
8643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8645 fi
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8647 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8648 if test $ac_cv_lib_socket_connect = yes; then
8649   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8650 fi
8651
8652     fi
8653
8654     # Guillermo Gomez says -lposix is necessary on A/UX.
8655     echo "$as_me:$LINENO: checking for remove" >&5
8656 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8657 if test "${ac_cv_func_remove+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   cat >conftest.$ac_ext <<_ACEOF
8661 #line $LINENO "configure"
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 /* System header to define __stub macros and hopefully few prototypes,
8668     which can conflict with char remove (); below.
8669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670     <limits.h> exists even on freestanding compilers.  */
8671 #ifdef __STDC__
8672 # include <limits.h>
8673 #else
8674 # include <assert.h>
8675 #endif
8676 /* Override any gcc2 internal prototype to avoid an error.  */
8677 #ifdef __cplusplus
8678 extern "C"
8679 {
8680 #endif
8681 /* We use char because int might match the return type of a gcc2
8682    builtin and then its argument prototype would still apply.  */
8683 char remove ();
8684 /* The GNU C library defines this for functions which it implements
8685     to always fail with ENOSYS.  Some functions are actually named
8686     something starting with __ and the normal name is an alias.  */
8687 #if defined (__stub_remove) || defined (__stub___remove)
8688 choke me
8689 #else
8690 char (*f) () = remove;
8691 #endif
8692 #ifdef __cplusplus
8693 }
8694 #endif
8695
8696 int
8697 main ()
8698 {
8699 return f != remove;
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706   (eval $ac_link) 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); } &&
8710          { ac_try='test -s conftest$ac_exeext'
8711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712   (eval $ac_try) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); }; }; then
8716   ac_cv_func_remove=yes
8717 else
8718   echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 ac_cv_func_remove=no
8722 fi
8723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8724 fi
8725 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8726 echo "${ECHO_T}$ac_cv_func_remove" >&6
8727
8728     if test $ac_cv_func_remove = no; then
8729       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8730 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8731 if test "${ac_cv_lib_posix_remove+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-lposix  $LIBS"
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743
8744 /* Override any gcc2 internal prototype to avoid an error.  */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 /* We use char because int might match the return type of a gcc2
8749    builtin and then its argument prototype would still apply.  */
8750 char remove ();
8751 int
8752 main ()
8753 {
8754 remove ();
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761   (eval $ac_link) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -s conftest$ac_exeext'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   ac_cv_lib_posix_remove=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_cv_lib_posix_remove=no
8777 fi
8778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8780 fi
8781 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8782 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8783 if test $ac_cv_lib_posix_remove = yes; then
8784   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8785 fi
8786
8787     fi
8788
8789     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8790     echo "$as_me:$LINENO: checking for shmat" >&5
8791 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8792 if test "${ac_cv_func_shmat+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   cat >conftest.$ac_ext <<_ACEOF
8796 #line $LINENO "configure"
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 /* System header to define __stub macros and hopefully few prototypes,
8803     which can conflict with char shmat (); below.
8804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8805     <limits.h> exists even on freestanding compilers.  */
8806 #ifdef __STDC__
8807 # include <limits.h>
8808 #else
8809 # include <assert.h>
8810 #endif
8811 /* Override any gcc2 internal prototype to avoid an error.  */
8812 #ifdef __cplusplus
8813 extern "C"
8814 {
8815 #endif
8816 /* We use char because int might match the return type of a gcc2
8817    builtin and then its argument prototype would still apply.  */
8818 char shmat ();
8819 /* The GNU C library defines this for functions which it implements
8820     to always fail with ENOSYS.  Some functions are actually named
8821     something starting with __ and the normal name is an alias.  */
8822 #if defined (__stub_shmat) || defined (__stub___shmat)
8823 choke me
8824 #else
8825 char (*f) () = shmat;
8826 #endif
8827 #ifdef __cplusplus
8828 }
8829 #endif
8830
8831 int
8832 main ()
8833 {
8834 return f != shmat;
8835   ;
8836   return 0;
8837 }
8838 _ACEOF
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841   (eval $ac_link) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } &&
8845          { ac_try='test -s conftest$ac_exeext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   ac_cv_func_shmat=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_cv_func_shmat=no
8857 fi
8858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8859 fi
8860 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8861 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8862
8863     if test $ac_cv_func_shmat = no; then
8864       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8865 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8866 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8867   echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869   ac_check_lib_save_LIBS=$LIBS
8870 LIBS="-lipc  $LIBS"
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878
8879 /* Override any gcc2 internal prototype to avoid an error.  */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 /* We use char because int might match the return type of a gcc2
8884    builtin and then its argument prototype would still apply.  */
8885 char shmat ();
8886 int
8887 main ()
8888 {
8889 shmat ();
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896   (eval $ac_link) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } &&
8900          { ac_try='test -s conftest$ac_exeext'
8901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902   (eval $ac_try) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; }; then
8906   ac_cv_lib_ipc_shmat=yes
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 ac_cv_lib_ipc_shmat=no
8912 fi
8913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8914 LIBS=$ac_check_lib_save_LIBS
8915 fi
8916 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8917 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8918 if test $ac_cv_lib_ipc_shmat = yes; then
8919   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8920 fi
8921
8922     fi
8923   fi
8924
8925   # Check for libraries that X11R6 Xt/Xaw programs need.
8926   ac_save_LDFLAGS=$LDFLAGS
8927   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8928   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8929   # check for ICE first), but we must link in the order -lSM -lICE or
8930   # we get undefined symbols.  So assume we have SM if we have ICE.
8931   # These have to be linked with before -lX11, unlike the other
8932   # libraries we check for below, so use a different variable.
8933   # John Interrante, Karl Berry
8934   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8935 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8936 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939   ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948
8949 /* Override any gcc2 internal prototype to avoid an error.  */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 /* We use char because int might match the return type of a gcc2
8954    builtin and then its argument prototype would still apply.  */
8955 char IceConnectionNumber ();
8956 int
8957 main ()
8958 {
8959 IceConnectionNumber ();
8960   ;
8961   return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966   (eval $ac_link) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); } &&
8970          { ac_try='test -s conftest$ac_exeext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_cv_lib_ICE_IceConnectionNumber=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_lib_ICE_IceConnectionNumber=no
8982 fi
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8985 fi
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8987 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8988 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8989   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8990 fi
8991
8992   LDFLAGS=$ac_save_LDFLAGS
8993
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 for ac_header in \
9020         assert.h \
9021         fcntl.h \
9022         grp.h \
9023         pwd.h \
9024         libc.h \
9025         limits.h \
9026         stdarg.h \
9027         stdlib.h \
9028         stdint.h \
9029         string.h \
9030         termios.h \
9031         unistd.h \
9032         sys/byteorder.h \
9033         sys/ioctl.h \
9034         sys/select.h \
9035         sys/sockio.h \
9036         sys/time.h \
9037         sys/socket.h \
9038         arpa/nameser.h \
9039         resolv.h \
9040         mtio.h \
9041         sys/mtio.h \
9042
9043 do
9044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046   echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9049   echo $ECHO_N "(cached) $ECHO_C" >&6
9050 fi
9051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9053 else
9054   # Is the header compilable?
9055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line $LINENO "configure"
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064 $ac_includes_default
9065 #include <$ac_header>
9066 _ACEOF
9067 rm -f conftest.$ac_objext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9069   (eval $ac_compile) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); } &&
9073          { ac_try='test -s conftest.$ac_objext'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   ac_header_compiler=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 ac_header_compiler=no
9085 fi
9086 rm -f conftest.$ac_objext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088 echo "${ECHO_T}$ac_header_compiler" >&6
9089
9090 # Is the header present?
9091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9094 #line $LINENO "configure"
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100 #include <$ac_header>
9101 _ACEOF
9102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9104   ac_status=$?
9105   grep -v '^ *+' conftest.er1 >conftest.err
9106   rm -f conftest.er1
9107   cat conftest.err >&5
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); } >/dev/null; then
9110   if test -s conftest.err; then
9111     ac_cpp_err=$ac_c_preproc_warn_flag
9112   else
9113     ac_cpp_err=
9114   fi
9115 else
9116   ac_cpp_err=yes
9117 fi
9118 if test -z "$ac_cpp_err"; then
9119   ac_header_preproc=yes
9120 else
9121   echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124   ac_header_preproc=no
9125 fi
9126 rm -f conftest.err conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9128 echo "${ECHO_T}$ac_header_preproc" >&6
9129
9130 # So?  What about this header?
9131 case $ac_header_compiler:$ac_header_preproc in
9132   yes:no )
9133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9137     (
9138       cat <<\_ASBOX
9139 ## ------------------------------------ ##
9140 ## Report this to bug-autoconf@gnu.org. ##
9141 ## ------------------------------------ ##
9142 _ASBOX
9143     ) |
9144       sed "s/^/$as_me: WARNING:     /" >&2
9145     ;;
9146   no:yes )
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9153     (
9154       cat <<\_ASBOX
9155 ## ------------------------------------ ##
9156 ## Report this to bug-autoconf@gnu.org. ##
9157 ## ------------------------------------ ##
9158 _ASBOX
9159     ) |
9160       sed "s/^/$as_me: WARNING:     /" >&2
9161     ;;
9162 esac
9163 echo "$as_me:$LINENO: checking for $ac_header" >&5
9164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   eval "$as_ac_Header=$ac_header_preproc"
9169 fi
9170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9172
9173 fi
9174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9175   cat >>confdefs.h <<_ACEOF
9176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9177 _ACEOF
9178
9179 fi
9180
9181 done
9182
9183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9185 if test "${ac_cv_header_stdc+set}" = set; then
9186   echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188   cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195 #include <stdlib.h>
9196 #include <stdarg.h>
9197 #include <string.h>
9198 #include <float.h>
9199
9200 int
9201 main ()
9202 {
9203
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 rm -f conftest.$ac_objext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210   (eval $ac_compile) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); } &&
9214          { ac_try='test -s conftest.$ac_objext'
9215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216   (eval $ac_try) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); }; }; then
9220   ac_cv_header_stdc=yes
9221 else
9222   echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225 ac_cv_header_stdc=no
9226 fi
9227 rm -f conftest.$ac_objext conftest.$ac_ext
9228
9229 if test $ac_cv_header_stdc = yes; then
9230   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9231   cat >conftest.$ac_ext <<_ACEOF
9232 #line $LINENO "configure"
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238 #include <string.h>
9239
9240 _ACEOF
9241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242   $EGREP "memchr" >/dev/null 2>&1; then
9243   :
9244 else
9245   ac_cv_header_stdc=no
9246 fi
9247 rm -f conftest*
9248
9249 fi
9250
9251 if test $ac_cv_header_stdc = yes; then
9252   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9253   cat >conftest.$ac_ext <<_ACEOF
9254 #line $LINENO "configure"
9255 /* confdefs.h.  */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h.  */
9260 #include <stdlib.h>
9261
9262 _ACEOF
9263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9264   $EGREP "free" >/dev/null 2>&1; then
9265   :
9266 else
9267   ac_cv_header_stdc=no
9268 fi
9269 rm -f conftest*
9270
9271 fi
9272
9273 if test $ac_cv_header_stdc = yes; then
9274   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9275   if test "$cross_compiling" = yes; then
9276   :
9277 else
9278   cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285 #include <ctype.h>
9286 #if ((' ' & 0x0FF) == 0x020)
9287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9289 #else
9290 # define ISLOWER(c) \
9291                    (('a' <= (c) && (c) <= 'i') \
9292                      || ('j' <= (c) && (c) <= 'r') \
9293                      || ('s' <= (c) && (c) <= 'z'))
9294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9295 #endif
9296
9297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9298 int
9299 main ()
9300 {
9301   int i;
9302   for (i = 0; i < 256; i++)
9303     if (XOR (islower (i), ISLOWER (i))
9304         || toupper (i) != TOUPPER (i))
9305       exit(2);
9306   exit (0);
9307 }
9308 _ACEOF
9309 rm -f conftest$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311   (eval $ac_link) 2>&5
9312   ac_status=$?
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316   (eval $ac_try) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); }; }; then
9320   :
9321 else
9322   echo "$as_me: program exited with status $ac_status" >&5
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ( exit $ac_status )
9327 ac_cv_header_stdc=no
9328 fi
9329 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 fi
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9334 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9335 if test $ac_cv_header_stdc = yes; then
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 #define STDC_HEADERS 1
9339 _ACEOF
9340
9341 fi
9342
9343 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9344 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9345 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355 #include <sys/types.h>
9356 int
9357 main ()
9358 {
9359 return makedev(0, 0);
9360   ;
9361   return 0;
9362 }
9363 _ACEOF
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366   (eval $ac_link) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } &&
9370          { ac_try='test -s conftest$ac_exeext'
9371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372   (eval $ac_try) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); }; }; then
9376   ac_cv_header_sys_types_h_makedev=yes
9377 else
9378   echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ac_cv_header_sys_types_h_makedev=no
9382 fi
9383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9384
9385 fi
9386 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9387 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9388
9389 if test $ac_cv_header_sys_types_h_makedev = no; then
9390 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9391   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9392 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9393 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9394   echo $ECHO_N "(cached) $ECHO_C" >&6
9395 fi
9396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9397 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9398 else
9399   # Is the header compilable?
9400 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9401 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9404 /* confdefs.h.  */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h.  */
9409 $ac_includes_default
9410 #include <sys/mkdev.h>
9411 _ACEOF
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414   (eval $ac_compile) 2>&5
9415   ac_status=$?
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); } &&
9418          { ac_try='test -s conftest.$ac_objext'
9419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420   (eval $ac_try) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); }; }; then
9424   ac_header_compiler=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429 ac_header_compiler=no
9430 fi
9431 rm -f conftest.$ac_objext conftest.$ac_ext
9432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9433 echo "${ECHO_T}$ac_header_compiler" >&6
9434
9435 # Is the header present?
9436 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9437 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9438 cat >conftest.$ac_ext <<_ACEOF
9439 #line $LINENO "configure"
9440 /* confdefs.h.  */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h.  */
9445 #include <sys/mkdev.h>
9446 _ACEOF
9447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9449   ac_status=$?
9450   grep -v '^ *+' conftest.er1 >conftest.err
9451   rm -f conftest.er1
9452   cat conftest.err >&5
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } >/dev/null; then
9455   if test -s conftest.err; then
9456     ac_cpp_err=$ac_c_preproc_warn_flag
9457   else
9458     ac_cpp_err=
9459   fi
9460 else
9461   ac_cpp_err=yes
9462 fi
9463 if test -z "$ac_cpp_err"; then
9464   ac_header_preproc=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469   ac_header_preproc=no
9470 fi
9471 rm -f conftest.err conftest.$ac_ext
9472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9473 echo "${ECHO_T}$ac_header_preproc" >&6
9474
9475 # So?  What about this header?
9476 case $ac_header_compiler:$ac_header_preproc in
9477   yes:no )
9478     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9479 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9480     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9481 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9482     (
9483       cat <<\_ASBOX
9484 ## ------------------------------------ ##
9485 ## Report this to bug-autoconf@gnu.org. ##
9486 ## ------------------------------------ ##
9487 _ASBOX
9488     ) |
9489       sed "s/^/$as_me: WARNING:     /" >&2
9490     ;;
9491   no:yes )
9492     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9493 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9494     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9495 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9496     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9497 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9498     (
9499       cat <<\_ASBOX
9500 ## ------------------------------------ ##
9501 ## Report this to bug-autoconf@gnu.org. ##
9502 ## ------------------------------------ ##
9503 _ASBOX
9504     ) |
9505       sed "s/^/$as_me: WARNING:     /" >&2
9506     ;;
9507 esac
9508 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9509 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9510 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9514 fi
9515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9516 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9517
9518 fi
9519 if test $ac_cv_header_sys_mkdev_h = yes; then
9520
9521 cat >>confdefs.h <<\_ACEOF
9522 #define MAJOR_IN_MKDEV 1
9523 _ACEOF
9524
9525 fi
9526
9527
9528
9529   if test $ac_cv_header_sys_mkdev_h = no; then
9530     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9531   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9532 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9533 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 fi
9536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9537 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9538 else
9539   # Is the header compilable?
9540 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9541 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9542 cat >conftest.$ac_ext <<_ACEOF
9543 #line $LINENO "configure"
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549 $ac_includes_default
9550 #include <sys/sysmacros.h>
9551 _ACEOF
9552 rm -f conftest.$ac_objext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9554   (eval $ac_compile) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } &&
9558          { ac_try='test -s conftest.$ac_objext'
9559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560   (eval $ac_try) 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); }; }; then
9564   ac_header_compiler=yes
9565 else
9566   echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ac_header_compiler=no
9570 fi
9571 rm -f conftest.$ac_objext conftest.$ac_ext
9572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9573 echo "${ECHO_T}$ac_header_compiler" >&6
9574
9575 # Is the header present?
9576 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9577 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9578 cat >conftest.$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585 #include <sys/sysmacros.h>
9586 _ACEOF
9587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9589   ac_status=$?
9590   grep -v '^ *+' conftest.er1 >conftest.err
9591   rm -f conftest.er1
9592   cat conftest.err >&5
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); } >/dev/null; then
9595   if test -s conftest.err; then
9596     ac_cpp_err=$ac_c_preproc_warn_flag
9597   else
9598     ac_cpp_err=
9599   fi
9600 else
9601   ac_cpp_err=yes
9602 fi
9603 if test -z "$ac_cpp_err"; then
9604   ac_header_preproc=yes
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609   ac_header_preproc=no
9610 fi
9611 rm -f conftest.err conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9613 echo "${ECHO_T}$ac_header_preproc" >&6
9614
9615 # So?  What about this header?
9616 case $ac_header_compiler:$ac_header_preproc in
9617   yes:no )
9618     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9619 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9620     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9621 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9622     (
9623       cat <<\_ASBOX
9624 ## ------------------------------------ ##
9625 ## Report this to bug-autoconf@gnu.org. ##
9626 ## ------------------------------------ ##
9627 _ASBOX
9628     ) |
9629       sed "s/^/$as_me: WARNING:     /" >&2
9630     ;;
9631   no:yes )
9632     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9633 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9635 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9636     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9638     (
9639       cat <<\_ASBOX
9640 ## ------------------------------------ ##
9641 ## Report this to bug-autoconf@gnu.org. ##
9642 ## ------------------------------------ ##
9643 _ASBOX
9644     ) |
9645       sed "s/^/$as_me: WARNING:     /" >&2
9646     ;;
9647 esac
9648 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9649 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9650 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9654 fi
9655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9656 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9657
9658 fi
9659 if test $ac_cv_header_sys_sysmacros_h = yes; then
9660
9661 cat >>confdefs.h <<\_ACEOF
9662 #define MAJOR_IN_SYSMACROS 1
9663 _ACEOF
9664
9665 fi
9666
9667
9668   fi
9669 fi
9670
9671
9672
9673
9674
9675
9676 ac_header_dirent=no
9677 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9678   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9679 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9680 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   cat >conftest.$ac_ext <<_ACEOF
9685 #line $LINENO "configure"
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691 #include <sys/types.h>
9692 #include <$ac_hdr>
9693
9694 int
9695 main ()
9696 {
9697 if ((DIR *) 0)
9698 return 0;
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705   (eval $ac_compile) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } &&
9709          { ac_try='test -s conftest.$ac_objext'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   eval "$as_ac_Header=yes"
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 eval "$as_ac_Header=no"
9721 fi
9722 rm -f conftest.$ac_objext conftest.$ac_ext
9723 fi
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9727   cat >>confdefs.h <<_ACEOF
9728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9729 _ACEOF
9730
9731 ac_header_dirent=$ac_hdr; break
9732 fi
9733
9734 done
9735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9736 if test $ac_header_dirent = dirent.h; then
9737   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9739 if test "${ac_cv_search_opendir+set}" = set; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742   ac_func_search_save_LIBS=$LIBS
9743 ac_cv_search_opendir=no
9744 cat >conftest.$ac_ext <<_ACEOF
9745 #line $LINENO "configure"
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 /* Override any gcc2 internal prototype to avoid an error.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757    builtin and then its argument prototype would still apply.  */
9758 char opendir ();
9759 int
9760 main ()
9761 {
9762 opendir ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } &&
9773          { ac_try='test -s conftest$ac_exeext'
9774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775   (eval $ac_try) 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); }; }; then
9779   ac_cv_search_opendir="none required"
9780 else
9781   echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 fi
9785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9786 if test "$ac_cv_search_opendir" = no; then
9787   for ac_lib in dir; do
9788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9789     cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796
9797 /* Override any gcc2 internal prototype to avoid an error.  */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 /* We use char because int might match the return type of a gcc2
9802    builtin and then its argument prototype would still apply.  */
9803 char opendir ();
9804 int
9805 main ()
9806 {
9807 opendir ();
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814   (eval $ac_link) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          { ac_try='test -s conftest$ac_exeext'
9819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820   (eval $ac_try) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; }; then
9824   ac_cv_search_opendir="-l$ac_lib"
9825 break
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 fi
9831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9832   done
9833 fi
9834 LIBS=$ac_func_search_save_LIBS
9835 fi
9836 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9837 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9838 if test "$ac_cv_search_opendir" != no; then
9839   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9840
9841 fi
9842
9843 else
9844   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9846 if test "${ac_cv_search_opendir+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   ac_func_search_save_LIBS=$LIBS
9850 ac_cv_search_opendir=no
9851 cat >conftest.$ac_ext <<_ACEOF
9852 #line $LINENO "configure"
9853 /* confdefs.h.  */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h.  */
9858
9859 /* Override any gcc2 internal prototype to avoid an error.  */
9860 #ifdef __cplusplus
9861 extern "C"
9862 #endif
9863 /* We use char because int might match the return type of a gcc2
9864    builtin and then its argument prototype would still apply.  */
9865 char opendir ();
9866 int
9867 main ()
9868 {
9869 opendir ();
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9876   (eval $ac_link) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -s conftest$ac_exeext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_cv_search_opendir="none required"
9887 else
9888   echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 fi
9892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9893 if test "$ac_cv_search_opendir" = no; then
9894   for ac_lib in x; do
9895     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9896     cat >conftest.$ac_ext <<_ACEOF
9897 #line $LINENO "configure"
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903
9904 /* Override any gcc2 internal prototype to avoid an error.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 /* We use char because int might match the return type of a gcc2
9909    builtin and then its argument prototype would still apply.  */
9910 char opendir ();
9911 int
9912 main ()
9913 {
9914 opendir ();
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921   (eval $ac_link) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); } &&
9925          { ac_try='test -s conftest$ac_exeext'
9926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927   (eval $ac_try) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; }; then
9931   ac_cv_search_opendir="-l$ac_lib"
9932 break
9933 else
9934   echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 fi
9938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9939   done
9940 fi
9941 LIBS=$ac_func_search_save_LIBS
9942 fi
9943 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9944 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9945 if test "$ac_cv_search_opendir" != no; then
9946   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9947
9948 fi
9949
9950 fi
9951
9952 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9953 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9954 if test "${ac_cv_header_stat_broken+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964 #include <sys/types.h>
9965 #include <sys/stat.h>
9966
9967 #if defined(S_ISBLK) && defined(S_IFDIR)
9968 # if S_ISBLK (S_IFDIR)
9969 You lose.
9970 # endif
9971 #endif
9972
9973 #if defined(S_ISBLK) && defined(S_IFCHR)
9974 # if S_ISBLK (S_IFCHR)
9975 You lose.
9976 # endif
9977 #endif
9978
9979 #if defined(S_ISLNK) && defined(S_IFREG)
9980 # if S_ISLNK (S_IFREG)
9981 You lose.
9982 # endif
9983 #endif
9984
9985 #if defined(S_ISSOCK) && defined(S_IFREG)
9986 # if S_ISSOCK (S_IFREG)
9987 You lose.
9988 # endif
9989 #endif
9990
9991 _ACEOF
9992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9993   $EGREP "You lose" >/dev/null 2>&1; then
9994   ac_cv_header_stat_broken=yes
9995 else
9996   ac_cv_header_stat_broken=no
9997 fi
9998 rm -f conftest*
9999
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10002 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10003 if test $ac_cv_header_stat_broken = yes; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define STAT_MACROS_BROKEN 1
10007 _ACEOF
10008
10009 fi
10010
10011 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10012 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10013 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   cat >conftest.$ac_ext <<_ACEOF
10017 #line $LINENO "configure"
10018 /* confdefs.h.  */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h.  */
10023 #include <sys/types.h>
10024 #include <sys/wait.h>
10025 #ifndef WEXITSTATUS
10026 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10027 #endif
10028 #ifndef WIFEXITED
10029 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10030 #endif
10031
10032 int
10033 main ()
10034 {
10035   int s;
10036   wait (&s);
10037   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044   (eval $ac_compile) 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } &&
10048          { ac_try='test -s conftest.$ac_objext'
10049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050   (eval $ac_try) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054   ac_cv_header_sys_wait_h=yes
10055 else
10056   echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_cv_header_sys_wait_h=no
10060 fi
10061 rm -f conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10064 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10065 if test $ac_cv_header_sys_wait_h = yes; then
10066
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_SYS_WAIT_H 1
10069 _ACEOF
10070
10071 fi
10072
10073 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10074 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10075 if test "${ac_cv_header_time+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 #include <sys/types.h>
10086 #include <sys/time.h>
10087 #include <time.h>
10088
10089 int
10090 main ()
10091 {
10092 if ((struct tm *) 0)
10093 return 0;
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100   (eval $ac_compile) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); } &&
10104          { ac_try='test -s conftest.$ac_objext'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; }; then
10110   ac_cv_header_time=yes
10111 else
10112   echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 ac_cv_header_time=no
10116 fi
10117 rm -f conftest.$ac_objext conftest.$ac_ext
10118 fi
10119 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10120 echo "${ECHO_T}$ac_cv_header_time" >&6
10121 if test $ac_cv_header_time = yes; then
10122
10123 cat >>confdefs.h <<\_ACEOF
10124 #define TIME_WITH_SYS_TIME 1
10125 _ACEOF
10126
10127 fi
10128
10129
10130 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10131 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10132 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10133   echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135   cat >conftest.$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142 $ac_includes_default
10143 int
10144 main ()
10145 {
10146 static struct stat ac_aggr;
10147 if (ac_aggr.st_blksize)
10148 return 0;
10149   ;
10150   return 0;
10151 }
10152 _ACEOF
10153 rm -f conftest.$ac_objext
10154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10155   (eval $ac_compile) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); } &&
10159          { ac_try='test -s conftest.$ac_objext'
10160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161   (eval $ac_try) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; }; then
10165   ac_cv_member_struct_stat_st_blksize=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 $ac_includes_default
10178 int
10179 main ()
10180 {
10181 static struct stat ac_aggr;
10182 if (sizeof ac_aggr.st_blksize)
10183 return 0;
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190   (eval $ac_compile) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -s conftest.$ac_objext'
10195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196   (eval $ac_try) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); }; }; then
10200   ac_cv_member_struct_stat_st_blksize=yes
10201 else
10202   echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 ac_cv_member_struct_stat_st_blksize=no
10206 fi
10207 rm -f conftest.$ac_objext conftest.$ac_ext
10208 fi
10209 rm -f conftest.$ac_objext conftest.$ac_ext
10210 fi
10211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10212 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10213 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10214
10215 cat >>confdefs.h <<_ACEOF
10216 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10217 _ACEOF
10218
10219
10220 cat >>confdefs.h <<\_ACEOF
10221 #define HAVE_ST_BLKSIZE 1
10222 _ACEOF
10223
10224 fi
10225
10226
10227 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10228 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10229 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   cat >conftest.$ac_ext <<_ACEOF
10233 #line $LINENO "configure"
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239 $ac_includes_default
10240 int
10241 main ()
10242 {
10243 static struct stat ac_aggr;
10244 if (ac_aggr.st_blocks)
10245 return 0;
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252   (eval $ac_compile) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -s conftest.$ac_objext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_cv_member_struct_stat_st_blocks=yes
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 $ac_includes_default
10275 int
10276 main ()
10277 {
10278 static struct stat ac_aggr;
10279 if (sizeof ac_aggr.st_blocks)
10280 return 0;
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287   (eval $ac_compile) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); } &&
10291          { ac_try='test -s conftest.$ac_objext'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; }; then
10297   ac_cv_member_struct_stat_st_blocks=yes
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 ac_cv_member_struct_stat_st_blocks=no
10303 fi
10304 rm -f conftest.$ac_objext conftest.$ac_ext
10305 fi
10306 rm -f conftest.$ac_objext conftest.$ac_ext
10307 fi
10308 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10309 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10310 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10311
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10314 _ACEOF
10315
10316
10317 cat >>confdefs.h <<\_ACEOF
10318 #define HAVE_ST_BLOCKS 1
10319 _ACEOF
10320
10321 else
10322   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10323 fi
10324
10325
10326 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10327 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10328 if test "${ac_cv_struct_tm+set}" = set; then
10329   echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331   cat >conftest.$ac_ext <<_ACEOF
10332 #line $LINENO "configure"
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338 #include <sys/types.h>
10339 #include <time.h>
10340
10341 int
10342 main ()
10343 {
10344 struct tm *tp; tp->tm_sec;
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351   (eval $ac_compile) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -s conftest.$ac_objext'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }; then
10361   ac_cv_struct_tm=time.h
10362 else
10363   echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366 ac_cv_struct_tm=sys/time.h
10367 fi
10368 rm -f conftest.$ac_objext conftest.$ac_ext
10369 fi
10370 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10371 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10372 if test $ac_cv_struct_tm = sys/time.h; then
10373
10374 cat >>confdefs.h <<\_ACEOF
10375 #define TM_IN_SYS_TIME 1
10376 _ACEOF
10377
10378 fi
10379
10380 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10381 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10382 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385   cat >conftest.$ac_ext <<_ACEOF
10386 #line $LINENO "configure"
10387 /* confdefs.h.  */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h.  */
10392 #include <sys/types.h>
10393 #include <$ac_cv_struct_tm>
10394
10395
10396 int
10397 main ()
10398 {
10399 static struct tm ac_aggr;
10400 if (ac_aggr.tm_zone)
10401 return 0;
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408   (eval $ac_compile) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -s conftest.$ac_objext'
10413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414   (eval $ac_try) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; }; then
10418   ac_cv_member_struct_tm_tm_zone=yes
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 cat >conftest.$ac_ext <<_ACEOF
10424 #line $LINENO "configure"
10425 /* confdefs.h.  */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h.  */
10430 #include <sys/types.h>
10431 #include <$ac_cv_struct_tm>
10432
10433
10434 int
10435 main ()
10436 {
10437 static struct tm ac_aggr;
10438 if (sizeof ac_aggr.tm_zone)
10439 return 0;
10440   ;
10441   return 0;
10442 }
10443 _ACEOF
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446   (eval $ac_compile) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); } &&
10450          { ac_try='test -s conftest.$ac_objext'
10451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452   (eval $ac_try) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; }; then
10456   ac_cv_member_struct_tm_tm_zone=yes
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461 ac_cv_member_struct_tm_tm_zone=no
10462 fi
10463 rm -f conftest.$ac_objext conftest.$ac_ext
10464 fi
10465 rm -f conftest.$ac_objext conftest.$ac_ext
10466 fi
10467 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10468 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10469 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10470
10471 cat >>confdefs.h <<_ACEOF
10472 #define HAVE_STRUCT_TM_TM_ZONE 1
10473 _ACEOF
10474
10475
10476 fi
10477
10478 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10479
10480 cat >>confdefs.h <<\_ACEOF
10481 #define HAVE_TM_ZONE 1
10482 _ACEOF
10483
10484 else
10485   echo "$as_me:$LINENO: checking for tzname" >&5
10486 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10487 if test "${ac_cv_var_tzname+set}" = set; then
10488   echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490   cat >conftest.$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 #include <time.h>
10498 #ifndef tzname /* For SGI.  */
10499 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10500 #endif
10501
10502 int
10503 main ()
10504 {
10505 atoi(*tzname);
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512   (eval $ac_link) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); } &&
10516          { ac_try='test -s conftest$ac_exeext'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; }; then
10522   ac_cv_var_tzname=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_cv_var_tzname=no
10528 fi
10529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10530 fi
10531 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10532 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10533   if test $ac_cv_var_tzname = yes; then
10534
10535 cat >>confdefs.h <<\_ACEOF
10536 #define HAVE_TZNAME 1
10537 _ACEOF
10538
10539   fi
10540 fi
10541
10542
10543 echo "$as_me:$LINENO: checking for utime.h" >&5
10544 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10545 if test "${ba_cv_header_utime_h+set}" = set; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548   cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10550 /* confdefs.h.  */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h.  */
10555
10556 #include <sys/types.h>
10557 #include <utime.h>
10558 int
10559 main ()
10560 {
10561 struct utimbuf foo
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568   (eval $ac_compile) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); } &&
10572          { ac_try='test -s conftest.$ac_objext'
10573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574   (eval $ac_try) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; }; then
10578   ba_cv_header_utime_h=yes
10579 else
10580   echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10582
10583 ba_cv_header_utime_h=no
10584 fi
10585 rm -f conftest.$ac_objext conftest.$ac_ext
10586 fi
10587 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10588 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10589 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10590 #define HAVE_UTIME_H 1
10591 _ACEOF
10592
10593
10594 echo "$as_me:$LINENO: checking for socklen_t" >&5
10595 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10596 if test "${ba_cv_header_socklen_t+set}" = set; then
10597   echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599   cat >conftest.$ac_ext <<_ACEOF
10600 #line $LINENO "configure"
10601 /* confdefs.h.  */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h.  */
10606
10607 #include <sys/types.h>
10608 #include <sys/socket.h>
10609 int
10610 main ()
10611 {
10612 socklen_t x
10613   ;
10614   return 0;
10615 }
10616 _ACEOF
10617 rm -f conftest.$ac_objext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619   (eval $ac_compile) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } &&
10623          { ac_try='test -s conftest.$ac_objext'
10624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625   (eval $ac_try) 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); }; }; then
10629   ba_cv_header_socklen_t=yes
10630 else
10631   echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634 ba_cv_header_socklen_t=no
10635 fi
10636 rm -f conftest.$ac_objext conftest.$ac_ext
10637 fi
10638 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10639 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10640 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10641 #define HAVE_SOCKLEN_T 1
10642 _ACEOF
10643
10644
10645 echo "$as_me:$LINENO: checking for bigendian" >&5
10646 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10647 if test "${ba_cv_bigendian+set}" = set; then
10648   echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650   if test "$cross_compiling" = yes; then
10651   ba_cv_bigendian=no
10652 else
10653   cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10661 _ACEOF
10662 rm -f conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664   (eval $ac_link) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669   (eval $ac_try) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673   ba_cv_bigendian=yes
10674 else
10675   echo "$as_me: program exited with status $ac_status" >&5
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ( exit $ac_status )
10680 ba_cv_bigendian=no
10681 fi
10682 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10683 fi
10684 fi
10685 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10686 echo "${ECHO_T}$ba_cv_bigendian" >&6
10687 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_BIGENDIAN 1
10689 _ACEOF
10690
10691
10692
10693 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10694 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10695 if test "${ac_cv_c_const+set}" = set; then
10696   echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698   cat >conftest.$ac_ext <<_ACEOF
10699 #line $LINENO "configure"
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705
10706 int
10707 main ()
10708 {
10709 /* FIXME: Include the comments suggested by Paul. */
10710 #ifndef __cplusplus
10711   /* Ultrix mips cc rejects this.  */
10712   typedef int charset[2];
10713   const charset x;
10714   /* SunOS 4.1.1 cc rejects this.  */
10715   char const *const *ccp;
10716   char **p;
10717   /* NEC SVR4.0.2 mips cc rejects this.  */
10718   struct point {int x, y;};
10719   static struct point const zero = {0,0};
10720   /* AIX XL C 1.02.0.0 rejects this.
10721      It does not let you subtract one const X* pointer from another in
10722      an arm of an if-expression whose if-part is not a constant
10723      expression */
10724   const char *g = "string";
10725   ccp = &g + (g ? g-g : 0);
10726   /* HPUX 7.0 cc rejects these. */
10727   ++ccp;
10728   p = (char**) ccp;
10729   ccp = (char const *const *) p;
10730   { /* SCO 3.2v4 cc rejects this.  */
10731     char *t;
10732     char const *s = 0 ? (char *) 0 : (char const *) 0;
10733
10734     *t++ = 0;
10735   }
10736   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10737     int x[] = {25, 17};
10738     const int *foo = &x[0];
10739     ++foo;
10740   }
10741   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10742     typedef const int *iptr;
10743     iptr p = 0;
10744     ++p;
10745   }
10746   { /* AIX XL C 1.02.0.0 rejects this saying
10747        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10748     struct s { int j; const int *ap[3]; };
10749     struct s *b; b->j = 5;
10750   }
10751   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10752     const int foo = 10;
10753   }
10754 #endif
10755
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10762   (eval $ac_compile) 2>&5
10763   ac_status=$?
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); } &&
10766          { ac_try='test -s conftest.$ac_objext'
10767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768   (eval $ac_try) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; }; then
10772   ac_cv_c_const=yes
10773 else
10774   echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 ac_cv_c_const=no
10778 fi
10779 rm -f conftest.$ac_objext conftest.$ac_ext
10780 fi
10781 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10782 echo "${ECHO_T}$ac_cv_c_const" >&6
10783 if test $ac_cv_c_const = no; then
10784
10785 cat >>confdefs.h <<\_ACEOF
10786 #define const
10787 _ACEOF
10788
10789 fi
10790
10791
10792
10793 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10794 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10795 fstype=no
10796 # The order of these tests is important.
10797 cat >conftest.$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10799 /* confdefs.h.  */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h.  */
10804 #include <sys/statvfs.h>
10805 #include <sys/fstyp.h>
10806 _ACEOF
10807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } >/dev/null; then
10815   if test -s conftest.err; then
10816     ac_cpp_err=$ac_c_preproc_warn_flag
10817   else
10818     ac_cpp_err=
10819   fi
10820 else
10821   ac_cpp_err=yes
10822 fi
10823 if test -z "$ac_cpp_err"; then
10824   cat >>confdefs.h <<\_ACEOF
10825 #define FSTYPE_STATVFS 1
10826 _ACEOF
10827  fstype=SVR4
10828 else
10829   echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832
10833 fi
10834 rm -f conftest.err conftest.$ac_ext
10835 if test $fstype = no; then
10836 cat >conftest.$ac_ext <<_ACEOF
10837 #line $LINENO "configure"
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843 #include <sys/statfs.h>
10844 #include <sys/fstyp.h>
10845 _ACEOF
10846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10848   ac_status=$?
10849   grep -v '^ *+' conftest.er1 >conftest.err
10850   rm -f conftest.er1
10851   cat conftest.err >&5
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } >/dev/null; then
10854   if test -s conftest.err; then
10855     ac_cpp_err=$ac_c_preproc_warn_flag
10856   else
10857     ac_cpp_err=
10858   fi
10859 else
10860   ac_cpp_err=yes
10861 fi
10862 if test -z "$ac_cpp_err"; then
10863   cat >>confdefs.h <<\_ACEOF
10864 #define FSTYPE_USG_STATFS 1
10865 _ACEOF
10866  fstype=SVR3
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871
10872 fi
10873 rm -f conftest.err conftest.$ac_ext
10874 fi
10875 if test $fstype = no; then
10876 cat >conftest.$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 #include <sys/statfs.h>
10884 #include <sys/vmount.h>
10885 _ACEOF
10886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10888   ac_status=$?
10889   grep -v '^ *+' conftest.er1 >conftest.err
10890   rm -f conftest.er1
10891   cat conftest.err >&5
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); } >/dev/null; then
10894   if test -s conftest.err; then
10895     ac_cpp_err=$ac_c_preproc_warn_flag
10896   else
10897     ac_cpp_err=
10898   fi
10899 else
10900   ac_cpp_err=yes
10901 fi
10902 if test -z "$ac_cpp_err"; then
10903   cat >>confdefs.h <<\_ACEOF
10904 #define FSTYPE_AIX_STATFS 1
10905 _ACEOF
10906  fstype=AIX
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911
10912 fi
10913 rm -f conftest.err conftest.$ac_ext
10914 fi
10915 if test $fstype = no; then
10916 cat >conftest.$ac_ext <<_ACEOF
10917 #line $LINENO "configure"
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 #include <mntent.h>
10924 _ACEOF
10925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10927   ac_status=$?
10928   grep -v '^ *+' conftest.er1 >conftest.err
10929   rm -f conftest.er1
10930   cat conftest.err >&5
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } >/dev/null; then
10933   if test -s conftest.err; then
10934     ac_cpp_err=$ac_c_preproc_warn_flag
10935   else
10936     ac_cpp_err=
10937   fi
10938 else
10939   ac_cpp_err=yes
10940 fi
10941 if test -z "$ac_cpp_err"; then
10942   cat >>confdefs.h <<\_ACEOF
10943 #define FSTYPE_MNTENT 1
10944 _ACEOF
10945  fstype=4.3BSD
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950
10951 fi
10952 rm -f conftest.err conftest.$ac_ext
10953 fi
10954 if test $fstype = no; then
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 #include <sys/mount.h>
10963
10964 _ACEOF
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966   $EGREP "f_type;" >/dev/null 2>&1; then
10967   cat >>confdefs.h <<\_ACEOF
10968 #define FSTYPE_STATFS 1
10969 _ACEOF
10970  fstype=4.4BSD/OSF1
10971 fi
10972 rm -f conftest*
10973
10974 fi
10975 if test $fstype = no; then
10976 cat >conftest.$ac_ext <<_ACEOF
10977 #line $LINENO "configure"
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #include <sys/mount.h>
10984 #include <sys/fs_types.h>
10985 _ACEOF
10986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10988   ac_status=$?
10989   grep -v '^ *+' conftest.er1 >conftest.err
10990   rm -f conftest.er1
10991   cat conftest.err >&5
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } >/dev/null; then
10994   if test -s conftest.err; then
10995     ac_cpp_err=$ac_c_preproc_warn_flag
10996   else
10997     ac_cpp_err=
10998   fi
10999 else
11000   ac_cpp_err=yes
11001 fi
11002 if test -z "$ac_cpp_err"; then
11003   cat >>confdefs.h <<\_ACEOF
11004 #define FSTYPE_GETMNT 1
11005 _ACEOF
11006  fstype=Ultrix
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011
11012 fi
11013 rm -f conftest.err conftest.$ac_ext
11014 fi
11015 echo "$as_me:$LINENO: result: $fstype" >&5
11016 echo "${ECHO_T}$fstype" >&6
11017
11018 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11019 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11020 if test "${ac_cv_type_signal+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 /* confdefs.h.  */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h.  */
11030 #include <sys/types.h>
11031 #include <signal.h>
11032 #ifdef signal
11033 # undef signal
11034 #endif
11035 #ifdef __cplusplus
11036 extern "C" void (*signal (int, void (*)(int)))(int);
11037 #else
11038 void (*signal ()) ();
11039 #endif
11040
11041 int
11042 main ()
11043 {
11044 int i;
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051   (eval $ac_compile) 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } &&
11055          { ac_try='test -s conftest.$ac_objext'
11056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057   (eval $ac_try) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; }; then
11061   ac_cv_type_signal=void
11062 else
11063   echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065
11066 ac_cv_type_signal=int
11067 fi
11068 rm -f conftest.$ac_objext conftest.$ac_ext
11069 fi
11070 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11071 echo "${ECHO_T}$ac_cv_type_signal" >&6
11072
11073 cat >>confdefs.h <<_ACEOF
11074 #define RETSIGTYPE $ac_cv_type_signal
11075 _ACEOF
11076
11077
11078
11079 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11080 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11081 if test "${bash_cv_signal_vintage+set}" = set; then
11082   echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084
11085   cat >conftest.$ac_ext <<_ACEOF
11086 #line $LINENO "configure"
11087 /* confdefs.h.  */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h.  */
11092 #include <signal.h>
11093 int
11094 main ()
11095 {
11096
11097     sigset_t ss;
11098     struct sigaction sa;
11099     sigemptyset(&ss); sigsuspend(&ss);
11100     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11101     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11102
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109   (eval $ac_link) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -s conftest$ac_exeext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   bash_cv_signal_vintage=posix
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124
11125     cat >conftest.$ac_ext <<_ACEOF
11126 #line $LINENO "configure"
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 #include <signal.h>
11133 int
11134 main ()
11135 {
11136
11137         int mask = sigmask(SIGINT);
11138         sigsetmask(mask); sigblock(mask); sigpause(mask);
11139
11140   ;
11141   return 0;
11142 }
11143 _ACEOF
11144 rm -f conftest.$ac_objext conftest$ac_exeext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11146   (eval $ac_link) 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } &&
11150          { ac_try='test -s conftest$ac_exeext'
11151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152   (eval $ac_try) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; }; then
11156   bash_cv_signal_vintage=4.2bsd
11157 else
11158   echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11160
11161
11162       cat >conftest.$ac_ext <<_ACEOF
11163 #line $LINENO "configure"
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169
11170         #include <signal.h>
11171         RETSIGTYPE foo() { }
11172 int
11173 main ()
11174 {
11175
11176                 int mask = sigmask(SIGINT);
11177                 sigset(SIGINT, foo); sigrelse(SIGINT);
11178                 sighold(SIGINT); sigpause(SIGINT);
11179
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186   (eval $ac_link) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); } &&
11190          { ac_try='test -s conftest$ac_exeext'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   bash_cv_signal_vintage=svr3
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 bash_cv_signal_vintage=v7
11202
11203 fi
11204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11205
11206 fi
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11208
11209 fi
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11211
11212 fi
11213
11214 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11215 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11216 if test "$bash_cv_signal_vintage" = posix; then
11217 cat >>confdefs.h <<\_ACEOF
11218 #define HAVE_POSIX_SIGNALS 1
11219 _ACEOF
11220
11221 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11222 cat >>confdefs.h <<\_ACEOF
11223 #define HAVE_BSD_SIGNALS 1
11224 _ACEOF
11225
11226 elif test "$bash_cv_signal_vintage" = svr3; then
11227 cat >>confdefs.h <<\_ACEOF
11228 #define HAVE_USG_SIGHOLD 1
11229 _ACEOF
11230
11231 fi
11232
11233 echo "$as_me:$LINENO: checking for mode_t" >&5
11234 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11235 if test "${ac_cv_type_mode_t+set}" = set; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238   cat >conftest.$ac_ext <<_ACEOF
11239 #line $LINENO "configure"
11240 /* confdefs.h.  */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h.  */
11245 $ac_includes_default
11246 int
11247 main ()
11248 {
11249 if ((mode_t *) 0)
11250   return 0;
11251 if (sizeof (mode_t))
11252   return 0;
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259   (eval $ac_compile) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -s conftest.$ac_objext'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; }; then
11269   ac_cv_type_mode_t=yes
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274 ac_cv_type_mode_t=no
11275 fi
11276 rm -f conftest.$ac_objext conftest.$ac_ext
11277 fi
11278 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11279 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11280 if test $ac_cv_type_mode_t = yes; then
11281   :
11282 else
11283
11284 cat >>confdefs.h <<_ACEOF
11285 #define mode_t int
11286 _ACEOF
11287
11288 fi
11289
11290 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11291 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11292 if test "${ac_cv_type_uid_t+set}" = set; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302 #include <sys/types.h>
11303
11304 _ACEOF
11305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11306   $EGREP "uid_t" >/dev/null 2>&1; then
11307   ac_cv_type_uid_t=yes
11308 else
11309   ac_cv_type_uid_t=no
11310 fi
11311 rm -f conftest*
11312
11313 fi
11314 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11315 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11316 if test $ac_cv_type_uid_t = no; then
11317
11318 cat >>confdefs.h <<\_ACEOF
11319 #define uid_t int
11320 _ACEOF
11321
11322
11323 cat >>confdefs.h <<\_ACEOF
11324 #define gid_t int
11325 _ACEOF
11326
11327 fi
11328
11329 echo "$as_me:$LINENO: checking for size_t" >&5
11330 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11331 if test "${ac_cv_type_size_t+set}" = set; then
11332   echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334   cat >conftest.$ac_ext <<_ACEOF
11335 #line $LINENO "configure"
11336 /* confdefs.h.  */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h.  */
11341 $ac_includes_default
11342 int
11343 main ()
11344 {
11345 if ((size_t *) 0)
11346   return 0;
11347 if (sizeof (size_t))
11348   return 0;
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355   (eval $ac_compile) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } &&
11359          { ac_try='test -s conftest.$ac_objext'
11360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361   (eval $ac_try) 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); }; }; then
11365   ac_cv_type_size_t=yes
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 ac_cv_type_size_t=no
11371 fi
11372 rm -f conftest.$ac_objext conftest.$ac_ext
11373 fi
11374 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11375 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11376 if test $ac_cv_type_size_t = yes; then
11377   :
11378 else
11379
11380 cat >>confdefs.h <<_ACEOF
11381 #define size_t unsigned
11382 _ACEOF
11383
11384 fi
11385
11386 echo "$as_me:$LINENO: checking for pid_t" >&5
11387 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11388 if test "${ac_cv_type_pid_t+set}" = set; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   cat >conftest.$ac_ext <<_ACEOF
11392 #line $LINENO "configure"
11393 /* confdefs.h.  */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h.  */
11398 $ac_includes_default
11399 int
11400 main ()
11401 {
11402 if ((pid_t *) 0)
11403   return 0;
11404 if (sizeof (pid_t))
11405   return 0;
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11412   (eval $ac_compile) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } &&
11416          { ac_try='test -s conftest.$ac_objext'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   ac_cv_type_pid_t=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 ac_cv_type_pid_t=no
11428 fi
11429 rm -f conftest.$ac_objext conftest.$ac_ext
11430 fi
11431 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11432 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11433 if test $ac_cv_type_pid_t = yes; then
11434   :
11435 else
11436
11437 cat >>confdefs.h <<_ACEOF
11438 #define pid_t int
11439 _ACEOF
11440
11441 fi
11442
11443 echo "$as_me:$LINENO: checking for off_t" >&5
11444 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11445 if test "${ac_cv_type_off_t+set}" = set; then
11446   echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448   cat >conftest.$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 $ac_includes_default
11456 int
11457 main ()
11458 {
11459 if ((off_t *) 0)
11460   return 0;
11461 if (sizeof (off_t))
11462   return 0;
11463   ;
11464   return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest.$ac_objext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469   (eval $ac_compile) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); } &&
11473          { ac_try='test -s conftest.$ac_objext'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_cv_type_off_t=yes
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484 ac_cv_type_off_t=no
11485 fi
11486 rm -f conftest.$ac_objext conftest.$ac_ext
11487 fi
11488 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11489 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11490 if test $ac_cv_type_off_t = yes; then
11491   :
11492 else
11493
11494 cat >>confdefs.h <<_ACEOF
11495 #define off_t long
11496 _ACEOF
11497
11498 fi
11499
11500 echo "$as_me:$LINENO: checking for ino_t" >&5
11501 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11502 if test "${ac_cv_type_ino_t+set}" = set; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505   cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 $ac_includes_default
11513 int
11514 main ()
11515 {
11516 if ((ino_t *) 0)
11517   return 0;
11518 if (sizeof (ino_t))
11519   return 0;
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526   (eval $ac_compile) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } &&
11530          { ac_try='test -s conftest.$ac_objext'
11531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532   (eval $ac_try) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; }; then
11536   ac_cv_type_ino_t=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 ac_cv_type_ino_t=no
11542 fi
11543 rm -f conftest.$ac_objext conftest.$ac_ext
11544 fi
11545 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11546 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11547 if test $ac_cv_type_ino_t = yes; then
11548   :
11549 else
11550
11551 cat >>confdefs.h <<_ACEOF
11552 #define ino_t unsigned long
11553 _ACEOF
11554
11555 fi
11556
11557 echo "$as_me:$LINENO: checking for dev_t" >&5
11558 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11559 if test "${ac_cv_type_dev_t+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 $ac_includes_default
11570 int
11571 main ()
11572 {
11573 if ((dev_t *) 0)
11574   return 0;
11575 if (sizeof (dev_t))
11576   return 0;
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 rm -f conftest.$ac_objext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583   (eval $ac_compile) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } &&
11587          { ac_try='test -s conftest.$ac_objext'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; }; then
11593   ac_cv_type_dev_t=yes
11594 else
11595   echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598 ac_cv_type_dev_t=no
11599 fi
11600 rm -f conftest.$ac_objext conftest.$ac_ext
11601 fi
11602 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11603 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11604 if test $ac_cv_type_dev_t = yes; then
11605   :
11606 else
11607
11608 cat >>confdefs.h <<_ACEOF
11609 #define dev_t unsigned long
11610 _ACEOF
11611
11612 fi
11613
11614 echo "$as_me:$LINENO: checking for daddr_t" >&5
11615 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11616 if test "${ac_cv_type_daddr_t+set}" = set; then
11617   echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619   cat >conftest.$ac_ext <<_ACEOF
11620 #line $LINENO "configure"
11621 /* confdefs.h.  */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h.  */
11626 $ac_includes_default
11627 int
11628 main ()
11629 {
11630 if ((daddr_t *) 0)
11631   return 0;
11632 if (sizeof (daddr_t))
11633   return 0;
11634   ;
11635   return 0;
11636 }
11637 _ACEOF
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640   (eval $ac_compile) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); } &&
11644          { ac_try='test -s conftest.$ac_objext'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; }; then
11650   ac_cv_type_daddr_t=yes
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_cv_type_daddr_t=no
11656 fi
11657 rm -f conftest.$ac_objext conftest.$ac_ext
11658 fi
11659 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11660 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11661 if test $ac_cv_type_daddr_t = yes; then
11662   :
11663 else
11664
11665 cat >>confdefs.h <<_ACEOF
11666 #define daddr_t long
11667 _ACEOF
11668
11669 fi
11670
11671 echo "$as_me:$LINENO: checking for major_t" >&5
11672 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11673 if test "${ac_cv_type_major_t+set}" = set; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   cat >conftest.$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 $ac_includes_default
11684 int
11685 main ()
11686 {
11687 if ((major_t *) 0)
11688   return 0;
11689 if (sizeof (major_t))
11690   return 0;
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697   (eval $ac_compile) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } &&
11701          { ac_try='test -s conftest.$ac_objext'
11702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703   (eval $ac_try) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; }; then
11707   ac_cv_type_major_t=yes
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_cv_type_major_t=no
11713 fi
11714 rm -f conftest.$ac_objext conftest.$ac_ext
11715 fi
11716 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11717 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11718 if test $ac_cv_type_major_t = yes; then
11719   :
11720 else
11721
11722 cat >>confdefs.h <<_ACEOF
11723 #define major_t int
11724 _ACEOF
11725
11726 fi
11727
11728 echo "$as_me:$LINENO: checking for minor_t" >&5
11729 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11730 if test "${ac_cv_type_minor_t+set}" = set; then
11731   echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733   cat >conftest.$ac_ext <<_ACEOF
11734 #line $LINENO "configure"
11735 /* confdefs.h.  */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h.  */
11740 $ac_includes_default
11741 int
11742 main ()
11743 {
11744 if ((minor_t *) 0)
11745   return 0;
11746 if (sizeof (minor_t))
11747   return 0;
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754   (eval $ac_compile) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -s conftest.$ac_objext'
11759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760   (eval $ac_try) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; }; then
11764   ac_cv_type_minor_t=yes
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 ac_cv_type_minor_t=no
11770 fi
11771 rm -f conftest.$ac_objext conftest.$ac_ext
11772 fi
11773 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11774 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11775 if test $ac_cv_type_minor_t = yes; then
11776   :
11777 else
11778
11779 cat >>confdefs.h <<_ACEOF
11780 #define minor_t int
11781 _ACEOF
11782
11783 fi
11784
11785 echo "$as_me:$LINENO: checking for ssize_t" >&5
11786 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11787 if test "${ac_cv_type_ssize_t+set}" = set; then
11788   echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790   cat >conftest.$ac_ext <<_ACEOF
11791 #line $LINENO "configure"
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 $ac_includes_default
11798 int
11799 main ()
11800 {
11801 if ((ssize_t *) 0)
11802   return 0;
11803 if (sizeof (ssize_t))
11804   return 0;
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811   (eval $ac_compile) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -s conftest.$ac_objext'
11816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817   (eval $ac_try) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; }; then
11821   ac_cv_type_ssize_t=yes
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 ac_cv_type_ssize_t=no
11827 fi
11828 rm -f conftest.$ac_objext conftest.$ac_ext
11829 fi
11830 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11831 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11832 if test $ac_cv_type_ssize_t = yes; then
11833   :
11834 else
11835
11836 cat >>confdefs.h <<_ACEOF
11837 #define ssize_t int
11838 _ACEOF
11839
11840 fi
11841
11842 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11843 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11844 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 /* confdefs.h.  */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h.  */
11854 $ac_includes_default
11855 int
11856 main ()
11857 {
11858 static struct stat ac_aggr;
11859 if (ac_aggr.st_blocks)
11860 return 0;
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 rm -f conftest.$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867   (eval $ac_compile) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -s conftest.$ac_objext'
11872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873   (eval $ac_try) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   ac_cv_member_struct_stat_st_blocks=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 /* confdefs.h.  */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h.  */
11889 $ac_includes_default
11890 int
11891 main ()
11892 {
11893 static struct stat ac_aggr;
11894 if (sizeof ac_aggr.st_blocks)
11895 return 0;
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902   (eval $ac_compile) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); } &&
11906          { ac_try='test -s conftest.$ac_objext'
11907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908   (eval $ac_try) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; }; then
11912   ac_cv_member_struct_stat_st_blocks=yes
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 ac_cv_member_struct_stat_st_blocks=no
11918 fi
11919 rm -f conftest.$ac_objext conftest.$ac_ext
11920 fi
11921 rm -f conftest.$ac_objext conftest.$ac_ext
11922 fi
11923 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11924 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11925 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11926
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11929 _ACEOF
11930
11931
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_ST_BLOCKS 1
11934 _ACEOF
11935
11936 else
11937   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11938 fi
11939
11940
11941
11942 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11943 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11944 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 $ac_includes_default
11955 int
11956 main ()
11957 {
11958 static struct stat ac_aggr;
11959 if (ac_aggr.st_rdev)
11960 return 0;
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967   (eval $ac_compile) 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -s conftest.$ac_objext'
11972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973   (eval $ac_try) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; }; then
11977   ac_cv_member_struct_stat_st_rdev=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 $ac_includes_default
11990 int
11991 main ()
11992 {
11993 static struct stat ac_aggr;
11994 if (sizeof ac_aggr.st_rdev)
11995 return 0;
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002   (eval $ac_compile) 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -s conftest.$ac_objext'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   ac_cv_member_struct_stat_st_rdev=yes
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 ac_cv_member_struct_stat_st_rdev=no
12018 fi
12019 rm -f conftest.$ac_objext conftest.$ac_ext
12020 fi
12021 rm -f conftest.$ac_objext conftest.$ac_ext
12022 fi
12023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12024 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12025 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12026
12027 cat >>confdefs.h <<_ACEOF
12028 #define HAVE_STRUCT_STAT_ST_RDEV 1
12029 _ACEOF
12030
12031
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_ST_RDEV 1
12034 _ACEOF
12035
12036 fi
12037
12038
12039 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12040 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12041 if test "${ac_cv_struct_tm+set}" = set; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051 #include <sys/types.h>
12052 #include <time.h>
12053
12054 int
12055 main ()
12056 {
12057 struct tm *tp; tp->tm_sec;
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064   (eval $ac_compile) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } &&
12068          { ac_try='test -s conftest.$ac_objext'
12069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070   (eval $ac_try) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); }; }; then
12074   ac_cv_struct_tm=time.h
12075 else
12076   echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ac_cv_struct_tm=sys/time.h
12080 fi
12081 rm -f conftest.$ac_objext conftest.$ac_ext
12082 fi
12083 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12084 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12085 if test $ac_cv_struct_tm = sys/time.h; then
12086
12087 cat >>confdefs.h <<\_ACEOF
12088 #define TM_IN_SYS_TIME 1
12089 _ACEOF
12090
12091 fi
12092
12093 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12095 if test "${ac_cv_c_const+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   cat >conftest.$ac_ext <<_ACEOF
12099 #line $LINENO "configure"
12100 /* confdefs.h.  */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h.  */
12105
12106 int
12107 main ()
12108 {
12109 /* FIXME: Include the comments suggested by Paul. */
12110 #ifndef __cplusplus
12111   /* Ultrix mips cc rejects this.  */
12112   typedef int charset[2];
12113   const charset x;
12114   /* SunOS 4.1.1 cc rejects this.  */
12115   char const *const *ccp;
12116   char **p;
12117   /* NEC SVR4.0.2 mips cc rejects this.  */
12118   struct point {int x, y;};
12119   static struct point const zero = {0,0};
12120   /* AIX XL C 1.02.0.0 rejects this.
12121      It does not let you subtract one const X* pointer from another in
12122      an arm of an if-expression whose if-part is not a constant
12123      expression */
12124   const char *g = "string";
12125   ccp = &g + (g ? g-g : 0);
12126   /* HPUX 7.0 cc rejects these. */
12127   ++ccp;
12128   p = (char**) ccp;
12129   ccp = (char const *const *) p;
12130   { /* SCO 3.2v4 cc rejects this.  */
12131     char *t;
12132     char const *s = 0 ? (char *) 0 : (char const *) 0;
12133
12134     *t++ = 0;
12135   }
12136   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12137     int x[] = {25, 17};
12138     const int *foo = &x[0];
12139     ++foo;
12140   }
12141   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12142     typedef const int *iptr;
12143     iptr p = 0;
12144     ++p;
12145   }
12146   { /* AIX XL C 1.02.0.0 rejects this saying
12147        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12148     struct s { int j; const int *ap[3]; };
12149     struct s *b; b->j = 5;
12150   }
12151   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12152     const int foo = 10;
12153   }
12154 #endif
12155
12156   ;
12157   return 0;
12158 }
12159 _ACEOF
12160 rm -f conftest.$ac_objext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12162   (eval $ac_compile) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } &&
12166          { ac_try='test -s conftest.$ac_objext'
12167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168   (eval $ac_try) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); }; }; then
12172   ac_cv_c_const=yes
12173 else
12174   echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177 ac_cv_c_const=no
12178 fi
12179 rm -f conftest.$ac_objext conftest.$ac_ext
12180 fi
12181 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12182 echo "${ECHO_T}$ac_cv_c_const" >&6
12183 if test $ac_cv_c_const = no; then
12184
12185 cat >>confdefs.h <<\_ACEOF
12186 #define const
12187 _ACEOF
12188
12189 fi
12190
12191
12192
12193 echo "$as_me:$LINENO: checking for char" >&5
12194 echo $ECHO_N "checking for char... $ECHO_C" >&6
12195 if test "${ac_cv_type_char+set}" = set; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198   cat >conftest.$ac_ext <<_ACEOF
12199 #line $LINENO "configure"
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 $ac_includes_default
12206 int
12207 main ()
12208 {
12209 if ((char *) 0)
12210   return 0;
12211 if (sizeof (char))
12212   return 0;
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219   (eval $ac_compile) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } &&
12223          { ac_try='test -s conftest.$ac_objext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   ac_cv_type_char=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_cv_type_char=no
12235 fi
12236 rm -f conftest.$ac_objext conftest.$ac_ext
12237 fi
12238 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12239 echo "${ECHO_T}$ac_cv_type_char" >&6
12240
12241 echo "$as_me:$LINENO: checking size of char" >&5
12242 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12243 if test "${ac_cv_sizeof_char+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   if test "$ac_cv_type_char" = yes; then
12247   # The cast to unsigned long works around a bug in the HP C Compiler
12248   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12249   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12250   # This bug is HP SR number 8606223364.
12251   if test "$cross_compiling" = yes; then
12252   # Depending upon the size, compute the lo and hi bounds.
12253 cat >conftest.$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260 $ac_includes_default
12261 int
12262 main ()
12263 {
12264 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12265 test_array [0] = 0
12266
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273   (eval $ac_compile) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); } &&
12277          { ac_try='test -s conftest.$ac_objext'
12278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279   (eval $ac_try) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; }; then
12283   ac_lo=0 ac_mid=0
12284   while :; do
12285     cat >conftest.$ac_ext <<_ACEOF
12286 #line $LINENO "configure"
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292 $ac_includes_default
12293 int
12294 main ()
12295 {
12296 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12297 test_array [0] = 0
12298
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305   (eval $ac_compile) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); } &&
12309          { ac_try='test -s conftest.$ac_objext'
12310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311   (eval $ac_try) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   ac_hi=$ac_mid; break
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_lo=`expr $ac_mid + 1`
12321                     if test $ac_lo -le $ac_mid; then
12322                       ac_lo= ac_hi=
12323                       break
12324                     fi
12325                     ac_mid=`expr 2 '*' $ac_mid + 1`
12326 fi
12327 rm -f conftest.$ac_objext conftest.$ac_ext
12328   done
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12335 /* confdefs.h.  */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h.  */
12340 $ac_includes_default
12341 int
12342 main ()
12343 {
12344 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12345 test_array [0] = 0
12346
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12353   (eval $ac_compile) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -s conftest.$ac_objext'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   ac_hi=-1 ac_mid=-1
12364   while :; do
12365     cat >conftest.$ac_ext <<_ACEOF
12366 #line $LINENO "configure"
12367 /* confdefs.h.  */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h.  */
12372 $ac_includes_default
12373 int
12374 main ()
12375 {
12376 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12377 test_array [0] = 0
12378
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 rm -f conftest.$ac_objext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385   (eval $ac_compile) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); } &&
12389          { ac_try='test -s conftest.$ac_objext'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   ac_lo=$ac_mid; break
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ac_hi=`expr '(' $ac_mid ')' - 1`
12401                        if test $ac_mid -le $ac_hi; then
12402                          ac_lo= ac_hi=
12403                          break
12404                        fi
12405                        ac_mid=`expr 2 '*' $ac_mid`
12406 fi
12407 rm -f conftest.$ac_objext conftest.$ac_ext
12408   done
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 ac_lo= ac_hi=
12414 fi
12415 rm -f conftest.$ac_objext conftest.$ac_ext
12416 fi
12417 rm -f conftest.$ac_objext conftest.$ac_ext
12418 # Binary search between lo and hi bounds.
12419 while test "x$ac_lo" != "x$ac_hi"; do
12420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12421   cat >conftest.$ac_ext <<_ACEOF
12422 #line $LINENO "configure"
12423 /* confdefs.h.  */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h.  */
12428 $ac_includes_default
12429 int
12430 main ()
12431 {
12432 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12433 test_array [0] = 0
12434
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441   (eval $ac_compile) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } &&
12445          { ac_try='test -s conftest.$ac_objext'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   ac_hi=$ac_mid
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ac_lo=`expr '(' $ac_mid ')' + 1`
12457 fi
12458 rm -f conftest.$ac_objext conftest.$ac_ext
12459 done
12460 case $ac_lo in
12461 ?*) ac_cv_sizeof_char=$ac_lo;;
12462 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12463 See \`config.log' for more details." >&5
12464 echo "$as_me: error: cannot compute sizeof (char), 77
12465 See \`config.log' for more details." >&2;}
12466    { (exit 1); exit 1; }; } ;;
12467 esac
12468 else
12469   if test "$cross_compiling" = yes; then
12470   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12471 See \`config.log' for more details." >&5
12472 echo "$as_me: error: cannot run test program while cross compiling
12473 See \`config.log' for more details." >&2;}
12474    { (exit 1); exit 1; }; }
12475 else
12476   cat >conftest.$ac_ext <<_ACEOF
12477 #line $LINENO "configure"
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483 $ac_includes_default
12484 long longval () { return (long) (sizeof (char)); }
12485 unsigned long ulongval () { return (long) (sizeof (char)); }
12486 #include <stdio.h>
12487 #include <stdlib.h>
12488 int
12489 main ()
12490 {
12491
12492   FILE *f = fopen ("conftest.val", "w");
12493   if (! f)
12494     exit (1);
12495   if (((long) (sizeof (char))) < 0)
12496     {
12497       long i = longval ();
12498       if (i != ((long) (sizeof (char))))
12499         exit (1);
12500       fprintf (f, "%ld\n", i);
12501     }
12502   else
12503     {
12504       unsigned long i = ulongval ();
12505       if (i != ((long) (sizeof (char))))
12506         exit (1);
12507       fprintf (f, "%lu\n", i);
12508     }
12509   exit (ferror (f) || fclose (f) != 0);
12510
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517   (eval $ac_link) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526   ac_cv_sizeof_char=`cat conftest.val`
12527 else
12528   echo "$as_me: program exited with status $ac_status" >&5
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 ( exit $ac_status )
12533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12534 See \`config.log' for more details." >&5
12535 echo "$as_me: error: cannot compute sizeof (char), 77
12536 See \`config.log' for more details." >&2;}
12537    { (exit 1); exit 1; }; }
12538 fi
12539 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12540 fi
12541 fi
12542 rm -f conftest.val
12543 else
12544   ac_cv_sizeof_char=0
12545 fi
12546 fi
12547 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12548 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12549 cat >>confdefs.h <<_ACEOF
12550 #define SIZEOF_CHAR $ac_cv_sizeof_char
12551 _ACEOF
12552
12553
12554 echo "$as_me:$LINENO: checking for short int" >&5
12555 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12556 if test "${ac_cv_type_short_int+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   cat >conftest.$ac_ext <<_ACEOF
12560 #line $LINENO "configure"
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566 $ac_includes_default
12567 int
12568 main ()
12569 {
12570 if ((short int *) 0)
12571   return 0;
12572 if (sizeof (short int))
12573   return 0;
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580   (eval $ac_compile) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } &&
12584          { ac_try='test -s conftest.$ac_objext'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_cv_type_short_int=yes
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 ac_cv_type_short_int=no
12596 fi
12597 rm -f conftest.$ac_objext conftest.$ac_ext
12598 fi
12599 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12600 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12601
12602 echo "$as_me:$LINENO: checking size of short int" >&5
12603 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12604 if test "${ac_cv_sizeof_short_int+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607   if test "$ac_cv_type_short_int" = yes; then
12608   # The cast to unsigned long works around a bug in the HP C Compiler
12609   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12610   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12611   # This bug is HP SR number 8606223364.
12612   if test "$cross_compiling" = yes; then
12613   # Depending upon the size, compute the lo and hi bounds.
12614 cat >conftest.$ac_ext <<_ACEOF
12615 #line $LINENO "configure"
12616 /* confdefs.h.  */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h.  */
12621 $ac_includes_default
12622 int
12623 main ()
12624 {
12625 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12626 test_array [0] = 0
12627
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634   (eval $ac_compile) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } &&
12638          { ac_try='test -s conftest.$ac_objext'
12639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640   (eval $ac_try) 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; }; then
12644   ac_lo=0 ac_mid=0
12645   while :; do
12646     cat >conftest.$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653 $ac_includes_default
12654 int
12655 main ()
12656 {
12657 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12658 test_array [0] = 0
12659
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666   (eval $ac_compile) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } &&
12670          { ac_try='test -s conftest.$ac_objext'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; }; then
12676   ac_hi=$ac_mid; break
12677 else
12678   echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ac_lo=`expr $ac_mid + 1`
12682                     if test $ac_lo -le $ac_mid; then
12683                       ac_lo= ac_hi=
12684                       break
12685                     fi
12686                     ac_mid=`expr 2 '*' $ac_mid + 1`
12687 fi
12688 rm -f conftest.$ac_objext conftest.$ac_ext
12689   done
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 cat >conftest.$ac_ext <<_ACEOF
12695 #line $LINENO "configure"
12696 /* confdefs.h.  */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h.  */
12701 $ac_includes_default
12702 int
12703 main ()
12704 {
12705 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12706 test_array [0] = 0
12707
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714   (eval $ac_compile) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); } &&
12718          { ac_try='test -s conftest.$ac_objext'
12719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720   (eval $ac_try) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); }; }; then
12724   ac_hi=-1 ac_mid=-1
12725   while :; do
12726     cat >conftest.$ac_ext <<_ACEOF
12727 #line $LINENO "configure"
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733 $ac_includes_default
12734 int
12735 main ()
12736 {
12737 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12738 test_array [0] = 0
12739
12740   ;
12741   return 0;
12742 }
12743 _ACEOF
12744 rm -f conftest.$ac_objext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746   (eval $ac_compile) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); } &&
12750          { ac_try='test -s conftest.$ac_objext'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_lo=$ac_mid; break
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 ac_hi=`expr '(' $ac_mid ')' - 1`
12762                        if test $ac_mid -le $ac_hi; then
12763                          ac_lo= ac_hi=
12764                          break
12765                        fi
12766                        ac_mid=`expr 2 '*' $ac_mid`
12767 fi
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12769   done
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 ac_lo= ac_hi=
12775 fi
12776 rm -f conftest.$ac_objext conftest.$ac_ext
12777 fi
12778 rm -f conftest.$ac_objext conftest.$ac_ext
12779 # Binary search between lo and hi bounds.
12780 while test "x$ac_lo" != "x$ac_hi"; do
12781   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12782   cat >conftest.$ac_ext <<_ACEOF
12783 #line $LINENO "configure"
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789 $ac_includes_default
12790 int
12791 main ()
12792 {
12793 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12794 test_array [0] = 0
12795
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802   (eval $ac_compile) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } &&
12806          { ac_try='test -s conftest.$ac_objext'
12807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808   (eval $ac_try) 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   ac_hi=$ac_mid
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 ac_lo=`expr '(' $ac_mid ')' + 1`
12818 fi
12819 rm -f conftest.$ac_objext conftest.$ac_ext
12820 done
12821 case $ac_lo in
12822 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12823 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12824 See \`config.log' for more details." >&5
12825 echo "$as_me: error: cannot compute sizeof (short int), 77
12826 See \`config.log' for more details." >&2;}
12827    { (exit 1); exit 1; }; } ;;
12828 esac
12829 else
12830   if test "$cross_compiling" = yes; then
12831   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12832 See \`config.log' for more details." >&5
12833 echo "$as_me: error: cannot run test program while cross compiling
12834 See \`config.log' for more details." >&2;}
12835    { (exit 1); exit 1; }; }
12836 else
12837   cat >conftest.$ac_ext <<_ACEOF
12838 #line $LINENO "configure"
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844 $ac_includes_default
12845 long longval () { return (long) (sizeof (short int)); }
12846 unsigned long ulongval () { return (long) (sizeof (short int)); }
12847 #include <stdio.h>
12848 #include <stdlib.h>
12849 int
12850 main ()
12851 {
12852
12853   FILE *f = fopen ("conftest.val", "w");
12854   if (! f)
12855     exit (1);
12856   if (((long) (sizeof (short int))) < 0)
12857     {
12858       long i = longval ();
12859       if (i != ((long) (sizeof (short int))))
12860         exit (1);
12861       fprintf (f, "%ld\n", i);
12862     }
12863   else
12864     {
12865       unsigned long i = ulongval ();
12866       if (i != ((long) (sizeof (short int))))
12867         exit (1);
12868       fprintf (f, "%lu\n", i);
12869     }
12870   exit (ferror (f) || fclose (f) != 0);
12871
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 rm -f conftest$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878   (eval $ac_link) 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883   (eval $ac_try) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); }; }; then
12887   ac_cv_sizeof_short_int=`cat conftest.val`
12888 else
12889   echo "$as_me: program exited with status $ac_status" >&5
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12892
12893 ( exit $ac_status )
12894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12895 See \`config.log' for more details." >&5
12896 echo "$as_me: error: cannot compute sizeof (short int), 77
12897 See \`config.log' for more details." >&2;}
12898    { (exit 1); exit 1; }; }
12899 fi
12900 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12901 fi
12902 fi
12903 rm -f conftest.val
12904 else
12905   ac_cv_sizeof_short_int=0
12906 fi
12907 fi
12908 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12909 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12910 cat >>confdefs.h <<_ACEOF
12911 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12912 _ACEOF
12913
12914
12915 echo "$as_me:$LINENO: checking for int" >&5
12916 echo $ECHO_N "checking for int... $ECHO_C" >&6
12917 if test "${ac_cv_type_int+set}" = set; then
12918   echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920   cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927 $ac_includes_default
12928 int
12929 main ()
12930 {
12931 if ((int *) 0)
12932   return 0;
12933 if (sizeof (int))
12934   return 0;
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 rm -f conftest.$ac_objext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941   (eval $ac_compile) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); } &&
12945          { ac_try='test -s conftest.$ac_objext'
12946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947   (eval $ac_try) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; }; then
12951   ac_cv_type_int=yes
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 ac_cv_type_int=no
12957 fi
12958 rm -f conftest.$ac_objext conftest.$ac_ext
12959 fi
12960 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12961 echo "${ECHO_T}$ac_cv_type_int" >&6
12962
12963 echo "$as_me:$LINENO: checking size of int" >&5
12964 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12965 if test "${ac_cv_sizeof_int+set}" = set; then
12966   echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968   if test "$ac_cv_type_int" = yes; then
12969   # The cast to unsigned long works around a bug in the HP C Compiler
12970   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12971   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12972   # This bug is HP SR number 8606223364.
12973   if test "$cross_compiling" = yes; then
12974   # Depending upon the size, compute the lo and hi bounds.
12975 cat >conftest.$ac_ext <<_ACEOF
12976 #line $LINENO "configure"
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982 $ac_includes_default
12983 int
12984 main ()
12985 {
12986 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12987 test_array [0] = 0
12988
12989   ;
12990   return 0;
12991 }
12992 _ACEOF
12993 rm -f conftest.$ac_objext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995   (eval $ac_compile) 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); } &&
12999          { ac_try='test -s conftest.$ac_objext'
13000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001   (eval $ac_try) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; }; then
13005   ac_lo=0 ac_mid=0
13006   while :; do
13007     cat >conftest.$ac_ext <<_ACEOF
13008 #line $LINENO "configure"
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 $ac_includes_default
13015 int
13016 main ()
13017 {
13018 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13019 test_array [0] = 0
13020
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027   (eval $ac_compile) 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); } &&
13031          { ac_try='test -s conftest.$ac_objext'
13032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033   (eval $ac_try) 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; }; then
13037   ac_hi=$ac_mid; break
13038 else
13039   echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 ac_lo=`expr $ac_mid + 1`
13043                     if test $ac_lo -le $ac_mid; then
13044                       ac_lo= ac_hi=
13045                       break
13046                     fi
13047                     ac_mid=`expr 2 '*' $ac_mid + 1`
13048 fi
13049 rm -f conftest.$ac_objext conftest.$ac_ext
13050   done
13051 else
13052   echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13057 /* confdefs.h.  */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h.  */
13062 $ac_includes_default
13063 int
13064 main ()
13065 {
13066 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13067 test_array [0] = 0
13068
13069   ;
13070   return 0;
13071 }
13072 _ACEOF
13073 rm -f conftest.$ac_objext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075   (eval $ac_compile) 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -s conftest.$ac_objext'
13080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081   (eval $ac_try) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); }; }; then
13085   ac_hi=-1 ac_mid=-1
13086   while :; do
13087     cat >conftest.$ac_ext <<_ACEOF
13088 #line $LINENO "configure"
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094 $ac_includes_default
13095 int
13096 main ()
13097 {
13098 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13099 test_array [0] = 0
13100
13101   ;
13102   return 0;
13103 }
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107   (eval $ac_compile) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } &&
13111          { ac_try='test -s conftest.$ac_objext'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   ac_lo=$ac_mid; break
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_hi=`expr '(' $ac_mid ')' - 1`
13123                        if test $ac_mid -le $ac_hi; then
13124                          ac_lo= ac_hi=
13125                          break
13126                        fi
13127                        ac_mid=`expr 2 '*' $ac_mid`
13128 fi
13129 rm -f conftest.$ac_objext conftest.$ac_ext
13130   done
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 ac_lo= ac_hi=
13136 fi
13137 rm -f conftest.$ac_objext conftest.$ac_ext
13138 fi
13139 rm -f conftest.$ac_objext conftest.$ac_ext
13140 # Binary search between lo and hi bounds.
13141 while test "x$ac_lo" != "x$ac_hi"; do
13142   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13143   cat >conftest.$ac_ext <<_ACEOF
13144 #line $LINENO "configure"
13145 /* confdefs.h.  */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h.  */
13150 $ac_includes_default
13151 int
13152 main ()
13153 {
13154 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13155 test_array [0] = 0
13156
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 rm -f conftest.$ac_objext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163   (eval $ac_compile) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); } &&
13167          { ac_try='test -s conftest.$ac_objext'
13168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169   (eval $ac_try) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }; }; then
13173   ac_hi=$ac_mid
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 ac_lo=`expr '(' $ac_mid ')' + 1`
13179 fi
13180 rm -f conftest.$ac_objext conftest.$ac_ext
13181 done
13182 case $ac_lo in
13183 ?*) ac_cv_sizeof_int=$ac_lo;;
13184 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13185 See \`config.log' for more details." >&5
13186 echo "$as_me: error: cannot compute sizeof (int), 77
13187 See \`config.log' for more details." >&2;}
13188    { (exit 1); exit 1; }; } ;;
13189 esac
13190 else
13191   if test "$cross_compiling" = yes; then
13192   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13193 See \`config.log' for more details." >&5
13194 echo "$as_me: error: cannot run test program while cross compiling
13195 See \`config.log' for more details." >&2;}
13196    { (exit 1); exit 1; }; }
13197 else
13198   cat >conftest.$ac_ext <<_ACEOF
13199 #line $LINENO "configure"
13200 /* confdefs.h.  */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h.  */
13205 $ac_includes_default
13206 long longval () { return (long) (sizeof (int)); }
13207 unsigned long ulongval () { return (long) (sizeof (int)); }
13208 #include <stdio.h>
13209 #include <stdlib.h>
13210 int
13211 main ()
13212 {
13213
13214   FILE *f = fopen ("conftest.val", "w");
13215   if (! f)
13216     exit (1);
13217   if (((long) (sizeof (int))) < 0)
13218     {
13219       long i = longval ();
13220       if (i != ((long) (sizeof (int))))
13221         exit (1);
13222       fprintf (f, "%ld\n", i);
13223     }
13224   else
13225     {
13226       unsigned long i = ulongval ();
13227       if (i != ((long) (sizeof (int))))
13228         exit (1);
13229       fprintf (f, "%lu\n", i);
13230     }
13231   exit (ferror (f) || fclose (f) != 0);
13232
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239   (eval $ac_link) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_cv_sizeof_int=`cat conftest.val`
13249 else
13250   echo "$as_me: program exited with status $ac_status" >&5
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ( exit $ac_status )
13255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13256 See \`config.log' for more details." >&5
13257 echo "$as_me: error: cannot compute sizeof (int), 77
13258 See \`config.log' for more details." >&2;}
13259    { (exit 1); exit 1; }; }
13260 fi
13261 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13262 fi
13263 fi
13264 rm -f conftest.val
13265 else
13266   ac_cv_sizeof_int=0
13267 fi
13268 fi
13269 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13270 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13271 cat >>confdefs.h <<_ACEOF
13272 #define SIZEOF_INT $ac_cv_sizeof_int
13273 _ACEOF
13274
13275
13276 echo "$as_me:$LINENO: checking for long int" >&5
13277 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13278 if test "${ac_cv_type_long_int+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288 $ac_includes_default
13289 int
13290 main ()
13291 {
13292 if ((long int *) 0)
13293   return 0;
13294 if (sizeof (long int))
13295   return 0;
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302   (eval $ac_compile) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } &&
13306          { ac_try='test -s conftest.$ac_objext'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_type_long_int=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_cv_type_long_int=no
13318 fi
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13320 fi
13321 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13322 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13323
13324 echo "$as_me:$LINENO: checking size of long int" >&5
13325 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13326 if test "${ac_cv_sizeof_long_int+set}" = set; then
13327   echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329   if test "$ac_cv_type_long_int" = yes; then
13330   # The cast to unsigned long works around a bug in the HP C Compiler
13331   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13332   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13333   # This bug is HP SR number 8606223364.
13334   if test "$cross_compiling" = yes; then
13335   # Depending upon the size, compute the lo and hi bounds.
13336 cat >conftest.$ac_ext <<_ACEOF
13337 #line $LINENO "configure"
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343 $ac_includes_default
13344 int
13345 main ()
13346 {
13347 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13348 test_array [0] = 0
13349
13350   ;
13351   return 0;
13352 }
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356   (eval $ac_compile) 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); } &&
13360          { ac_try='test -s conftest.$ac_objext'
13361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362   (eval $ac_try) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }; }; then
13366   ac_lo=0 ac_mid=0
13367   while :; do
13368     cat >conftest.$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13370 /* confdefs.h.  */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h.  */
13375 $ac_includes_default
13376 int
13377 main ()
13378 {
13379 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13380 test_array [0] = 0
13381
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388   (eval $ac_compile) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } &&
13392          { ac_try='test -s conftest.$ac_objext'
13393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394   (eval $ac_try) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   ac_hi=$ac_mid; break
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403 ac_lo=`expr $ac_mid + 1`
13404                     if test $ac_lo -le $ac_mid; then
13405                       ac_lo= ac_hi=
13406                       break
13407                     fi
13408                     ac_mid=`expr 2 '*' $ac_mid + 1`
13409 fi
13410 rm -f conftest.$ac_objext conftest.$ac_ext
13411   done
13412 else
13413   echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 cat >conftest.$ac_ext <<_ACEOF
13417 #line $LINENO "configure"
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 $ac_includes_default
13424 int
13425 main ()
13426 {
13427 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13428 test_array [0] = 0
13429
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436   (eval $ac_compile) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } &&
13440          { ac_try='test -s conftest.$ac_objext'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_hi=-1 ac_mid=-1
13447   while :; do
13448     cat >conftest.$ac_ext <<_ACEOF
13449 #line $LINENO "configure"
13450 /* confdefs.h.  */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h.  */
13455 $ac_includes_default
13456 int
13457 main ()
13458 {
13459 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13460 test_array [0] = 0
13461
13462   ;
13463   return 0;
13464 }
13465 _ACEOF
13466 rm -f conftest.$ac_objext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468   (eval $ac_compile) 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -s conftest.$ac_objext'
13473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474   (eval $ac_try) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); }; }; then
13478   ac_lo=$ac_mid; break
13479 else
13480   echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13482
13483 ac_hi=`expr '(' $ac_mid ')' - 1`
13484                        if test $ac_mid -le $ac_hi; then
13485                          ac_lo= ac_hi=
13486                          break
13487                        fi
13488                        ac_mid=`expr 2 '*' $ac_mid`
13489 fi
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13491   done
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ac_lo= ac_hi=
13497 fi
13498 rm -f conftest.$ac_objext conftest.$ac_ext
13499 fi
13500 rm -f conftest.$ac_objext conftest.$ac_ext
13501 # Binary search between lo and hi bounds.
13502 while test "x$ac_lo" != "x$ac_hi"; do
13503   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13504   cat >conftest.$ac_ext <<_ACEOF
13505 #line $LINENO "configure"
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13511 $ac_includes_default
13512 int
13513 main ()
13514 {
13515 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13516 test_array [0] = 0
13517
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524   (eval $ac_compile) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } &&
13528          { ac_try='test -s conftest.$ac_objext'
13529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530   (eval $ac_try) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   ac_hi=$ac_mid
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 ac_lo=`expr '(' $ac_mid ')' + 1`
13540 fi
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13542 done
13543 case $ac_lo in
13544 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13545 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13546 See \`config.log' for more details." >&5
13547 echo "$as_me: error: cannot compute sizeof (long int), 77
13548 See \`config.log' for more details." >&2;}
13549    { (exit 1); exit 1; }; } ;;
13550 esac
13551 else
13552   if test "$cross_compiling" = yes; then
13553   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13554 See \`config.log' for more details." >&5
13555 echo "$as_me: error: cannot run test program while cross compiling
13556 See \`config.log' for more details." >&2;}
13557    { (exit 1); exit 1; }; }
13558 else
13559   cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 $ac_includes_default
13567 long longval () { return (long) (sizeof (long int)); }
13568 unsigned long ulongval () { return (long) (sizeof (long int)); }
13569 #include <stdio.h>
13570 #include <stdlib.h>
13571 int
13572 main ()
13573 {
13574
13575   FILE *f = fopen ("conftest.val", "w");
13576   if (! f)
13577     exit (1);
13578   if (((long) (sizeof (long int))) < 0)
13579     {
13580       long i = longval ();
13581       if (i != ((long) (sizeof (long int))))
13582         exit (1);
13583       fprintf (f, "%ld\n", i);
13584     }
13585   else
13586     {
13587       unsigned long i = ulongval ();
13588       if (i != ((long) (sizeof (long int))))
13589         exit (1);
13590       fprintf (f, "%lu\n", i);
13591     }
13592   exit (ferror (f) || fclose (f) != 0);
13593
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 rm -f conftest$ac_exeext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13600   (eval $ac_link) 2>&5
13601   ac_status=$?
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605   (eval $ac_try) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; }; then
13609   ac_cv_sizeof_long_int=`cat conftest.val`
13610 else
13611   echo "$as_me: program exited with status $ac_status" >&5
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 ( exit $ac_status )
13616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13617 See \`config.log' for more details." >&5
13618 echo "$as_me: error: cannot compute sizeof (long int), 77
13619 See \`config.log' for more details." >&2;}
13620    { (exit 1); exit 1; }; }
13621 fi
13622 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13623 fi
13624 fi
13625 rm -f conftest.val
13626 else
13627   ac_cv_sizeof_long_int=0
13628 fi
13629 fi
13630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13631 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13632 cat >>confdefs.h <<_ACEOF
13633 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13634 _ACEOF
13635
13636
13637 echo "$as_me:$LINENO: checking for long long int" >&5
13638 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13639 if test "${ac_cv_type_long_long_int+set}" = set; then
13640   echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642   cat >conftest.$ac_ext <<_ACEOF
13643 #line $LINENO "configure"
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649 $ac_includes_default
13650 int
13651 main ()
13652 {
13653 if ((long long int *) 0)
13654   return 0;
13655 if (sizeof (long long int))
13656   return 0;
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663   (eval $ac_compile) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); } &&
13667          { ac_try='test -s conftest.$ac_objext'
13668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669   (eval $ac_try) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; }; then
13673   ac_cv_type_long_long_int=yes
13674 else
13675   echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 ac_cv_type_long_long_int=no
13679 fi
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13681 fi
13682 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13683 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13684
13685 echo "$as_me:$LINENO: checking size of long long int" >&5
13686 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13687 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690   if test "$ac_cv_type_long_long_int" = yes; then
13691   # The cast to unsigned long works around a bug in the HP C Compiler
13692   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13693   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13694   # This bug is HP SR number 8606223364.
13695   if test "$cross_compiling" = yes; then
13696   # Depending upon the size, compute the lo and hi bounds.
13697 cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704 $ac_includes_default
13705 int
13706 main ()
13707 {
13708 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13709 test_array [0] = 0
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717   (eval $ac_compile) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } &&
13721          { ac_try='test -s conftest.$ac_objext'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; }; then
13727   ac_lo=0 ac_mid=0
13728   while :; do
13729     cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 $ac_includes_default
13737 int
13738 main ()
13739 {
13740 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13741 test_array [0] = 0
13742
13743   ;
13744   return 0;
13745 }
13746 _ACEOF
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749   (eval $ac_compile) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -s conftest.$ac_objext'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_hi=$ac_mid; break
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_lo=`expr $ac_mid + 1`
13765                     if test $ac_lo -le $ac_mid; then
13766                       ac_lo= ac_hi=
13767                       break
13768                     fi
13769                     ac_mid=`expr 2 '*' $ac_mid + 1`
13770 fi
13771 rm -f conftest.$ac_objext conftest.$ac_ext
13772   done
13773 else
13774   echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777 cat >conftest.$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13779 /* confdefs.h.  */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h.  */
13784 $ac_includes_default
13785 int
13786 main ()
13787 {
13788 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13789 test_array [0] = 0
13790
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797   (eval $ac_compile) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -s conftest.$ac_objext'
13802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803   (eval $ac_try) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); }; }; then
13807   ac_hi=-1 ac_mid=-1
13808   while :; do
13809     cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816 $ac_includes_default
13817 int
13818 main ()
13819 {
13820 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13821 test_array [0] = 0
13822
13823   ;
13824   return 0;
13825 }
13826 _ACEOF
13827 rm -f conftest.$ac_objext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829   (eval $ac_compile) 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } &&
13833          { ac_try='test -s conftest.$ac_objext'
13834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835   (eval $ac_try) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); }; }; then
13839   ac_lo=$ac_mid; break
13840 else
13841   echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13843
13844 ac_hi=`expr '(' $ac_mid ')' - 1`
13845                        if test $ac_mid -le $ac_hi; then
13846                          ac_lo= ac_hi=
13847                          break
13848                        fi
13849                        ac_mid=`expr 2 '*' $ac_mid`
13850 fi
13851 rm -f conftest.$ac_objext conftest.$ac_ext
13852   done
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 ac_lo= ac_hi=
13858 fi
13859 rm -f conftest.$ac_objext conftest.$ac_ext
13860 fi
13861 rm -f conftest.$ac_objext conftest.$ac_ext
13862 # Binary search between lo and hi bounds.
13863 while test "x$ac_lo" != "x$ac_hi"; do
13864   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13865   cat >conftest.$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13867 /* confdefs.h.  */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h.  */
13872 $ac_includes_default
13873 int
13874 main ()
13875 {
13876 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13877 test_array [0] = 0
13878
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885   (eval $ac_compile) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -s conftest.$ac_objext'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   ac_hi=$ac_mid
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_lo=`expr '(' $ac_mid ')' + 1`
13901 fi
13902 rm -f conftest.$ac_objext conftest.$ac_ext
13903 done
13904 case $ac_lo in
13905 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13906 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13907 See \`config.log' for more details." >&5
13908 echo "$as_me: error: cannot compute sizeof (long long int), 77
13909 See \`config.log' for more details." >&2;}
13910    { (exit 1); exit 1; }; } ;;
13911 esac
13912 else
13913   if test "$cross_compiling" = yes; then
13914   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13915 See \`config.log' for more details." >&5
13916 echo "$as_me: error: cannot run test program while cross compiling
13917 See \`config.log' for more details." >&2;}
13918    { (exit 1); exit 1; }; }
13919 else
13920   cat >conftest.$ac_ext <<_ACEOF
13921 #line $LINENO "configure"
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927 $ac_includes_default
13928 long longval () { return (long) (sizeof (long long int)); }
13929 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13930 #include <stdio.h>
13931 #include <stdlib.h>
13932 int
13933 main ()
13934 {
13935
13936   FILE *f = fopen ("conftest.val", "w");
13937   if (! f)
13938     exit (1);
13939   if (((long) (sizeof (long long int))) < 0)
13940     {
13941       long i = longval ();
13942       if (i != ((long) (sizeof (long long int))))
13943         exit (1);
13944       fprintf (f, "%ld\n", i);
13945     }
13946   else
13947     {
13948       unsigned long i = ulongval ();
13949       if (i != ((long) (sizeof (long long int))))
13950         exit (1);
13951       fprintf (f, "%lu\n", i);
13952     }
13953   exit (ferror (f) || fclose (f) != 0);
13954
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 rm -f conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961   (eval $ac_link) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   ac_cv_sizeof_long_long_int=`cat conftest.val`
13971 else
13972   echo "$as_me: program exited with status $ac_status" >&5
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ( exit $ac_status )
13977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13978 See \`config.log' for more details." >&5
13979 echo "$as_me: error: cannot compute sizeof (long long int), 77
13980 See \`config.log' for more details." >&2;}
13981    { (exit 1); exit 1; }; }
13982 fi
13983 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13984 fi
13985 fi
13986 rm -f conftest.val
13987 else
13988   ac_cv_sizeof_long_long_int=0
13989 fi
13990 fi
13991 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13992 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13993 cat >>confdefs.h <<_ACEOF
13994 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13995 _ACEOF
13996
13997
13998 echo "$as_me:$LINENO: checking for int *" >&5
13999 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14000 if test "${ac_cv_type_int_p+set}" = set; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003   cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 $ac_includes_default
14011 int
14012 main ()
14013 {
14014 if ((int * *) 0)
14015   return 0;
14016 if (sizeof (int *))
14017   return 0;
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024   (eval $ac_compile) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -s conftest.$ac_objext'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; }; then
14034   ac_cv_type_int_p=yes
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039 ac_cv_type_int_p=no
14040 fi
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14042 fi
14043 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14044 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14045
14046 echo "$as_me:$LINENO: checking size of int *" >&5
14047 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14048 if test "${ac_cv_sizeof_int_p+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   if test "$ac_cv_type_int_p" = yes; then
14052   # The cast to unsigned long works around a bug in the HP C Compiler
14053   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14054   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14055   # This bug is HP SR number 8606223364.
14056   if test "$cross_compiling" = yes; then
14057   # Depending upon the size, compute the lo and hi bounds.
14058 cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 $ac_includes_default
14066 int
14067 main ()
14068 {
14069 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14070 test_array [0] = 0
14071
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 rm -f conftest.$ac_objext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14078   (eval $ac_compile) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); } &&
14082          { ac_try='test -s conftest.$ac_objext'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; }; then
14088   ac_lo=0 ac_mid=0
14089   while :; do
14090     cat >conftest.$ac_ext <<_ACEOF
14091 #line $LINENO "configure"
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 $ac_includes_default
14098 int
14099 main ()
14100 {
14101 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14102 test_array [0] = 0
14103
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110   (eval $ac_compile) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); } &&
14114          { ac_try='test -s conftest.$ac_objext'
14115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116   (eval $ac_try) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; }; then
14120   ac_hi=$ac_mid; break
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_lo=`expr $ac_mid + 1`
14126                     if test $ac_lo -le $ac_mid; then
14127                       ac_lo= ac_hi=
14128                       break
14129                     fi
14130                     ac_mid=`expr 2 '*' $ac_mid + 1`
14131 fi
14132 rm -f conftest.$ac_objext conftest.$ac_ext
14133   done
14134 else
14135   echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14137
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145 $ac_includes_default
14146 int
14147 main ()
14148 {
14149 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14150 test_array [0] = 0
14151
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158   (eval $ac_compile) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } &&
14162          { ac_try='test -s conftest.$ac_objext'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; }; then
14168   ac_hi=-1 ac_mid=-1
14169   while :; do
14170     cat >conftest.$ac_ext <<_ACEOF
14171 #line $LINENO "configure"
14172 /* confdefs.h.  */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h.  */
14177 $ac_includes_default
14178 int
14179 main ()
14180 {
14181 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14182 test_array [0] = 0
14183
14184   ;
14185   return 0;
14186 }
14187 _ACEOF
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190   (eval $ac_compile) 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); } &&
14194          { ac_try='test -s conftest.$ac_objext'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; }; then
14200   ac_lo=$ac_mid; break
14201 else
14202   echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 ac_hi=`expr '(' $ac_mid ')' - 1`
14206                        if test $ac_mid -le $ac_hi; then
14207                          ac_lo= ac_hi=
14208                          break
14209                        fi
14210                        ac_mid=`expr 2 '*' $ac_mid`
14211 fi
14212 rm -f conftest.$ac_objext conftest.$ac_ext
14213   done
14214 else
14215   echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 ac_lo= ac_hi=
14219 fi
14220 rm -f conftest.$ac_objext conftest.$ac_ext
14221 fi
14222 rm -f conftest.$ac_objext conftest.$ac_ext
14223 # Binary search between lo and hi bounds.
14224 while test "x$ac_lo" != "x$ac_hi"; do
14225   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14226   cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 $ac_includes_default
14234 int
14235 main ()
14236 {
14237 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14238 test_array [0] = 0
14239
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246   (eval $ac_compile) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } &&
14250          { ac_try='test -s conftest.$ac_objext'
14251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252   (eval $ac_try) 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }; then
14256   ac_hi=$ac_mid
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 ac_lo=`expr '(' $ac_mid ')' + 1`
14262 fi
14263 rm -f conftest.$ac_objext conftest.$ac_ext
14264 done
14265 case $ac_lo in
14266 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14267 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14268 See \`config.log' for more details." >&5
14269 echo "$as_me: error: cannot compute sizeof (int *), 77
14270 See \`config.log' for more details." >&2;}
14271    { (exit 1); exit 1; }; } ;;
14272 esac
14273 else
14274   if test "$cross_compiling" = yes; then
14275   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14276 See \`config.log' for more details." >&5
14277 echo "$as_me: error: cannot run test program while cross compiling
14278 See \`config.log' for more details." >&2;}
14279    { (exit 1); exit 1; }; }
14280 else
14281   cat >conftest.$ac_ext <<_ACEOF
14282 #line $LINENO "configure"
14283 /* confdefs.h.  */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h.  */
14288 $ac_includes_default
14289 long longval () { return (long) (sizeof (int *)); }
14290 unsigned long ulongval () { return (long) (sizeof (int *)); }
14291 #include <stdio.h>
14292 #include <stdlib.h>
14293 int
14294 main ()
14295 {
14296
14297   FILE *f = fopen ("conftest.val", "w");
14298   if (! f)
14299     exit (1);
14300   if (((long) (sizeof (int *))) < 0)
14301     {
14302       long i = longval ();
14303       if (i != ((long) (sizeof (int *))))
14304         exit (1);
14305       fprintf (f, "%ld\n", i);
14306     }
14307   else
14308     {
14309       unsigned long i = ulongval ();
14310       if (i != ((long) (sizeof (int *))))
14311         exit (1);
14312       fprintf (f, "%lu\n", i);
14313     }
14314   exit (ferror (f) || fclose (f) != 0);
14315
14316   ;
14317   return 0;
14318 }
14319 _ACEOF
14320 rm -f conftest$ac_exeext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14322   (eval $ac_link) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_cv_sizeof_int_p=`cat conftest.val`
14332 else
14333   echo "$as_me: program exited with status $ac_status" >&5
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ( exit $ac_status )
14338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14339 See \`config.log' for more details." >&5
14340 echo "$as_me: error: cannot compute sizeof (int *), 77
14341 See \`config.log' for more details." >&2;}
14342    { (exit 1); exit 1; }; }
14343 fi
14344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 fi
14347 rm -f conftest.val
14348 else
14349   ac_cv_sizeof_int_p=0
14350 fi
14351 fi
14352 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14353 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14354 cat >>confdefs.h <<_ACEOF
14355 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14356 _ACEOF
14357
14358
14359
14360 # Check for sys/types.h types
14361 echo "$as_me:$LINENO: checking for u_int type" >&5
14362 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14363 if test "${ac_cv_have_u_int+set}" = set; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366
14367     cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14369 /* confdefs.h.  */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h.  */
14374  #include <sys/types.h>
14375 int
14376 main ()
14377 {
14378  u_int a; a = 1;
14379   ;
14380   return 0;
14381 }
14382 _ACEOF
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385   (eval $ac_compile) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; }; then
14395    ac_cv_have_u_int="yes"
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400  ac_cv_have_u_int="no"
14401
14402 fi
14403 rm -f conftest.$ac_objext conftest.$ac_ext
14404
14405 fi
14406 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14407 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14408 if test "x$ac_cv_have_u_int" = "xyes" ; then
14409    cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_U_INT 1
14411 _ACEOF
14412
14413    have_u_int=1
14414 fi
14415
14416 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14417 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14418 if test "${ac_cv_have_intmax_t+set}" = set; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421
14422    cat >conftest.$ac_ext <<_ACEOF
14423 #line $LINENO "configure"
14424 /* confdefs.h.  */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h.  */
14429  #include <sys/types.h>
14430 int
14431 main ()
14432 {
14433  intmax_t a; a = 1;
14434   ;
14435   return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440   (eval $ac_compile) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); } &&
14444          { ac_try='test -s conftest.$ac_objext'
14445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446   (eval $ac_try) 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; }; then
14450    ac_cv_have_intmax_t="yes"
14451 else
14452   echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455
14456          cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463  #include <stdint.h>
14464 int
14465 main ()
14466 {
14467  intmax_t a; a = 1;
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474   (eval $ac_compile) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -s conftest.$ac_objext'
14479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480   (eval $ac_try) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; }; then
14484    ac_cv_have_intmax_t="yes"
14485 else
14486   echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489  ac_cv_have_intmax_t="no"
14490
14491 fi
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14493
14494
14495 fi
14496 rm -f conftest.$ac_objext conftest.$ac_ext
14497
14498
14499 fi
14500 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14501 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14502 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14503    cat >>confdefs.h <<\_ACEOF
14504 #define HAVE_INTMAX_T 1
14505 _ACEOF
14506
14507    have_intmax_t=1
14508 fi
14509
14510
14511 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14512 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14513 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516
14517    cat >conftest.$ac_ext <<_ACEOF
14518 #line $LINENO "configure"
14519 /* confdefs.h.  */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h.  */
14524  #include <sys/types.h>
14525 int
14526 main ()
14527 {
14528  u_intmax_t a; a = 1;
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535   (eval $ac_compile) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -s conftest.$ac_objext'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; }; then
14545    ac_cv_have_u_intmax_t="yes"
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550
14551          cat >conftest.$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14553 /* confdefs.h.  */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h.  */
14558  #include <stdint.h>
14559 int
14560 main ()
14561 {
14562  u_intmax_t a; a = 1;
14563   ;
14564   return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest.$ac_objext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569   (eval $ac_compile) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); } &&
14573          { ac_try='test -s conftest.$ac_objext'
14574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575   (eval $ac_try) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; }; then
14579    ac_cv_have_u_intmax_t="yes"
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584  ac_cv_have_u_intmax_t="no"
14585
14586 fi
14587 rm -f conftest.$ac_objext conftest.$ac_ext
14588
14589
14590 fi
14591 rm -f conftest.$ac_objext conftest.$ac_ext
14592
14593 fi
14594 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14595 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14596 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14597    cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_U_INTMAX_T 1
14599 _ACEOF
14600
14601    have_u_intmax_t=1
14602 fi
14603
14604
14605 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14606 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14607 if test "${ac_cv_have_intxx_t+set}" = set; then
14608   echo $ECHO_N "(cached) $ECHO_C" >&6
14609 else
14610
14611    cat >conftest.$ac_ext <<_ACEOF
14612 #line $LINENO "configure"
14613 /* confdefs.h.  */
14614 _ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h.  */
14618  #include <sys/types.h>
14619 int
14620 main ()
14621 {
14622  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629   (eval $ac_compile) 2>&5
14630   ac_status=$?
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); } &&
14633          { ac_try='test -s conftest.$ac_objext'
14634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635   (eval $ac_try) 2>&5
14636   ac_status=$?
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); }; }; then
14639    ac_cv_have_intxx_t="yes"
14640 else
14641   echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14643
14644  ac_cv_have_intxx_t="no"
14645
14646 fi
14647 rm -f conftest.$ac_objext conftest.$ac_ext
14648
14649 fi
14650 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14651 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14652 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14653    cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_INTXX_T 1
14655 _ACEOF
14656
14657    have_intxx_t=1
14658 fi
14659
14660 echo "$as_me:$LINENO: checking for int64_t type" >&5
14661 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14662 if test "${ac_cv_have_int64_t+set}" = set; then
14663   echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665
14666    cat >conftest.$ac_ext <<_ACEOF
14667 #line $LINENO "configure"
14668 /* confdefs.h.  */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h.  */
14673  #include <sys/types.h>
14674 int
14675 main ()
14676 {
14677  int64_t a; a = 1;
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684   (eval $ac_compile) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } &&
14688          { ac_try='test -s conftest.$ac_objext'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }; then
14694    ac_cv_have_int64_t="yes"
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699  ac_cv_have_int64_t="no"
14700
14701 fi
14702 rm -f conftest.$ac_objext conftest.$ac_ext
14703
14704 fi
14705 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14706 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14707 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14708    cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_INT64_T 1
14710 _ACEOF
14711
14712    have_int64_t=1
14713 fi
14714
14715 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14716 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14717 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720
14721    cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728  #include <sys/types.h>
14729 int
14730 main ()
14731 {
14732  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739   (eval $ac_compile) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } &&
14743          { ac_try='test -s conftest.$ac_objext'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; }; then
14749    ac_cv_have_u_intxx_t="yes"
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754  ac_cv_have_u_intxx_t="no"
14755
14756 fi
14757 rm -f conftest.$ac_objext conftest.$ac_ext
14758
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14761 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14762 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14763    cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_U_INTXX_T 1
14765 _ACEOF
14766
14767    have_u_intxx_t=1
14768 fi
14769
14770 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14771 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14772 if test "${ac_cv_have_u_int64_t+set}" = set; then
14773   echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775
14776    cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783  #include <sys/types.h>
14784 int
14785 main ()
14786 {
14787  u_int64_t a; a = 1;
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794   (eval $ac_compile) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } &&
14798          { ac_try='test -s conftest.$ac_objext'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; }; then
14804    ac_cv_have_u_int64_t="yes"
14805 else
14806   echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809  ac_cv_have_u_int64_t="no"
14810
14811 fi
14812 rm -f conftest.$ac_objext conftest.$ac_ext
14813
14814 fi
14815 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14816 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14817 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14818    cat >>confdefs.h <<\_ACEOF
14819 #define HAVE_U_INT64_T 1
14820 _ACEOF
14821
14822    have_u_int64_t=1
14823 fi
14824
14825 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14826            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14827 then
14828    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14829 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14830    cat >conftest.$ac_ext <<_ACEOF
14831 #line $LINENO "configure"
14832 /* confdefs.h.  */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h.  */
14837  #include <sys/bitypes.h>
14838 int
14839 main ()
14840 {
14841  int8_t a; int16_t b; int32_t c;
14842         u_int8_t e; u_int16_t f; u_int32_t g;
14843         a = b = c = e = f = g = 1;
14844   ;
14845   return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850   (eval $ac_compile) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -s conftest.$ac_objext'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; }; then
14860    cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_U_INTXX_T 1
14862 _ACEOF
14863
14864         cat >>confdefs.h <<\_ACEOF
14865 #define HAVE_INTXX_T 1
14866 _ACEOF
14867
14868         cat >>confdefs.h <<\_ACEOF
14869 #define HAVE_SYS_BITYPES_H 1
14870 _ACEOF
14871
14872         echo "$as_me:$LINENO: result: yes" >&5
14873 echo "${ECHO_T}yes" >&6
14874 else
14875   echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14877
14878  echo "$as_me:$LINENO: result: no" >&5
14879 echo "${ECHO_T}no" >&6
14880
14881 fi
14882 rm -f conftest.$ac_objext conftest.$ac_ext
14883 fi
14884
14885 if test -z "$have_u_intxx_t" ; then
14886    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14887 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14888 if test "${ac_cv_have_uintxx_t+set}" = set; then
14889   echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891
14892       cat >conftest.$ac_ext <<_ACEOF
14893 #line $LINENO "configure"
14894 /* confdefs.h.  */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h.  */
14899  #include <sys/types.h>
14900 int
14901 main ()
14902 {
14903  uint8_t a; uint16_t b;
14904            uint32_t c; a = b = c = 1;
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14911   (eval $ac_compile) 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -s conftest.$ac_objext'
14916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917   (eval $ac_try) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; }; then
14921    ac_cv_have_uintxx_t="yes"
14922 else
14923   echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926  ac_cv_have_uintxx_t="no"
14927
14928 fi
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14930
14931 fi
14932 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14933 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14934    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14935       cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_UINTXX_T 1
14937 _ACEOF
14938
14939    fi
14940 fi
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956 for ac_func in \
14957         fork \
14958         getcwd \
14959         gethostname \
14960         getpid \
14961         gettimeofday \
14962         setpgid \
14963         setpgrp \
14964         setsid \
14965         signal \
14966         strerror \
14967         strncmp \
14968         strncpy \
14969         vfprintf \
14970
14971 do
14972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14973 echo "$as_me:$LINENO: checking for $ac_func" >&5
14974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14975 if eval "test \"\${$as_ac_var+set}\" = set"; then
14976   echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978   cat >conftest.$ac_ext <<_ACEOF
14979 #line $LINENO "configure"
14980 /* confdefs.h.  */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h.  */
14985 /* System header to define __stub macros and hopefully few prototypes,
14986     which can conflict with char $ac_func (); below.
14987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14988     <limits.h> exists even on freestanding compilers.  */
14989 #ifdef __STDC__
14990 # include <limits.h>
14991 #else
14992 # include <assert.h>
14993 #endif
14994 /* Override any gcc2 internal prototype to avoid an error.  */
14995 #ifdef __cplusplus
14996 extern "C"
14997 {
14998 #endif
14999 /* We use char because int might match the return type of a gcc2
15000    builtin and then its argument prototype would still apply.  */
15001 char $ac_func ();
15002 /* The GNU C library defines this for functions which it implements
15003     to always fail with ENOSYS.  Some functions are actually named
15004     something starting with __ and the normal name is an alias.  */
15005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15006 choke me
15007 #else
15008 char (*f) () = $ac_func;
15009 #endif
15010 #ifdef __cplusplus
15011 }
15012 #endif
15013
15014 int
15015 main ()
15016 {
15017 return f != $ac_func;
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024   (eval $ac_link) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -s conftest$ac_exeext'
15029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030   (eval $ac_try) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; }; then
15034   eval "$as_ac_var=yes"
15035 else
15036   echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039 eval "$as_ac_var=no"
15040 fi
15041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15042 fi
15043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15045 if test `eval echo '${'$as_ac_var'}'` = yes; then
15046   cat >>confdefs.h <<_ACEOF
15047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15048 _ACEOF
15049
15050 else
15051   echo 'configure: cannot find needed function.'; exit 1
15052
15053 fi
15054 done
15055
15056
15057
15058 for ac_func in fchdir
15059 do
15060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15061 echo "$as_me:$LINENO: checking for $ac_func" >&5
15062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15063 if eval "test \"\${$as_ac_var+set}\" = set"; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066   cat >conftest.$ac_ext <<_ACEOF
15067 #line $LINENO "configure"
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 /* System header to define __stub macros and hopefully few prototypes,
15074     which can conflict with char $ac_func (); below.
15075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15076     <limits.h> exists even on freestanding compilers.  */
15077 #ifdef __STDC__
15078 # include <limits.h>
15079 #else
15080 # include <assert.h>
15081 #endif
15082 /* Override any gcc2 internal prototype to avoid an error.  */
15083 #ifdef __cplusplus
15084 extern "C"
15085 {
15086 #endif
15087 /* We use char because int might match the return type of a gcc2
15088    builtin and then its argument prototype would still apply.  */
15089 char $ac_func ();
15090 /* The GNU C library defines this for functions which it implements
15091     to always fail with ENOSYS.  Some functions are actually named
15092     something starting with __ and the normal name is an alias.  */
15093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15094 choke me
15095 #else
15096 char (*f) () = $ac_func;
15097 #endif
15098 #ifdef __cplusplus
15099 }
15100 #endif
15101
15102 int
15103 main ()
15104 {
15105 return f != $ac_func;
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112   (eval $ac_link) 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } &&
15116          { ac_try='test -s conftest$ac_exeext'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; }; then
15122   eval "$as_ac_var=yes"
15123 else
15124   echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 eval "$as_ac_var=no"
15128 fi
15129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15130 fi
15131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15133 if test `eval echo '${'$as_ac_var'}'` = yes; then
15134   cat >>confdefs.h <<_ACEOF
15135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15136 _ACEOF
15137  cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_FCHDIR 1
15139 _ACEOF
15140
15141 fi
15142 done
15143
15144
15145 for ac_func in strtoll
15146 do
15147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15148 echo "$as_me:$LINENO: checking for $ac_func" >&5
15149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15150 if eval "test \"\${$as_ac_var+set}\" = set"; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153   cat >conftest.$ac_ext <<_ACEOF
15154 #line $LINENO "configure"
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 /* System header to define __stub macros and hopefully few prototypes,
15161     which can conflict with char $ac_func (); below.
15162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15163     <limits.h> exists even on freestanding compilers.  */
15164 #ifdef __STDC__
15165 # include <limits.h>
15166 #else
15167 # include <assert.h>
15168 #endif
15169 /* Override any gcc2 internal prototype to avoid an error.  */
15170 #ifdef __cplusplus
15171 extern "C"
15172 {
15173 #endif
15174 /* We use char because int might match the return type of a gcc2
15175    builtin and then its argument prototype would still apply.  */
15176 char $ac_func ();
15177 /* The GNU C library defines this for functions which it implements
15178     to always fail with ENOSYS.  Some functions are actually named
15179     something starting with __ and the normal name is an alias.  */
15180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15181 choke me
15182 #else
15183 char (*f) () = $ac_func;
15184 #endif
15185 #ifdef __cplusplus
15186 }
15187 #endif
15188
15189 int
15190 main ()
15191 {
15192 return f != $ac_func;
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext conftest$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199   (eval $ac_link) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } &&
15203          { ac_try='test -s conftest$ac_exeext'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; }; then
15209   eval "$as_ac_var=yes"
15210 else
15211   echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15213
15214 eval "$as_ac_var=no"
15215 fi
15216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15217 fi
15218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15220 if test `eval echo '${'$as_ac_var'}'` = yes; then
15221   cat >>confdefs.h <<_ACEOF
15222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15223 _ACEOF
15224  cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_STRTOLL 1
15226 _ACEOF
15227
15228 fi
15229 done
15230
15231
15232
15233 for ac_func in chflags
15234 do
15235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15236 echo "$as_me:$LINENO: checking for $ac_func" >&5
15237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15238 if eval "test \"\${$as_ac_var+set}\" = set"; then
15239   echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241   cat >conftest.$ac_ext <<_ACEOF
15242 #line $LINENO "configure"
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 /* System header to define __stub macros and hopefully few prototypes,
15249     which can conflict with char $ac_func (); below.
15250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15251     <limits.h> exists even on freestanding compilers.  */
15252 #ifdef __STDC__
15253 # include <limits.h>
15254 #else
15255 # include <assert.h>
15256 #endif
15257 /* Override any gcc2 internal prototype to avoid an error.  */
15258 #ifdef __cplusplus
15259 extern "C"
15260 {
15261 #endif
15262 /* We use char because int might match the return type of a gcc2
15263    builtin and then its argument prototype would still apply.  */
15264 char $ac_func ();
15265 /* The GNU C library defines this for functions which it implements
15266     to always fail with ENOSYS.  Some functions are actually named
15267     something starting with __ and the normal name is an alias.  */
15268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15269 choke me
15270 #else
15271 char (*f) () = $ac_func;
15272 #endif
15273 #ifdef __cplusplus
15274 }
15275 #endif
15276
15277 int
15278 main ()
15279 {
15280 return f != $ac_func;
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287   (eval $ac_link) 2>&5
15288   ac_status=$?
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } &&
15291          { ac_try='test -s conftest$ac_exeext'
15292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293   (eval $ac_try) 2>&5
15294   ac_status=$?
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); }; }; then
15297   eval "$as_ac_var=yes"
15298 else
15299   echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 eval "$as_ac_var=no"
15303 fi
15304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15305 fi
15306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15308 if test `eval echo '${'$as_ac_var'}'` = yes; then
15309   cat >>confdefs.h <<_ACEOF
15310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15311 _ACEOF
15312
15313 fi
15314 done
15315
15316
15317
15318
15319
15320
15321 for ac_func in snprintf vsnprintf gethostid getdomainname
15322 do
15323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15324 echo "$as_me:$LINENO: checking for $ac_func" >&5
15325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15326 if eval "test \"\${$as_ac_var+set}\" = set"; then
15327   echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329   cat >conftest.$ac_ext <<_ACEOF
15330 #line $LINENO "configure"
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336 /* System header to define __stub macros and hopefully few prototypes,
15337     which can conflict with char $ac_func (); below.
15338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15339     <limits.h> exists even on freestanding compilers.  */
15340 #ifdef __STDC__
15341 # include <limits.h>
15342 #else
15343 # include <assert.h>
15344 #endif
15345 /* Override any gcc2 internal prototype to avoid an error.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 {
15349 #endif
15350 /* We use char because int might match the return type of a gcc2
15351    builtin and then its argument prototype would still apply.  */
15352 char $ac_func ();
15353 /* The GNU C library defines this for functions which it implements
15354     to always fail with ENOSYS.  Some functions are actually named
15355     something starting with __ and the normal name is an alias.  */
15356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15357 choke me
15358 #else
15359 char (*f) () = $ac_func;
15360 #endif
15361 #ifdef __cplusplus
15362 }
15363 #endif
15364
15365 int
15366 main ()
15367 {
15368 return f != $ac_func;
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375   (eval $ac_link) 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } &&
15379          { ac_try='test -s conftest$ac_exeext'
15380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381   (eval $ac_try) 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; }; then
15385   eval "$as_ac_var=yes"
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 eval "$as_ac_var=no"
15391 fi
15392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15393 fi
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397   cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15399 _ACEOF
15400
15401 fi
15402 done
15403
15404
15405
15406
15407
15408
15409 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15410 do
15411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15412 echo "$as_me:$LINENO: checking for $ac_func" >&5
15413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15414 if eval "test \"\${$as_ac_var+set}\" = set"; then
15415   echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417   cat >conftest.$ac_ext <<_ACEOF
15418 #line $LINENO "configure"
15419 /* confdefs.h.  */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h.  */
15424 /* System header to define __stub macros and hopefully few prototypes,
15425     which can conflict with char $ac_func (); below.
15426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15427     <limits.h> exists even on freestanding compilers.  */
15428 #ifdef __STDC__
15429 # include <limits.h>
15430 #else
15431 # include <assert.h>
15432 #endif
15433 /* Override any gcc2 internal prototype to avoid an error.  */
15434 #ifdef __cplusplus
15435 extern "C"
15436 {
15437 #endif
15438 /* We use char because int might match the return type of a gcc2
15439    builtin and then its argument prototype would still apply.  */
15440 char $ac_func ();
15441 /* The GNU C library defines this for functions which it implements
15442     to always fail with ENOSYS.  Some functions are actually named
15443     something starting with __ and the normal name is an alias.  */
15444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15445 choke me
15446 #else
15447 char (*f) () = $ac_func;
15448 #endif
15449 #ifdef __cplusplus
15450 }
15451 #endif
15452
15453 int
15454 main ()
15455 {
15456 return f != $ac_func;
15457   ;
15458   return 0;
15459 }
15460 _ACEOF
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463   (eval $ac_link) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); } &&
15467          { ac_try='test -s conftest$ac_exeext'
15468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469   (eval $ac_try) 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); }; }; then
15473   eval "$as_ac_var=yes"
15474 else
15475   echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478 eval "$as_ac_var=no"
15479 fi
15480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15481 fi
15482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15484 if test `eval echo '${'$as_ac_var'}'` = yes; then
15485   cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15487 _ACEOF
15488
15489 fi
15490 done
15491
15492
15493 # If resolver functions are not in libc check for -lnsl or -lresolv.
15494 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15495 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15496 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15497   echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499   cat >conftest.$ac_ext <<_ACEOF
15500 #line $LINENO "configure"
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 /* System header to define __stub macros and hopefully few prototypes,
15507     which can conflict with char gethostbyname_r (); below.
15508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15509     <limits.h> exists even on freestanding compilers.  */
15510 #ifdef __STDC__
15511 # include <limits.h>
15512 #else
15513 # include <assert.h>
15514 #endif
15515 /* Override any gcc2 internal prototype to avoid an error.  */
15516 #ifdef __cplusplus
15517 extern "C"
15518 {
15519 #endif
15520 /* We use char because int might match the return type of a gcc2
15521    builtin and then its argument prototype would still apply.  */
15522 char gethostbyname_r ();
15523 /* The GNU C library defines this for functions which it implements
15524     to always fail with ENOSYS.  Some functions are actually named
15525     something starting with __ and the normal name is an alias.  */
15526 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15527 choke me
15528 #else
15529 char (*f) () = gethostbyname_r;
15530 #endif
15531 #ifdef __cplusplus
15532 }
15533 #endif
15534
15535 int
15536 main ()
15537 {
15538 return f != gethostbyname_r;
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545   (eval $ac_link) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); } &&
15549          { ac_try='test -s conftest$ac_exeext'
15550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551   (eval $ac_try) 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; }; then
15555   ac_cv_func_gethostbyname_r=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560 ac_cv_func_gethostbyname_r=no
15561 fi
15562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15563 fi
15564 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15565 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15566 if test $ac_cv_func_gethostbyname_r = yes; then
15567   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15568 echo "${ECHO_T}using libc's resolver" >&6
15569 else
15570
15571 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15572 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15573 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15574   echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576   ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lnsl  $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585
15586 /* Override any gcc2 internal prototype to avoid an error.  */
15587 #ifdef __cplusplus
15588 extern "C"
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591    builtin and then its argument prototype would still apply.  */
15592 char gethostbyname_r ();
15593 int
15594 main ()
15595 {
15596 gethostbyname_r ();
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603   (eval $ac_link) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -s conftest$ac_exeext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_cv_lib_nsl_gethostbyname_r=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_cv_lib_nsl_gethostbyname_r=no
15619 fi
15620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15621 LIBS=$ac_check_lib_save_LIBS
15622 fi
15623 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15624 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15625 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15626   cat >>confdefs.h <<_ACEOF
15627 #define HAVE_LIBNSL 1
15628 _ACEOF
15629
15630   LIBS="-lnsl $LIBS"
15631
15632 fi
15633
15634
15635 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15636 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15637 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15638   echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640   ac_check_lib_save_LIBS=$LIBS
15641 LIBS="-lresolv  $LIBS"
15642 cat >conftest.$ac_ext <<_ACEOF
15643 #line $LINENO "configure"
15644 /* confdefs.h.  */
15645 _ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h.  */
15649
15650 /* Override any gcc2 internal prototype to avoid an error.  */
15651 #ifdef __cplusplus
15652 extern "C"
15653 #endif
15654 /* We use char because int might match the return type of a gcc2
15655    builtin and then its argument prototype would still apply.  */
15656 char gethostbyname_r ();
15657 int
15658 main ()
15659 {
15660 gethostbyname_r ();
15661   ;
15662   return 0;
15663 }
15664 _ACEOF
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15667   (eval $ac_link) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); } &&
15671          { ac_try='test -s conftest$ac_exeext'
15672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673   (eval $ac_try) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; }; then
15677   ac_cv_lib_resolv_gethostbyname_r=yes
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_cv_lib_resolv_gethostbyname_r=no
15683 fi
15684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_check_lib_save_LIBS
15686 fi
15687 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15688 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15689 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15690   cat >>confdefs.h <<_ACEOF
15691 #define HAVE_LIBRESOLV 1
15692 _ACEOF
15693
15694   LIBS="-lresolv $LIBS"
15695
15696 fi
15697
15698 fi
15699
15700
15701
15702 # Find where sockets are (especially for Solaris)
15703 echo "$as_me:$LINENO: checking for socket" >&5
15704 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15705 if test "${ac_cv_func_socket+set}" = set; then
15706   echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708   cat >conftest.$ac_ext <<_ACEOF
15709 #line $LINENO "configure"
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715 /* System header to define __stub macros and hopefully few prototypes,
15716     which can conflict with char socket (); below.
15717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15718     <limits.h> exists even on freestanding compilers.  */
15719 #ifdef __STDC__
15720 # include <limits.h>
15721 #else
15722 # include <assert.h>
15723 #endif
15724 /* Override any gcc2 internal prototype to avoid an error.  */
15725 #ifdef __cplusplus
15726 extern "C"
15727 {
15728 #endif
15729 /* We use char because int might match the return type of a gcc2
15730    builtin and then its argument prototype would still apply.  */
15731 char socket ();
15732 /* The GNU C library defines this for functions which it implements
15733     to always fail with ENOSYS.  Some functions are actually named
15734     something starting with __ and the normal name is an alias.  */
15735 #if defined (__stub_socket) || defined (__stub___socket)
15736 choke me
15737 #else
15738 char (*f) () = socket;
15739 #endif
15740 #ifdef __cplusplus
15741 }
15742 #endif
15743
15744 int
15745 main ()
15746 {
15747 return f != socket;
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754   (eval $ac_link) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -s conftest$ac_exeext'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764   ac_cv_func_socket=yes
15765 else
15766   echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 ac_cv_func_socket=no
15770 fi
15771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15772 fi
15773 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15774 echo "${ECHO_T}$ac_cv_func_socket" >&6
15775 if test $ac_cv_func_socket = yes; then
15776   echo "$as_me:$LINENO: result: using libc's socket" >&5
15777 echo "${ECHO_T}using libc's socket" >&6
15778 else
15779
15780 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15781 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15782 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15783   echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785   ac_check_lib_save_LIBS=$LIBS
15786 LIBS="-lxnet  $LIBS"
15787 cat >conftest.$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15789 /* confdefs.h.  */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h.  */
15794
15795 /* Override any gcc2 internal prototype to avoid an error.  */
15796 #ifdef __cplusplus
15797 extern "C"
15798 #endif
15799 /* We use char because int might match the return type of a gcc2
15800    builtin and then its argument prototype would still apply.  */
15801 char socket ();
15802 int
15803 main ()
15804 {
15805 socket ();
15806   ;
15807   return 0;
15808 }
15809 _ACEOF
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812   (eval $ac_link) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); } &&
15816          { ac_try='test -s conftest$ac_exeext'
15817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818   (eval $ac_try) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; }; then
15822   ac_cv_lib_xnet_socket=yes
15823 else
15824   echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827 ac_cv_lib_xnet_socket=no
15828 fi
15829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15830 LIBS=$ac_check_lib_save_LIBS
15831 fi
15832 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15833 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15834 if test $ac_cv_lib_xnet_socket = yes; then
15835   cat >>confdefs.h <<_ACEOF
15836 #define HAVE_LIBXNET 1
15837 _ACEOF
15838
15839   LIBS="-lxnet $LIBS"
15840
15841 fi
15842
15843
15844 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15845 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15846 if test "${ac_cv_lib_socket_socket+set}" = set; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849   ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lsocket  $LIBS"
15851 cat >conftest.$ac_ext <<_ACEOF
15852 #line $LINENO "configure"
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858
15859 /* Override any gcc2 internal prototype to avoid an error.  */
15860 #ifdef __cplusplus
15861 extern "C"
15862 #endif
15863 /* We use char because int might match the return type of a gcc2
15864    builtin and then its argument prototype would still apply.  */
15865 char socket ();
15866 int
15867 main ()
15868 {
15869 socket ();
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876   (eval $ac_link) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } &&
15880          { ac_try='test -s conftest$ac_exeext'
15881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882   (eval $ac_try) 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; }; then
15886   ac_cv_lib_socket_socket=yes
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891 ac_cv_lib_socket_socket=no
15892 fi
15893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15894 LIBS=$ac_check_lib_save_LIBS
15895 fi
15896 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15897 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15898 if test $ac_cv_lib_socket_socket = yes; then
15899   cat >>confdefs.h <<_ACEOF
15900 #define HAVE_LIBSOCKET 1
15901 _ACEOF
15902
15903   LIBS="-lsocket $LIBS"
15904
15905 fi
15906
15907
15908 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15909 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15910 if test "${ac_cv_lib_inet_socket+set}" = set; then
15911   echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913   ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-linet  $LIBS"
15915 cat >conftest.$ac_ext <<_ACEOF
15916 #line $LINENO "configure"
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922
15923 /* Override any gcc2 internal prototype to avoid an error.  */
15924 #ifdef __cplusplus
15925 extern "C"
15926 #endif
15927 /* We use char because int might match the return type of a gcc2
15928    builtin and then its argument prototype would still apply.  */
15929 char socket ();
15930 int
15931 main ()
15932 {
15933 socket ();
15934   ;
15935   return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940   (eval $ac_link) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -s conftest$ac_exeext'
15945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946   (eval $ac_try) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; }; then
15950   ac_cv_lib_inet_socket=yes
15951 else
15952   echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15954
15955 ac_cv_lib_inet_socket=no
15956 fi
15957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15959 fi
15960 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15961 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15962 if test $ac_cv_lib_inet_socket = yes; then
15963   cat >>confdefs.h <<_ACEOF
15964 #define HAVE_LIBINET 1
15965 _ACEOF
15966
15967   LIBS="-linet $LIBS"
15968
15969 fi
15970
15971 fi
15972
15973
15974
15975 for ac_func in inet_pton
15976 do
15977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15978 echo "$as_me:$LINENO: checking for $ac_func" >&5
15979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15980 if eval "test \"\${$as_ac_var+set}\" = set"; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   cat >conftest.$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 /* System header to define __stub macros and hopefully few prototypes,
15991     which can conflict with char $ac_func (); below.
15992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15993     <limits.h> exists even on freestanding compilers.  */
15994 #ifdef __STDC__
15995 # include <limits.h>
15996 #else
15997 # include <assert.h>
15998 #endif
15999 /* Override any gcc2 internal prototype to avoid an error.  */
16000 #ifdef __cplusplus
16001 extern "C"
16002 {
16003 #endif
16004 /* We use char because int might match the return type of a gcc2
16005    builtin and then its argument prototype would still apply.  */
16006 char $ac_func ();
16007 /* The GNU C library defines this for functions which it implements
16008     to always fail with ENOSYS.  Some functions are actually named
16009     something starting with __ and the normal name is an alias.  */
16010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16011 choke me
16012 #else
16013 char (*f) () = $ac_func;
16014 #endif
16015 #ifdef __cplusplus
16016 }
16017 #endif
16018
16019 int
16020 main ()
16021 {
16022 return f != $ac_func;
16023   ;
16024   return 0;
16025 }
16026 _ACEOF
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029   (eval $ac_link) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } &&
16033          { ac_try='test -s conftest$ac_exeext'
16034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035   (eval $ac_try) 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }; then
16039   eval "$as_ac_var=yes"
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 eval "$as_ac_var=no"
16045 fi
16046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16047 fi
16048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16050 if test `eval echo '${'$as_ac_var'}'` = yes; then
16051   cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16053 _ACEOF
16054  cat >>confdefs.h <<\_ACEOF
16055 #define HAVE_INET_PTON 1
16056 _ACEOF
16057
16058 fi
16059 done
16060
16061
16062
16063 for ac_func in strftime
16064 do
16065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16066 echo "$as_me:$LINENO: checking for $ac_func" >&5
16067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16068 if eval "test \"\${$as_ac_var+set}\" = set"; then
16069   echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071   cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078 /* System header to define __stub macros and hopefully few prototypes,
16079     which can conflict with char $ac_func (); below.
16080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16081     <limits.h> exists even on freestanding compilers.  */
16082 #ifdef __STDC__
16083 # include <limits.h>
16084 #else
16085 # include <assert.h>
16086 #endif
16087 /* Override any gcc2 internal prototype to avoid an error.  */
16088 #ifdef __cplusplus
16089 extern "C"
16090 {
16091 #endif
16092 /* We use char because int might match the return type of a gcc2
16093    builtin and then its argument prototype would still apply.  */
16094 char $ac_func ();
16095 /* The GNU C library defines this for functions which it implements
16096     to always fail with ENOSYS.  Some functions are actually named
16097     something starting with __ and the normal name is an alias.  */
16098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16099 choke me
16100 #else
16101 char (*f) () = $ac_func;
16102 #endif
16103 #ifdef __cplusplus
16104 }
16105 #endif
16106
16107 int
16108 main ()
16109 {
16110 return f != $ac_func;
16111   ;
16112   return 0;
16113 }
16114 _ACEOF
16115 rm -f conftest.$ac_objext conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117   (eval $ac_link) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -s conftest$ac_exeext'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; }; then
16127   eval "$as_ac_var=yes"
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 eval "$as_ac_var=no"
16133 fi
16134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16135 fi
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16138 if test `eval echo '${'$as_ac_var'}'` = yes; then
16139   cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16141 _ACEOF
16142
16143 else
16144   # strftime is in -lintl on SCO UNIX.
16145 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16146 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16147 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16148   echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150   ac_check_lib_save_LIBS=$LIBS
16151 LIBS="-lintl  $LIBS"
16152 cat >conftest.$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16154 /* confdefs.h.  */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h.  */
16159
16160 /* Override any gcc2 internal prototype to avoid an error.  */
16161 #ifdef __cplusplus
16162 extern "C"
16163 #endif
16164 /* We use char because int might match the return type of a gcc2
16165    builtin and then its argument prototype would still apply.  */
16166 char strftime ();
16167 int
16168 main ()
16169 {
16170 strftime ();
16171   ;
16172   return 0;
16173 }
16174 _ACEOF
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177   (eval $ac_link) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } &&
16181          { ac_try='test -s conftest$ac_exeext'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187   ac_cv_lib_intl_strftime=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ac_cv_lib_intl_strftime=no
16193 fi
16194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16196 fi
16197 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16198 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16199 if test $ac_cv_lib_intl_strftime = yes; then
16200   cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_STRFTIME 1
16202 _ACEOF
16203
16204 LIBS="-lintl $LIBS"
16205 fi
16206
16207 fi
16208 done
16209
16210
16211 for ac_func in vprintf
16212 do
16213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16214 echo "$as_me:$LINENO: checking for $ac_func" >&5
16215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16216 if eval "test \"\${$as_ac_var+set}\" = set"; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 #line $LINENO "configure"
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 /* System header to define __stub macros and hopefully few prototypes,
16227     which can conflict with char $ac_func (); below.
16228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16229     <limits.h> exists even on freestanding compilers.  */
16230 #ifdef __STDC__
16231 # include <limits.h>
16232 #else
16233 # include <assert.h>
16234 #endif
16235 /* Override any gcc2 internal prototype to avoid an error.  */
16236 #ifdef __cplusplus
16237 extern "C"
16238 {
16239 #endif
16240 /* We use char because int might match the return type of a gcc2
16241    builtin and then its argument prototype would still apply.  */
16242 char $ac_func ();
16243 /* The GNU C library defines this for functions which it implements
16244     to always fail with ENOSYS.  Some functions are actually named
16245     something starting with __ and the normal name is an alias.  */
16246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16247 choke me
16248 #else
16249 char (*f) () = $ac_func;
16250 #endif
16251 #ifdef __cplusplus
16252 }
16253 #endif
16254
16255 int
16256 main ()
16257 {
16258 return f != $ac_func;
16259   ;
16260   return 0;
16261 }
16262 _ACEOF
16263 rm -f conftest.$ac_objext conftest$ac_exeext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265   (eval $ac_link) 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); } &&
16269          { ac_try='test -s conftest$ac_exeext'
16270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271   (eval $ac_try) 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   eval "$as_ac_var=yes"
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 eval "$as_ac_var=no"
16281 fi
16282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16283 fi
16284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16286 if test `eval echo '${'$as_ac_var'}'` = yes; then
16287   cat >>confdefs.h <<_ACEOF
16288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16289 _ACEOF
16290
16291 echo "$as_me:$LINENO: checking for _doprnt" >&5
16292 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16293 if test "${ac_cv_func__doprnt+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296   cat >conftest.$ac_ext <<_ACEOF
16297 #line $LINENO "configure"
16298 /* confdefs.h.  */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h.  */
16303 /* System header to define __stub macros and hopefully few prototypes,
16304     which can conflict with char _doprnt (); below.
16305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16306     <limits.h> exists even on freestanding compilers.  */
16307 #ifdef __STDC__
16308 # include <limits.h>
16309 #else
16310 # include <assert.h>
16311 #endif
16312 /* Override any gcc2 internal prototype to avoid an error.  */
16313 #ifdef __cplusplus
16314 extern "C"
16315 {
16316 #endif
16317 /* We use char because int might match the return type of a gcc2
16318    builtin and then its argument prototype would still apply.  */
16319 char _doprnt ();
16320 /* The GNU C library defines this for functions which it implements
16321     to always fail with ENOSYS.  Some functions are actually named
16322     something starting with __ and the normal name is an alias.  */
16323 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16324 choke me
16325 #else
16326 char (*f) () = _doprnt;
16327 #endif
16328 #ifdef __cplusplus
16329 }
16330 #endif
16331
16332 int
16333 main ()
16334 {
16335 return f != _doprnt;
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342   (eval $ac_link) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); } &&
16346          { ac_try='test -s conftest$ac_exeext'
16347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348   (eval $ac_try) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); }; }; then
16352   ac_cv_func__doprnt=yes
16353 else
16354   echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ac_cv_func__doprnt=no
16358 fi
16359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16360 fi
16361 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16362 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16363 if test $ac_cv_func__doprnt = yes; then
16364
16365 cat >>confdefs.h <<\_ACEOF
16366 #define HAVE_DOPRNT 1
16367 _ACEOF
16368
16369 fi
16370
16371 fi
16372 done
16373
16374
16375 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16376 # for constant arguments.  Useless!
16377 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16378 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16379 if test "${ac_cv_working_alloca_h+set}" = set; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 #include <alloca.h>
16390 int
16391 main ()
16392 {
16393 char *p = (char *) alloca (2 * sizeof (int));
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400   (eval $ac_link) 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); } &&
16404          { ac_try='test -s conftest$ac_exeext'
16405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406   (eval $ac_try) 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; }; then
16410   ac_cv_working_alloca_h=yes
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_cv_working_alloca_h=no
16416 fi
16417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16418 fi
16419 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16420 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16421 if test $ac_cv_working_alloca_h = yes; then
16422
16423 cat >>confdefs.h <<\_ACEOF
16424 #define HAVE_ALLOCA_H 1
16425 _ACEOF
16426
16427 fi
16428
16429 echo "$as_me:$LINENO: checking for alloca" >&5
16430 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16431 if test "${ac_cv_func_alloca_works+set}" = set; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   cat >conftest.$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441 #ifdef __GNUC__
16442 # define alloca __builtin_alloca
16443 #else
16444 # ifdef _MSC_VER
16445 #  include <malloc.h>
16446 #  define alloca _alloca
16447 # else
16448 #  if HAVE_ALLOCA_H
16449 #   include <alloca.h>
16450 #  else
16451 #   ifdef _AIX
16452  #pragma alloca
16453 #   else
16454 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16455 char *alloca ();
16456 #    endif
16457 #   endif
16458 #  endif
16459 # endif
16460 #endif
16461
16462 int
16463 main ()
16464 {
16465 char *p = (char *) alloca (1);
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16472   (eval $ac_link) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); } &&
16476          { ac_try='test -s conftest$ac_exeext'
16477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478   (eval $ac_try) 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); }; }; then
16482   ac_cv_func_alloca_works=yes
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_cv_func_alloca_works=no
16488 fi
16489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16490 fi
16491 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16492 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16493
16494 if test $ac_cv_func_alloca_works = yes; then
16495
16496 cat >>confdefs.h <<\_ACEOF
16497 #define HAVE_ALLOCA 1
16498 _ACEOF
16499
16500 else
16501   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16502 # that cause trouble.  Some versions do not even contain alloca or
16503 # contain a buggy version.  If you still want to use their alloca,
16504 # use ar to extract alloca.o from them instead of compiling alloca.c.
16505
16506 ALLOCA=alloca.$ac_objext
16507
16508 cat >>confdefs.h <<\_ACEOF
16509 #define C_ALLOCA 1
16510 _ACEOF
16511
16512
16513 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16514 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16515 if test "${ac_cv_os_cray+set}" = set; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525 #if defined(CRAY) && ! defined(CRAY2)
16526 webecray
16527 #else
16528 wenotbecray
16529 #endif
16530
16531 _ACEOF
16532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16533   $EGREP "webecray" >/dev/null 2>&1; then
16534   ac_cv_os_cray=yes
16535 else
16536   ac_cv_os_cray=no
16537 fi
16538 rm -f conftest*
16539
16540 fi
16541 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16542 echo "${ECHO_T}$ac_cv_os_cray" >&6
16543 if test $ac_cv_os_cray = yes; then
16544   for ac_func in _getb67 GETB67 getb67; do
16545     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16546 echo "$as_me:$LINENO: checking for $ac_func" >&5
16547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16548 if eval "test \"\${$as_ac_var+set}\" = set"; then
16549   echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551   cat >conftest.$ac_ext <<_ACEOF
16552 #line $LINENO "configure"
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558 /* System header to define __stub macros and hopefully few prototypes,
16559     which can conflict with char $ac_func (); below.
16560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16561     <limits.h> exists even on freestanding compilers.  */
16562 #ifdef __STDC__
16563 # include <limits.h>
16564 #else
16565 # include <assert.h>
16566 #endif
16567 /* Override any gcc2 internal prototype to avoid an error.  */
16568 #ifdef __cplusplus
16569 extern "C"
16570 {
16571 #endif
16572 /* We use char because int might match the return type of a gcc2
16573    builtin and then its argument prototype would still apply.  */
16574 char $ac_func ();
16575 /* The GNU C library defines this for functions which it implements
16576     to always fail with ENOSYS.  Some functions are actually named
16577     something starting with __ and the normal name is an alias.  */
16578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16579 choke me
16580 #else
16581 char (*f) () = $ac_func;
16582 #endif
16583 #ifdef __cplusplus
16584 }
16585 #endif
16586
16587 int
16588 main ()
16589 {
16590 return f != $ac_func;
16591   ;
16592   return 0;
16593 }
16594 _ACEOF
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16597   (eval $ac_link) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } &&
16601          { ac_try='test -s conftest$ac_exeext'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   eval "$as_ac_var=yes"
16608 else
16609   echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 eval "$as_ac_var=no"
16613 fi
16614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16615 fi
16616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16618 if test `eval echo '${'$as_ac_var'}'` = yes; then
16619
16620 cat >>confdefs.h <<_ACEOF
16621 #define CRAY_STACKSEG_END $ac_func
16622 _ACEOF
16623
16624     break
16625 fi
16626
16627   done
16628 fi
16629
16630 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16631 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16632 if test "${ac_cv_c_stack_direction+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   if test "$cross_compiling" = yes; then
16636   ac_cv_c_stack_direction=0
16637 else
16638   cat >conftest.$ac_ext <<_ACEOF
16639 #line $LINENO "configure"
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645 int
16646 find_stack_direction ()
16647 {
16648   static char *addr = 0;
16649   auto char dummy;
16650   if (addr == 0)
16651     {
16652       addr = &dummy;
16653       return find_stack_direction ();
16654     }
16655   else
16656     return (&dummy > addr) ? 1 : -1;
16657 }
16658
16659 int
16660 main ()
16661 {
16662   exit (find_stack_direction () < 0);
16663 }
16664 _ACEOF
16665 rm -f conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667   (eval $ac_link) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; }; then
16676   ac_cv_c_stack_direction=1
16677 else
16678   echo "$as_me: program exited with status $ac_status" >&5
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 ( exit $ac_status )
16683 ac_cv_c_stack_direction=-1
16684 fi
16685 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16686 fi
16687 fi
16688 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16689 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16690
16691 cat >>confdefs.h <<_ACEOF
16692 #define STACK_DIRECTION $ac_cv_c_stack_direction
16693 _ACEOF
16694
16695
16696 fi
16697
16698 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16699 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16700 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16701 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16702   echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704   ac_check_lib_save_LIBS=$LIBS
16705 LIBS="-lsun  $LIBS"
16706 cat >conftest.$ac_ext <<_ACEOF
16707 #line $LINENO "configure"
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713
16714 /* Override any gcc2 internal prototype to avoid an error.  */
16715 #ifdef __cplusplus
16716 extern "C"
16717 #endif
16718 /* We use char because int might match the return type of a gcc2
16719    builtin and then its argument prototype would still apply.  */
16720 char getmntent ();
16721 int
16722 main ()
16723 {
16724 getmntent ();
16725   ;
16726   return 0;
16727 }
16728 _ACEOF
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16731   (eval $ac_link) 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); } &&
16735          { ac_try='test -s conftest$ac_exeext'
16736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737   (eval $ac_try) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); }; }; then
16741   ac_cv_lib_sun_getmntent=yes
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746 ac_cv_lib_sun_getmntent=no
16747 fi
16748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16749 LIBS=$ac_check_lib_save_LIBS
16750 fi
16751 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16752 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16753 if test $ac_cv_lib_sun_getmntent = yes; then
16754   LIBS="-lsun $LIBS"
16755 else
16756   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16757 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16758 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16759   echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761   ac_check_lib_save_LIBS=$LIBS
16762 LIBS="-lseq  $LIBS"
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16765 /* confdefs.h.  */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h.  */
16770
16771 /* Override any gcc2 internal prototype to avoid an error.  */
16772 #ifdef __cplusplus
16773 extern "C"
16774 #endif
16775 /* We use char because int might match the return type of a gcc2
16776    builtin and then its argument prototype would still apply.  */
16777 char getmntent ();
16778 int
16779 main ()
16780 {
16781 getmntent ();
16782   ;
16783   return 0;
16784 }
16785 _ACEOF
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788   (eval $ac_link) 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); } &&
16792          { ac_try='test -s conftest$ac_exeext'
16793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794   (eval $ac_try) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; }; then
16798   ac_cv_lib_seq_getmntent=yes
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_cv_lib_seq_getmntent=no
16804 fi
16805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16806 LIBS=$ac_check_lib_save_LIBS
16807 fi
16808 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16809 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16810 if test $ac_cv_lib_seq_getmntent = yes; then
16811   LIBS="-lseq $LIBS"
16812 else
16813   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16814 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16815 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   ac_check_lib_save_LIBS=$LIBS
16819 LIBS="-lgen  $LIBS"
16820 cat >conftest.$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827
16828 /* Override any gcc2 internal prototype to avoid an error.  */
16829 #ifdef __cplusplus
16830 extern "C"
16831 #endif
16832 /* We use char because int might match the return type of a gcc2
16833    builtin and then its argument prototype would still apply.  */
16834 char getmntent ();
16835 int
16836 main ()
16837 {
16838 getmntent ();
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845   (eval $ac_link) 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); } &&
16849          { ac_try='test -s conftest$ac_exeext'
16850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851   (eval $ac_try) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; }; then
16855   ac_cv_lib_gen_getmntent=yes
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ac_cv_lib_gen_getmntent=no
16861 fi
16862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16863 LIBS=$ac_check_lib_save_LIBS
16864 fi
16865 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16866 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16867 if test $ac_cv_lib_gen_getmntent = yes; then
16868   LIBS="-lgen $LIBS"
16869 fi
16870
16871 fi
16872
16873 fi
16874
16875
16876 for ac_func in getmntent
16877 do
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16881 if eval "test \"\${$as_ac_var+set}\" = set"; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   cat >conftest.$ac_ext <<_ACEOF
16885 #line $LINENO "configure"
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 /* System header to define __stub macros and hopefully few prototypes,
16892     which can conflict with char $ac_func (); below.
16893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894     <limits.h> exists even on freestanding compilers.  */
16895 #ifdef __STDC__
16896 # include <limits.h>
16897 #else
16898 # include <assert.h>
16899 #endif
16900 /* Override any gcc2 internal prototype to avoid an error.  */
16901 #ifdef __cplusplus
16902 extern "C"
16903 {
16904 #endif
16905 /* We use char because int might match the return type of a gcc2
16906    builtin and then its argument prototype would still apply.  */
16907 char $ac_func ();
16908 /* The GNU C library defines this for functions which it implements
16909     to always fail with ENOSYS.  Some functions are actually named
16910     something starting with __ and the normal name is an alias.  */
16911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16912 choke me
16913 #else
16914 char (*f) () = $ac_func;
16915 #endif
16916 #ifdef __cplusplus
16917 }
16918 #endif
16919
16920 int
16921 main ()
16922 {
16923 return f != $ac_func;
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930   (eval $ac_link) 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); } &&
16934          { ac_try='test -s conftest$ac_exeext'
16935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936   (eval $ac_try) 2>&5
16937   ac_status=$?
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); }; }; then
16940   eval "$as_ac_var=yes"
16941 else
16942   echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 eval "$as_ac_var=no"
16946 fi
16947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16948 fi
16949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16951 if test `eval echo '${'$as_ac_var'}'` = yes; then
16952   cat >>confdefs.h <<_ACEOF
16953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16954 _ACEOF
16955
16956 fi
16957 done
16958
16959
16960 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16961 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16962 if test "${ac_cv_func_closedir_void+set}" = set; then
16963   echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965   if test "$cross_compiling" = yes; then
16966   ac_cv_func_closedir_void=yes
16967 else
16968   cat >conftest.$ac_ext <<_ACEOF
16969 #line $LINENO "configure"
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975 $ac_includes_default
16976 #include <$ac_header_dirent>
16977 #ifndef __cplusplus
16978 int closedir ();
16979 #endif
16980
16981 int
16982 main ()
16983 {
16984 exit (closedir (opendir (".")) != 0);
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991   (eval $ac_link) 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000   ac_cv_func_closedir_void=no
17001 else
17002   echo "$as_me: program exited with status $ac_status" >&5
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006 ( exit $ac_status )
17007 ac_cv_func_closedir_void=yes
17008 fi
17009 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17010 fi
17011 fi
17012 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17013 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17014 if test $ac_cv_func_closedir_void = yes; then
17015
17016 cat >>confdefs.h <<\_ACEOF
17017 #define CLOSEDIR_VOID 1
17018 _ACEOF
17019
17020 fi
17021
17022 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17023 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17024 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17025   echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027   if test "$cross_compiling" = yes; then
17028   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17029 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17030    { (exit 1); exit 1; }; }
17031 else
17032   cat >conftest.$ac_ext <<_ACEOF
17033 #line $LINENO "configure"
17034 /* confdefs.h.  */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h.  */
17039 #if HAVE_UNISTD_H
17040 # include <unistd.h>
17041 #endif
17042
17043 int
17044 main ()
17045 {
17046 /* If this system has a BSD-style setpgrp which takes arguments,
17047   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17048   exit successfully. */
17049   exit (setpgrp (1,1) == -1 ? 0 : 1);
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest$ac_exeext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056   (eval $ac_link) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065   ac_cv_func_setpgrp_void=no
17066 else
17067   echo "$as_me: program exited with status $ac_status" >&5
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071 ( exit $ac_status )
17072 ac_cv_func_setpgrp_void=yes
17073 fi
17074 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17075 fi
17076 fi
17077 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17078 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17079 if test $ac_cv_func_setpgrp_void = yes; then
17080
17081 cat >>confdefs.h <<\_ACEOF
17082 #define SETPGRP_VOID 1
17083 _ACEOF
17084
17085 fi
17086                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17087 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17088 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17089   echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091   # Some versions of Solaris, SCO, and the GNU C Library
17092    # have a broken or incompatible fnmatch.
17093    # So we run a test program.  If we are cross-compiling, take no chance.
17094    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17095    if test "$cross_compiling" = yes; then
17096   ac_cv_func_fnmatch_works=cross
17097 else
17098   cat >conftest.$ac_ext <<_ACEOF
17099 #line $LINENO "configure"
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105 #include <fnmatch.h>
17106 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17107 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17108
17109 int
17110 main ()
17111 {
17112 exit
17113            (!(y ("a*", "abc", 0)
17114               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17115               && y ("a\\\\bc", "abc", 0)
17116               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17117               && y ("*x", ".x", 0)
17118               && n ("*x", ".x", FNM_PERIOD)
17119               && 1));
17120   ;
17121   return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126   (eval $ac_link) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   ac_cv_func_fnmatch_works=yes
17136 else
17137   echo "$as_me: program exited with status $ac_status" >&5
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141 ( exit $ac_status )
17142 ac_cv_func_fnmatch_works=no
17143 fi
17144 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 fi
17147 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17148 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17149 if test $ac_cv_func_fnmatch_works = yes; then
17150
17151 cat >>confdefs.h <<\_ACEOF
17152 #define HAVE_FNMATCH 1
17153 _ACEOF
17154
17155 fi
17156
17157
17158
17159
17160
17161 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17162 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17163 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   ac_check_lib_save_LIBS=$LIBS
17167 LIBS="-lxpg4  $LIBS"
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175
17176 /* Override any gcc2 internal prototype to avoid an error.  */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 /* We use char because int might match the return type of a gcc2
17181    builtin and then its argument prototype would still apply.  */
17182 char setlocale ();
17183 int
17184 main ()
17185 {
17186 setlocale ();
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193   (eval $ac_link) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); } &&
17197          { ac_try='test -s conftest$ac_exeext'
17198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199   (eval $ac_try) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; }; then
17203   ac_cv_lib_xpg4_setlocale=yes
17204 else
17205   echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17207
17208 ac_cv_lib_xpg4_setlocale=no
17209 fi
17210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17211 LIBS=$ac_check_lib_save_LIBS
17212 fi
17213 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17214 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17215 if test $ac_cv_lib_xpg4_setlocale = yes; then
17216   LIBS="$LIBS -lxpg4"
17217 fi
17218
17219
17220
17221
17222 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17223 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17224 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   ac_check_lib_save_LIBS=$LIBS
17228 LIBS="-lsun  $LIBS"
17229 cat >conftest.$ac_ext <<_ACEOF
17230 #line $LINENO "configure"
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236
17237 /* Override any gcc2 internal prototype to avoid an error.  */
17238 #ifdef __cplusplus
17239 extern "C"
17240 #endif
17241 /* We use char because int might match the return type of a gcc2
17242    builtin and then its argument prototype would still apply.  */
17243 char getpwnam ();
17244 int
17245 main ()
17246 {
17247 getpwnam ();
17248   ;
17249   return 0;
17250 }
17251 _ACEOF
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17254   (eval $ac_link) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); } &&
17258          { ac_try='test -s conftest$ac_exeext'
17259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260   (eval $ac_try) 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); }; }; then
17264   ac_cv_lib_sun_getpwnam=yes
17265 else
17266   echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17268
17269 ac_cv_lib_sun_getpwnam=no
17270 fi
17271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17273 fi
17274 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17275 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17276 if test $ac_cv_lib_sun_getpwnam = yes; then
17277   cat >>confdefs.h <<_ACEOF
17278 #define HAVE_LIBSUN 1
17279 _ACEOF
17280
17281   LIBS="-lsun $LIBS"
17282
17283 fi
17284
17285
17286
17287 for ac_header in zlib.h
17288 do
17289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17291   echo "$as_me:$LINENO: checking for $ac_header" >&5
17292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 fi
17296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17298 else
17299   # Is the header compilable?
17300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17302 cat >conftest.$ac_ext <<_ACEOF
17303 #line $LINENO "configure"
17304 /* confdefs.h.  */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h.  */
17309 $ac_includes_default
17310 #include <$ac_header>
17311 _ACEOF
17312 rm -f conftest.$ac_objext
17313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17314   (eval $ac_compile) 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } &&
17318          { ac_try='test -s conftest.$ac_objext'
17319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320   (eval $ac_try) 2>&5
17321   ac_status=$?
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); }; }; then
17324   ac_header_compiler=yes
17325 else
17326   echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329 ac_header_compiler=no
17330 fi
17331 rm -f conftest.$ac_objext conftest.$ac_ext
17332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17333 echo "${ECHO_T}$ac_header_compiler" >&6
17334
17335 # Is the header present?
17336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17338 cat >conftest.$ac_ext <<_ACEOF
17339 #line $LINENO "configure"
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345 #include <$ac_header>
17346 _ACEOF
17347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17349   ac_status=$?
17350   grep -v '^ *+' conftest.er1 >conftest.err
17351   rm -f conftest.er1
17352   cat conftest.err >&5
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } >/dev/null; then
17355   if test -s conftest.err; then
17356     ac_cpp_err=$ac_c_preproc_warn_flag
17357   else
17358     ac_cpp_err=
17359   fi
17360 else
17361   ac_cpp_err=yes
17362 fi
17363 if test -z "$ac_cpp_err"; then
17364   ac_header_preproc=yes
17365 else
17366   echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369   ac_header_preproc=no
17370 fi
17371 rm -f conftest.err conftest.$ac_ext
17372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17373 echo "${ECHO_T}$ac_header_preproc" >&6
17374
17375 # So?  What about this header?
17376 case $ac_header_compiler:$ac_header_preproc in
17377   yes:no )
17378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17382     (
17383       cat <<\_ASBOX
17384 ## ------------------------------------ ##
17385 ## Report this to bug-autoconf@gnu.org. ##
17386 ## ------------------------------------ ##
17387 _ASBOX
17388     ) |
17389       sed "s/^/$as_me: WARNING:     /" >&2
17390     ;;
17391   no:yes )
17392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17394     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17398     (
17399       cat <<\_ASBOX
17400 ## ------------------------------------ ##
17401 ## Report this to bug-autoconf@gnu.org. ##
17402 ## ------------------------------------ ##
17403 _ASBOX
17404     ) |
17405       sed "s/^/$as_me: WARNING:     /" >&2
17406     ;;
17407 esac
17408 echo "$as_me:$LINENO: checking for $ac_header" >&5
17409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17411   echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413   eval "$as_ac_Header=$ac_header_preproc"
17414 fi
17415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17417
17418 fi
17419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17420   cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17422 _ACEOF
17423
17424 fi
17425
17426 done
17427
17428 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17429 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17430 if test "${ac_cv_lib_z_deflate+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   ac_check_lib_save_LIBS=$LIBS
17434 LIBS="-lz  $LIBS"
17435 cat >conftest.$ac_ext <<_ACEOF
17436 #line $LINENO "configure"
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442
17443 /* Override any gcc2 internal prototype to avoid an error.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 /* We use char because int might match the return type of a gcc2
17448    builtin and then its argument prototype would still apply.  */
17449 char deflate ();
17450 int
17451 main ()
17452 {
17453 deflate ();
17454   ;
17455   return 0;
17456 }
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460   (eval $ac_link) 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); } &&
17464          { ac_try='test -s conftest$ac_exeext'
17465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466   (eval $ac_try) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; }; then
17470   ac_cv_lib_z_deflate=yes
17471 else
17472   echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17474
17475 ac_cv_lib_z_deflate=no
17476 fi
17477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17479 fi
17480 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17481 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17482 if test $ac_cv_lib_z_deflate = yes; then
17483   FDLIBS="-lz"
17484 fi
17485
17486 have_zlib=no
17487 if test x$FDLIBS = x-lz; then
17488   cat >>confdefs.h <<\_ACEOF
17489 #define HAVE_LIBZ 1
17490 _ACEOF
17491
17492   have_zlib=yes
17493 fi
17494
17495 PTHREAD_LIB=""
17496 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17497 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17498 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501   ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-lpthread  $LIBS"
17503 cat >conftest.$ac_ext <<_ACEOF
17504 #line $LINENO "configure"
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510
17511 /* Override any gcc2 internal prototype to avoid an error.  */
17512 #ifdef __cplusplus
17513 extern "C"
17514 #endif
17515 /* We use char because int might match the return type of a gcc2
17516    builtin and then its argument prototype would still apply.  */
17517 char pthread_create ();
17518 int
17519 main ()
17520 {
17521 pthread_create ();
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528   (eval $ac_link) 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -s conftest$ac_exeext'
17533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534   (eval $ac_try) 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); }; }; then
17538   ac_cv_lib_pthread_pthread_create=yes
17539 else
17540   echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543 ac_cv_lib_pthread_pthread_create=no
17544 fi
17545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17546 LIBS=$ac_check_lib_save_LIBS
17547 fi
17548 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17549 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17550 if test $ac_cv_lib_pthread_pthread_create = yes; then
17551   PTHREAD_LIB="-lpthread"
17552 else
17553   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17554 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17555 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558   ac_check_lib_save_LIBS=$LIBS
17559 LIBS="-lpthreads  $LIBS"
17560 cat >conftest.$ac_ext <<_ACEOF
17561 #line $LINENO "configure"
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 /* Override any gcc2 internal prototype to avoid an error.  */
17569 #ifdef __cplusplus
17570 extern "C"
17571 #endif
17572 /* We use char because int might match the return type of a gcc2
17573    builtin and then its argument prototype would still apply.  */
17574 char pthread_create ();
17575 int
17576 main ()
17577 {
17578 pthread_create ();
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585   (eval $ac_link) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); } &&
17589          { ac_try='test -s conftest$ac_exeext'
17590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591   (eval $ac_try) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; }; then
17595   ac_cv_lib_pthreads_pthread_create=yes
17596 else
17597   echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 ac_cv_lib_pthreads_pthread_create=no
17601 fi
17602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17603 LIBS=$ac_check_lib_save_LIBS
17604 fi
17605 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17606 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17607 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17608   PTHREAD_LIB="-lpthreads"
17609 else
17610   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17611 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17612 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17613   echo $ECHO_N "(cached) $ECHO_C" >&6
17614 else
17615   ac_check_lib_save_LIBS=$LIBS
17616 LIBS="-lc_r  $LIBS"
17617 cat >conftest.$ac_ext <<_ACEOF
17618 #line $LINENO "configure"
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624
17625 /* Override any gcc2 internal prototype to avoid an error.  */
17626 #ifdef __cplusplus
17627 extern "C"
17628 #endif
17629 /* We use char because int might match the return type of a gcc2
17630    builtin and then its argument prototype would still apply.  */
17631 char pthread_create ();
17632 int
17633 main ()
17634 {
17635 pthread_create ();
17636   ;
17637   return 0;
17638 }
17639 _ACEOF
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642   (eval $ac_link) 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } &&
17646          { ac_try='test -s conftest$ac_exeext'
17647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648   (eval $ac_try) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); }; }; then
17652   ac_cv_lib_c_r_pthread_create=yes
17653 else
17654   echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 ac_cv_lib_c_r_pthread_create=no
17658 fi
17659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17661 fi
17662 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17663 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17664 if test $ac_cv_lib_c_r_pthread_create = yes; then
17665   PTHREAD_LIB="-lc_r"
17666 else
17667   echo "$as_me:$LINENO: checking for pthread_create" >&5
17668 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17669 if test "${ac_cv_func_pthread_create+set}" = set; then
17670   echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672   cat >conftest.$ac_ext <<_ACEOF
17673 #line $LINENO "configure"
17674 /* confdefs.h.  */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h.  */
17679 /* System header to define __stub macros and hopefully few prototypes,
17680     which can conflict with char pthread_create (); below.
17681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17682     <limits.h> exists even on freestanding compilers.  */
17683 #ifdef __STDC__
17684 # include <limits.h>
17685 #else
17686 # include <assert.h>
17687 #endif
17688 /* Override any gcc2 internal prototype to avoid an error.  */
17689 #ifdef __cplusplus
17690 extern "C"
17691 {
17692 #endif
17693 /* We use char because int might match the return type of a gcc2
17694    builtin and then its argument prototype would still apply.  */
17695 char pthread_create ();
17696 /* The GNU C library defines this for functions which it implements
17697     to always fail with ENOSYS.  Some functions are actually named
17698     something starting with __ and the normal name is an alias.  */
17699 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17700 choke me
17701 #else
17702 char (*f) () = pthread_create;
17703 #endif
17704 #ifdef __cplusplus
17705 }
17706 #endif
17707
17708 int
17709 main ()
17710 {
17711 return f != pthread_create;
17712   ;
17713   return 0;
17714 }
17715 _ACEOF
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17718   (eval $ac_link) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } &&
17722          { ac_try='test -s conftest$ac_exeext'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; }; then
17728   ac_cv_func_pthread_create=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_cv_func_pthread_create=no
17734 fi
17735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17736 fi
17737 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17738 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17739
17740
17741 fi
17742
17743
17744 fi
17745
17746
17747 fi
17748
17749
17750
17751 cat >>confdefs.h <<\_ACEOF
17752 #define FDLIBS 1
17753 _ACEOF
17754
17755
17756
17757 CFLAGS=${CFLAGS--O}
17758 LDFLAGS=${LDFLAGS--O}
17759 DB_LIBS="${SQL_LFLAGS}"
17760
17761 CPPFLAGS="$CPPFLAGS"
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776 OBJLIST=
17777
17778
17779 lld="lld"
17780 llu="llu"
17781
17782 WCFLAGS=
17783 WLDFLAGS=
17784
17785 #
17786 # Finally we set appropriate distribution specific
17787 #  variables and defaults
17788 #
17789 # PFILES are platform specific files
17790 PFILES="platforms/Makefile"
17791 PSCMD="ps -e"
17792 WIN32=
17793 hostname=`uname -n | cut -d '.' -f 1`
17794 case "$DISTNAME" in
17795 aix)
17796         DISTVER=`uname -r`
17797         PSCMD="ps -e -o pid,comm"
17798         PFILES="${PFILES} \
17799            platforms/aix/Makefile"
17800         TAPEDRIVE="/dev/rmt0.1"
17801   ;;
17802 alpha)
17803         DISTVER=`uname -r`
17804         PTHREAD_LIB="-lpthread -lexc"
17805         if test "${CC}" = "gcc" ; then
17806            lld="lld"
17807            llu="llu"
17808         else
17809            lld="ld"
17810            llu="lu"
17811         fi
17812         TAPEDRIVE="/dev/nrmt0"
17813   ;;
17814 bsdi)
17815         DISTVER=`uname -a |awk '{print $3}'`
17816         TAPEDRIVE="/dev/nrmt0"
17817         PTHREAD_LIB="-pthread"
17818         CFLAGS="${CFLAGS} -pthread"
17819         PSCMD="ps -x -o pid,command"
17820         lld="qd"
17821         llu="qu"
17822         PFILES="${PFILES} \
17823             platforms/bsdi/Makefile \
17824             platforms/bsdi/bacula-fd \
17825             platforms/bsdi/bacula-sd \
17826             platforms/bsdi/bacula-dir"
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         PFILES="${PFILES} \
17841            platforms/darwin/Makefile"
17842   ;;
17843 debian)
17844         DISTVER=`cat /etc/debian_version`
17845         TAPEDRIVE="/dev/nrst0"
17846         PSCMD="ps -e -o pid,command"
17847   ;;
17848 freebsd)
17849         DISTVER=`uname -a |awk '{print $3}'`
17850         VER=`echo $DISTVER | cut -c 1`
17851         if test x$VER = x4 ; then
17852            PTHREAD_LIB="-pthread"
17853            CFLAGS="${CFLAGS} -pthread"
17854         fi
17855         lld="qd"
17856         llu="qu"
17857         TAPEDRIVE="/dev/nrsa0"
17858         PSCMD="ps -x -o pid,command"
17859         PFILES="${PFILES} \
17860             platforms/freebsd/Makefile \
17861             platforms/freebsd/bacula-fd \
17862             platforms/freebsd/bacula-sd \
17863             platforms/freebsd/bacula-dir"
17864         largefile_support="yes"
17865   ;;
17866 hpux)
17867         PSCMD="UNIX95=1 ps -e -o pid,comm"
17868         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
17869         DISTVER=`uname -r`
17870         TAPEDRIVE="/dev/rmt/0hnb"
17871   ;;
17872 irix)
17873         DISTVER=`uname -r`
17874         TAPEDRIVE="/dev/rmt/0cbn"
17875         PSCMD="ps -e -o pid,comm"
17876         PFILES="${PFILES} \
17877             platforms/irix/Makefile \
17878             platforms/irix/bacula-fd \
17879             platforms/irix/bacula-sd \
17880             platforms/irix/bacula-dir"
17881   ;;
17882 netbsd)
17883         DISTVER=`uname -a |awk '{print $3}'`
17884         lld="qd"
17885         llu="qu"
17886         TAPEDRIVE="/dev/nrst0"
17887         PSCMD="ps -a -o pid,command"
17888         PTHREAD_LIB="-pthread"
17889         CFLAGS="${CFLAGS} -pthread"
17890   ;;
17891 openbsd)
17892         DISTVER=`uname -a |awk '{print $3}'`
17893         lld="qd"
17894         llu="qu"
17895         TAPEDRIVE="/dev/nrst0"
17896         PSCMD="ps -a -o pid,command"
17897         PTHREAD_LIB="-pthread"
17898         CFLAGS="${CFLAGS} -pthread"
17899         PFILES="${PFILES} \
17900             platforms/openbsd/Makefile \
17901             platforms/openbsd/bacula-fd \
17902             platforms/openbsd/bacula-sd \
17903             platforms/openbsd/bacula-dir"
17904   ;;
17905 redhat)
17906         if test `cat /etc/redhat-release | grep release |\
17907                    cut -f 3 -d ' '`x = "Enterprise"x ; then
17908            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17909                     cut -f 6 -d ' '`
17910         else
17911             DISTVER=`cat /etc/redhat-release | grep release |\
17912                      cut -f 5 -d ' '`
17913         fi
17914         TAPEDRIVE="/dev/nst0"
17915         PSCMD="ps -e -o pid,command"
17916         PFILES="${PFILES} \
17917             platforms/redhat/Makefile \
17918             platforms/redhat/bacula-fd \
17919             platforms/redhat/bacula-sd \
17920             platforms/redhat/bacula-dir \
17921             platforms/redhat/bacula.spec \
17922             "
17923         hostname=`hostname -s`
17924   ;;
17925 mandrake)
17926         DISTVER=`cat /etc/mandrake-release | grep release |\
17927            cut -f 5 -d ' '`
17928         TAPEDRIVE="/dev/nst0"
17929         PSCMD="ps -e -o pid,command"
17930         PFILES="${PFILES} \
17931             platforms/mandrake/Makefile \
17932             platforms/mandrake/bacula-fd \
17933             platforms/mandrake/bacula-sd \
17934             platforms/mandrake/bacula-dir \
17935             platforms/mandrake/bacula.spec \
17936             "
17937   ;;
17938 gentoo)
17939         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17940         TAPEDRIVE="/dev/nst0"
17941         PSCMD="ps -e -o pid,command"
17942         PFILES="${PFILES} \
17943             platforms/gentoo/Makefile \
17944             platforms/gentoo/bacula-fd \
17945             platforms/gentoo/bacula-sd \
17946             platforms/gentoo/bacula-dir"
17947   ;;
17948 slackware)
17949         DISTVER=`cat /etc/slackware-version`
17950         TAPEDRIVE="/dev/nst0"
17951         PSCMD="ps -e -o pid,command"
17952         PFILES="${PFILES} \
17953             platforms/slackware/Makefile \
17954             platforms/slackware/rc.bacula-fd \
17955             platforms/slackware/rc.bacula-sd \
17956             platforms/slackware/rc.bacula-dir\
17957             platforms/slackware/functions.bacula"
17958   ;;
17959 solaris)
17960         DISTVER=`uname -r`
17961         TAPEDRIVE="/dev/rmt/0cbn"
17962         PSCMD="ps -e -o pid,comm"
17963         PFILES="${PFILES} \
17964             platforms/solaris/Makefile \
17965             platforms/solaris/bacula-fd \
17966             platforms/solaris/bacula-sd \
17967             platforms/solaris/bacula-dir"
17968         if test x$DISTVER = x5.6 ; then
17969             cat >>confdefs.h <<\_ACEOF
17970 #define HAVE_OLD_SOCKOPT 1
17971 _ACEOF
17972
17973         fi
17974   ;;
17975 suse)
17976         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17977             cut -f 3 -d ' '`
17978         TAPEDRIVE="/dev/nst0"
17979         PSCMD="ps -e -o pid,command"
17980         PFILES="${PFILES} \
17981             platforms/suse/Makefile \
17982             platforms/suse/bacula-fd \
17983             platforms/suse/bacula-sd \
17984             platforms/suse/bacula-dir \
17985             platforms/suse/bacula \
17986             platforms/suse/bacula.spec"
17987   ;;
17988 suse5)
17989         DISTNAME=suse
17990         DISTVER=5.x
17991         TAPEDRIVE="/dev/nst0"
17992         PSCMD="ps -e -o pid,command"
17993         PFILES="${PFILES} \
17994             platforms/suse/Makefile \
17995             platforms/suse/bacula-fd \
17996             platforms/suse/bacula-sd \
17997             platforms/suse/bacula-dir"
17998   ;;
17999 unknown)
18000         DISTVER=unknown
18001         TAPEDRIVE="/dev/nst0"
18002   ;;
18003 *)
18004   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18005   ;;
18006 esac
18007
18008
18009
18010 LIBS="$PTHREAD_LIB $LIBS"
18011
18012 cat >>confdefs.h <<_ACEOF
18013 #define lld "$lld"
18014 _ACEOF
18015
18016 cat >>confdefs.h <<_ACEOF
18017 #define llu "$llu"
18018 _ACEOF
18019
18020
18021
18022
18023
18024
18025
18026 MCOMMON=./autoconf/Make.common
18027
18028
18029 if test "x${subsysdir}" = "x${sbindir}" ; then
18030    echo " "
18031    echo " "
18032    echo "You have set both --sbindir and --with-subsys-dir"
18033    echo "  equal to: ${subsysdir} "
18034    echo "This is not permitted. Please reconfigure."
18035    echo " "
18036    echo "Aborting configuration ..."
18037    echo " "
18038    echo " "
18039    exit 1
18040 fi
18041
18042                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/gnome-console.console_apps 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 src/win32/winbacula.nsi src/win32/bacula-fd.conf src/win32/Makefile $PFILES"
18043           ac_config_commands="$ac_config_commands default"
18044 cat >confcache <<\_ACEOF
18045 # This file is a shell script that caches the results of configure
18046 # tests run on this system so they can be shared between configure
18047 # scripts and configure runs, see configure's option --config-cache.
18048 # It is not useful on other systems.  If it contains results you don't
18049 # want to keep, you may remove or edit it.
18050 #
18051 # config.status only pays attention to the cache file if you give it
18052 # the --recheck option to rerun configure.
18053 #
18054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18056 # following values.
18057
18058 _ACEOF
18059
18060 # The following way of writing the cache mishandles newlines in values,
18061 # but we know of no workaround that is simple, portable, and efficient.
18062 # So, don't put newlines in cache variables' values.
18063 # Ultrix sh set writes to stderr and can't be redirected directly,
18064 # and sets the high bit in the cache file unless we assign to the vars.
18065 {
18066   (set) 2>&1 |
18067     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18068     *ac_space=\ *)
18069       # `set' does not quote correctly, so add quotes (double-quote
18070       # substitution turns \\\\ into \\, and sed turns \\ into \).
18071       sed -n \
18072         "s/'/'\\\\''/g;
18073           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18074       ;;
18075     *)
18076       # `set' quotes correctly as required by POSIX, so do not add quotes.
18077       sed -n \
18078         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18079       ;;
18080     esac;
18081 } |
18082   sed '
18083      t clear
18084      : clear
18085      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18086      t end
18087      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18088      : end' >>confcache
18089 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18090   if test -w $cache_file; then
18091     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18092     cat confcache >$cache_file
18093   else
18094     echo "not updating unwritable cache $cache_file"
18095   fi
18096 fi
18097 rm -f confcache
18098
18099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18100 # Let make expand exec_prefix.
18101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18102
18103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18105 # trailing colons and then remove the whole line if VPATH becomes empty
18106 # (actually we leave an empty line to preserve line numbers).
18107 if test "x$srcdir" = x.; then
18108   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18109 s/:*\$(srcdir):*/:/;
18110 s/:*\${srcdir}:*/:/;
18111 s/:*@srcdir@:*/:/;
18112 s/^\([^=]*=[    ]*\):*/\1/;
18113 s/:*$//;
18114 s/^[^=]*=[      ]*$//;
18115 }'
18116 fi
18117
18118 DEFS=-DHAVE_CONFIG_H
18119
18120 ac_libobjs=
18121 ac_ltlibobjs=
18122 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18123   # 1. Remove the extension, and $U if already installed.
18124   ac_i=`echo "$ac_i" |
18125          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18126   # 2. Add them.
18127   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18128   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18129 done
18130 LIBOBJS=$ac_libobjs
18131
18132 LTLIBOBJS=$ac_ltlibobjs
18133
18134
18135
18136 : ${CONFIG_STATUS=./config.status}
18137 ac_clean_files_save=$ac_clean_files
18138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18139 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18140 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18141 cat >$CONFIG_STATUS <<_ACEOF
18142 #! $SHELL
18143 # Generated by $as_me.
18144 # Run this file to recreate the current configuration.
18145 # Compiler output produced by configure, useful for debugging
18146 # configure, is in config.log if it exists.
18147
18148 debug=false
18149 ac_cs_recheck=false
18150 ac_cs_silent=false
18151 SHELL=\${CONFIG_SHELL-$SHELL}
18152 _ACEOF
18153
18154 cat >>$CONFIG_STATUS <<\_ACEOF
18155 ## --------------------- ##
18156 ## M4sh Initialization.  ##
18157 ## --------------------- ##
18158
18159 # Be Bourne compatible
18160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18161   emulate sh
18162   NULLCMD=:
18163   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18164   # is contrary to our usage.  Disable this feature.
18165   alias -g '${1+"$@"}'='"$@"'
18166 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18167   set -o posix
18168 fi
18169
18170 # Support unset when possible.
18171 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18172   as_unset=unset
18173 else
18174   as_unset=false
18175 fi
18176
18177
18178 # Work around bugs in pre-3.0 UWIN ksh.
18179 $as_unset ENV MAIL MAILPATH
18180 PS1='$ '
18181 PS2='> '
18182 PS4='+ '
18183
18184 # NLS nuisances.
18185 for as_var in \
18186   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18187   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18188   LC_TELEPHONE LC_TIME
18189 do
18190   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18191     eval $as_var=C; export $as_var
18192   else
18193     $as_unset $as_var
18194   fi
18195 done
18196
18197 # Required to use basename.
18198 if expr a : '\(a\)' >/dev/null 2>&1; then
18199   as_expr=expr
18200 else
18201   as_expr=false
18202 fi
18203
18204 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18205   as_basename=basename
18206 else
18207   as_basename=false
18208 fi
18209
18210
18211 # Name of the executable.
18212 as_me=`$as_basename "$0" ||
18213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18214          X"$0" : 'X\(//\)$' \| \
18215          X"$0" : 'X\(/\)$' \| \
18216          .     : '\(.\)' 2>/dev/null ||
18217 echo X/"$0" |
18218     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18219           /^X\/\(\/\/\)$/{ s//\1/; q; }
18220           /^X\/\(\/\).*/{ s//\1/; q; }
18221           s/.*/./; q'`
18222
18223
18224 # PATH needs CR, and LINENO needs CR and PATH.
18225 # Avoid depending upon Character Ranges.
18226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18229 as_cr_digits='0123456789'
18230 as_cr_alnum=$as_cr_Letters$as_cr_digits
18231
18232 # The user is always right.
18233 if test "${PATH_SEPARATOR+set}" != set; then
18234   echo "#! /bin/sh" >conf$$.sh
18235   echo  "exit 0"   >>conf$$.sh
18236   chmod +x conf$$.sh
18237   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18238     PATH_SEPARATOR=';'
18239   else
18240     PATH_SEPARATOR=:
18241   fi
18242   rm -f conf$$.sh
18243 fi
18244
18245
18246   as_lineno_1=$LINENO
18247   as_lineno_2=$LINENO
18248   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18249   test "x$as_lineno_1" != "x$as_lineno_2" &&
18250   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18251   # Find who we are.  Look in the path if we contain no path at all
18252   # relative or not.
18253   case $0 in
18254     *[\\/]* ) as_myself=$0 ;;
18255     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18256 for as_dir in $PATH
18257 do
18258   IFS=$as_save_IFS
18259   test -z "$as_dir" && as_dir=.
18260   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18261 done
18262
18263        ;;
18264   esac
18265   # We did not find ourselves, most probably we were run as `sh COMMAND'
18266   # in which case we are not to be found in the path.
18267   if test "x$as_myself" = x; then
18268     as_myself=$0
18269   fi
18270   if test ! -f "$as_myself"; then
18271     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18273    { (exit 1); exit 1; }; }
18274   fi
18275   case $CONFIG_SHELL in
18276   '')
18277     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18279 do
18280   IFS=$as_save_IFS
18281   test -z "$as_dir" && as_dir=.
18282   for as_base in sh bash ksh sh5; do
18283          case $as_dir in
18284          /*)
18285            if ("$as_dir/$as_base" -c '
18286   as_lineno_1=$LINENO
18287   as_lineno_2=$LINENO
18288   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18289   test "x$as_lineno_1" != "x$as_lineno_2" &&
18290   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18291              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18292              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18293              CONFIG_SHELL=$as_dir/$as_base
18294              export CONFIG_SHELL
18295              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18296            fi;;
18297          esac
18298        done
18299 done
18300 ;;
18301   esac
18302
18303   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18304   # uniformly replaced by the line number.  The first 'sed' inserts a
18305   # line-number line before each line; the second 'sed' does the real
18306   # work.  The second script uses 'N' to pair each line-number line
18307   # with the numbered line, and appends trailing '-' during
18308   # substitution so that $LINENO is not a special case at line end.
18309   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18310   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18311   sed '=' <$as_myself |
18312     sed '
18313       N
18314       s,$,-,
18315       : loop
18316       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18317       t loop
18318       s,-$,,
18319       s,^['$as_cr_digits']*\n,,
18320     ' >$as_me.lineno &&
18321   chmod +x $as_me.lineno ||
18322     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18324    { (exit 1); exit 1; }; }
18325
18326   # Don't try to exec as it changes $[0], causing all sort of problems
18327   # (the dirname of $[0] is not the place where we might find the
18328   # original and so on.  Autoconf is especially sensible to this).
18329   . ./$as_me.lineno
18330   # Exit status is that of the last command.
18331   exit
18332 }
18333
18334
18335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18336   *c*,-n*) ECHO_N= ECHO_C='
18337 ' ECHO_T='      ' ;;
18338   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18339   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18340 esac
18341
18342 if expr a : '\(a\)' >/dev/null 2>&1; then
18343   as_expr=expr
18344 else
18345   as_expr=false
18346 fi
18347
18348 rm -f conf$$ conf$$.exe conf$$.file
18349 echo >conf$$.file
18350 if ln -s conf$$.file conf$$ 2>/dev/null; then
18351   # We could just check for DJGPP; but this test a) works b) is more generic
18352   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18353   if test -f conf$$.exe; then
18354     # Don't use ln at all; we don't have any links
18355     as_ln_s='cp -p'
18356   else
18357     as_ln_s='ln -s'
18358   fi
18359 elif ln conf$$.file conf$$ 2>/dev/null; then
18360   as_ln_s=ln
18361 else
18362   as_ln_s='cp -p'
18363 fi
18364 rm -f conf$$ conf$$.exe conf$$.file
18365
18366 if mkdir -p . 2>/dev/null; then
18367   as_mkdir_p=:
18368 else
18369   as_mkdir_p=false
18370 fi
18371
18372 as_executable_p="test -f"
18373
18374 # Sed expression to map a string onto a valid CPP name.
18375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18376
18377 # Sed expression to map a string onto a valid variable name.
18378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18379
18380
18381 # IFS
18382 # We need space, tab and new line, in precisely that order.
18383 as_nl='
18384 '
18385 IFS="   $as_nl"
18386
18387 # CDPATH.
18388 $as_unset CDPATH
18389
18390 exec 6>&1
18391
18392 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18393 # report actual input values of CONFIG_FILES etc. instead of their
18394 # values after options handling.  Logging --version etc. is OK.
18395 exec 5>>config.log
18396 {
18397   echo
18398   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18399 ## Running $as_me. ##
18400 _ASBOX
18401 } >&5
18402 cat >&5 <<_CSEOF
18403
18404 This file was extended by $as_me, which was
18405 generated by GNU Autoconf 2.57.  Invocation command line was
18406
18407   CONFIG_FILES    = $CONFIG_FILES
18408   CONFIG_HEADERS  = $CONFIG_HEADERS
18409   CONFIG_LINKS    = $CONFIG_LINKS
18410   CONFIG_COMMANDS = $CONFIG_COMMANDS
18411   $ $0 $@
18412
18413 _CSEOF
18414 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18415 echo >&5
18416 _ACEOF
18417
18418 # Files that config.status was made for.
18419 if test -n "$ac_config_files"; then
18420   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18421 fi
18422
18423 if test -n "$ac_config_headers"; then
18424   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18425 fi
18426
18427 if test -n "$ac_config_links"; then
18428   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18429 fi
18430
18431 if test -n "$ac_config_commands"; then
18432   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18433 fi
18434
18435 cat >>$CONFIG_STATUS <<\_ACEOF
18436
18437 ac_cs_usage="\
18438 \`$as_me' instantiates files from templates according to the
18439 current configuration.
18440
18441 Usage: $0 [OPTIONS] [FILE]...
18442
18443   -h, --help       print this help, then exit
18444   -V, --version    print version number, then exit
18445   -q, --quiet      do not print progress messages
18446   -d, --debug      don't remove temporary files
18447       --recheck    update $as_me by reconfiguring in the same conditions
18448   --file=FILE[:TEMPLATE]
18449                    instantiate the configuration file FILE
18450   --header=FILE[:TEMPLATE]
18451                    instantiate the configuration header FILE
18452
18453 Configuration files:
18454 $config_files
18455
18456 Configuration headers:
18457 $config_headers
18458
18459 Configuration commands:
18460 $config_commands
18461
18462 Report bugs to <bug-autoconf@gnu.org>."
18463 _ACEOF
18464
18465 cat >>$CONFIG_STATUS <<_ACEOF
18466 ac_cs_version="\\
18467 config.status
18468 configured by $0, generated by GNU Autoconf 2.57,
18469   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18470
18471 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18472 Free Software Foundation, Inc.
18473 This config.status script is free software; the Free Software Foundation
18474 gives unlimited permission to copy, distribute and modify it."
18475 srcdir=$srcdir
18476 INSTALL="$INSTALL"
18477 _ACEOF
18478
18479 cat >>$CONFIG_STATUS <<\_ACEOF
18480 # If no file are specified by the user, then we need to provide default
18481 # value.  By we need to know if files were specified by the user.
18482 ac_need_defaults=:
18483 while test $# != 0
18484 do
18485   case $1 in
18486   --*=*)
18487     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18488     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18489     ac_shift=:
18490     ;;
18491   -*)
18492     ac_option=$1
18493     ac_optarg=$2
18494     ac_shift=shift
18495     ;;
18496   *) # This is not an option, so the user has probably given explicit
18497      # arguments.
18498      ac_option=$1
18499      ac_need_defaults=false;;
18500   esac
18501
18502   case $ac_option in
18503   # Handling of the options.
18504 _ACEOF
18505 cat >>$CONFIG_STATUS <<\_ACEOF
18506   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18507     ac_cs_recheck=: ;;
18508   --version | --vers* | -V )
18509     echo "$ac_cs_version"; exit 0 ;;
18510   --he | --h)
18511     # Conflict between --help and --header
18512     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18513 Try \`$0 --help' for more information." >&5
18514 echo "$as_me: error: ambiguous option: $1
18515 Try \`$0 --help' for more information." >&2;}
18516    { (exit 1); exit 1; }; };;
18517   --help | --hel | -h )
18518     echo "$ac_cs_usage"; exit 0 ;;
18519   --debug | --d* | -d )
18520     debug=: ;;
18521   --file | --fil | --fi | --f )
18522     $ac_shift
18523     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18524     ac_need_defaults=false;;
18525   --header | --heade | --head | --hea )
18526     $ac_shift
18527     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18528     ac_need_defaults=false;;
18529   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18530   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18531     ac_cs_silent=: ;;
18532
18533   # This is an error.
18534   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18535 Try \`$0 --help' for more information." >&5
18536 echo "$as_me: error: unrecognized option: $1
18537 Try \`$0 --help' for more information." >&2;}
18538    { (exit 1); exit 1; }; } ;;
18539
18540   *) ac_config_targets="$ac_config_targets $1" ;;
18541
18542   esac
18543   shift
18544 done
18545
18546 ac_configure_extra_args=
18547
18548 if $ac_cs_silent; then
18549   exec 6>/dev/null
18550   ac_configure_extra_args="$ac_configure_extra_args --silent"
18551 fi
18552
18553 _ACEOF
18554 cat >>$CONFIG_STATUS <<_ACEOF
18555 if \$ac_cs_recheck; then
18556   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18557   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18558 fi
18559
18560 _ACEOF
18561
18562
18563
18564
18565
18566 cat >>$CONFIG_STATUS <<\_ACEOF
18567 for ac_config_target in $ac_config_targets
18568 do
18569   case "$ac_config_target" in
18570   # Handling of arguments.
18571   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18572   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18573   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18574   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18575   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18576   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18577   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18578   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18579   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18580   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18581   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18582   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18583   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18584   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18585   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18586   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18587   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18588   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18589   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18590   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18591   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18592   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18593   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18594   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18595   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18596   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18597   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18598   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18599   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18600   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18601   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18602   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18603   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18604   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18605   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18606   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18607   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18608   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18609   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18610   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18611   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18612   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18613   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18614   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18615   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18616   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18617   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18618   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18619   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18620   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18621   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18622   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18623   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18624   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18625   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18626   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18627   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18628   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18629   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18630   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18631   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18632   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18633   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18634   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18635   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18636   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18637   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18638   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18639   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18640   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18641   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18642   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18643   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18644   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18645   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18646   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18647   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18648   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18649   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18650   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18651   "src/win32/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/bacula-fd.conf" ;;
18652   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18653   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18654   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18655   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18656   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18657 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18658    { (exit 1); exit 1; }; };;
18659   esac
18660 done
18661
18662 # If the user did not use the arguments to specify the items to instantiate,
18663 # then the envvar interface is used.  Set only those that are not.
18664 # We use the long form for the default assignment because of an extremely
18665 # bizarre bug on SunOS 4.1.3.
18666 if $ac_need_defaults; then
18667   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18668   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18669   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18670 fi
18671
18672 # Have a temporary directory for convenience.  Make it in the build tree
18673 # simply because there is no reason to put it here, and in addition,
18674 # creating and moving files from /tmp can sometimes cause problems.
18675 # Create a temporary directory, and hook for its removal unless debugging.
18676 $debug ||
18677 {
18678   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18679   trap '{ (exit 1); exit 1; }' 1 2 13 15
18680 }
18681
18682 # Create a (secure) tmp directory for tmp files.
18683
18684 {
18685   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18686   test -n "$tmp" && test -d "$tmp"
18687 }  ||
18688 {
18689   tmp=./confstat$$-$RANDOM
18690   (umask 077 && mkdir $tmp)
18691 } ||
18692 {
18693    echo "$me: cannot create a temporary directory in ." >&2
18694    { (exit 1); exit 1; }
18695 }
18696
18697 _ACEOF
18698
18699 cat >>$CONFIG_STATUS <<_ACEOF
18700
18701 #
18702 # CONFIG_FILES section.
18703 #
18704
18705 # No need to generate the scripts if there are no CONFIG_FILES.
18706 # This happens for instance when ./config.status config.h
18707 if test -n "\$CONFIG_FILES"; then
18708   # Protect against being on the right side of a sed subst in config.status.
18709   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18710    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18711 s,@SHELL@,$SHELL,;t t
18712 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18713 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18714 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18715 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18716 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18717 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18718 s,@exec_prefix@,$exec_prefix,;t t
18719 s,@prefix@,$prefix,;t t
18720 s,@program_transform_name@,$program_transform_name,;t t
18721 s,@bindir@,$bindir,;t t
18722 s,@sbindir@,$sbindir,;t t
18723 s,@libexecdir@,$libexecdir,;t t
18724 s,@datadir@,$datadir,;t t
18725 s,@sysconfdir@,$sysconfdir,;t t
18726 s,@sharedstatedir@,$sharedstatedir,;t t
18727 s,@localstatedir@,$localstatedir,;t t
18728 s,@libdir@,$libdir,;t t
18729 s,@includedir@,$includedir,;t t
18730 s,@oldincludedir@,$oldincludedir,;t t
18731 s,@infodir@,$infodir,;t t
18732 s,@mandir@,$mandir,;t t
18733 s,@build_alias@,$build_alias,;t t
18734 s,@host_alias@,$host_alias,;t t
18735 s,@target_alias@,$target_alias,;t t
18736 s,@DEFS@,$DEFS,;t t
18737 s,@ECHO_C@,$ECHO_C,;t t
18738 s,@ECHO_N@,$ECHO_N,;t t
18739 s,@ECHO_T@,$ECHO_T,;t t
18740 s,@LIBS@,$LIBS,;t t
18741 s,@BUILD_DIR@,$BUILD_DIR,;t t
18742 s,@TRUEPRG@,$TRUEPRG,;t t
18743 s,@FALSEPRG@,$FALSEPRG,;t t
18744 s,@build@,$build,;t t
18745 s,@build_cpu@,$build_cpu,;t t
18746 s,@build_vendor@,$build_vendor,;t t
18747 s,@build_os@,$build_os,;t t
18748 s,@host@,$host,;t t
18749 s,@host_cpu@,$host_cpu,;t t
18750 s,@host_vendor@,$host_vendor,;t t
18751 s,@host_os@,$host_os,;t t
18752 s,@VERSION@,$VERSION,;t t
18753 s,@DATE@,$DATE,;t t
18754 s,@LSMDATE@,$LSMDATE,;t t
18755 s,@CC@,$CC,;t t
18756 s,@CFLAGS@,$CFLAGS,;t t
18757 s,@LDFLAGS@,$LDFLAGS,;t t
18758 s,@CPPFLAGS@,$CPPFLAGS,;t t
18759 s,@ac_ct_CC@,$ac_ct_CC,;t t
18760 s,@EXEEXT@,$EXEEXT,;t t
18761 s,@OBJEXT@,$OBJEXT,;t t
18762 s,@CXX@,$CXX,;t t
18763 s,@CXXFLAGS@,$CXXFLAGS,;t t
18764 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18765 s,@CPP@,$CPP,;t t
18766 s,@EGREP@,$EGREP,;t t
18767 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18768 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18769 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18770 s,@RANLIB@,$RANLIB,;t t
18771 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18772 s,@MV@,$MV,;t t
18773 s,@RM@,$RM,;t t
18774 s,@CP@,$CP,;t t
18775 s,@SED@,$SED,;t t
18776 s,@AWK@,$AWK,;t t
18777 s,@ECHO@,$ECHO,;t t
18778 s,@CMP@,$CMP,;t t
18779 s,@TBL@,$TBL,;t t
18780 s,@AR@,$AR,;t t
18781 s,@OPENSSL@,$OPENSSL,;t t
18782 s,@MTX@,$MTX,;t t
18783 s,@PKGCONFIG@,$PKGCONFIG,;t t
18784 s,@ARFLAGS@,$ARFLAGS,;t t
18785 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18786 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18787 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18788 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18789 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18790 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18791 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18792 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18793 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18794 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18795 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18796 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18797 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18798 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18799 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18800 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18801 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18802 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18803 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18804 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18805 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18806 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18807 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18808 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18809 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18810 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18811 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18812 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18813 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18814 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18815 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18816 s,@MSGFMT@,$MSGFMT,;t t
18817 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18818 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18819 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18820 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18821 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18822 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18823 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18824 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18825 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18826 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18827 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18828 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18829 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18830 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18831 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18832 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18833 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18834 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18835 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18836 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18837 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18838 s,@GNOME_DIR@,$GNOME_DIR,;t t
18839 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18840 s,@STATIC_FD@,$STATIC_FD,;t t
18841 s,@STATIC_SD@,$STATIC_SD,;t t
18842 s,@STATIC_DIR@,$STATIC_DIR,;t t
18843 s,@STATIC_CONS@,$STATIC_CONS,;t t
18844 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18845 s,@ALL_DIRS@,$ALL_DIRS,;t t
18846 s,@CONS_INC@,$CONS_INC,;t t
18847 s,@CONS_OBJ@,$CONS_OBJ,;t t
18848 s,@CONS_SRC@,$CONS_SRC,;t t
18849 s,@CONS_LIBS@,$CONS_LIBS,;t t
18850 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18851 s,@READLINE_SRC@,$READLINE_SRC,;t t
18852 s,@working_dir@,$working_dir,;t t
18853 s,@scriptdir@,$scriptdir,;t t
18854 s,@dump_email@,$dump_email,;t t
18855 s,@job_email@,$job_email,;t t
18856 s,@smtp_host@,$smtp_host,;t t
18857 s,@piddir@,$piddir,;t t
18858 s,@subsysdir@,$subsysdir,;t t
18859 s,@baseport@,$baseport,;t t
18860 s,@dir_port@,$dir_port,;t t
18861 s,@fd_port@,$fd_port,;t t
18862 s,@sd_port@,$sd_port,;t t
18863 s,@dir_password@,$dir_password,;t t
18864 s,@fd_password@,$fd_password,;t t
18865 s,@sd_password@,$sd_password,;t t
18866 s,@dir_user@,$dir_user,;t t
18867 s,@dir_group@,$dir_group,;t t
18868 s,@sd_user@,$sd_user,;t t
18869 s,@sd_group@,$sd_group,;t t
18870 s,@fd_user@,$fd_user,;t t
18871 s,@fd_group@,$fd_group,;t t
18872 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18873 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18874 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18875 s,@cats@,$cats,;t t
18876 s,@DB_NAME@,$DB_NAME,;t t
18877 s,@GETCONF@,$GETCONF,;t t
18878 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18879 s,@X_CFLAGS@,$X_CFLAGS,;t t
18880 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18881 s,@X_LIBS@,$X_LIBS,;t t
18882 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18883 s,@LIBOBJS@,$LIBOBJS,;t t
18884 s,@ALLOCA@,$ALLOCA,;t t
18885 s,@FDLIBS@,$FDLIBS,;t t
18886 s,@DEBUG@,$DEBUG,;t t
18887 s,@DINCLUDE@,$DINCLUDE,;t t
18888 s,@DLIB@,$DLIB,;t t
18889 s,@DB_LIBS@,$DB_LIBS,;t t
18890 s,@WCFLAGS@,$WCFLAGS,;t t
18891 s,@WLDFLAGS@,$WLDFLAGS,;t t
18892 s,@OBJLIST@,$OBJLIST,;t t
18893 s,@hostname@,$hostname,;t t
18894 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18895 s,@PSCMD@,$PSCMD,;t t
18896 s,@WIN32@,$WIN32,;t t
18897 s,@DISTNAME@,$DISTNAME,;t t
18898 s,@DISTVER@,$DISTVER,;t t
18899 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18900 /@MCOMMON@/r $MCOMMON
18901 s,@MCOMMON@,,;t t
18902 CEOF
18903
18904 _ACEOF
18905
18906   cat >>$CONFIG_STATUS <<\_ACEOF
18907   # Split the substitutions into bite-sized pieces for seds with
18908   # small command number limits, like on Digital OSF/1 and HP-UX.
18909   ac_max_sed_lines=48
18910   ac_sed_frag=1 # Number of current file.
18911   ac_beg=1 # First line for current file.
18912   ac_end=$ac_max_sed_lines # Line after last line for current file.
18913   ac_more_lines=:
18914   ac_sed_cmds=
18915   while $ac_more_lines; do
18916     if test $ac_beg -gt 1; then
18917       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18918     else
18919       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18920     fi
18921     if test ! -s $tmp/subs.frag; then
18922       ac_more_lines=false
18923     else
18924       # The purpose of the label and of the branching condition is to
18925       # speed up the sed processing (if there are no `@' at all, there
18926       # is no need to browse any of the substitutions).
18927       # These are the two extra sed commands mentioned above.
18928       (echo ':t
18929   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18930       if test -z "$ac_sed_cmds"; then
18931         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18932       else
18933         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18934       fi
18935       ac_sed_frag=`expr $ac_sed_frag + 1`
18936       ac_beg=$ac_end
18937       ac_end=`expr $ac_end + $ac_max_sed_lines`
18938     fi
18939   done
18940   if test -z "$ac_sed_cmds"; then
18941     ac_sed_cmds=cat
18942   fi
18943 fi # test -n "$CONFIG_FILES"
18944
18945 _ACEOF
18946 cat >>$CONFIG_STATUS <<\_ACEOF
18947 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18948   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18949   case $ac_file in
18950   - | *:- | *:-:* ) # input from stdin
18951         cat >$tmp/stdin
18952         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18953         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18954   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18955         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18956   * )   ac_file_in=$ac_file.in ;;
18957   esac
18958
18959   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18960   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18962          X"$ac_file" : 'X\(//\)[^/]' \| \
18963          X"$ac_file" : 'X\(//\)$' \| \
18964          X"$ac_file" : 'X\(/\)' \| \
18965          .     : '\(.\)' 2>/dev/null ||
18966 echo X"$ac_file" |
18967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18969           /^X\(\/\/\)$/{ s//\1/; q; }
18970           /^X\(\/\).*/{ s//\1/; q; }
18971           s/.*/./; q'`
18972   { if $as_mkdir_p; then
18973     mkdir -p "$ac_dir"
18974   else
18975     as_dir="$ac_dir"
18976     as_dirs=
18977     while test ! -d "$as_dir"; do
18978       as_dirs="$as_dir $as_dirs"
18979       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18981          X"$as_dir" : 'X\(//\)[^/]' \| \
18982          X"$as_dir" : 'X\(//\)$' \| \
18983          X"$as_dir" : 'X\(/\)' \| \
18984          .     : '\(.\)' 2>/dev/null ||
18985 echo X"$as_dir" |
18986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18987           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18988           /^X\(\/\/\)$/{ s//\1/; q; }
18989           /^X\(\/\).*/{ s//\1/; q; }
18990           s/.*/./; q'`
18991     done
18992     test ! -n "$as_dirs" || mkdir $as_dirs
18993   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18995    { (exit 1); exit 1; }; }; }
18996
18997   ac_builddir=.
18998
18999 if test "$ac_dir" != .; then
19000   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19001   # A "../" for each directory in $ac_dir_suffix.
19002   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19003 else
19004   ac_dir_suffix= ac_top_builddir=
19005 fi
19006
19007 case $srcdir in
19008   .)  # No --srcdir option.  We are building in place.
19009     ac_srcdir=.
19010     if test -z "$ac_top_builddir"; then
19011        ac_top_srcdir=.
19012     else
19013        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19014     fi ;;
19015   [\\/]* | ?:[\\/]* )  # Absolute path.
19016     ac_srcdir=$srcdir$ac_dir_suffix;
19017     ac_top_srcdir=$srcdir ;;
19018   *) # Relative path.
19019     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19020     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19021 esac
19022 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19023 # absolute.
19024 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19025 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19026 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19027 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19028
19029
19030   case $INSTALL in
19031   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19032   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19033   esac
19034
19035   if test x"$ac_file" != x-; then
19036     { echo "$as_me:$LINENO: creating $ac_file" >&5
19037 echo "$as_me: creating $ac_file" >&6;}
19038     rm -f "$ac_file"
19039   fi
19040   # Let's still pretend it is `configure' which instantiates (i.e., don't
19041   # use $as_me), people would be surprised to read:
19042   #    /* config.h.  Generated by config.status.  */
19043   if test x"$ac_file" = x-; then
19044     configure_input=
19045   else
19046     configure_input="$ac_file.  "
19047   fi
19048   configure_input=$configure_input"Generated from `echo $ac_file_in |
19049                                      sed 's,.*/,,'` by configure."
19050
19051   # First look for the input files in the build tree, otherwise in the
19052   # src tree.
19053   ac_file_inputs=`IFS=:
19054     for f in $ac_file_in; do
19055       case $f in
19056       -) echo $tmp/stdin ;;
19057       [\\/$]*)
19058          # Absolute (can't be DOS-style, as IFS=:)
19059          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19060 echo "$as_me: error: cannot find input file: $f" >&2;}
19061    { (exit 1); exit 1; }; }
19062          echo $f;;
19063       *) # Relative
19064          if test -f "$f"; then
19065            # Build tree
19066            echo $f
19067          elif test -f "$srcdir/$f"; then
19068            # Source tree
19069            echo $srcdir/$f
19070          else
19071            # /dev/null tree
19072            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19073 echo "$as_me: error: cannot find input file: $f" >&2;}
19074    { (exit 1); exit 1; }; }
19075          fi;;
19076       esac
19077     done` || { (exit 1); exit 1; }
19078 _ACEOF
19079 cat >>$CONFIG_STATUS <<_ACEOF
19080   sed "$ac_vpsub
19081 $extrasub
19082 _ACEOF
19083 cat >>$CONFIG_STATUS <<\_ACEOF
19084 :t
19085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19086 s,@configure_input@,$configure_input,;t t
19087 s,@srcdir@,$ac_srcdir,;t t
19088 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19089 s,@top_srcdir@,$ac_top_srcdir,;t t
19090 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19091 s,@builddir@,$ac_builddir,;t t
19092 s,@abs_builddir@,$ac_abs_builddir,;t t
19093 s,@top_builddir@,$ac_top_builddir,;t t
19094 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19095 s,@INSTALL@,$ac_INSTALL,;t t
19096 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19097   rm -f $tmp/stdin
19098   if test x"$ac_file" != x-; then
19099     mv $tmp/out $ac_file
19100   else
19101     cat $tmp/out
19102     rm -f $tmp/out
19103   fi
19104
19105 done
19106 _ACEOF
19107 cat >>$CONFIG_STATUS <<\_ACEOF
19108
19109 #
19110 # CONFIG_HEADER section.
19111 #
19112
19113 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19114 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19115 #
19116 # ac_d sets the value in "#define NAME VALUE" lines.
19117 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19118 ac_dB='[        ].*$,\1#\2'
19119 ac_dC=' '
19120 ac_dD=',;t'
19121 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19122 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19123 ac_uB='$,\1#\2define\3'
19124 ac_uC=' '
19125 ac_uD=',;t'
19126
19127 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19128   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19129   case $ac_file in
19130   - | *:- | *:-:* ) # input from stdin
19131         cat >$tmp/stdin
19132         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19133         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19134   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19136   * )   ac_file_in=$ac_file.in ;;
19137   esac
19138
19139   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19140 echo "$as_me: creating $ac_file" >&6;}
19141
19142   # First look for the input files in the build tree, otherwise in the
19143   # src tree.
19144   ac_file_inputs=`IFS=:
19145     for f in $ac_file_in; do
19146       case $f in
19147       -) echo $tmp/stdin ;;
19148       [\\/$]*)
19149          # Absolute (can't be DOS-style, as IFS=:)
19150          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19151 echo "$as_me: error: cannot find input file: $f" >&2;}
19152    { (exit 1); exit 1; }; }
19153          echo $f;;
19154       *) # Relative
19155          if test -f "$f"; then
19156            # Build tree
19157            echo $f
19158          elif test -f "$srcdir/$f"; then
19159            # Source tree
19160            echo $srcdir/$f
19161          else
19162            # /dev/null tree
19163            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19164 echo "$as_me: error: cannot find input file: $f" >&2;}
19165    { (exit 1); exit 1; }; }
19166          fi;;
19167       esac
19168     done` || { (exit 1); exit 1; }
19169   # Remove the trailing spaces.
19170   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19171
19172 _ACEOF
19173
19174 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19175 # `conftest.undefs', that substitutes the proper values into
19176 # config.h.in to produce config.h.  The first handles `#define'
19177 # templates, and the second `#undef' templates.
19178 # And first: Protect against being on the right side of a sed subst in
19179 # config.status.  Protect against being in an unquoted here document
19180 # in config.status.
19181 rm -f conftest.defines conftest.undefs
19182 # Using a here document instead of a string reduces the quoting nightmare.
19183 # Putting comments in sed scripts is not portable.
19184 #
19185 # `end' is used to avoid that the second main sed command (meant for
19186 # 0-ary CPP macros) applies to n-ary macro definitions.
19187 # See the Autoconf documentation for `clear'.
19188 cat >confdef2sed.sed <<\_ACEOF
19189 s/[\\&,]/\\&/g
19190 s,[\\$`],\\&,g
19191 t clear
19192 : clear
19193 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19194 t end
19195 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19196 : end
19197 _ACEOF
19198 # If some macros were called several times there might be several times
19199 # the same #defines, which is useless.  Nevertheless, we may not want to
19200 # sort them, since we want the *last* AC-DEFINE to be honored.
19201 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19202 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19203 rm -f confdef2sed.sed
19204
19205 # This sed command replaces #undef with comments.  This is necessary, for
19206 # example, in the case of _POSIX_SOURCE, which is predefined and required
19207 # on some systems where configure will not decide to define it.
19208 cat >>conftest.undefs <<\_ACEOF
19209 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19210 _ACEOF
19211
19212 # Break up conftest.defines because some shells have a limit on the size
19213 # of here documents, and old seds have small limits too (100 cmds).
19214 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19215 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19216 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19217 echo '  :' >>$CONFIG_STATUS
19218 rm -f conftest.tail
19219 while grep . conftest.defines >/dev/null
19220 do
19221   # Write a limited-size here document to $tmp/defines.sed.
19222   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19223   # Speed up: don't consider the non `#define' lines.
19224   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19225   # Work around the forget-to-reset-the-flag bug.
19226   echo 't clr' >>$CONFIG_STATUS
19227   echo ': clr' >>$CONFIG_STATUS
19228   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19229   echo 'CEOF
19230   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19231   rm -f $tmp/in
19232   mv $tmp/out $tmp/in
19233 ' >>$CONFIG_STATUS
19234   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19235   rm -f conftest.defines
19236   mv conftest.tail conftest.defines
19237 done
19238 rm -f conftest.defines
19239 echo '  fi # grep' >>$CONFIG_STATUS
19240 echo >>$CONFIG_STATUS
19241
19242 # Break up conftest.undefs because some shells have a limit on the size
19243 # of here documents, and old seds have small limits too (100 cmds).
19244 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19245 rm -f conftest.tail
19246 while grep . conftest.undefs >/dev/null
19247 do
19248   # Write a limited-size here document to $tmp/undefs.sed.
19249   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19250   # Speed up: don't consider the non `#undef'
19251   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19252   # Work around the forget-to-reset-the-flag bug.
19253   echo 't clr' >>$CONFIG_STATUS
19254   echo ': clr' >>$CONFIG_STATUS
19255   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19256   echo 'CEOF
19257   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19258   rm -f $tmp/in
19259   mv $tmp/out $tmp/in
19260 ' >>$CONFIG_STATUS
19261   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19262   rm -f conftest.undefs
19263   mv conftest.tail conftest.undefs
19264 done
19265 rm -f conftest.undefs
19266
19267 cat >>$CONFIG_STATUS <<\_ACEOF
19268   # Let's still pretend it is `configure' which instantiates (i.e., don't
19269   # use $as_me), people would be surprised to read:
19270   #    /* config.h.  Generated by config.status.  */
19271   if test x"$ac_file" = x-; then
19272     echo "/* Generated by configure.  */" >$tmp/config.h
19273   else
19274     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19275   fi
19276   cat $tmp/in >>$tmp/config.h
19277   rm -f $tmp/in
19278   if test x"$ac_file" != x-; then
19279     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19280       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19281 echo "$as_me: $ac_file is unchanged" >&6;}
19282     else
19283       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19285          X"$ac_file" : 'X\(//\)[^/]' \| \
19286          X"$ac_file" : 'X\(//\)$' \| \
19287          X"$ac_file" : 'X\(/\)' \| \
19288          .     : '\(.\)' 2>/dev/null ||
19289 echo X"$ac_file" |
19290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19291           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19292           /^X\(\/\/\)$/{ s//\1/; q; }
19293           /^X\(\/\).*/{ s//\1/; q; }
19294           s/.*/./; q'`
19295       { if $as_mkdir_p; then
19296     mkdir -p "$ac_dir"
19297   else
19298     as_dir="$ac_dir"
19299     as_dirs=
19300     while test ! -d "$as_dir"; do
19301       as_dirs="$as_dir $as_dirs"
19302       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19304          X"$as_dir" : 'X\(//\)[^/]' \| \
19305          X"$as_dir" : 'X\(//\)$' \| \
19306          X"$as_dir" : 'X\(/\)' \| \
19307          .     : '\(.\)' 2>/dev/null ||
19308 echo X"$as_dir" |
19309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19310           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19311           /^X\(\/\/\)$/{ s//\1/; q; }
19312           /^X\(\/\).*/{ s//\1/; q; }
19313           s/.*/./; q'`
19314     done
19315     test ! -n "$as_dirs" || mkdir $as_dirs
19316   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19317 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19318    { (exit 1); exit 1; }; }; }
19319
19320       rm -f $ac_file
19321       mv $tmp/config.h $ac_file
19322     fi
19323   else
19324     cat $tmp/config.h
19325     rm -f $tmp/config.h
19326   fi
19327 done
19328 _ACEOF
19329 cat >>$CONFIG_STATUS <<\_ACEOF
19330
19331 #
19332 # CONFIG_COMMANDS section.
19333 #
19334 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19335   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19336   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19337   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19338 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19339          X"$ac_dest" : 'X\(//\)[^/]' \| \
19340          X"$ac_dest" : 'X\(//\)$' \| \
19341          X"$ac_dest" : 'X\(/\)' \| \
19342          .     : '\(.\)' 2>/dev/null ||
19343 echo X"$ac_dest" |
19344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19345           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19346           /^X\(\/\/\)$/{ s//\1/; q; }
19347           /^X\(\/\).*/{ s//\1/; q; }
19348           s/.*/./; q'`
19349   ac_builddir=.
19350
19351 if test "$ac_dir" != .; then
19352   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19353   # A "../" for each directory in $ac_dir_suffix.
19354   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19355 else
19356   ac_dir_suffix= ac_top_builddir=
19357 fi
19358
19359 case $srcdir in
19360   .)  # No --srcdir option.  We are building in place.
19361     ac_srcdir=.
19362     if test -z "$ac_top_builddir"; then
19363        ac_top_srcdir=.
19364     else
19365        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19366     fi ;;
19367   [\\/]* | ?:[\\/]* )  # Absolute path.
19368     ac_srcdir=$srcdir$ac_dir_suffix;
19369     ac_top_srcdir=$srcdir ;;
19370   *) # Relative path.
19371     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19372     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19373 esac
19374 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19375 # absolute.
19376 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19377 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19378 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19379 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19380
19381
19382   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19383 echo "$as_me: executing $ac_dest commands" >&6;}
19384   case $ac_dest in
19385     default ) (echo "Doing make of dependencies"; make depend;)
19386  ;;
19387   esac
19388 done
19389 _ACEOF
19390
19391 cat >>$CONFIG_STATUS <<\_ACEOF
19392
19393 { (exit 0); exit 0; }
19394 _ACEOF
19395 chmod +x $CONFIG_STATUS
19396 ac_clean_files=$ac_clean_files_save
19397
19398
19399 # configure is writing to config.log, and then calls config.status.
19400 # config.status does its own redirection, appending to config.log.
19401 # Unfortunately, on DOS this fails, as config.log is still kept open
19402 # by configure, so config.status won't be able to write to it; its
19403 # output is simply discarded.  So we exec the FD to /dev/null,
19404 # effectively closing config.log, so it can be properly (re)opened and
19405 # appended to by config.status.  When coming back to configure, we
19406 # need to make the FD available again.
19407 if test "$no_create" != yes; then
19408   ac_cs_success=:
19409   ac_config_status_args=
19410   test "$silent" = yes &&
19411     ac_config_status_args="$ac_config_status_args --quiet"
19412   exec 5>/dev/null
19413   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19414   exec 5>>config.log
19415   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19416   # would make configure fail if this is the last instruction.
19417   $ac_cs_success || { (exit 1); exit 1; }
19418 fi
19419
19420
19421 cd scripts
19422 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19423 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19424 cd ..
19425
19426 c=src/cats
19427
19428 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19429 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19430
19431 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19432 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19433
19434 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19435 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19436
19437 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19438 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19439
19440 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19441 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19442
19443 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19444 chmod 755 $c/sqlite
19445 chmod 755 $c/mysql
19446
19447 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19448    largefile_support="yes"
19449 fi
19450
19451 #
19452 # A whole lot of hand springs to get the compiler version.
19453 #  This is because gcc changed the output in version 3.0
19454 #
19455 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19456 if test "x${CCVERSION}" = "x" ; then
19457   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19458 fi
19459 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19460 if test x"${CXXVERSION}" = x ; then
19461   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19462 fi
19463
19464 if test "x${subsysdir}" = "x${sbindir}" ; then
19465    echo " "
19466    echo " "
19467    echo "You have set --sbindir and --with-subsys-dir"
19468    echo "  both equal to: ${subsysdir} "
19469    echo "  This is not permitted. Please reconfigure."
19470    echo "Aborting configuration ..."
19471    echo " "
19472    echo " "
19473    exit 1
19474 fi
19475
19476 echo "
19477 Configuration on `date`:
19478
19479   Host:                       $host -- ${DISTNAME} ${DISTVER}
19480   Bacula version:             ${VERSION} (${DATE})
19481   Source code location:       ${srcdir}
19482   Install binaries:           ${sbindir}
19483   Install config files:       ${sysconfdir}
19484   Scripts directory:          ${scriptdir}
19485   Working directory:          ${working_dir}
19486   PID directory:              ${piddir}
19487   Subsys directory:           ${subsysdir}
19488   C Compiler:                 ${CC} ${CCVERSION}
19489   C++ Compiler:               ${CXX} ${CXXVERSION}
19490   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19491   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19492   Libraries:                  ${LIBS}
19493   Statically Linked Tools:    ${support_static_tools}
19494   Statically Linked FD:       ${support_static_fd}
19495   Statically Linked SD:       ${support_static_sd}
19496   Statically Linked DIR:      ${support_static_dir}
19497   Statically Linked CONS:     ${support_static_cons}
19498   Database type:              ${db_name}
19499   Database lib:               ${DB_LIBS}
19500
19501   Job Output Email:           ${job_email}
19502   Traceback Email:            ${dump_email}
19503   SMTP Host Address:          ${smtp_host}
19504
19505   Director Port:              ${dir_port}
19506   File daemon Port:           ${fd_port}
19507   Storage daemon Port:        ${sd_port}
19508
19509   Director User:              ${dir_user}
19510   Director Group:             ${dir_group}
19511   Storage Daemon User:        ${sd_user}
19512   Storage DaemonGroup:        ${sd_group}
19513   File Daemon User:           ${fd_user}
19514   File Daemon Group:          ${fd_group}
19515
19516   SQL binaries Directory      ${SQL_BINDIR}
19517
19518   Large file support:         $largefile_support
19519   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19520   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19521   TCP Wrappers support:       ${TCPW_MSG}
19522   ZLIB support:               ${have_zlib}
19523   enable-smartalloc:          ${support_smartalloc}
19524   enable-gnome:               ${support_gnome} ${gnome_version}
19525   client-only:                ${build_client_only}
19526
19527   " > config.out
19528
19529 cat config.out
19530
19531 # old stuff
19532 # cweb support:               ${got_cweb} ${CWEB_SRC}
19533 # gmp support:                ${got_gmp} ${GMP_SRC}