]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fix automatic tape labeling
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-readline      disable readline support enabled
867
868   --disable-largefile     omit support for large files
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-gnome-includes   Specify location of GNOME headers
874   --with-gnome-libs       Specify location of GNOME libs
875   --with-gnome            Specify prefix for GNOME files
876  --with-readline=DIR             specify readline library directory
877   --with-tcp-wrappers=DIR        enable tcpwrappers support
878   --with-working-dir=PATH        specify path of Bacula working directory
879   --with-scriptdir=PATH    specify path of Bacula scripts directory
880   --with-dump-email=EMAIL        dump email address
881   --with-job-email=EMAIL         job output email address
882   --with-smtp-host=HOST          SMTP mail host address
883   --with-pid-dir=PATH            specify location of Bacula pid files
884   --with-subsys-dir=PATH         specify location of Bacula subsys file
885   --with-baseport=PORT           specify base port address for daemons
886   --with-dir-password=PASSWORD   specify Director's password
887   --with-fd-password=PASSWORD    specify Client's password
888   --with-sd-password=PASSWORD    specify Storage daemon's password
889
890 Which DBMS do you want to use (please select only one):
891   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
892                           install directory, default is to search through
893                           a number of common places for the MySQL files.
894
895 Which DBMS do you want to use (please select only one):
896   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
897                           install directory, default is to search through
898                           a number of common places for the MySQL files.
899
900 Which DBMS do you want to use (please select only one):
901   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
902                           install directory, default is to search through
903                           a number of common places for the SQLite files.
904   --with-x                use the X Window System
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CXX         C++ compiler command
914   CXXFLAGS    C++ compiler flags
915   CPP         C preprocessor
916
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
919
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924   # If there are subdirs, report their specific --help.
925   ac_popdir=`pwd`
926   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927     test -d $ac_dir || continue
928     ac_builddir=.
929
930 if test "$ac_dir" != .; then
931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932   # A "../" for each directory in $ac_dir_suffix.
933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935   ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939   .)  # No --srcdir option.  We are building in place.
940     ac_srcdir=.
941     if test -z "$ac_top_builddir"; then
942        ac_top_srcdir=.
943     else
944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945     fi ;;
946   [\\/]* | ?:[\\/]* )  # Absolute path.
947     ac_srcdir=$srcdir$ac_dir_suffix;
948     ac_top_srcdir=$srcdir ;;
949   *) # Relative path.
950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
954 # absolute.
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd $ac_popdir
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982
983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
984 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988   exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.57.  Invocation command line was
997
998   $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029   IFS=$as_save_IFS
1030   test -z "$as_dir" && as_dir=.
1031   echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058   for ac_arg
1059   do
1060     case $ac_arg in
1061     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063     | -silent | --silent | --silen | --sile | --sil)
1064       continue ;;
1065     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067     esac
1068     case $ac_pass in
1069     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070     2)
1071       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072       if test $ac_must_keep_next = true; then
1073         ac_must_keep_next=false # Got value, back to normal.
1074       else
1075         case $ac_arg in
1076           *=* | --config-cache | -C | -disable-* | --disable-* \
1077           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079           | -with-* | --with-* | -without-* | --without-* | --x)
1080             case "$ac_configure_args0 " in
1081               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082             esac
1083             ;;
1084           -* ) ac_must_keep_next=true ;;
1085         esac
1086       fi
1087       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088       # Get rid of the leading space.
1089       ac_sep=" "
1090       ;;
1091     esac
1092   done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log.  We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103   # Save into config.log some information that might help in debugging.
1104   {
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112     echo
1113     # The following way of writing the cache mishandles newlines in values,
1114 {
1115   (set) 2>&1 |
1116     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117     *ac_space=\ *)
1118       sed -n \
1119         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121       ;;
1122     *)
1123       sed -n \
1124         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125       ;;
1126     esac;
1127 }
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135     echo
1136     for ac_var in $ac_subst_vars
1137     do
1138       eval ac_val=$`echo $ac_var`
1139       echo "$ac_var='"'"'$ac_val'"'"'"
1140     done | sort
1141     echo
1142
1143     if test -n "$ac_subst_files"; then
1144       cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149       echo
1150       for ac_var in $ac_subst_files
1151       do
1152         eval ac_val=$`echo $ac_var`
1153         echo "$ac_var='"'"'$ac_val'"'"'"
1154       done | sort
1155       echo
1156     fi
1157
1158     if test -s confdefs.h; then
1159       cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164       echo
1165       sed "/^$/d" confdefs.h | sort
1166       echo
1167     fi
1168     test "$ac_signal" != 0 &&
1169       echo "$as_me: caught signal $ac_signal"
1170     echo "$as_me: exit $exit_status"
1171   } >&5
1172   rm -f core core.* *.core &&
1173   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174     exit $exit_status
1175      ' 0
1176 for ac_signal in 1 2 13 15; do
1177   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216   if test "x$prefix" != xNONE; then
1217     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218   else
1219     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220   fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223   if test -r "$ac_site_file"; then
1224     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226     sed 's/^/| /' "$ac_site_file" >&5
1227     . "$ac_site_file"
1228   fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232   # Some versions of bash will fail to source /dev/null (special
1233   # files actually), so we avoid doing that.
1234   if test -f "$cache_file"; then
1235     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237     case $cache_file in
1238       [\\/]* | ?:[\\/]* ) . $cache_file;;
1239       *)                      . ./$cache_file;;
1240     esac
1241   fi
1242 else
1243   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245   >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254   eval ac_new_set=\$ac_env_${ac_var}_set
1255   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256   eval ac_new_val="\$ac_env_${ac_var}_value"
1257   case $ac_old_set,$ac_new_set in
1258     set,)
1259       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261       ac_cache_corrupted=: ;;
1262     ,set)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,);;
1267     *)
1268       if test "x$ac_old_val" != "x$ac_new_val"; then
1269         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272 echo "$as_me:   former value:  $ac_old_val" >&2;}
1273         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274 echo "$as_me:   current value: $ac_new_val" >&2;}
1275         ac_cache_corrupted=:
1276       fi;;
1277   esac
1278   # Pass precious variables to config.status.
1279   if test "$ac_new_set" = set; then
1280     case $ac_new_val in
1281     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283     *) ac_arg=$ac_var=$ac_new_val ;;
1284     esac
1285     case " $ac_configure_args " in
1286       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288     esac
1289   fi
1290 done
1291 if $ac_cache_corrupted; then
1292   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296    { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 BUILD_DIR=`pwd`
1324 cd ..
1325 TOP_DIR=`pwd`
1326 cd ${BUILD_DIR}
1327
1328 ac_aux_dir=
1329 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1330   if test -f $ac_dir/install-sh; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/install-sh -c"
1333     break
1334   elif test -f $ac_dir/install.sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install.sh -c"
1337     break
1338   elif test -f $ac_dir/shtool; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/shtool install -c"
1341     break
1342   fi
1343 done
1344 if test -z "$ac_aux_dir"; then
1345   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352
1353           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1354
1355
1356
1357
1358
1359 for ac_prog in true
1360 do
1361   # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   case $TRUEPRG in
1369   [\\/]* | ?:[\\/]*)
1370   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1371   ;;
1372   *)
1373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
1376   IFS=$as_save_IFS
1377   test -z "$as_dir" && as_dir=.
1378   for ac_exec_ext in '' $ac_executable_extensions; do
1379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382     break 2
1383   fi
1384 done
1385 done
1386
1387   ;;
1388 esac
1389 fi
1390 TRUEPRG=$ac_cv_path_TRUEPRG
1391
1392 if test -n "$TRUEPRG"; then
1393   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1394 echo "${ECHO_T}$TRUEPRG" >&6
1395 else
1396   echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1398 fi
1399
1400   test -n "$TRUEPRG" && break
1401 done
1402 test -n "$TRUEPRG" || TRUEPRG=":"
1403
1404 for ac_prog in false
1405 do
1406   # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   case $FALSEPRG in
1414   [\\/]* | ?:[\\/]*)
1415   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1416   ;;
1417   *)
1418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1420 do
1421   IFS=$as_save_IFS
1422   test -z "$as_dir" && as_dir=.
1423   for ac_exec_ext in '' $ac_executable_extensions; do
1424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427     break 2
1428   fi
1429 done
1430 done
1431
1432   ;;
1433 esac
1434 fi
1435 FALSEPRG=$ac_cv_path_FALSEPRG
1436
1437 if test -n "$FALSEPRG"; then
1438   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1439 echo "${ECHO_T}$FALSEPRG" >&6
1440 else
1441   echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1443 fi
1444
1445   test -n "$FALSEPRG" && break
1446 done
1447 test -n "$FALSEPRG" || FALSEPRG=":"
1448
1449
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454    { (exit 1); exit 1; }; }
1455
1456 echo "$as_me:$LINENO: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463   ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467    { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1476 build=$ac_cv_build
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489   ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1498 host=$ac_cv_host
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504
1505 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1508 echo "configuring for bacula $VERSION ($DATE)"
1509
1510
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 if test -n "$ac_tool_prefix"; then
1518   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   if test -n "$CC"; then
1526   ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531   IFS=$as_save_IFS
1532   test -z "$as_dir" && as_dir=.
1533   for ac_exec_ext in '' $ac_executable_extensions; do
1534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537     break 2
1538   fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546   echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549   echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 fi
1554 if test -z "$ac_cv_prog_CC"; then
1555   ac_ct_CC=$CC
1556   # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$ac_ct_CC"; then
1564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_ac_ct_CC="gcc"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591   CC=$ac_ct_CC
1592 else
1593   CC="$ac_cv_prog_CC"
1594 fi
1595
1596 if test -z "$CC"; then
1597   if test -n "$ac_tool_prefix"; then
1598   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     ac_cv_prog_CC="${ac_tool_prefix}cc"
1616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 fi
1623 fi
1624 CC=$ac_cv_prog_CC
1625 if test -n "$CC"; then
1626   echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1628 else
1629   echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633 fi
1634 if test -z "$ac_cv_prog_CC"; then
1635   ac_ct_CC=$CC
1636   # Extract the first word of "cc", so it can be a program name with args.
1637 set dummy cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$ac_ct_CC"; then
1644   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_ac_ct_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671   CC=$ac_ct_CC
1672 else
1673   CC="$ac_cv_prog_CC"
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678   # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$CC"; then
1686   ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688   ac_prog_rejected=no
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1697        ac_prog_rejected=yes
1698        continue
1699      fi
1700     ac_cv_prog_CC="cc"
1701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702     break 2
1703   fi
1704 done
1705 done
1706
1707 if test $ac_prog_rejected = yes; then
1708   # We found a bogon in the path, so make sure we never use it.
1709   set dummy $ac_cv_prog_CC
1710   shift
1711   if test $# != 0; then
1712     # We chose a different compiler from the bogus one.
1713     # However, it has the same basename, so the bogon will be chosen
1714     # first if we set CC to just the basename; use the full file name.
1715     shift
1716     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1717   fi
1718 fi
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$CC"; then
1732   if test -n "$ac_tool_prefix"; then
1733   for ac_prog in cl
1734   do
1735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   if test -n "$CC"; then
1743   ac_cv_prog_CC="$CC" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   for ac_exec_ext in '' $ac_executable_extensions; do
1751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754     break 2
1755   fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 CC=$ac_cv_prog_CC
1762 if test -n "$CC"; then
1763   echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1765 else
1766   echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770     test -n "$CC" && break
1771   done
1772 fi
1773 if test -z "$CC"; then
1774   ac_ct_CC=$CC
1775   for ac_prog in cl
1776 do
1777   # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   if test -n "$ac_ct_CC"; then
1785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790   IFS=$as_save_IFS
1791   test -z "$as_dir" && as_dir=.
1792   for ac_exec_ext in '' $ac_executable_extensions; do
1793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794     ac_cv_prog_ac_ct_CC="$ac_prog"
1795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796     break 2
1797   fi
1798 done
1799 done
1800
1801 fi
1802 fi
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1807 else
1808   echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 fi
1811
1812   test -n "$ac_ct_CC" && break
1813 done
1814
1815   CC=$ac_ct_CC
1816 fi
1817
1818 fi
1819
1820
1821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: no acceptable C compiler found in \$PATH
1824 See \`config.log' for more details." >&2;}
1825    { (exit 1); exit 1; }; }
1826
1827 # Provide some information about the compiler.
1828 echo "$as_me:$LINENO:" \
1829      "checking for C compiler version" >&5
1830 ac_compiler=`set X $ac_compile; echo $2`
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832   (eval $ac_compiler --version </dev/null >&5) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }
1836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837   (eval $ac_compiler -v </dev/null >&5) 2>&5
1838   ac_status=$?
1839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840   (exit $ac_status); }
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842   (eval $ac_compiler -V </dev/null >&5) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }
1846
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1849 /* confdefs.h.  */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h.  */
1854
1855 int
1856 main ()
1857 {
1858
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1867 # of exeext.
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872   (eval $ac_link_default) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   # Find the output, starting from the most likely.  This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1878 # resort.
1879
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1882 ac_cv_exeext=
1883 # b.out is created by i960 compilers.
1884 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1885 do
1886   test -f "$ac_file" || continue
1887   case $ac_file in
1888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1889         ;;
1890     conftest.$ac_ext )
1891         # This is the source file.
1892         ;;
1893     [ab].out )
1894         # We found the default executable, but exeext='' is most
1895         # certainly right.
1896         break;;
1897     *.* )
1898         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899         # FIXME: I believe we export ac_cv_exeext for Libtool,
1900         # but it would be cool to find out if it's true.  Does anybody
1901         # maintain Libtool? --akim.
1902         export ac_cv_exeext
1903         break;;
1904     * )
1905         break;;
1906   esac
1907 done
1908 else
1909   echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&2;}
1916    { (exit 77); exit 77; }; }
1917 fi
1918
1919 ac_exeext=$ac_cv_exeext
1920 echo "$as_me:$LINENO: result: $ac_file" >&5
1921 echo "${ECHO_T}$ac_file" >&6
1922
1923 # Check the compiler produces executables we can run.  If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1928 # If not cross compiling, check that we can run a simple program.
1929 if test "$cross_compiling" != yes; then
1930   if { ac_try='./$ac_file'
1931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932   (eval $ac_try) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; }; then
1936     cross_compiling=no
1937   else
1938     if test "$cross_compiling" = maybe; then
1939         cross_compiling=yes
1940     else
1941         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot run C compiled programs.
1945 If you meant to cross compile, use \`--host'.
1946 See \`config.log' for more details." >&2;}
1947    { (exit 1); exit 1; }; }
1948     fi
1949   fi
1950 fi
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1953
1954 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1955 ac_clean_files=$ac_clean_files_save
1956 # Check the compiler produces executables we can run.  If not, either
1957 # the compiler is broken, or we cross compile.
1958 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1959 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1960 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1961 echo "${ECHO_T}$cross_compiling" >&6
1962
1963 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1964 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1966   (eval $ac_link) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; then
1970   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1971 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1972 # work properly (i.e., refer to `conftest.exe'), while it won't with
1973 # `rm'.
1974 for ac_file in conftest.exe conftest conftest.*; do
1975   test -f "$ac_file" || continue
1976   case $ac_file in
1977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1978     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979           export ac_cv_exeext
1980           break;;
1981     * ) break;;
1982   esac
1983 done
1984 else
1985   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 rm -f conftest$ac_cv_exeext
1993 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1994 echo "${ECHO_T}$ac_cv_exeext" >&6
1995
1996 rm -f conftest.$ac_ext
1997 EXEEXT=$ac_cv_exeext
1998 ac_exeext=$EXEEXT
1999 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2000 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2001 if test "${ac_cv_objext+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 /* confdefs.h.  */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h.  */
2011
2012 int
2013 main ()
2014 {
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022   (eval $ac_compile) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2027   case $ac_file in
2028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2029     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2030        break;;
2031   esac
2032 done
2033 else
2034   echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2040 See \`config.log' for more details." >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2045 fi
2046 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2047 echo "${ECHO_T}$ac_cv_objext" >&6
2048 OBJEXT=$ac_cv_objext
2049 ac_objext=$OBJEXT
2050 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   cat >conftest.$ac_ext <<_ACEOF
2056 #line $LINENO "configure"
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066 #ifndef __GNUC__
2067        choke me
2068 #endif
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076   (eval $ac_compile) 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); } &&
2080          { ac_try='test -s conftest.$ac_objext'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086   ac_compiler_gnu=yes
2087 else
2088   echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 ac_compiler_gnu=no
2092 fi
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2095
2096 fi
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2102 CFLAGS="-g"
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126   (eval $ac_compile) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); } &&
2130          { ac_try='test -s conftest.$ac_objext'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; }; then
2136   ac_cv_prog_cc_g=yes
2137 else
2138   echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 ac_cv_prog_cc_g=no
2142 fi
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2147 if test "$ac_test_CFLAGS" = set; then
2148   CFLAGS=$ac_save_CFLAGS
2149 elif test $ac_cv_prog_cc_g = yes; then
2150   if test "$GCC" = yes; then
2151     CFLAGS="-g -O2"
2152   else
2153     CFLAGS="-g"
2154   fi
2155 else
2156   if test "$GCC" = yes; then
2157     CFLAGS="-O2"
2158   else
2159     CFLAGS=
2160   fi
2161 fi
2162 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2163 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2164 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   ac_cv_prog_cc_stdc=no
2168 ac_save_CC=$CC
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176 #include <stdarg.h>
2177 #include <stdio.h>
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2181 struct buf { int x; };
2182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (p, i)
2184      char **p;
2185      int i;
2186 {
2187   return p[i];
2188 }
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2190 {
2191   char *s;
2192   va_list v;
2193   va_start (v,p);
2194   s = g (p, va_arg (v,int));
2195   va_end (v);
2196   return s;
2197 }
2198 int test (int i, double x);
2199 struct s1 {int (*f) (int a);};
2200 struct s2 {int (*f) (double a);};
2201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2202 int argc;
2203 char **argv;
2204 int
2205 main ()
2206 {
2207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 # Don't try gcc -ansi; that turns off useful extensions and
2213 # breaks some systems' header files.
2214 # AIX                   -qlanglvl=ansi
2215 # Ultrix and OSF/1      -std1
2216 # HP-UX 10.20 and later -Ae
2217 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2218 # SVR4                  -Xc -D__EXTENSIONS__
2219 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2220 do
2221   CC="$ac_save_CC $ac_arg"
2222   rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -s conftest.$ac_objext'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234   ac_cv_prog_cc_stdc=$ac_arg
2235 break
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 fi
2241 rm -f conftest.$ac_objext
2242 done
2243 rm -f conftest.$ac_ext conftest.$ac_objext
2244 CC=$ac_save_CC
2245
2246 fi
2247
2248 case "x$ac_cv_prog_cc_stdc" in
2249   x|xno)
2250     echo "$as_me:$LINENO: result: none needed" >&5
2251 echo "${ECHO_T}none needed" >&6 ;;
2252   *)
2253     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2255     CC="$CC $ac_cv_prog_cc_stdc" ;;
2256 esac
2257
2258 # Some people use a C++ compiler to compile C.  Since we use `exit',
2259 # in C++ we need to declare it.  In case someone uses the same compiler
2260 # for both compiling C and C++ we need to have the C++ compiler decide
2261 # the declaration of exit, since it's the most demanding environment.
2262 cat >conftest.$ac_ext <<_ACEOF
2263 #ifndef __cplusplus
2264   choke me
2265 #endif
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   for ac_declaration in \
2280    ''\
2281    '#include <stdlib.h>' \
2282    'extern "C" void std::exit (int) throw (); using std::exit;' \
2283    'extern "C" void std::exit (int); using std::exit;' \
2284    'extern "C" void exit (int) throw ();' \
2285    'extern "C" void exit (int);' \
2286    'void exit (int);'
2287 do
2288   cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 #include <stdlib.h>
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   :
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 continue
2323 fi
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325   cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 $ac_declaration
2333 int
2334 main ()
2335 {
2336 exit (42);
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   break
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 done
2361 rm -f conftest*
2362 if test -n "$ac_declaration"; then
2363   echo '#ifdef __cplusplus' >>confdefs.h
2364   echo $ac_declaration      >>confdefs.h
2365   echo '#endif'             >>confdefs.h
2366 fi
2367
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379
2380 ac_ext=cc
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2387   do
2388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$CXX"; then
2396   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411
2412 fi
2413 fi
2414 CXX=$ac_cv_prog_CXX
2415 if test -n "$CXX"; then
2416   echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2418 else
2419   echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421 fi
2422
2423     test -n "$CXX" && break
2424   done
2425 fi
2426 if test -z "$CXX"; then
2427   ac_ct_CXX=$CXX
2428   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2429 do
2430   # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$ac_ct_CXX"; then
2438   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_ac_ct_CXX="$ac_prog"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453
2454 fi
2455 fi
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2460 else
2461   echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2463 fi
2464
2465   test -n "$ac_ct_CXX" && break
2466 done
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2468
2469   CXX=$ac_ct_CXX
2470 fi
2471
2472
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475      "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478   (eval $ac_compiler --version </dev/null >&5) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483   (eval $ac_compiler -v </dev/null >&5) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488   (eval $ac_compiler -V </dev/null >&5) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505
2506 int
2507 main ()
2508 {
2509 #ifndef __GNUC__
2510        choke me
2511 #endif
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519   (eval $ac_compile) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529   ac_compiler_gnu=yes
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 ac_compiler_gnu=no
2535 fi
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2538
2539 fi
2540 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2542 GXX=`test $ac_compiler_gnu = yes && echo yes`
2543 ac_test_CXXFLAGS=${CXXFLAGS+set}
2544 ac_save_CXXFLAGS=$CXXFLAGS
2545 CXXFLAGS="-g"
2546 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2548 if test "${ac_cv_prog_cxx_g+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   ac_cv_prog_cxx_g=yes
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 ac_cv_prog_cxx_g=no
2585 fi
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590 if test "$ac_test_CXXFLAGS" = set; then
2591   CXXFLAGS=$ac_save_CXXFLAGS
2592 elif test $ac_cv_prog_cxx_g = yes; then
2593   if test "$GXX" = yes; then
2594     CXXFLAGS="-g -O2"
2595   else
2596     CXXFLAGS="-g"
2597   fi
2598 else
2599   if test "$GXX" = yes; then
2600     CXXFLAGS="-O2"
2601   else
2602     CXXFLAGS=
2603   fi
2604 fi
2605 for ac_declaration in \
2606    ''\
2607    '#include <stdlib.h>' \
2608    'extern "C" void std::exit (int) throw (); using std::exit;' \
2609    'extern "C" void std::exit (int); using std::exit;' \
2610    'extern "C" void exit (int) throw ();' \
2611    'extern "C" void exit (int);' \
2612    'void exit (int);'
2613 do
2614   cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621 #include <stdlib.h>
2622 $ac_declaration
2623 int
2624 main ()
2625 {
2626 exit (42);
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633   (eval $ac_compile) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   :
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 continue
2649 fi
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651   cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 /* confdefs.h.  */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h.  */
2658 $ac_declaration
2659 int
2660 main ()
2661 {
2662 exit (42);
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669   (eval $ac_compile) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   break
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 done
2687 rm -f conftest*
2688 if test -n "$ac_declaration"; then
2689   echo '#ifdef __cplusplus' >>confdefs.h
2690   echo $ac_declaration      >>confdefs.h
2691   echo '#endif'             >>confdefs.h
2692 fi
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700 if test "x$CC" != xcc; then
2701   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2702 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2703 else
2704   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2705 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2706 fi
2707 set dummy $CC; ac_cc=`echo $2 |
2708                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2709 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719
2720 int
2721 main ()
2722 {
2723
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 # Make sure it works both with $CC and with simple cc.
2729 # We do the test twice because some compilers refuse to overwrite an
2730 # existing .o file with -o, though they will create one.
2731 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2732 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } &&
2737    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); };
2742 then
2743   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2744   if test "x$CC" != xcc; then
2745     # Test first that cc exists at all.
2746     if { ac_try='cc -c conftest.$ac_ext >&5'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2753       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); };
2763       then
2764         # cc works too.
2765         :
2766       else
2767         # cc exists but doesn't like -o.
2768         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2769       fi
2770     fi
2771   fi
2772 else
2773   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2774 fi
2775 rm -f conftest*
2776
2777 fi
2778 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2779   echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2781 else
2782   echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784
2785 cat >>confdefs.h <<\_ACEOF
2786 #define NO_MINUS_C_MINUS_O 1
2787 _ACEOF
2788
2789 fi
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2800   CPP=
2801 fi
2802 if test -z "$CPP"; then
2803   if test "${ac_cv_prog_CPP+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806       # Double quotes because CPP needs to be expanded
2807     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2808     do
2809       ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812   # Use a header file that comes with gcc, so configuring glibc
2813   # with a fresh cross-compiler works.
2814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815   # <limits.h> exists even on freestanding compilers.
2816   # On the NeXT, cc -E runs the code through the compiler's parser,
2817   # not just through cpp. "Syntax error" is here to catch this case.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830                      Syntax error
2831 _ACEOF
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } >/dev/null; then
2840   if test -s conftest.err; then
2841     ac_cpp_err=$ac_c_preproc_warn_flag
2842   else
2843     ac_cpp_err=
2844   fi
2845 else
2846   ac_cpp_err=yes
2847 fi
2848 if test -z "$ac_cpp_err"; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854   # Broken: fails on valid input.
2855 continue
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859   # OK, works on sane cases.  Now check whether non-existent headers
2860   # can be detected and how.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868 #include <ac_nonexistent.h>
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } >/dev/null; then
2878   if test -s conftest.err; then
2879     ac_cpp_err=$ac_c_preproc_warn_flag
2880   else
2881     ac_cpp_err=
2882   fi
2883 else
2884   ac_cpp_err=yes
2885 fi
2886 if test -z "$ac_cpp_err"; then
2887   # Broken: success on invalid input.
2888 continue
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893   # Passes both tests.
2894 ac_preproc_ok=:
2895 break
2896 fi
2897 rm -f conftest.err conftest.$ac_ext
2898
2899 done
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2903   break
2904 fi
2905
2906     done
2907     ac_cv_prog_CPP=$CPP
2908
2909 fi
2910   CPP=$ac_cv_prog_CPP
2911 else
2912   ac_cv_prog_CPP=$CPP
2913 fi
2914 echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6
2916 ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #ifdef __STDC__
2933 # include <limits.h>
2934 #else
2935 # include <assert.h>
2936 #endif
2937                      Syntax error
2938 _ACEOF
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941   ac_status=$?
2942   grep -v '^ *+' conftest.er1 >conftest.err
2943   rm -f conftest.er1
2944   cat conftest.err >&5
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } >/dev/null; then
2947   if test -s conftest.err; then
2948     ac_cpp_err=$ac_c_preproc_warn_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 /* confdefs.h.  */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h.  */
2975 #include <ac_nonexistent.h>
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } >/dev/null; then
2985   if test -s conftest.err; then
2986     ac_cpp_err=$ac_c_preproc_warn_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   :
3011 else
3012   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&2;}
3016    { (exit 1); exit 1; }; }
3017 fi
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024
3025
3026 echo "$as_me:$LINENO: checking for egrep" >&5
3027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3028 if test "${ac_cv_prog_egrep+set}" = set; then
3029   echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3032     then ac_cv_prog_egrep='grep -E'
3033     else ac_cv_prog_egrep='egrep'
3034     fi
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3038  EGREP=$ac_cv_prog_egrep
3039
3040
3041 if test $ac_cv_c_compiler_gnu = yes; then
3042     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3043 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3044 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047     ac_pattern="Autoconf.*'x'"
3048   cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #include <sgtty.h>
3056 Autoconf TIOCGETP
3057 _ACEOF
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3060   ac_cv_prog_gcc_traditional=yes
3061 else
3062   ac_cv_prog_gcc_traditional=no
3063 fi
3064 rm -f conftest*
3065
3066
3067   if test $ac_cv_prog_gcc_traditional = no; then
3068     cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075 #include <termio.h>
3076 Autoconf TCGETA
3077 _ACEOF
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3080   ac_cv_prog_gcc_traditional=yes
3081 fi
3082 rm -f conftest*
3083
3084   fi
3085 fi
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3088   if test $ac_cv_prog_gcc_traditional = yes; then
3089     CC="$CC -traditional"
3090   fi
3091 fi
3092
3093 if test x$CC = xgcc
3094 then
3095    cat >>confdefs.h <<\_ACEOF
3096 #define HAVE_GCC 1
3097 _ACEOF
3098
3099 fi
3100
3101 # Find a good install program.  We prefer a C program (faster),
3102 # so one script is as good as another.  But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3107 # AIX /bin/install
3108 # AmigaOS /C/install, which installs bootblocks on floppy discs
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3115 if test -z "$INSTALL"; then
3116 if test "${ac_cv_path_install+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   # Account for people who put trailing slashes in PATH elements.
3125 case $as_dir/ in
3126   ./ | .// | /cC/* | \
3127   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3128   /usr/ucb/* ) ;;
3129   *)
3130     # OSF1 and SCO ODT 3.0 have their own names for install.
3131     # Don't use installbsd from OSF since it installs stuff as root
3132     # by default.
3133     for ac_prog in ginstall scoinst install; do
3134       for ac_exec_ext in '' $ac_executable_extensions; do
3135         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136           if test $ac_prog = install &&
3137             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138             # AIX install.  It has an incompatible calling convention.
3139             :
3140           elif test $ac_prog = install &&
3141             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142             # program-specific install script used by HP pwplus--don't use.
3143             :
3144           else
3145             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3146             break 3
3147           fi
3148         fi
3149       done
3150     done
3151     ;;
3152 esac
3153 done
3154
3155
3156 fi
3157   if test "${ac_cv_path_install+set}" = set; then
3158     INSTALL=$ac_cv_path_install
3159   else
3160     # As a last resort, use the slow shell script.  We don't cache a
3161     # path for INSTALL within a source directory, because that will
3162     # break other packages using the cache if that directory is
3163     # removed, or if the path is relative.
3164     INSTALL=$ac_install_sh
3165   fi
3166 fi
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3169
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3173
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3175
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3177
3178 if test -n "$ac_tool_prefix"; then
3179   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_RANLIB+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$RANLIB"; then
3187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194   for ac_exec_ext in '' $ac_executable_extensions; do
3195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201 done
3202
3203 fi
3204 fi
3205 RANLIB=$ac_cv_prog_RANLIB
3206 if test -n "$RANLIB"; then
3207   echo "$as_me:$LINENO: result: $RANLIB" >&5
3208 echo "${ECHO_T}$RANLIB" >&6
3209 else
3210   echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3212 fi
3213
3214 fi
3215 if test -z "$ac_cv_prog_RANLIB"; then
3216   ac_ct_RANLIB=$RANLIB
3217   # Extract the first word of "ranlib", so it can be a program name with args.
3218 set dummy ranlib; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   if test -n "$ac_ct_RANLIB"; then
3225   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_prog_ac_ct_RANLIB="ranlib"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3242 fi
3243 fi
3244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3245 if test -n "$ac_ct_RANLIB"; then
3246   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253   RANLIB=$ac_ct_RANLIB
3254 else
3255   RANLIB="$ac_cv_prog_RANLIB"
3256 fi
3257
3258 # Extract the first word of "mv", so it can be a program name with args.
3259 set dummy mv; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_MV+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $MV in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3285   ;;
3286 esac
3287 fi
3288 MV=$ac_cv_path_MV
3289
3290 if test -n "$MV"; then
3291   echo "$as_me:$LINENO: result: $MV" >&5
3292 echo "${ECHO_T}$MV" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "rm", so it can be a program name with args.
3299 set dummy rm; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_RM+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $RM in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3325   ;;
3326 esac
3327 fi
3328 RM=$ac_cv_path_RM
3329
3330 if test -n "$RM"; then
3331   echo "$as_me:$LINENO: result: $RM" >&5
3332 echo "${ECHO_T}$RM" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "cp", so it can be a program name with args.
3339 set dummy cp; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_CP+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $CP in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3365   ;;
3366 esac
3367 fi
3368 CP=$ac_cv_path_CP
3369
3370 if test -n "$CP"; then
3371   echo "$as_me:$LINENO: result: $CP" >&5
3372 echo "${ECHO_T}$CP" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "sed", so it can be a program name with args.
3379 set dummy sed; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_SED+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $SED in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3405   ;;
3406 esac
3407 fi
3408 SED=$ac_cv_path_SED
3409
3410 if test -n "$SED"; then
3411   echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "awk", so it can be a program name with args.
3419 set dummy awk; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_AWK+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $AWK in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3445   ;;
3446 esac
3447 fi
3448 AWK=$ac_cv_path_AWK
3449
3450 if test -n "$AWK"; then
3451   echo "$as_me:$LINENO: result: $AWK" >&5
3452 echo "${ECHO_T}$AWK" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "echo", so it can be a program name with args.
3459 set dummy echo; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ECHO+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $ECHO in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3485   ;;
3486 esac
3487 fi
3488 ECHO=$ac_cv_path_ECHO
3489
3490 if test -n "$ECHO"; then
3491   echo "$as_me:$LINENO: result: $ECHO" >&5
3492 echo "${ECHO_T}$ECHO" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "cmp", so it can be a program name with args.
3499 set dummy cmp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CMP+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $CMP in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3525   ;;
3526 esac
3527 fi
3528 CMP=$ac_cv_path_CMP
3529
3530 if test -n "$CMP"; then
3531   echo "$as_me:$LINENO: result: $CMP" >&5
3532 echo "${ECHO_T}$CMP" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "tbl", so it can be a program name with args.
3539 set dummy tbl; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_TBL+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $TBL in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3565   ;;
3566 esac
3567 fi
3568 TBL=$ac_cv_path_TBL
3569
3570 if test -n "$TBL"; then
3571   echo "$as_me:$LINENO: result: $TBL" >&5
3572 echo "${ECHO_T}$TBL" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "ar", so it can be a program name with args.
3579 set dummy ar; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_AR+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $AR in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3605   ;;
3606 esac
3607 fi
3608 AR=$ac_cv_path_AR
3609
3610 if test -n "$AR"; then
3611   echo "$as_me:$LINENO: result: $AR" >&5
3612 echo "${ECHO_T}$AR" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_RANLIB+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $RANLIB in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3645   ;;
3646 esac
3647 fi
3648 RANLIB=$ac_cv_path_RANLIB
3649
3650 if test -n "$RANLIB"; then
3651   echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "openssl", so it can be a program name with args.
3659 set dummy openssl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_OPENSSL+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $OPENSSL in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3685   ;;
3686 esac
3687 fi
3688 OPENSSL=$ac_cv_path_OPENSSL
3689
3690 if test -n "$OPENSSL"; then
3691   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3692 echo "${ECHO_T}$OPENSSL" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "mtx", so it can be a program name with args.
3699 set dummy mtx; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_MTX+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $MTX in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3725   ;;
3726 esac
3727 fi
3728 MTX=$ac_cv_path_MTX
3729
3730 if test -n "$MTX"; then
3731   echo "$as_me:$LINENO: result: $MTX" >&5
3732 echo "${ECHO_T}$MTX" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "pkg-config", so it can be a program name with args.
3739 set dummy pkg-config; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $PKGCONFIG in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3765   ;;
3766 esac
3767 fi
3768 PKGCONFIG=$ac_cv_path_PKGCONFIG
3769
3770 if test -n "$PKGCONFIG"; then
3771   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3772 echo "${ECHO_T}$PKGCONFIG" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778
3779 test -n "$ARFLAG" || ARFLAGS="cr"
3780
3781
3782 MAKE_SHELL=/bin/sh
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792 echo "$as_me:$LINENO: checking for Operating System" >&5
3793 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3794
3795 case $host_os in
3796   *cygwin* ) CYGWIN=yes;;
3797          * ) CYGWIN=no;;
3798 esac
3799
3800 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3801 then
3802
3803
3804 if $TRUEPRG; then
3805   HAVE_SUN_OS_TRUE=
3806   HAVE_SUN_OS_FALSE='#'
3807 else
3808   HAVE_SUN_OS_TRUE='#'
3809   HAVE_SUN_OS_FALSE=
3810 fi
3811         cat >>confdefs.h <<\_ACEOF
3812 #define HAVE_SUN_OS 1
3813 _ACEOF
3814
3815 else
3816
3817
3818 if $FALSEPRG; then
3819   HAVE_SUN_OS_TRUE=
3820   HAVE_SUN_OS_FALSE='#'
3821 else
3822   HAVE_SUN_OS_TRUE='#'
3823   HAVE_SUN_OS_FALSE=
3824 fi
3825 fi
3826
3827 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3828 then
3829
3830
3831 if $TRUEPRG; then
3832   HAVE_OSF1_OS_TRUE=
3833   HAVE_OSF1_OS_FALSE='#'
3834 else
3835   HAVE_OSF1_OS_TRUE='#'
3836   HAVE_OSF1_OS_FALSE=
3837 fi
3838         cat >>confdefs.h <<\_ACEOF
3839 #define HAVE_OSF1_OS 1
3840 _ACEOF
3841
3842 else
3843
3844
3845 if $FALSEPRG; then
3846   HAVE_OSF1_OS_TRUE=
3847   HAVE_OSF1_OS_FALSE='#'
3848 else
3849   HAVE_OSF1_OS_TRUE='#'
3850   HAVE_OSF1_OS_FALSE=
3851 fi
3852 fi
3853
3854 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3855 then
3856
3857
3858 if $TRUEPRG; then
3859   HAVE_AIX_OS_TRUE=
3860   HAVE_AIX_OS_FALSE='#'
3861 else
3862   HAVE_AIX_OS_TRUE='#'
3863   HAVE_AIX_OS_FALSE=
3864 fi
3865         cat >>confdefs.h <<\_ACEOF
3866 #define HAVE_AIX_OS 1
3867 _ACEOF
3868
3869 else
3870
3871
3872 if $FALSEPRG; then
3873   HAVE_AIX_OS_TRUE=
3874   HAVE_AIX_OS_FALSE='#'
3875 else
3876   HAVE_AIX_OS_TRUE='#'
3877   HAVE_AIX_OS_FALSE=
3878 fi
3879 fi
3880
3881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3882 then
3883
3884
3885 if $TRUEPRG; then
3886   HAVE_HPUX_OS_TRUE=
3887   HAVE_HPUX_OS_FALSE='#'
3888 else
3889   HAVE_HPUX_OS_TRUE='#'
3890   HAVE_HPUX_OS_FALSE=
3891 fi
3892         cat >>confdefs.h <<\_ACEOF
3893 #define HAVE_HPUX_OS 1
3894 _ACEOF
3895
3896 else
3897
3898
3899 if $FALSEPRG; then
3900   HAVE_HPUX_OS_TRUE=
3901   HAVE_HPUX_OS_FALSE='#'
3902 else
3903   HAVE_HPUX_OS_TRUE='#'
3904   HAVE_HPUX_OS_FALSE=
3905 fi
3906 fi
3907
3908 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3909 then
3910
3911
3912 if $TRUEPRG; then
3913   HAVE_LINUX_OS_TRUE=
3914   HAVE_LINUX_OS_FALSE='#'
3915 else
3916   HAVE_LINUX_OS_TRUE='#'
3917   HAVE_LINUX_OS_FALSE=
3918 fi
3919         cat >>confdefs.h <<\_ACEOF
3920 #define HAVE_LINUX_OS 1
3921 _ACEOF
3922
3923 else
3924
3925
3926 if $FALSEPRG; then
3927   HAVE_LINUX_OS_TRUE=
3928   HAVE_LINUX_OS_FALSE='#'
3929 else
3930   HAVE_LINUX_OS_TRUE='#'
3931   HAVE_LINUX_OS_FALSE=
3932 fi
3933 fi
3934
3935 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3936 then
3937
3938
3939 if $TRUEPRG; then
3940   HAVE_FREEBSD_OS_TRUE=
3941   HAVE_FREEBSD_OS_FALSE='#'
3942 else
3943   HAVE_FREEBSD_OS_TRUE='#'
3944   HAVE_FREEBSD_OS_FALSE=
3945 fi
3946         cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_FREEBSD_OS 1
3948 _ACEOF
3949
3950 else
3951
3952
3953 if $FALSEPRG; then
3954   HAVE_FREEBSD_OS_TRUE=
3955   HAVE_FREEBSD_OS_FALSE='#'
3956 else
3957   HAVE_FREEBSD_OS_TRUE='#'
3958   HAVE_FREEBSD_OS_FALSE=
3959 fi
3960 fi
3961
3962 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3963 then
3964
3965
3966 if $TRUEPRG; then
3967   HAVE_NETBSD_OS_TRUE=
3968   HAVE_NETBSD_OS_FALSE='#'
3969 else
3970   HAVE_NETBSD_OS_TRUE='#'
3971   HAVE_NETBSD_OS_FALSE=
3972 fi
3973         cat >>confdefs.h <<\_ACEOF
3974 #define HAVE_NETBSD_OS 1
3975 _ACEOF
3976
3977 else
3978
3979
3980 if $FALSEPRG; then
3981   HAVE_NETBSD_OS_TRUE=
3982   HAVE_NETBSD_OS_FALSE='#'
3983 else
3984   HAVE_NETBSD_OS_TRUE='#'
3985   HAVE_NETBSD_OS_FALSE=
3986 fi
3987 fi
3988
3989 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3990 then
3991
3992
3993 if $TRUEPRG; then
3994   HAVE_OPENBSD_OS_TRUE=
3995   HAVE_OPENBSD_OS_FALSE='#'
3996 else
3997   HAVE_OPENBSD_OS_TRUE='#'
3998   HAVE_OPENBSD_OS_FALSE=
3999 fi
4000         cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_OPENBSD_OS 1
4002 _ACEOF
4003
4004 else
4005
4006
4007 if $FALSEPRG; then
4008   HAVE_OPENBSD_OS_TRUE=
4009   HAVE_OPENBSD_OS_FALSE='#'
4010 else
4011   HAVE_OPENBSD_OS_TRUE='#'
4012   HAVE_OPENBSD_OS_FALSE=
4013 fi
4014 fi
4015
4016 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4017 then
4018
4019
4020 if $TRUEPRG; then
4021   HAVE_BSDI_OS_TRUE=
4022   HAVE_BSDI_OS_FALSE='#'
4023 else
4024   HAVE_BSDI_OS_TRUE='#'
4025   HAVE_BSDI_OS_FALSE=
4026 fi
4027         cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_BSDI_OS 1
4029 _ACEOF
4030
4031 else
4032
4033
4034 if $FALSEPRG; then
4035   HAVE_BSDI_OS_TRUE=
4036   HAVE_BSDI_OS_FALSE='#'
4037 else
4038   HAVE_BSDI_OS_TRUE='#'
4039   HAVE_BSDI_OS_FALSE=
4040 fi
4041 fi
4042
4043 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4044 then
4045
4046
4047 if $TRUEPRG; then
4048   HAVE_SGI_OS_TRUE=
4049   HAVE_SGI_OS_FALSE='#'
4050 else
4051   HAVE_SGI_OS_TRUE='#'
4052   HAVE_SGI_OS_FALSE=
4053 fi
4054         cat >>confdefs.h <<\_ACEOF
4055 #define HAVE_SGI_OS 1
4056 _ACEOF
4057
4058 else
4059
4060
4061 if $FALSEPRG; then
4062   HAVE_SGI_OS_TRUE=
4063   HAVE_SGI_OS_FALSE='#'
4064 else
4065   HAVE_SGI_OS_TRUE='#'
4066   HAVE_SGI_OS_FALSE=
4067 fi
4068 fi
4069
4070 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4071 then
4072
4073
4074 if $TRUEPRG; then
4075   HAVE_IRIX_OS_TRUE=
4076   HAVE_IRIX_OS_FALSE='#'
4077 else
4078   HAVE_IRIX_OS_TRUE='#'
4079   HAVE_IRIX_OS_FALSE=
4080 fi
4081         cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_IRIX_OS 1
4083 _ACEOF
4084
4085 else
4086
4087
4088 if $FALSEPRG; then
4089   HAVE_IRIX_OS_TRUE=
4090   HAVE_IRIX_OS_FALSE='#'
4091 else
4092   HAVE_IRIX_OS_TRUE='#'
4093   HAVE_IRIX_OS_FALSE=
4094 fi
4095 fi
4096
4097 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4098 then
4099
4100
4101 if $TRUEPRG; then
4102   HAVE_DARWIN_OS_TRUE=
4103   HAVE_DARWIN_OS_FALSE='#'
4104 else
4105   HAVE_DARWIN_OS_TRUE='#'
4106   HAVE_DARWIN_OS_FALSE=
4107 fi
4108     cat >>confdefs.h <<\_ACEOF
4109 #define HAVE_DARWIN_OS 1
4110 _ACEOF
4111
4112 else
4113
4114
4115 if $FALSEPRG; then
4116   HAVE_DARWIN_OS_TRUE=
4117   HAVE_DARWIN_OS_FALSE='#'
4118 else
4119   HAVE_DARWIN_OS_TRUE='#'
4120   HAVE_DARWIN_OS_FALSE=
4121 fi
4122 fi
4123
4124 echo "$as_me:$LINENO: result: \" \"" >&5
4125 echo "${ECHO_T}\" \"" >&6
4126
4127
4128 # -----------------------------------------------------------
4129 # ----------------------------------------------------------
4130 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4131 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4132 if test "x$DISTNAME" != "x"
4133 then
4134         echo "distname set to $DISTNAME"
4135 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4136 then
4137         DISTNAME=alpha
4138 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4139 then
4140         DISTNAME=aix
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4142 then
4143         DISTNAME=hpux
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4145 then
4146         DISTNAME=solaris
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4148 then
4149         DISTNAME=freebsd
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4151 then
4152         DISTNAME=netbsd
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4154 then
4155         DISTNAME=openbsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4157 then
4158         DISTNAME=irix
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4160 then
4161         DISTNAME=bsdi
4162 elif test -f /etc/SuSE-release
4163 then
4164         DISTNAME=suse
4165 elif test -d /etc/SuSEconfig
4166 then
4167         DISTNAME=suse5
4168 elif test -f /etc/mandrake-release
4169 then
4170         DISTNAME=mandrake
4171 elif test -f /etc/redhat-release
4172 then
4173         DISTNAME=redhat
4174 elif test -f /etc/gentoo-release
4175 then
4176         DISTNAME=gentoo
4177 elif test -f /etc/debian_version
4178 then
4179         DISTNAME=debian
4180 elif test -f /etc/slackware-version
4181 then
4182         DISTNAME=slackware
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4184 then
4185     DISTNAME=darwin
4186 elif test -f /etc/engarde-version
4187 then
4188         DISTNAME=engarde
4189 elif test "$ac_cv_cygwin" = yes
4190 then
4191         DISTNAME=cygwin
4192         cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_CYGWIN 1
4194 _ACEOF
4195
4196 else
4197         DISTNAME=unknown
4198 fi
4199 echo "$as_me:$LINENO: result: \" \"" >&5
4200 echo "${ECHO_T}\" \"" >&6
4201
4202
4203 # -----------------------------------------------------------
4204 # ----------------------------------------------------------
4205
4206
4207
4208 if false; then
4209   INSIDE_GNOME_COMMON_TRUE=
4210   INSIDE_GNOME_COMMON_FALSE='#'
4211 else
4212   INSIDE_GNOME_COMMON_TRUE='#'
4213   INSIDE_GNOME_COMMON_FALSE=
4214 fi
4215
4216         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4217
4218         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4219
4220
4221 # ------------------------------------------------------------------
4222 #  If the user has not set --prefix, we set our default to nothing.
4223 #  In this case, if the user has not set --sysconfdir, we set it
4224 #  to the package default of /etc/bacula.  If either --prefix or
4225 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4226 # ------------------------------------------------------------------
4227 if test x${prefix} = xNONE ; then
4228     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4229         sysconfdir=/etc/bacula
4230     fi
4231     prefix=
4232 fi
4233 sysconfdir=`eval echo ${sysconfdir}`
4234
4235 # -------------------------------------------------------------------------
4236 #  If the user has not set --exec-prefix, we default to ${prefix}
4237 # -------------------------------------------------------------------------
4238 if test x${exec_prefix} = xNONE ; then
4239     exec_prefix=${prefix}
4240 fi
4241
4242 # ------------------------------------------------------------------
4243 # If the user has not set --sbindir, we set our default as /sbin
4244 # ------------------------------------------------------------------
4245 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4246     sbindir=${exec_prefix}/sbin
4247 fi
4248 sbindir=`eval echo ${sbindir}`
4249
4250 # ------------------------------------------------------------------
4251 # All list of languages for which a translation exist. Each
4252 #  language is separated by a space.
4253 # ------------------------------------------------------------------
4254 ALL_LINGUAS=""
4255
4256 for ac_prog in msgfmt
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_MSGFMT+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   case $MSGFMT in
4266   [\\/]* | ?:[\\/]*)
4267   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4268   ;;
4269   *)
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283
4284   ;;
4285 esac
4286 fi
4287 MSGFMT=$ac_cv_path_MSGFMT
4288
4289 if test -n "$MSGFMT"; then
4290   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4291 echo "${ECHO_T}$MSGFMT" >&6
4292 else
4293   echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295 fi
4296
4297   test -n "$MSGFMT" && break
4298 done
4299 test -n "$MSGFMT" || MSGFMT="no"
4300
4301 if test "$MSGFMT" = "no"
4302 then
4303    echo 'msgfmt program not found, disabling NLS !'
4304    USE_NLS=no
4305    USE_INCLUDED_LIBINTL=no
4306 #else
4307 #   AM_GNU_GETTEXT
4308 fi
4309
4310
4311 support_mysql=no
4312 support_sqlite=no
4313 support_smartalloc=yes
4314 support_readline=yes
4315 support_gnome=no
4316 support_static_tools=no
4317 support_static_fd=no
4318 support_static_sd=no
4319 support_static_dir=no
4320 support_static_cons=no
4321 build_client_only=no
4322 cats=
4323 db_name=Internal
4324 DB_NAME=bdb
4325
4326
4327 # -------------------------------------------
4328 # gnome (default off)
4329 # -------------------------------------------
4330 # Check whether --enable-gnome or --disable-gnome was given.
4331 if test "${enable_gnome+set}" = set; then
4332   enableval="$enable_gnome"
4333   if test x$enableval = xyes; then
4334     support_gnome=yes
4335   fi
4336 fi;
4337
4338 GNOME_DIR=
4339 if test x$support_gnome = xyes; then
4340   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4341   pkg=$?
4342   if test $pkg = 0; then
4343      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4344      GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
4345      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4346      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4347
4348
4349
4350
4351      GNOME_DIR=src/gnome-console
4352   else
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4365 if test "${with_gnome_includes+set}" = set; then
4366   withval="$with_gnome_includes"
4367
4368         CFLAGS="$CFLAGS -I$withval"
4369
4370 fi;
4371
4372
4373 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4374 if test "${with_gnome_libs+set}" = set; then
4375   withval="$with_gnome_libs"
4376
4377         LDFLAGS="$LDFLAGS -L$withval"
4378         gnome_prefix=$withval
4379
4380 fi;
4381
4382
4383 # Check whether --with-gnome or --without-gnome was given.
4384 if test "${with_gnome+set}" = set; then
4385   withval="$with_gnome"
4386   if test x$withval = xyes; then
4387                         want_gnome=yes
4388                                                                         :
4389                 else
4390                         if test "x$withval" = xno; then
4391                                 want_gnome=no
4392                         else
4393                                 want_gnome=yes
4394                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4395                                 CFLAGS="$CFLAGS -I$withval/include"
4396                                 gnome_prefix=$withval/lib
4397                         fi
4398                 fi
4399 else
4400   want_gnome=yes
4401 fi;
4402
4403         if test "x$want_gnome" = xyes; then
4404
4405             # Extract the first word of "gnome-config", so it can be a program name with args.
4406 set dummy gnome-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   case $GNOME_CONFIG in
4413   [\\/]* | ?:[\\/]*)
4414   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4415   ;;
4416   *)
4417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430
4431   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4432   ;;
4433 esac
4434 fi
4435 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4436
4437 if test -n "$GNOME_CONFIG"; then
4438   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4439 echo "${ECHO_T}$GNOME_CONFIG" >&6
4440 else
4441   echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4443 fi
4444
4445             if test "$GNOME_CONFIG" = "no"; then
4446               no_gnome_config="yes"
4447             else
4448               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4449 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4450               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4451                 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4453
4454
4455         # Extract the first word of "orbit-config", so it can be a program name with args.
4456 set dummy orbit-config; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   case $ORBIT_CONFIG in
4463   [\\/]* | ?:[\\/]*)
4464   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4465   ;;
4466   *)
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479 done
4480
4481   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4482   ;;
4483 esac
4484 fi
4485 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4486
4487 if test -n "$ORBIT_CONFIG"; then
4488   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4489 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495         # Extract the first word of "orbit-idl", so it can be a program name with args.
4496 set dummy orbit-idl; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   case $ORBIT_IDL in
4503   [\\/]* | ?:[\\/]*)
4504   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4505   ;;
4506   *)
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4522   ;;
4523 esac
4524 fi
4525 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4526
4527 if test -n "$ORBIT_IDL"; then
4528   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4529 echo "${ECHO_T}$ORBIT_IDL" >&6
4530 else
4531   echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4536 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4537 if test "${gnome_cv_orbit_found+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540
4541                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4542                         gnome_cv_orbit_found=no
4543                 else
4544                         gnome_cv_orbit_found=yes
4545                 fi
4546
4547 fi
4548 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4549 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4550
4551
4552 if test x$gnome_cv_orbit_found = xyes; then
4553   HAVE_ORBIT_TRUE=
4554   HAVE_ORBIT_FALSE='#'
4555 else
4556   HAVE_ORBIT_TRUE='#'
4557   HAVE_ORBIT_FALSE=
4558 fi
4559         if test x$gnome_cv_orbit_found = xyes; then
4560
4561                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4562                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4563
4564
4565         else
4566                 if test xfail = xfailure; then
4567                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4568 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4569    { (exit 1); exit 1; }; }
4570                 fi
4571         fi
4572
4573         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4574 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4575 if test "${gnome_cv_gnorba_found+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578
4579                 gnome_cv_gnorba_found=no
4580                 if test x$gnome_cv_orbit_found = xyes; then
4581                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4582                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4583                         if test -n "$GNORBA_LIBS"; then
4584                                 gnome_cv_gnorba_found=yes
4585                         fi
4586                 fi
4587
4588 fi
4589 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4590 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4591
4592
4593 if test x$gnome_cv_gnorba_found = xyes; then
4594   HAVE_GNORBA_TRUE=
4595   HAVE_GNORBA_FALSE='#'
4596 else
4597   HAVE_GNORBA_TRUE='#'
4598   HAVE_GNORBA_FALSE=
4599 fi
4600         if test x$gnome_cv_orbit_found = xyes; then
4601
4602                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4603                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4604
4605
4606         else
4607                 if test xfail = xfailure; then
4608                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4609 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4610    { (exit 1); exit 1; }; }
4611                 fi
4612         fi
4613
4614                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4615                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4616                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4617                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4618                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4619                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4620                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4621
4622               else
4623                 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625                 no_gnome_config="yes"
4626               fi
4627             fi
4628
4629             if test x$exec_prefix = xNONE; then
4630                 if test x$prefix = xNONE; then
4631                     gnome_prefix=$ac_default_prefix/lib
4632                 else
4633                     gnome_prefix=$prefix/lib
4634                 fi
4635             else
4636                 gnome_prefix=`eval echo \`echo $libdir\``
4637             fi
4638
4639             if test "$no_gnome_config" = "yes"; then
4640               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4641 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4642               if test -f $gnome_prefix/gnomeConf.sh; then
4643                 echo "$as_me:$LINENO: result: found" >&5
4644 echo "${ECHO_T}found" >&6
4645                 echo "loading gnome configuration from" \
4646                      "$gnome_prefix/gnomeConf.sh"
4647                 . $gnome_prefix/gnomeConf.sh
4648
4649               else
4650                 echo "$as_me:$LINENO: result: not found" >&5
4651 echo "${ECHO_T}not found" >&6
4652                 if test xfail = xfail; then
4653                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4654 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4655    { (exit 1); exit 1; }; }
4656                 fi
4657               fi
4658             fi
4659         fi
4660
4661         if test -n ""; then
4662           n=""
4663           for i in $n; do
4664             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4665 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4666             case $i in
4667               applets)
4668
4669                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4670                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4671 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4672               docklets)
4673
4674                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4675                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4676 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4677               capplet)
4678
4679                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4680                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4681 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4682               *)
4683                 echo "$as_me:$LINENO: result: unknown library" >&5
4684 echo "${ECHO_T}unknown library" >&6
4685             esac
4686             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4687             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4688           done
4689         fi
4690
4691
4692     GNOME_DIR=src/gnome-console
4693   fi
4694 fi
4695
4696
4697
4698 # -------------------------------------------
4699 # smartalloc (default off)
4700 # -------------------------------------------
4701 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4702 if test "${enable_smartalloc+set}" = set; then
4703   enableval="$enable_smartalloc"
4704   if test x$enableval = xno; then
4705     support_smartalloc=no
4706   fi
4707 fi;
4708
4709 if test x$support_smartalloc = xyes; then
4710    cat >>confdefs.h <<\_ACEOF
4711 #define SMARTALLOC 1
4712 _ACEOF
4713
4714 fi
4715
4716 # -------------------------------------------
4717 # static-tools (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-static-tools or --disable-static-tools was given.
4720 if test "${enable_static_tools+set}" = set; then
4721   enableval="$enable_static_tools"
4722   if test x$enableval = xyes; then
4723      support_static_tools=yes
4724    fi
4725 fi;
4726
4727 TTOOL_LDFLAGS=
4728 if test x$support_static_tools = xyes; then
4729    TTOOL_LDFLAGS="-static"
4730 fi
4731
4732
4733 # -------------------------------------------
4734 # static-fd    (default off)
4735 # -------------------------------------------
4736 # Check whether --enable-static-fd or --disable-static-fd was given.
4737 if test "${enable_static_fd+set}" = set; then
4738   enableval="$enable_static_fd"
4739   if test x$enableval = xyes; then
4740      support_static_fd=yes
4741    fi
4742 fi;
4743
4744 STATIC_FD=
4745 if test x$support_static_fd = xyes; then
4746    STATIC_FD="static-bacula-fd"
4747 fi
4748
4749
4750 # -------------------------------------------
4751 # static-sd    (default off)
4752 # -------------------------------------------
4753 # Check whether --enable-static-sd or --disable-static-sd was given.
4754 if test "${enable_static_sd+set}" = set; then
4755   enableval="$enable_static_sd"
4756   if test x$enableval = xyes; then
4757      support_static_sd=yes
4758    fi
4759 fi;
4760
4761 STATIC_SD=
4762 if test x$support_static_sd = xyes; then
4763    STATIC_SD="static-bacula-sd"
4764 fi
4765
4766
4767 # -------------------------------------------
4768 # static-dir   (default off)
4769 # -------------------------------------------
4770 # Check whether --enable-static-dir or --disable-static-dir was given.
4771 if test "${enable_static_dir+set}" = set; then
4772   enableval="$enable_static_dir"
4773   if test x$enableval = xyes; then
4774      support_static_dir=yes
4775    fi
4776 fi;
4777
4778 STATIC_DIR=
4779 if test x$support_static_dir = xyes; then
4780    STATIC_DIR="static-bacula-dir"
4781 fi
4782
4783
4784 # -------------------------------------------
4785 # static-cons  (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-static-cons or --disable-static-cons was given.
4788 if test "${enable_static_cons+set}" = set; then
4789   enableval="$enable_static_cons"
4790   if test x$enableval = xyes; then
4791      support_static_cons=yes
4792    fi
4793 fi;
4794
4795 STATIC_CONS=
4796 if test x$support_static_cons = xyes; then
4797    STATIC_CONS="static-console"
4798 fi
4799
4800
4801 # -------------------------------------------
4802 # client_only  (default off)
4803 # -------------------------------------------
4804 # Check whether --enable-client-only or --disable-client-only was given.
4805 if test "${enable_client_only+set}" = set; then
4806   enableval="$enable_client_only"
4807   if test x$enableval = xyes; then
4808      build_client_only=yes
4809    fi
4810 fi;
4811 if test x$build_client_only = xno; then
4812    ALL_DIRS="subdirs"
4813 else
4814    ALL_DIRS=""
4815 fi
4816
4817
4818 # ---------------------------------------------------
4819 # Check for readline support/directory (default on)
4820 # ---------------------------------------------------
4821 # this allows you to turn it completely off
4822 # Check whether --enable-readline or --disable-readline was given.
4823 if test "${enable_readline+set}" = set; then
4824   enableval="$enable_readline"
4825   if test x$enableval = xno; then
4826     support_readline=no
4827   fi
4828 fi;
4829
4830 got_readline="no"
4831 READLINE_SRC=
4832 if test x$support_readline = xyes; then
4833    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4835 if test "${ac_cv_header_stdc+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <stdlib.h>
4846 #include <stdarg.h>
4847 #include <string.h>
4848 #include <float.h>
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860   (eval $ac_compile) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -s conftest.$ac_objext'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; }; then
4870   ac_cv_header_stdc=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 ac_cv_header_stdc=no
4876 fi
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4878
4879 if test $ac_cv_header_stdc = yes; then
4880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881   cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <string.h>
4889
4890 _ACEOF
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892   $EGREP "memchr" >/dev/null 2>&1; then
4893   :
4894 else
4895   ac_cv_header_stdc=no
4896 fi
4897 rm -f conftest*
4898
4899 fi
4900
4901 if test $ac_cv_header_stdc = yes; then
4902   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 #include <stdlib.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914   $EGREP "free" >/dev/null 2>&1; then
4915   :
4916 else
4917   ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
4923 if test $ac_cv_header_stdc = yes; then
4924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925   if test "$cross_compiling" = yes; then
4926   :
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 #include <ctype.h>
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939 #else
4940 # define ISLOWER(c) \
4941                    (('a' <= (c) && (c) <= 'i') \
4942                      || ('j' <= (c) && (c) <= 'r') \
4943                      || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4945 #endif
4946
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4948 int
4949 main ()
4950 {
4951   int i;
4952   for (i = 0; i < 256; i++)
4953     if (XOR (islower (i), ISLOWER (i))
4954         || toupper (i) != TOUPPER (i))
4955       exit(2);
4956   exit (0);
4957 }
4958 _ACEOF
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961   (eval $ac_link) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; }; then
4970   :
4971 else
4972   echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ( exit $ac_status )
4977 ac_cv_header_stdc=no
4978 fi
4979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 fi
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4985 if test $ac_cv_header_stdc = yes; then
4986
4987 cat >>confdefs.h <<\_ACEOF
4988 #define STDC_HEADERS 1
4989 _ACEOF
4990
4991 fi
4992
4993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5004                   inttypes.h stdint.h unistd.h
5005 do
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 $ac_includes_default
5020
5021 #include <$ac_header>
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025   (eval $ac_compile) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   eval "$as_ac_Header=yes"
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 eval "$as_ac_Header=no"
5041 fi
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047   cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 _ACEOF
5050
5051 fi
5052
5053 done
5054
5055
5056
5057 # Check whether --with-readline or --without-readline was given.
5058 if test "${with_readline+set}" = set; then
5059   withval="$with_readline"
5060
5061         case "$with_readline" in
5062         no) : ;;
5063         yes|*)
5064           if test "$with_readline" != "yes"; then
5065             CONS_INC="-I${with_readline}"
5066             CONS_LDFLAGS="-L$with_readline"
5067           else
5068              with_readline="/usr/include/readline"
5069           fi
5070           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 fi
5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5079 else
5080   # Is the header compilable?
5081 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5082 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091 #include <${with_readline}/readline.h>
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } &&
5099          { ac_try='test -s conftest.$ac_objext'
5100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101   (eval $ac_try) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; }; then
5105   ac_header_compiler=yes
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ac_header_compiler=no
5111 fi
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5115
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5118 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 #include <${with_readline}/readline.h>
5127 _ACEOF
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null; then
5136   if test -s conftest.err; then
5137     ac_cpp_err=$ac_c_preproc_warn_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   ac_header_preproc=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   ac_header_preproc=no
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5155
5156 # So?  What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5158   yes:no )
5159     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5163     (
5164       cat <<\_ASBOX
5165 ## ------------------------------------ ##
5166 ## Report this to bug-autoconf@gnu.org. ##
5167 ## ------------------------------------ ##
5168 _ASBOX
5169     ) |
5170       sed "s/^/$as_me: WARNING:     /" >&2
5171     ;;
5172   no:yes )
5173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5175     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5177     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5179     (
5180       cat <<\_ASBOX
5181 ## ------------------------------------ ##
5182 ## Report this to bug-autoconf@gnu.org. ##
5183 ## ------------------------------------ ##
5184 _ASBOX
5185     ) |
5186       sed "s/^/$as_me: WARNING:     /" >&2
5187     ;;
5188 esac
5189 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   eval "$as_ac_Header=$ac_header_preproc"
5195 fi
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5198
5199 fi
5200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201    cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_READLINE 1
5203 _ACEOF
5204
5205                CONS_LIBS="-lreadline -ltermcap"
5206                got_readline="yes"
5207
5208 else
5209    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5210 echo "$as_me: error: *** readline library missing" >&2;}
5211    { (exit 1); exit 1; }; }
5212
5213
5214 fi
5215
5216
5217           ;;
5218         esac
5219
5220 else
5221
5222        # check for standard readline library
5223        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5224   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5231 else
5232   # Is the header compilable?
5233 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 $ac_includes_default
5243 #include </usr/include/readline/readline.h>
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247   (eval $ac_compile) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_header_compiler=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_header_compiler=no
5263 fi
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6
5267
5268 # Is the header present?
5269 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5270 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 #include </usr/include/readline/readline.h>
5279 _ACEOF
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } >/dev/null; then
5288   if test -s conftest.err; then
5289     ac_cpp_err=$ac_c_preproc_warn_flag
5290   else
5291     ac_cpp_err=
5292   fi
5293 else
5294   ac_cpp_err=yes
5295 fi
5296 if test -z "$ac_cpp_err"; then
5297   ac_header_preproc=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302   ac_header_preproc=no
5303 fi
5304 rm -f conftest.err conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6
5307
5308 # So?  What about this header?
5309 case $ac_header_compiler:$ac_header_preproc in
5310   yes:no )
5311     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5315     (
5316       cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5321     ) |
5322       sed "s/^/$as_me: WARNING:     /" >&2
5323     ;;
5324   no:yes )
5325     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5327     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5329     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5331     (
5332       cat <<\_ASBOX
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5336 _ASBOX
5337     ) |
5338       sed "s/^/$as_me: WARNING:     /" >&2
5339     ;;
5340 esac
5341 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5342 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5343 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5347 fi
5348 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5349 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5350
5351 fi
5352 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5353    cat >>confdefs.h <<\_ACEOF
5354 #define HAVE_READLINE 1
5355 _ACEOF
5356
5357            got_readline="yes"
5358            CONS_INC="-I/usr/include/readline"
5359            CONS_LIBS="-lreadline -ltermcap"
5360
5361 else
5362
5363            # Did not find standard library, so try Bacula's default
5364             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 fi
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373 else
5374   # Is the header compilable?
5375 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5376 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385 #include <${TOP_DIR}/depkgs/readline/readline.h>
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_header_compiler=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_header_compiler=no
5405 fi
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5408 echo "${ECHO_T}$ac_header_compiler" >&6
5409
5410 # Is the header present?
5411 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5412 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 #include <${TOP_DIR}/depkgs/readline/readline.h>
5421 _ACEOF
5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } >/dev/null; then
5430   if test -s conftest.err; then
5431     ac_cpp_err=$ac_c_preproc_warn_flag
5432   else
5433     ac_cpp_err=
5434   fi
5435 else
5436   ac_cpp_err=yes
5437 fi
5438 if test -z "$ac_cpp_err"; then
5439   ac_header_preproc=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444   ac_header_preproc=no
5445 fi
5446 rm -f conftest.err conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5448 echo "${ECHO_T}$ac_header_preproc" >&6
5449
5450 # So?  What about this header?
5451 case $ac_header_compiler:$ac_header_preproc in
5452   yes:no )
5453     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5454 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5455     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5457     (
5458       cat <<\_ASBOX
5459 ## ------------------------------------ ##
5460 ## Report this to bug-autoconf@gnu.org. ##
5461 ## ------------------------------------ ##
5462 _ASBOX
5463     ) |
5464       sed "s/^/$as_me: WARNING:     /" >&2
5465     ;;
5466   no:yes )
5467     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5469     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5471     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5473     (
5474       cat <<\_ASBOX
5475 ## ------------------------------------ ##
5476 ## Report this to bug-autoconf@gnu.org. ##
5477 ## ------------------------------------ ##
5478 _ASBOX
5479     ) |
5480       sed "s/^/$as_me: WARNING:     /" >&2
5481     ;;
5482 esac
5483 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5484 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   eval "$as_ac_Header=$ac_header_preproc"
5489 fi
5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5492
5493 fi
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495    cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_READLINE 1
5497 _ACEOF
5498
5499                  got_readline="yes"
5500                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5501                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5502                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5503                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5504
5505 else
5506    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5507 echo "$as_me: error: *** readline library missing" >&2;}
5508    { (exit 1); exit 1; }; }
5509
5510
5511 fi
5512
5513
5514
5515
5516 fi
5517
5518
5519
5520
5521 fi;
5522 fi
5523
5524
5525
5526
5527
5528 # Minimal stuff for readline Makefile configuration
5529 MAKE_SHELL=/bin/sh
5530
5531
5532 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5534 if test "${ac_cv_header_stat_broken+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544 #include <sys/types.h>
5545 #include <sys/stat.h>
5546
5547 #if defined(S_ISBLK) && defined(S_IFDIR)
5548 # if S_ISBLK (S_IFDIR)
5549 You lose.
5550 # endif
5551 #endif
5552
5553 #if defined(S_ISBLK) && defined(S_IFCHR)
5554 # if S_ISBLK (S_IFCHR)
5555 You lose.
5556 # endif
5557 #endif
5558
5559 #if defined(S_ISLNK) && defined(S_IFREG)
5560 # if S_ISLNK (S_IFREG)
5561 You lose.
5562 # endif
5563 #endif
5564
5565 #if defined(S_ISSOCK) && defined(S_IFREG)
5566 # if S_ISSOCK (S_IFREG)
5567 You lose.
5568 # endif
5569 #endif
5570
5571 _ACEOF
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573   $EGREP "You lose" >/dev/null 2>&1; then
5574   ac_cv_header_stat_broken=yes
5575 else
5576   ac_cv_header_stat_broken=no
5577 fi
5578 rm -f conftest*
5579
5580 fi
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5582 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5583 if test $ac_cv_header_stat_broken = yes; then
5584
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STAT_MACROS_BROKEN 1
5587 _ACEOF
5588
5589 fi
5590
5591
5592
5593
5594
5595
5596 ac_header_dirent=no
5597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5598   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 #include <sys/types.h>
5612 #include <$ac_hdr>
5613
5614 int
5615 main ()
5616 {
5617 if ((DIR *) 0)
5618 return 0;
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); } &&
5629          { ac_try='test -s conftest.$ac_objext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   eval "$as_ac_Header=yes"
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 eval "$as_ac_Header=no"
5641 fi
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647   cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5649 _ACEOF
5650
5651 ac_header_dirent=$ac_hdr; break
5652 fi
5653
5654 done
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5659 if test "${ac_cv_search_opendir+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_func_search_save_LIBS=$LIBS
5663 ac_cv_search_opendir=no
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671
5672 /* Override any gcc2 internal prototype to avoid an error.  */
5673 #ifdef __cplusplus
5674 extern "C"
5675 #endif
5676 /* We use char because int might match the return type of a gcc2
5677    builtin and then its argument prototype would still apply.  */
5678 char opendir ();
5679 int
5680 main ()
5681 {
5682 opendir ();
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689   (eval $ac_link) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -s conftest$ac_exeext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   ac_cv_search_opendir="none required"
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 fi
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_opendir" = no; then
5707   for ac_lib in dir; do
5708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5709     cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716
5717 /* Override any gcc2 internal prototype to avoid an error.  */
5718 #ifdef __cplusplus
5719 extern "C"
5720 #endif
5721 /* We use char because int might match the return type of a gcc2
5722    builtin and then its argument prototype would still apply.  */
5723 char opendir ();
5724 int
5725 main ()
5726 {
5727 opendir ();
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734   (eval $ac_link) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -s conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_search_opendir="-l$ac_lib"
5745 break
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 fi
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752   done
5753 fi
5754 LIBS=$ac_func_search_save_LIBS
5755 fi
5756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5758 if test "$ac_cv_search_opendir" != no; then
5759   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5760
5761 fi
5762
5763 else
5764   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5766 if test "${ac_cv_search_opendir+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_opendir=no
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778
5779 /* Override any gcc2 internal prototype to avoid an error.  */
5780 #ifdef __cplusplus
5781 extern "C"
5782 #endif
5783 /* We use char because int might match the return type of a gcc2
5784    builtin and then its argument prototype would still apply.  */
5785 char opendir ();
5786 int
5787 main ()
5788 {
5789 opendir ();
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796   (eval $ac_link) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -s conftest$ac_exeext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_cv_search_opendir="none required"
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 fi
5812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5813 if test "$ac_cv_search_opendir" = no; then
5814   for ac_lib in x; do
5815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5816     cat >conftest.$ac_ext <<_ACEOF
5817 #line $LINENO "configure"
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823
5824 /* Override any gcc2 internal prototype to avoid an error.  */
5825 #ifdef __cplusplus
5826 extern "C"
5827 #endif
5828 /* We use char because int might match the return type of a gcc2
5829    builtin and then its argument prototype would still apply.  */
5830 char opendir ();
5831 int
5832 main ()
5833 {
5834 opendir ();
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -s conftest$ac_exeext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_search_opendir="-l$ac_lib"
5852 break
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 fi
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5859   done
5860 fi
5861 LIBS=$ac_func_search_save_LIBS
5862 fi
5863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5865 if test "$ac_cv_search_opendir" != no; then
5866   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5867
5868 fi
5869
5870 fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5882 do
5883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5884 echo "$as_me:$LINENO: checking for $ac_func" >&5
5885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5886 if eval "test \"\${$as_ac_var+set}\" = set"; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 /* System header to define __stub macros and hopefully few prototypes,
5897     which can conflict with char $ac_func (); below.
5898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899     <limits.h> exists even on freestanding compilers.  */
5900 #ifdef __STDC__
5901 # include <limits.h>
5902 #else
5903 # include <assert.h>
5904 #endif
5905 /* Override any gcc2 internal prototype to avoid an error.  */
5906 #ifdef __cplusplus
5907 extern "C"
5908 {
5909 #endif
5910 /* We use char because int might match the return type of a gcc2
5911    builtin and then its argument prototype would still apply.  */
5912 char $ac_func ();
5913 /* The GNU C library defines this for functions which it implements
5914     to always fail with ENOSYS.  Some functions are actually named
5915     something starting with __ and the normal name is an alias.  */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5917 choke me
5918 #else
5919 char (*f) () = $ac_func;
5920 #endif
5921 #ifdef __cplusplus
5922 }
5923 #endif
5924
5925 int
5926 main ()
5927 {
5928 return f != $ac_func;
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -s conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   eval "$as_ac_var=yes"
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 eval "$as_ac_var=no"
5951 fi
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5956 if test `eval echo '${'$as_ac_var'}'` = yes; then
5957   cat >>confdefs.h <<_ACEOF
5958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5959 _ACEOF
5960
5961 fi
5962 done
5963
5964
5965 for ac_func in nanosleep
5966 do
5967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 /* System header to define __stub macros and hopefully few prototypes,
5981     which can conflict with char $ac_func (); below.
5982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983     <limits.h> exists even on freestanding compilers.  */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5989 /* Override any gcc2 internal prototype to avoid an error.  */
5990 #ifdef __cplusplus
5991 extern "C"
5992 {
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996 char $ac_func ();
5997 /* The GNU C library defines this for functions which it implements
5998     to always fail with ENOSYS.  Some functions are actually named
5999     something starting with __ and the normal name is an alias.  */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 choke me
6002 #else
6003 char (*f) () = $ac_func;
6004 #endif
6005 #ifdef __cplusplus
6006 }
6007 #endif
6008
6009 int
6010 main ()
6011 {
6012 return f != $ac_func;
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   eval "$as_ac_var=yes"
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 eval "$as_ac_var=no"
6035 fi
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6040 if test `eval echo '${'$as_ac_var'}'` = yes; then
6041   cat >>confdefs.h <<_ACEOF
6042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6043 _ACEOF
6044
6045 fi
6046 done
6047
6048
6049 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
6050 #   [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
6051 #    EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
6052
6053 echo "$as_me:$LINENO: checking for getopt_long" >&5
6054 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6055 if test "${ac_cv_func_getopt_long+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 /* System header to define __stub macros and hopefully few prototypes,
6066     which can conflict with char getopt_long (); below.
6067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6068     <limits.h> exists even on freestanding compilers.  */
6069 #ifdef __STDC__
6070 # include <limits.h>
6071 #else
6072 # include <assert.h>
6073 #endif
6074 /* Override any gcc2 internal prototype to avoid an error.  */
6075 #ifdef __cplusplus
6076 extern "C"
6077 {
6078 #endif
6079 /* We use char because int might match the return type of a gcc2
6080    builtin and then its argument prototype would still apply.  */
6081 char getopt_long ();
6082 /* The GNU C library defines this for functions which it implements
6083     to always fail with ENOSYS.  Some functions are actually named
6084     something starting with __ and the normal name is an alias.  */
6085 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6086 choke me
6087 #else
6088 char (*f) () = getopt_long;
6089 #endif
6090 #ifdef __cplusplus
6091 }
6092 #endif
6093
6094 int
6095 main ()
6096 {
6097 return f != getopt_long;
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104   (eval $ac_link) 2>&5
6105   ac_status=$?
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); } &&
6108          { ac_try='test -s conftest$ac_exeext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   ac_cv_func_getopt_long=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_func_getopt_long=no
6120 fi
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 fi
6123 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6124 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6125 if test $ac_cv_func_getopt_long = yes; then
6126   cat >>confdefs.h <<\_ACEOF
6127 #define HAVE_GETOPT_LONG 1
6128 _ACEOF
6129
6130 fi
6131
6132
6133
6134 echo "$as_me:$LINENO: checking for working strcoll" >&5
6135 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
6136 if test "${ac_cv_func_strcoll_works+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   if test "$cross_compiling" = yes; then
6140   ac_cv_func_strcoll_works=no
6141 else
6142   cat >conftest.$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149 $ac_includes_default
6150 int
6151 main ()
6152 {
6153 exit (strcoll ("abc", "def") >= 0 ||
6154          strcoll ("ABC", "DEF") >= 0 ||
6155          strcoll ("123", "456") >= 0)
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162   (eval $ac_link) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167   (eval $ac_try) 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); }; }; then
6171   ac_cv_func_strcoll_works=yes
6172 else
6173   echo "$as_me: program exited with status $ac_status" >&5
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 ( exit $ac_status )
6178 ac_cv_func_strcoll_works=no
6179 fi
6180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6181 fi
6182 fi
6183 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
6184 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
6185 if test $ac_cv_func_strcoll_works = yes; then
6186
6187 cat >>confdefs.h <<\_ACEOF
6188 #define HAVE_STRCOLL 1
6189 _ACEOF
6190
6191 fi
6192
6193
6194
6195
6196
6197
6198 for ac_header in varargs.h \
6199                 sys/ptem.h sys/pte.h sys/stream.h
6200 do
6201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6203   echo "$as_me:$LINENO: checking for $ac_header" >&5
6204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 fi
6208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210 else
6211   # Is the header compilable?
6212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6214 cat >conftest.$ac_ext <<_ACEOF
6215 #line $LINENO "configure"
6216 /* confdefs.h.  */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h.  */
6221 $ac_includes_default
6222 #include <$ac_header>
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226   (eval $ac_compile) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); } &&
6230          { ac_try='test -s conftest.$ac_objext'
6231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232   (eval $ac_try) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; }; then
6236   ac_header_compiler=yes
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241 ac_header_compiler=no
6242 fi
6243 rm -f conftest.$ac_objext conftest.$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6245 echo "${ECHO_T}$ac_header_compiler" >&6
6246
6247 # Is the header present?
6248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6251 #line $LINENO "configure"
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257 #include <$ac_header>
6258 _ACEOF
6259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } >/dev/null; then
6267   if test -s conftest.err; then
6268     ac_cpp_err=$ac_c_preproc_warn_flag
6269   else
6270     ac_cpp_err=
6271   fi
6272 else
6273   ac_cpp_err=yes
6274 fi
6275 if test -z "$ac_cpp_err"; then
6276   ac_header_preproc=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281   ac_header_preproc=no
6282 fi
6283 rm -f conftest.err conftest.$ac_ext
6284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6285 echo "${ECHO_T}$ac_header_preproc" >&6
6286
6287 # So?  What about this header?
6288 case $ac_header_compiler:$ac_header_preproc in
6289   yes:no )
6290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6294     (
6295       cat <<\_ASBOX
6296 ## ------------------------------------ ##
6297 ## Report this to bug-autoconf@gnu.org. ##
6298 ## ------------------------------------ ##
6299 _ASBOX
6300     ) |
6301       sed "s/^/$as_me: WARNING:     /" >&2
6302     ;;
6303   no:yes )
6304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6306     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6310     (
6311       cat <<\_ASBOX
6312 ## ------------------------------------ ##
6313 ## Report this to bug-autoconf@gnu.org. ##
6314 ## ------------------------------------ ##
6315 _ASBOX
6316     ) |
6317       sed "s/^/$as_me: WARNING:     /" >&2
6318     ;;
6319 esac
6320 echo "$as_me:$LINENO: checking for $ac_header" >&5
6321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   eval "$as_ac_Header=$ac_header_preproc"
6326 fi
6327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6329
6330 fi
6331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6332   cat >>confdefs.h <<_ACEOF
6333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6334 _ACEOF
6335
6336 fi
6337
6338 done
6339
6340
6341 # End of readline stuff
6342 # -----------------------------------------------------------------------
6343
6344
6345 # ---------------------------------------------------
6346 # Check for GMP support/directory
6347 # ---------------------------------------------------
6348 #GMP_SRC=
6349 #local_gmp="no"
6350 #AC_ARG_WITH(gmp,
6351 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6352 #  [
6353 #     case "$with_gmp" in
6354 #     no) : ;;
6355 #     yes|*)
6356 #       if test "$with_gmp" != "yes"; then
6357 #         GMP_INC="-I$with_gmp"
6358 #         GMP_LIBS="-lgmp"
6359 #         GMP_LDFLAGS="-L$with_gmp"
6360 #       else
6361 #          with_gmp="/usr/include"
6362 #       fi
6363 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6364 #          [ AC_MSG_RESULT(yes)
6365 #            AC_DEFINE(HAVE_GMP)
6366 #            GMP_LIBS="-lgmp"
6367 #            got_gmp="yes"
6368 #          ],
6369 #          [ AC_MSG_ERROR([*** gmp library missing])
6370 #          ]
6371 #       )
6372 #       ;;
6373 #     esac
6374 #  ],[
6375 #    # check for standard gmp library
6376 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6377 #    [ AC_MSG_RESULT(yes)
6378 #      AC_DEFINE(HAVE_GMP)
6379 #      got_gmp="yes"
6380 #      GMP_INC=
6381 #      GMP_LIBS="-lgmp"
6382 #    ], [
6383 #      # Did not find standard library, so use our own
6384 #      AC_MSG_RESULT(yes)
6385 #      AC_DEFINE(HAVE_GMP)
6386 #      got_gmp="yes"
6387 #      local_gmp="yes"
6388 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6389 #      GMP_LIBS="-lgmp"
6390 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6391 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6392 #    ])
6393 #  ]
6394 #)
6395 #AC_SUBST(GMP_INC)
6396 #AC_SUBST(GMP_LIBS)
6397 #AC_SUBST(GMP_LDFLAGS)
6398 #AC_SUBST(GMP_SRC)
6399
6400 # End of GMP stuff
6401 # -----------------------------------------------------------------------
6402
6403
6404 # ---------------------------------------------------
6405 # Check for CWEB support/directory
6406 # ---------------------------------------------------
6407 #CWEB_SRC=
6408 #CWEB=/bin
6409 #local_cweb="no"
6410 #AC_ARG_WITH(cweb,
6411 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6412 #  [
6413 #     case "$with_cweb" in
6414 #     no) : ;;
6415 #     yes|*)
6416 #       if test "$with_cweb" != "yes"; then
6417 #         CWEB_INC="-I$with_cweb"
6418 #         CWEB_LIBS="-lcweb"
6419 #         CWEB_LDFLAGS="-L$with_cweb"
6420 #       else
6421 #          with_cweb="/usr/include"
6422 #       fi
6423 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6424 #          [ AC_MSG_RESULT(yes)
6425 #            AC_DEFINE(HAVE_CWEB)
6426 #            CWEB_LIBS="-lcweb"
6427 #            got_cweb="yes"
6428 #          ],
6429 #          [ AC_MSG_ERROR([*** cweb library missing])
6430 #          ]
6431 #       )
6432 #       ;;
6433 #     esac
6434 #  ],[
6435 #    # check for standard cweb library
6436 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6437 #    [ AC_MSG_RESULT(yes)
6438 #      AC_DEFINE(HAVE_CWEB)
6439 #      got_cweb="yes"
6440 #      CWEB_INC=
6441 #      CWEB_LIBS="-lcweb"
6442 #    ], [
6443 #      # Did not find starndard library, so use our own
6444 #      AC_MSG_RESULT(yes)
6445 #      AC_DEFINE(HAVE_CWEB)
6446 #      got_cweb="yes"
6447 #      local_cweb="yes"
6448 #      CWEB=${TOP_DIR}/depkgs/cweb
6449 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6450 #      CWEB_LIBS="-lcweb"
6451 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6452 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6453 #    ])
6454 #  ]
6455 #)
6456 #AC_SUBST(CWEB)
6457 #AC_SUBST(CWEB_INC)
6458 #AC_SUBST(CWEB_LIBS)
6459 #AC_SUBST(CWEB_LDFLAGS)
6460 #AC_SUBST(CWEB_SRC)
6461
6462 # End of CWEB stuff
6463 # -----------------------------------------------------------------------
6464
6465
6466
6467 # -----------------------------------------------------------
6468 # Check whether user wants TCP wrappers support (default off)
6469 # -----------------------------------------------------------
6470 TCPW_MSG="no"
6471
6472 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6473 if test "${with_tcp_wrappers+set}" = set; then
6474   withval="$with_tcp_wrappers"
6475
6476     if test "x$withval" != "xno" ; then
6477        saved_LIBS="$LIBS"
6478        LIBS="$LIBS -lwrap -lnsl"
6479        echo "$as_me:$LINENO: checking for libwrap" >&5
6480 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6481        cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488  #include <tcpd.h>
6489              int deny_severity = 0;
6490              int allow_severity = 0;
6491              struct request_info *req;
6492 int
6493 main ()
6494 {
6495  hosts_access(req);
6496   ;
6497   return 0;
6498 }
6499 _ACEOF
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502   (eval $ac_link) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); } &&
6506          { ac_try='test -s conftest$ac_exeext'
6507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508   (eval $ac_try) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; }; then
6512
6513             echo "$as_me:$LINENO: result: yes" >&5
6514 echo "${ECHO_T}yes" >&6
6515             cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_LIBWRAP 1
6517 _ACEOF
6518
6519             TCPW_MSG="yes"
6520
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6526 echo "$as_me: error: *** libwrap missing" >&2;}
6527    { (exit 1); exit 1; }; }
6528
6529 fi
6530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6531     fi
6532
6533
6534 fi;
6535
6536 # ------------------------------------------
6537 # Where to place working dir
6538 # ------------------------------------------
6539 working_dir=`eval echo ${sysconfdir}/working`
6540
6541 # Check whether --with-working-dir or --without-working-dir was given.
6542 if test "${with_working_dir+set}" = set; then
6543   withval="$with_working_dir"
6544
6545        if test "x$withval" != "xno" ; then
6546               working_dir=$withval
6547        fi
6548
6549
6550 fi;
6551
6552
6553
6554
6555 # ------------------------------------------
6556 # Where to place scriptdir (script files)
6557 # ------------------------------------------
6558 scriptdir=`eval echo ${sysconfdir}`
6559
6560 # Check whether --with-scriptdir or --without-scriptdir was given.
6561 if test "${with_scriptdir+set}" = set; then
6562   withval="$with_scriptdir"
6563
6564        if test "x$withval" != "xno" ; then
6565               scriptdir=$withval
6566        fi
6567
6568
6569 fi;
6570
6571
6572
6573
6574 # ------------------------------------------
6575 # Where to send dump email
6576 # ------------------------------------------
6577 dump_email=root@localhost
6578
6579 # Check whether --with-dump-email or --without-dump-email was given.
6580 if test "${with_dump_email+set}" = set; then
6581   withval="$with_dump_email"
6582
6583        if test "x$withval" != "xno" ; then
6584               dump_email=$withval
6585        fi
6586
6587
6588 fi;
6589
6590
6591
6592 # ------------------------------------------
6593 # Where to send job email
6594 # ------------------------------------------
6595 job_email=root@localhost
6596
6597 # Check whether --with-job-email or --without-job-email was given.
6598 if test "${with_job_email+set}" = set; then
6599   withval="$with_job_email"
6600
6601        if test "x$withval" != "xno" ; then
6602               job_email=$withval
6603        fi
6604
6605
6606 fi;
6607
6608
6609
6610 # ------------------------------------------
6611 # Where to find smtp host
6612 # ------------------------------------------
6613 smtp_host=localhost
6614
6615 # Check whether --with-smtp_host or --without-smtp_host was given.
6616 if test "${with_smtp_host+set}" = set; then
6617   withval="$with_smtp_host"
6618
6619        if test "x$withval" != "xno" ; then
6620               smtp_host=$withval
6621        fi
6622
6623
6624 fi;
6625
6626
6627
6628
6629 # ------------------------------------
6630 # Where to place pid files
6631 # ------------------------------------
6632 piddir=/var/run
6633
6634 # Check whether --with-pid-dir or --without-pid-dir was given.
6635 if test "${with_pid_dir+set}" = set; then
6636   withval="$with_pid_dir"
6637
6638         if test "x$withval" != "xno" ; then
6639             piddir=$withval
6640         fi
6641
6642
6643 fi;
6644
6645 cat >>confdefs.h <<_ACEOF
6646 #define _PATH_BACULA_PIDDIR "$piddir"
6647 _ACEOF
6648
6649
6650
6651
6652 # ------------------------------------
6653 # Where to place subsys "lock file"
6654 # ------------------------------------
6655 subsysdir=/var/run/subsys
6656
6657 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6658 if test "${with_subsys_dir+set}" = set; then
6659   withval="$with_subsys_dir"
6660
6661         if test "x$withval" != "xno" ; then
6662             subsysdir=$withval
6663         fi
6664
6665
6666 fi;
6667
6668
6669
6670
6671
6672 # ------------------------------------
6673 # Where to start assigning ports
6674 # ------------------------------------
6675 baseport=9101
6676
6677 # Check whether --with-baseport or --without-baseport was given.
6678 if test "${with_baseport+set}" = set; then
6679   withval="$with_baseport"
6680
6681         if test "x$withval" != "xno" ; then
6682              baseport=$withval
6683         fi
6684
6685
6686 fi;
6687
6688
6689 dir_port=`expr $baseport`
6690 fd_port=`expr $baseport + 1`
6691 sd_port=`expr $fd_port + 1`
6692
6693
6694
6695
6696
6697
6698 # ------------------------------------------
6699 # Generate passwords
6700 # ------------------------------------------
6701 dir_password=
6702
6703 # Check whether --with-dir-password or --without-dir-password was given.
6704 if test "${with_dir_password+set}" = set; then
6705   withval="$with_dir_password"
6706
6707        if test "x$withval" != "xno" ; then
6708            dir_password=$withval
6709        fi
6710
6711
6712 fi;
6713
6714 if test "x$dir_password" = "x" ; then
6715    if test "x$OPENSSL" = "xnone" ; then
6716 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6717       key=`autoconf/randpass 33`
6718    else
6719       key=`openssl rand -base64 33`
6720    fi
6721    dir_password=$key
6722 fi
6723
6724 fd_password=
6725
6726 # Check whether --with-fd-password or --without-fd-password was given.
6727 if test "${with_fd_password+set}" = set; then
6728   withval="$with_fd_password"
6729
6730        if test "x$withval" != "xno" ; then
6731            fd_password=$withval
6732        fi
6733
6734
6735 fi;
6736
6737 if test "x$fd_password" = "x" ; then
6738    if test "x$OPENSSL" = "xnone" ; then
6739 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6740       key=`autoconf/randpass 37`
6741    else
6742       key=`openssl rand -base64 33`
6743    fi
6744    fd_password=$key
6745 fi
6746
6747 sd_password=
6748
6749 # Check whether --with-sd-password or --without-sd-password was given.
6750 if test "${with_sd_password+set}" = set; then
6751   withval="$with_sd_password"
6752
6753        if test "x$withval" != "xno" ; then
6754            sd_password=$withval
6755        fi
6756
6757
6758 fi;
6759
6760 if test "x$sd_password" = "x" ; then
6761    if test "x$OPENSSL" = "xnone" ; then
6762 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6763       key=`autoconf/randpass 41`
6764    else
6765       key=`openssl rand -base64 33`
6766    fi
6767    sd_password=$key
6768 fi
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778 # ------------------------------------------------
6779 # Bacula check for various SQL database engines
6780 # ------------------------------------------------
6781
6782 db_found=no
6783 echo "$as_me:$LINENO: checking for MySQL support" >&5
6784 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6785
6786 # Check whether --with-mysql or --without-mysql was given.
6787 if test "${with_mysql+set}" = set; then
6788   withval="$with_mysql"
6789
6790   if test "$withval" != "no"; then
6791         if test "$withval" = "yes"; then
6792                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6793                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6794                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6795                         MYSQL_BINDIR=/usr/local/mysql/bin
6796                 elif test -f /usr/include/mysql/mysql.h; then
6797                         MYSQL_INCDIR=/usr/include/mysql
6798                         MYSQL_LIBDIR=/usr/lib/mysql
6799                         MYSQL_BINDIR=/usr/bin
6800                 elif test -f /usr/include/mysql.h; then
6801                         MYSQL_INCDIR=/usr/include
6802                         MYSQL_LIBDIR=/usr/lib
6803                         MYSQL_BINDIR=/usr/bin
6804                 elif test -f /usr/local/include/mysql/mysql.h; then
6805                         MYSQL_INCDIR=/usr/local/include/mysql
6806                         MYSQL_LIBDIR=/usr/local/lib/mysql
6807                         MYSQL_BINDIR=/usr/local/bin
6808                 elif test -f /usr/local/include/mysql.h; then
6809                         MYSQL_INCDIR=/usr/local/include
6810                         MYSQL_LIBDIR=/usr/local/lib
6811                         MYSQL_BINDIR=/usr/local/bin
6812                 else
6813                    echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6
6815                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6816 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6817    { (exit 1); exit 1; }; }
6818                 fi
6819         else
6820                 if test -f $withval/include/mysql/mysql.h; then
6821                         MYSQL_INCDIR=$withval/include/mysql
6822                         MYSQL_LIBDIR=$withval/lib/mysql
6823                         MYSQL_BINDIR=$withval/bin
6824                 elif test -f $withval/include/mysql.h; then
6825                         MYSQL_INCDIR=$withval/include
6826                         MYSQL_LIBDIR=$withval/lib
6827                         MYSQL_BINDIR=$withval/bin
6828                 else
6829                    echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6
6831                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6832 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6833    { (exit 1); exit 1; }; }
6834                 fi
6835         fi
6836     SQL_INCLUDE=-I$MYSQL_INCDIR
6837     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6838     SQL_BINDIR=$MYSQL_BINDIR
6839
6840     cat >>confdefs.h <<\_ACEOF
6841 #define HAVE_MYSQL 1
6842 _ACEOF
6843
6844     echo "$as_me:$LINENO: result: yes" >&5
6845 echo "${ECHO_T}yes" >&6
6846     db_found=yes
6847     support_mysql=yes
6848     db_name=MySQL
6849     DB_NAME=mysql
6850
6851   else
6852         echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6
6854   fi
6855
6856 else
6857
6858     echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6860
6861 fi;
6862
6863
6864 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6865 if test "${with_embedded_mysql+set}" = set; then
6866   withval="$with_embedded_mysql"
6867
6868   if test "$withval" != "no"; then
6869         if test "$withval" = "yes"; then
6870                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6871                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6872                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6873                         MYSQL_BINDIR=/usr/local/mysql/bin
6874                 elif test -f /usr/include/mysql/mysql.h; then
6875                         MYSQL_INCDIR=/usr/include/mysql
6876                         MYSQL_LIBDIR=/usr/lib/mysql
6877                         MYSQL_BINDIR=/usr/bin
6878                 elif test -f /usr/include/mysql.h; then
6879                         MYSQL_INCDIR=/usr/include
6880                         MYSQL_LIBDIR=/usr/lib
6881                         MYSQL_BINDIR=/usr/bin
6882                 elif test -f /usr/local/include/mysql/mysql.h; then
6883                         MYSQL_INCDIR=/usr/local/include/mysql
6884                         MYSQL_LIBDIR=/usr/local/lib/mysql
6885                         MYSQL_BINDIR=/usr/local/bin
6886                 elif test -f /usr/local/include/mysql.h; then
6887                         MYSQL_INCDIR=/usr/local/include
6888                         MYSQL_LIBDIR=/usr/local/lib
6889                         MYSQL_BINDIR=/usr/local/bin
6890                 else
6891                    echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6
6893                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6894 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6895    { (exit 1); exit 1; }; }
6896                 fi
6897         else
6898                 if test -f $withval/include/mysql/mysql.h; then
6899                         MYSQL_INCDIR=$withval/include/mysql
6900                         MYSQL_LIBDIR=$withval/lib/mysql
6901                         MYSQL_BINDIR=$withval/bin
6902                 elif test -f $withval/include/mysql.h; then
6903                         MYSQL_INCDIR=$withval/include
6904                         MYSQL_LIBDIR=$withval/lib
6905                         MYSQL_BINDIR=$withval/bin
6906                 else
6907                    echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6
6909                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6910 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6911    { (exit 1); exit 1; }; }
6912                 fi
6913         fi
6914     SQL_INCLUDE=-I$MYSQL_INCDIR
6915     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6916     SQL_BINDIR=$MYSQL_BINDIR
6917
6918     cat >>confdefs.h <<\_ACEOF
6919 #define HAVE_MYSQL 1
6920 _ACEOF
6921
6922     cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_EMBEDDED_MYSQL 1
6924 _ACEOF
6925
6926     echo "$as_me:$LINENO: result: yes" >&5
6927 echo "${ECHO_T}yes" >&6
6928     db_found=yes
6929     support_mysql=yes
6930     db_name=MySQL
6931     DB_NAME=mysql
6932
6933   else
6934         echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6936   fi
6937
6938 else
6939
6940   echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6
6942
6943 fi;
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953 # ------------------------------------------------
6954 # Bacula check for various SQL database engines
6955 # ------------------------------------------------
6956
6957 db_found=no
6958 echo "$as_me:$LINENO: checking for SQLite support" >&5
6959 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6960
6961 # Check whether --with-sqlite or --without-sqlite was given.
6962 if test "${with_sqlite+set}" = set; then
6963   withval="$with_sqlite"
6964
6965   if test "$withval" != "no"; then
6966         if test "$withval" = "yes"; then
6967                 if test -f /usr/local/include/sqlite.h; then
6968                         SQLITE_INCDIR=/usr/local/include
6969                         SQLITE_LIBDIR=/usr/local/lib
6970                         SQLITE_BINDIR=/usr/local/bin
6971                 elif test -f /usr/include/sqlite.h; then
6972                         SQLITE_INCDIR=/usr/include
6973                         SQLITE_LIBDIR=/usr/lib
6974                         SQLITE_BINDIR=/usr/bin
6975                 else
6976                    echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6978                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6979 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6980    { (exit 1); exit 1; }; }
6981                 fi
6982         else
6983                 if test -f $withval/sqlite.h; then
6984                         SQLITE_INCDIR=$withval
6985                         SQLITE_LIBDIR=$withval
6986                         SQLITE_BINDIR=$withval
6987                 else
6988                    echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6
6990                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6991 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6992    { (exit 1); exit 1; }; }
6993                 fi
6994         fi
6995     SQL_INCLUDE=-I$SQLITE_INCDIR
6996     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6997     SQL_BINDIR=$SQLITE_BINDIR
6998
6999     cat >>confdefs.h <<\_ACEOF
7000 #define HAVE_SQLITE 1
7001 _ACEOF
7002
7003     echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6
7005     db_found=yes
7006     support_sqlite=yes
7007     db_name=SQLite
7008     DB_NAME=sqlite
7009
7010   else
7011         echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6
7013   fi
7014
7015 else
7016
7017   echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6
7019
7020 fi;
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030 cat >>confdefs.h <<\_ACEOF
7031 #define PROTOTYPES 1
7032 _ACEOF
7033
7034
7035 if test -z "$CFLAGS"; then
7036     if test -z "$CCOPTS"; then
7037         CCOPTS='-g -O2'
7038     fi
7039     CFLAGS="$CCOPTS"
7040 fi
7041
7042
7043
7044
7045 largefile_support="no"
7046
7047    # Check whether --enable-largefile or --disable-largefile was given.
7048 if test "${enable_largefile+set}" = set; then
7049   enableval="$enable_largefile"
7050
7051 fi;
7052    if test "$enable_largefile" != no; then
7053      if test -n "$ac_tool_prefix"; then
7054   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7056 echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7058 if test "${ac_cv_prog_GETCONF+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   if test -n "$GETCONF"; then
7062   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077
7078 fi
7079 fi
7080 GETCONF=$ac_cv_prog_GETCONF
7081 if test -n "$GETCONF"; then
7082   echo "$as_me:$LINENO: result: $GETCONF" >&5
7083 echo "${ECHO_T}$GETCONF" >&6
7084 else
7085   echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7087 fi
7088
7089 fi
7090 if test -z "$ac_cv_prog_GETCONF"; then
7091   ac_ct_GETCONF=$GETCONF
7092   # Extract the first word of "getconf", so it can be a program name with args.
7093 set dummy getconf; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   if test -n "$ac_ct_GETCONF"; then
7100   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109     ac_cv_prog_ac_ct_GETCONF="getconf"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115
7116 fi
7117 fi
7118 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7119 if test -n "$ac_ct_GETCONF"; then
7120   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7121 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7122 else
7123   echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7125 fi
7126
7127   GETCONF=$ac_ct_GETCONF
7128 else
7129   GETCONF="$ac_cv_prog_GETCONF"
7130 fi
7131
7132      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7133 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7134 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7138         ac_cv_sys_largefile_CFLAGS=no
7139         case "$host_os" in
7140            # IRIX 6.2 and later require cc -n32.
7141            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7142              if test "$GCC" != yes; then
7143                ac_cv_sys_largefile_CFLAGS=-n32
7144              fi
7145              ac_save_CC="$CC"
7146              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7147              cat >conftest.$ac_ext <<_ACEOF
7148 #line $LINENO "configure"
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154
7155 int
7156 main ()
7157 {
7158
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165   (eval $ac_link) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } &&
7169          { ac_try='test -s conftest$ac_exeext'
7170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; }; then
7175   :
7176 else
7177   echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ac_cv_sys_largefile_CFLAGS=no
7181 fi
7182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7183              CC="$ac_save_CC"
7184            esac
7185       }
7186 fi
7187 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7188 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7189      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7190 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7191 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7195         ac_cv_sys_largefile_LDFLAGS=no
7196
7197       }
7198 fi
7199 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7200 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7201      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7202 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7203 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7207         ac_cv_sys_largefile_LIBS=no
7208
7209       }
7210 fi
7211 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7212 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7213
7214      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7215        case "$ac_flag" in
7216        no) ;;
7217        -D_FILE_OFFSET_BITS=*) ;;
7218        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7219        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7220        -D?* | -I?*)
7221          case "$ac_flag" in
7222    no) ;;
7223    ?*)
7224      case "$CPPFLAGS" in
7225      '') CPPFLAGS="$ac_flag" ;;
7226      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7227      esac ;;
7228    esac ;;
7229        *)
7230          case "$ac_flag" in
7231    no) ;;
7232    ?*)
7233      case "$CFLAGS" in
7234      '') CFLAGS="$ac_flag" ;;
7235      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7236      esac ;;
7237    esac ;;
7238        esac
7239      done
7240      case "$ac_cv_sys_largefile_LDFLAGS" in
7241    no) ;;
7242    ?*)
7243      case "$LDFLAGS" in
7244      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7245      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7246      esac ;;
7247    esac
7248      case "$ac_cv_sys_largefile_LIBS" in
7249    no) ;;
7250    ?*)
7251      case "$LIBS" in
7252      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7253      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7254      esac ;;
7255    esac
7256      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7257 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7258 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261   ac_cv_sys_file_offset_bits=no
7262       case "$host_os" in
7263         # HP-UX 10.20 and later
7264         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7265           ac_cv_sys_file_offset_bits=64 ;;
7266         esac
7267       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7268         case "$ac_flag" in
7269         -D_FILE_OFFSET_BITS)
7270           ac_cv_sys_file_offset_bits=1 ;;
7271         -D_FILE_OFFSET_BITS=*)
7272           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7273         esac
7274       done
7275
7276 fi
7277 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7278 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7279    if test "$ac_cv_sys_file_offset_bits" != no; then
7280
7281 cat >>confdefs.h <<_ACEOF
7282 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7283 _ACEOF
7284
7285    fi
7286      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7287 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7288 if test "${ac_cv_sys_largefile_source+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   ac_cv_sys_largefile_source=no
7292       case "$host_os" in
7293         # HP-UX 10.20 and later
7294         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7295           ac_cv_sys_largefile_source=1 ;;
7296         esac
7297       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7298         case "$ac_flag" in
7299         -D_LARGEFILE_SOURCE)
7300           ac_cv_sys_largefile_source=1 ;;
7301         -D_LARGEFILE_SOURCE=*)
7302           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7303         esac
7304       done
7305
7306 fi
7307 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7308 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7309    if test "$ac_cv_sys_largefile_source" != no; then
7310
7311 cat >>confdefs.h <<_ACEOF
7312 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7313 _ACEOF
7314
7315    fi
7316      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7317 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7318 if test "${ac_cv_sys_large_files+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   ac_cv_sys_large_files=no
7322       case "$host_os" in
7323         # AIX 4.2 and later
7324         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7325           ac_cv_sys_large_files=1 ;;
7326         esac
7327       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7328         case "$ac_flag" in
7329         -D_LARGE_FILES)
7330           ac_cv_sys_large_files=1 ;;
7331         -D_LARGE_FILES=*)
7332           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7333         esac
7334       done
7335
7336 fi
7337 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7338 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7339    if test "$ac_cv_sys_large_files" != no; then
7340
7341 cat >>confdefs.h <<_ACEOF
7342 #define _LARGE_FILES $ac_cv_sys_large_files
7343 _ACEOF
7344
7345    fi
7346    fi
7347
7348
7349
7350 echo "$as_me:$LINENO: checking for X" >&5
7351 echo $ECHO_N "checking for X... $ECHO_C" >&6
7352
7353
7354 # Check whether --with-x or --without-x was given.
7355 if test "${with_x+set}" = set; then
7356   withval="$with_x"
7357
7358 fi;
7359 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7360 if test "x$with_x" = xno; then
7361   # The user explicitly disabled X.
7362   have_x=disabled
7363 else
7364   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7365     # Both variables are already set.
7366     have_x=yes
7367   else
7368     if test "${ac_cv_have_x+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   # One or both of the vars are not set, and there is no cached value.
7372 ac_x_includes=no ac_x_libraries=no
7373 rm -fr conftest.dir
7374 if mkdir conftest.dir; then
7375   cd conftest.dir
7376   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7377   cat >Imakefile <<'_ACEOF'
7378 acfindx:
7379         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7380 _ACEOF
7381   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7382     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7383     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7384     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7385     for ac_extension in a so sl; do
7386       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7387          test -f $ac_im_libdir/libX11.$ac_extension; then
7388         ac_im_usrlibdir=$ac_im_libdir; break
7389       fi
7390     done
7391     # Screen out bogus values from the imake configuration.  They are
7392     # bogus both because they are the default anyway, and because
7393     # using them would break gcc on systems where it needs fixed includes.
7394     case $ac_im_incroot in
7395         /usr/include) ;;
7396         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7397     esac
7398     case $ac_im_usrlibdir in
7399         /usr/lib | /lib) ;;
7400         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7401     esac
7402   fi
7403   cd ..
7404   rm -fr conftest.dir
7405 fi
7406
7407 # Standard set of common directories for X headers.
7408 # Check X11 before X11Rn because it is often a symlink to the current release.
7409 ac_x_header_dirs='
7410 /usr/X11/include
7411 /usr/X11R6/include
7412 /usr/X11R5/include
7413 /usr/X11R4/include
7414
7415 /usr/include/X11
7416 /usr/include/X11R6
7417 /usr/include/X11R5
7418 /usr/include/X11R4
7419
7420 /usr/local/X11/include
7421 /usr/local/X11R6/include
7422 /usr/local/X11R5/include
7423 /usr/local/X11R4/include
7424
7425 /usr/local/include/X11
7426 /usr/local/include/X11R6
7427 /usr/local/include/X11R5
7428 /usr/local/include/X11R4
7429
7430 /usr/X386/include
7431 /usr/x386/include
7432 /usr/XFree86/include/X11
7433
7434 /usr/include
7435 /usr/local/include
7436 /usr/unsupported/include
7437 /usr/athena/include
7438 /usr/local/x11r5/include
7439 /usr/lpp/Xamples/include
7440
7441 /usr/openwin/include
7442 /usr/openwin/share/include'
7443
7444 if test "$ac_x_includes" = no; then
7445   # Guess where to find include files, by looking for Intrinsic.h.
7446   # First, try using that file with no special directory specified.
7447   cat >conftest.$ac_ext <<_ACEOF
7448 #line $LINENO "configure"
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 #include <X11/Intrinsic.h>
7455 _ACEOF
7456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7458   ac_status=$?
7459   grep -v '^ *+' conftest.er1 >conftest.err
7460   rm -f conftest.er1
7461   cat conftest.err >&5
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); } >/dev/null; then
7464   if test -s conftest.err; then
7465     ac_cpp_err=$ac_c_preproc_warn_flag
7466   else
7467     ac_cpp_err=
7468   fi
7469 else
7470   ac_cpp_err=yes
7471 fi
7472 if test -z "$ac_cpp_err"; then
7473   # We can compile using X headers with no special include directory.
7474 ac_x_includes=
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479   for ac_dir in $ac_x_header_dirs; do
7480   if test -r "$ac_dir/X11/Intrinsic.h"; then
7481     ac_x_includes=$ac_dir
7482     break
7483   fi
7484 done
7485 fi
7486 rm -f conftest.err conftest.$ac_ext
7487 fi # $ac_x_includes = no
7488
7489 if test "$ac_x_libraries" = no; then
7490   # Check for the libraries.
7491   # See if we find them without any special options.
7492   # Don't add to $LIBS permanently.
7493   ac_save_LIBS=$LIBS
7494   LIBS="-lXt $LIBS"
7495   cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502 #include <X11/Intrinsic.h>
7503 int
7504 main ()
7505 {
7506 XtMalloc (0)
7507   ;
7508   return 0;
7509 }
7510 _ACEOF
7511 rm -f conftest.$ac_objext conftest$ac_exeext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7513   (eval $ac_link) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -s conftest$ac_exeext'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   LIBS=$ac_save_LIBS
7524 # We can link X programs with no special library path.
7525 ac_x_libraries=
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 LIBS=$ac_save_LIBS
7531 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7532 do
7533   # Don't even attempt the hair of trying to link an X program!
7534   for ac_extension in a so sl; do
7535     if test -r $ac_dir/libXt.$ac_extension; then
7536       ac_x_libraries=$ac_dir
7537       break 2
7538     fi
7539   done
7540 done
7541 fi
7542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7543 fi # $ac_x_libraries = no
7544
7545 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7546   # Didn't find X anywhere.  Cache the known absence of X.
7547   ac_cv_have_x="have_x=no"
7548 else
7549   # Record where we found X for the cache.
7550   ac_cv_have_x="have_x=yes \
7551                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7552 fi
7553 fi
7554
7555   fi
7556   eval "$ac_cv_have_x"
7557 fi # $with_x != no
7558
7559 if test "$have_x" != yes; then
7560   echo "$as_me:$LINENO: result: $have_x" >&5
7561 echo "${ECHO_T}$have_x" >&6
7562   no_x=yes
7563 else
7564   # If each of the values was on the command line, it overrides each guess.
7565   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7566   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7567   # Update the cache value to reflect the command line values.
7568   ac_cv_have_x="have_x=yes \
7569                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7570   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7571 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7572 fi
7573
7574 if test "$no_x" = yes; then
7575   # Not all programs may use this symbol, but it does not hurt to define it.
7576
7577 cat >>confdefs.h <<\_ACEOF
7578 #define X_DISPLAY_MISSING 1
7579 _ACEOF
7580
7581   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7582 else
7583   if test -n "$x_includes"; then
7584     X_CFLAGS="$X_CFLAGS -I$x_includes"
7585   fi
7586
7587   # It would also be nice to do this for all -L options, not just this one.
7588   if test -n "$x_libraries"; then
7589     X_LIBS="$X_LIBS -L$x_libraries"
7590     # For Solaris; some versions of Sun CC require a space after -R and
7591     # others require no space.  Words are not sufficient . . . .
7592     case `(uname -sr) 2>/dev/null` in
7593     "SunOS 5"*)
7594       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7595 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7596       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
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   ac_R_nospace=yes
7626 else
7627   echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 ac_R_nospace=no
7631 fi
7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7633       if test $ac_R_nospace = yes; then
7634         echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6
7636         X_LIBS="$X_LIBS -R$x_libraries"
7637       else
7638         LIBS="$ac_xsave_LIBS -R $x_libraries"
7639         cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646
7647 int
7648 main ()
7649 {
7650
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 rm -f conftest.$ac_objext conftest$ac_exeext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7657   (eval $ac_link) 2>&5
7658   ac_status=$?
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); } &&
7661          { ac_try='test -s conftest$ac_exeext'
7662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663   (eval $ac_try) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); }; }; then
7667   ac_R_space=yes
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672 ac_R_space=no
7673 fi
7674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7675         if test $ac_R_space = yes; then
7676           echo "$as_me:$LINENO: result: yes" >&5
7677 echo "${ECHO_T}yes" >&6
7678           X_LIBS="$X_LIBS -R $x_libraries"
7679         else
7680           echo "$as_me:$LINENO: result: neither works" >&5
7681 echo "${ECHO_T}neither works" >&6
7682         fi
7683       fi
7684       LIBS=$ac_xsave_LIBS
7685     esac
7686   fi
7687
7688   # Check for system-dependent libraries X programs must link with.
7689   # Do this before checking for the system-independent R6 libraries
7690   # (-lICE), since we may need -lsocket or whatever for X linking.
7691
7692   if test "$ISC" = yes; then
7693     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7694   else
7695     # Martyn Johnson says this is needed for Ultrix, if the X
7696     # libraries were built with DECnet support.  And Karl Berry says
7697     # the Alpha needs dnet_stub (dnet does not exist).
7698     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7699     cat >conftest.$ac_ext <<_ACEOF
7700 #line $LINENO "configure"
7701 /* confdefs.h.  */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h.  */
7706
7707 /* Override any gcc2 internal prototype to avoid an error.  */
7708 #ifdef __cplusplus
7709 extern "C"
7710 #endif
7711 /* We use char because int might match the return type of a gcc2
7712    builtin and then its argument prototype would still apply.  */
7713 char XOpenDisplay ();
7714 int
7715 main ()
7716 {
7717 XOpenDisplay ();
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724   (eval $ac_link) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -s conftest$ac_exeext'
7729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; }; then
7734   :
7735 else
7736   echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7740 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7741 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   ac_check_lib_save_LIBS=$LIBS
7745 LIBS="-ldnet  $LIBS"
7746 cat >conftest.$ac_ext <<_ACEOF
7747 #line $LINENO "configure"
7748 /* confdefs.h.  */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h.  */
7753
7754 /* Override any gcc2 internal prototype to avoid an error.  */
7755 #ifdef __cplusplus
7756 extern "C"
7757 #endif
7758 /* We use char because int might match the return type of a gcc2
7759    builtin and then its argument prototype would still apply.  */
7760 char dnet_ntoa ();
7761 int
7762 main ()
7763 {
7764 dnet_ntoa ();
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771   (eval $ac_link) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } &&
7775          { ac_try='test -s conftest$ac_exeext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   ac_cv_lib_dnet_dnet_ntoa=yes
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_cv_lib_dnet_dnet_ntoa=no
7787 fi
7788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7789 LIBS=$ac_check_lib_save_LIBS
7790 fi
7791 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7792 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7793 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7794   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7795 fi
7796
7797     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7798       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7799 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7800 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-ldnet_stub  $LIBS"
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 /* confdefs.h.  */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h.  */
7812
7813 /* Override any gcc2 internal prototype to avoid an error.  */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 /* We use char because int might match the return type of a gcc2
7818    builtin and then its argument prototype would still apply.  */
7819 char dnet_ntoa ();
7820 int
7821 main ()
7822 {
7823 dnet_ntoa ();
7824   ;
7825   return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830   (eval $ac_link) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 ac_cv_lib_dnet_stub_dnet_ntoa=no
7846 fi
7847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7849 fi
7850 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7851 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7852 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7853   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7854 fi
7855
7856     fi
7857 fi
7858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7859     LIBS="$ac_xsave_LIBS"
7860
7861     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7862     # to get the SysV transport functions.
7863     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7864     # needs -lnsl.
7865     # The nsl library prevents programs from opening the X display
7866     # on Irix 5.2, according to T.E. Dickey.
7867     # The functions gethostbyname, getservbyname, and inet_addr are
7868     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7869     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7870 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7871 if test "${ac_cv_func_gethostbyname+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   cat >conftest.$ac_ext <<_ACEOF
7875 #line $LINENO "configure"
7876 /* confdefs.h.  */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h.  */
7881 /* System header to define __stub macros and hopefully few prototypes,
7882     which can conflict with char gethostbyname (); below.
7883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7884     <limits.h> exists even on freestanding compilers.  */
7885 #ifdef __STDC__
7886 # include <limits.h>
7887 #else
7888 # include <assert.h>
7889 #endif
7890 /* Override any gcc2 internal prototype to avoid an error.  */
7891 #ifdef __cplusplus
7892 extern "C"
7893 {
7894 #endif
7895 /* We use char because int might match the return type of a gcc2
7896    builtin and then its argument prototype would still apply.  */
7897 char gethostbyname ();
7898 /* The GNU C library defines this for functions which it implements
7899     to always fail with ENOSYS.  Some functions are actually named
7900     something starting with __ and the normal name is an alias.  */
7901 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7902 choke me
7903 #else
7904 char (*f) () = gethostbyname;
7905 #endif
7906 #ifdef __cplusplus
7907 }
7908 #endif
7909
7910 int
7911 main ()
7912 {
7913 return f != gethostbyname;
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920   (eval $ac_link) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } &&
7924          { ac_try='test -s conftest$ac_exeext'
7925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926   (eval $ac_try) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930   ac_cv_func_gethostbyname=yes
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 ac_cv_func_gethostbyname=no
7936 fi
7937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7938 fi
7939 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7940 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7941
7942     if test $ac_cv_func_gethostbyname = no; then
7943       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7944 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7945 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lnsl  $LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 #line $LINENO "configure"
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957
7958 /* Override any gcc2 internal prototype to avoid an error.  */
7959 #ifdef __cplusplus
7960 extern "C"
7961 #endif
7962 /* We use char because int might match the return type of a gcc2
7963    builtin and then its argument prototype would still apply.  */
7964 char gethostbyname ();
7965 int
7966 main ()
7967 {
7968 gethostbyname ();
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975   (eval $ac_link) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -s conftest$ac_exeext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   ac_cv_lib_nsl_gethostbyname=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_cv_lib_nsl_gethostbyname=no
7991 fi
7992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7994 fi
7995 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7996 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7997 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7998   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7999 fi
8000
8001       if test $ac_cv_lib_nsl_gethostbyname = no; then
8002         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8003 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8004 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8005   echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007   ac_check_lib_save_LIBS=$LIBS
8008 LIBS="-lbsd  $LIBS"
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8011 /* confdefs.h.  */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h.  */
8016
8017 /* Override any gcc2 internal prototype to avoid an error.  */
8018 #ifdef __cplusplus
8019 extern "C"
8020 #endif
8021 /* We use char because int might match the return type of a gcc2
8022    builtin and then its argument prototype would still apply.  */
8023 char gethostbyname ();
8024 int
8025 main ()
8026 {
8027 gethostbyname ();
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034   (eval $ac_link) 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } &&
8038          { ac_try='test -s conftest$ac_exeext'
8039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040   (eval $ac_try) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; }; then
8044   ac_cv_lib_bsd_gethostbyname=yes
8045 else
8046   echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 ac_cv_lib_bsd_gethostbyname=no
8050 fi
8051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8052 LIBS=$ac_check_lib_save_LIBS
8053 fi
8054 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8055 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8056 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8057   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8058 fi
8059
8060       fi
8061     fi
8062
8063     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8064     # socket/setsockopt and other routines are undefined under SCO ODT
8065     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8066     # on later versions), says Simon Leinen: it contains gethostby*
8067     # variants that don't use the name server (or something).  -lsocket
8068     # must be given before -lnsl if both are needed.  We assume that
8069     # if connect needs -lnsl, so does gethostbyname.
8070     echo "$as_me:$LINENO: checking for connect" >&5
8071 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8072 if test "${ac_cv_func_connect+set}" = set; then
8073   echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075   cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 /* System header to define __stub macros and hopefully few prototypes,
8083     which can conflict with char connect (); below.
8084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085     <limits.h> exists even on freestanding compilers.  */
8086 #ifdef __STDC__
8087 # include <limits.h>
8088 #else
8089 # include <assert.h>
8090 #endif
8091 /* Override any gcc2 internal prototype to avoid an error.  */
8092 #ifdef __cplusplus
8093 extern "C"
8094 {
8095 #endif
8096 /* We use char because int might match the return type of a gcc2
8097    builtin and then its argument prototype would still apply.  */
8098 char connect ();
8099 /* The GNU C library defines this for functions which it implements
8100     to always fail with ENOSYS.  Some functions are actually named
8101     something starting with __ and the normal name is an alias.  */
8102 #if defined (__stub_connect) || defined (__stub___connect)
8103 choke me
8104 #else
8105 char (*f) () = connect;
8106 #endif
8107 #ifdef __cplusplus
8108 }
8109 #endif
8110
8111 int
8112 main ()
8113 {
8114 return f != connect;
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -s conftest$ac_exeext'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   ac_cv_func_connect=yes
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 ac_cv_func_connect=no
8137 fi
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 fi
8140 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8141 echo "${ECHO_T}$ac_cv_func_connect" >&6
8142
8143     if test $ac_cv_func_connect = no; then
8144       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8145 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8146 if test "${ac_cv_lib_socket_connect+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   ac_check_lib_save_LIBS=$LIBS
8150 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8151 cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158
8159 /* Override any gcc2 internal prototype to avoid an error.  */
8160 #ifdef __cplusplus
8161 extern "C"
8162 #endif
8163 /* We use char because int might match the return type of a gcc2
8164    builtin and then its argument prototype would still apply.  */
8165 char connect ();
8166 int
8167 main ()
8168 {
8169 connect ();
8170   ;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176   (eval $ac_link) 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } &&
8180          { ac_try='test -s conftest$ac_exeext'
8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182   (eval $ac_try) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   ac_cv_lib_socket_connect=yes
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 ac_cv_lib_socket_connect=no
8192 fi
8193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8194 LIBS=$ac_check_lib_save_LIBS
8195 fi
8196 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8197 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8198 if test $ac_cv_lib_socket_connect = yes; then
8199   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8200 fi
8201
8202     fi
8203
8204     # Guillermo Gomez says -lposix is necessary on A/UX.
8205     echo "$as_me:$LINENO: checking for remove" >&5
8206 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8207 if test "${ac_cv_func_remove+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217 /* System header to define __stub macros and hopefully few prototypes,
8218     which can conflict with char remove (); below.
8219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220     <limits.h> exists even on freestanding compilers.  */
8221 #ifdef __STDC__
8222 # include <limits.h>
8223 #else
8224 # include <assert.h>
8225 #endif
8226 /* Override any gcc2 internal prototype to avoid an error.  */
8227 #ifdef __cplusplus
8228 extern "C"
8229 {
8230 #endif
8231 /* We use char because int might match the return type of a gcc2
8232    builtin and then its argument prototype would still apply.  */
8233 char remove ();
8234 /* The GNU C library defines this for functions which it implements
8235     to always fail with ENOSYS.  Some functions are actually named
8236     something starting with __ and the normal name is an alias.  */
8237 #if defined (__stub_remove) || defined (__stub___remove)
8238 choke me
8239 #else
8240 char (*f) () = remove;
8241 #endif
8242 #ifdef __cplusplus
8243 }
8244 #endif
8245
8246 int
8247 main ()
8248 {
8249 return f != remove;
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256   (eval $ac_link) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); } &&
8260          { ac_try='test -s conftest$ac_exeext'
8261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262   (eval $ac_try) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; }; then
8266   ac_cv_func_remove=yes
8267 else
8268   echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 ac_cv_func_remove=no
8272 fi
8273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8274 fi
8275 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8276 echo "${ECHO_T}$ac_cv_func_remove" >&6
8277
8278     if test $ac_cv_func_remove = no; then
8279       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8280 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8281 if test "${ac_cv_lib_posix_remove+set}" = set; then
8282   echo $ECHO_N "(cached) $ECHO_C" >&6
8283 else
8284   ac_check_lib_save_LIBS=$LIBS
8285 LIBS="-lposix  $LIBS"
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293
8294 /* Override any gcc2 internal prototype to avoid an error.  */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 /* We use char because int might match the return type of a gcc2
8299    builtin and then its argument prototype would still apply.  */
8300 char remove ();
8301 int
8302 main ()
8303 {
8304 remove ();
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311   (eval $ac_link) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } &&
8315          { ac_try='test -s conftest$ac_exeext'
8316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317   (eval $ac_try) 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); }; }; then
8321   ac_cv_lib_posix_remove=yes
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ac_cv_lib_posix_remove=no
8327 fi
8328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8329 LIBS=$ac_check_lib_save_LIBS
8330 fi
8331 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8332 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8333 if test $ac_cv_lib_posix_remove = yes; then
8334   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8335 fi
8336
8337     fi
8338
8339     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8340     echo "$as_me:$LINENO: checking for shmat" >&5
8341 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8342 if test "${ac_cv_func_shmat+set}" = set; then
8343   echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345   cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8347 /* confdefs.h.  */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h.  */
8352 /* System header to define __stub macros and hopefully few prototypes,
8353     which can conflict with char shmat (); below.
8354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355     <limits.h> exists even on freestanding compilers.  */
8356 #ifdef __STDC__
8357 # include <limits.h>
8358 #else
8359 # include <assert.h>
8360 #endif
8361 /* Override any gcc2 internal prototype to avoid an error.  */
8362 #ifdef __cplusplus
8363 extern "C"
8364 {
8365 #endif
8366 /* We use char because int might match the return type of a gcc2
8367    builtin and then its argument prototype would still apply.  */
8368 char shmat ();
8369 /* The GNU C library defines this for functions which it implements
8370     to always fail with ENOSYS.  Some functions are actually named
8371     something starting with __ and the normal name is an alias.  */
8372 #if defined (__stub_shmat) || defined (__stub___shmat)
8373 choke me
8374 #else
8375 char (*f) () = shmat;
8376 #endif
8377 #ifdef __cplusplus
8378 }
8379 #endif
8380
8381 int
8382 main ()
8383 {
8384 return f != shmat;
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391   (eval $ac_link) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -s conftest$ac_exeext'
8396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397   (eval $ac_try) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; }; then
8401   ac_cv_func_shmat=yes
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 ac_cv_func_shmat=no
8407 fi
8408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8409 fi
8410 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8411 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8412
8413     if test $ac_cv_func_shmat = no; then
8414       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8415 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8416 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   ac_check_lib_save_LIBS=$LIBS
8420 LIBS="-lipc  $LIBS"
8421 cat >conftest.$ac_ext <<_ACEOF
8422 #line $LINENO "configure"
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428
8429 /* Override any gcc2 internal prototype to avoid an error.  */
8430 #ifdef __cplusplus
8431 extern "C"
8432 #endif
8433 /* We use char because int might match the return type of a gcc2
8434    builtin and then its argument prototype would still apply.  */
8435 char shmat ();
8436 int
8437 main ()
8438 {
8439 shmat ();
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446   (eval $ac_link) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -s conftest$ac_exeext'
8451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452   (eval $ac_try) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; }; then
8456   ac_cv_lib_ipc_shmat=yes
8457 else
8458   echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461 ac_cv_lib_ipc_shmat=no
8462 fi
8463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8464 LIBS=$ac_check_lib_save_LIBS
8465 fi
8466 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8467 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8468 if test $ac_cv_lib_ipc_shmat = yes; then
8469   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8470 fi
8471
8472     fi
8473   fi
8474
8475   # Check for libraries that X11R6 Xt/Xaw programs need.
8476   ac_save_LDFLAGS=$LDFLAGS
8477   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8478   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8479   # check for ICE first), but we must link in the order -lSM -lICE or
8480   # we get undefined symbols.  So assume we have SM if we have ICE.
8481   # These have to be linked with before -lX11, unlike the other
8482   # libraries we check for below, so use a different variable.
8483   # John Interrante, Karl Berry
8484   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8485 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8486 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8492 #line $LINENO "configure"
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 /* Override any gcc2 internal prototype to avoid an error.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504    builtin and then its argument prototype would still apply.  */
8505 char IceConnectionNumber ();
8506 int
8507 main ()
8508 {
8509 IceConnectionNumber ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } &&
8520          { ac_try='test -s conftest$ac_exeext'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_lib_ICE_IceConnectionNumber=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_lib_ICE_IceConnectionNumber=no
8532 fi
8533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8534 LIBS=$ac_check_lib_save_LIBS
8535 fi
8536 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8537 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8538 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8539   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8540 fi
8541
8542   LDFLAGS=$ac_save_LDFLAGS
8543
8544 fi
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569 for ac_header in \
8570         assert.h \
8571         fcntl.h \
8572         grp.h \
8573         pwd.h \
8574         libc.h \
8575         limits.h \
8576         stdarg.h \
8577         stdlib.h \
8578         stdint.h \
8579         string.h \
8580         termios.h \
8581         unistd.h \
8582         sys/byteorder.h \
8583         sys/ioctl.h \
8584         sys/select.h \
8585         sys/sockio.h \
8586         sys/time.h \
8587         sys/socket.h \
8588         arpa/nameser.h \
8589         resolv.h \
8590         mtio.h \
8591         sys/mtio.h \
8592
8593 do
8594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8596   echo "$as_me:$LINENO: checking for $ac_header" >&5
8597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 fi
8601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8603 else
8604   # Is the header compilable?
8605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8608 #line $LINENO "configure"
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614 $ac_includes_default
8615 #include <$ac_header>
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8619   (eval $ac_compile) 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } &&
8623          { ac_try='test -s conftest.$ac_objext'
8624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625   (eval $ac_try) 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; }; then
8629   ac_header_compiler=yes
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_header_compiler=no
8635 fi
8636 rm -f conftest.$ac_objext conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8638 echo "${ECHO_T}$ac_header_compiler" >&6
8639
8640 # Is the header present?
8641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650 #include <$ac_header>
8651 _ACEOF
8652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } >/dev/null; then
8660   if test -s conftest.err; then
8661     ac_cpp_err=$ac_c_preproc_warn_flag
8662   else
8663     ac_cpp_err=
8664   fi
8665 else
8666   ac_cpp_err=yes
8667 fi
8668 if test -z "$ac_cpp_err"; then
8669   ac_header_preproc=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674   ac_header_preproc=no
8675 fi
8676 rm -f conftest.err conftest.$ac_ext
8677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678 echo "${ECHO_T}$ac_header_preproc" >&6
8679
8680 # So?  What about this header?
8681 case $ac_header_compiler:$ac_header_preproc in
8682   yes:no )
8683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687     (
8688       cat <<\_ASBOX
8689 ## ------------------------------------ ##
8690 ## Report this to bug-autoconf@gnu.org. ##
8691 ## ------------------------------------ ##
8692 _ASBOX
8693     ) |
8694       sed "s/^/$as_me: WARNING:     /" >&2
8695     ;;
8696   no:yes )
8697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8703     (
8704       cat <<\_ASBOX
8705 ## ------------------------------------ ##
8706 ## Report this to bug-autoconf@gnu.org. ##
8707 ## ------------------------------------ ##
8708 _ASBOX
8709     ) |
8710       sed "s/^/$as_me: WARNING:     /" >&2
8711     ;;
8712 esac
8713 echo "$as_me:$LINENO: checking for $ac_header" >&5
8714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716   echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718   eval "$as_ac_Header=$ac_header_preproc"
8719 fi
8720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8722
8723 fi
8724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8725   cat >>confdefs.h <<_ACEOF
8726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727 _ACEOF
8728
8729 fi
8730
8731 done
8732
8733 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8734 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8735 if test "${ac_cv_header_stdc+set}" = set; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8740 /* confdefs.h.  */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h.  */
8745 #include <stdlib.h>
8746 #include <stdarg.h>
8747 #include <string.h>
8748 #include <float.h>
8749
8750 int
8751 main ()
8752 {
8753
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760   (eval $ac_compile) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -s conftest.$ac_objext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   ac_cv_header_stdc=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_cv_header_stdc=no
8776 fi
8777 rm -f conftest.$ac_objext conftest.$ac_ext
8778
8779 if test $ac_cv_header_stdc = yes; then
8780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8781   cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788 #include <string.h>
8789
8790 _ACEOF
8791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8792   $EGREP "memchr" >/dev/null 2>&1; then
8793   :
8794 else
8795   ac_cv_header_stdc=no
8796 fi
8797 rm -f conftest*
8798
8799 fi
8800
8801 if test $ac_cv_header_stdc = yes; then
8802   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8803   cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 #include <stdlib.h>
8811
8812 _ACEOF
8813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8814   $EGREP "free" >/dev/null 2>&1; then
8815   :
8816 else
8817   ac_cv_header_stdc=no
8818 fi
8819 rm -f conftest*
8820
8821 fi
8822
8823 if test $ac_cv_header_stdc = yes; then
8824   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8825   if test "$cross_compiling" = yes; then
8826   :
8827 else
8828   cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835 #include <ctype.h>
8836 #if ((' ' & 0x0FF) == 0x020)
8837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8839 #else
8840 # define ISLOWER(c) \
8841                    (('a' <= (c) && (c) <= 'i') \
8842                      || ('j' <= (c) && (c) <= 'r') \
8843                      || ('s' <= (c) && (c) <= 'z'))
8844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8845 #endif
8846
8847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8848 int
8849 main ()
8850 {
8851   int i;
8852   for (i = 0; i < 256; i++)
8853     if (XOR (islower (i), ISLOWER (i))
8854         || toupper (i) != TOUPPER (i))
8855       exit(2);
8856   exit (0);
8857 }
8858 _ACEOF
8859 rm -f conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861   (eval $ac_link) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866   (eval $ac_try) 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; }; then
8870   :
8871 else
8872   echo "$as_me: program exited with status $ac_status" >&5
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ( exit $ac_status )
8877 ac_cv_header_stdc=no
8878 fi
8879 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 fi
8882 fi
8883 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8884 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8885 if test $ac_cv_header_stdc = yes; then
8886
8887 cat >>confdefs.h <<\_ACEOF
8888 #define STDC_HEADERS 1
8889 _ACEOF
8890
8891 fi
8892
8893 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8894 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8895 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   cat >conftest.$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905 #include <sys/types.h>
8906 int
8907 main ()
8908 {
8909 return makedev(0, 0);
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916   (eval $ac_link) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } &&
8920          { ac_try='test -s conftest$ac_exeext'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; }; then
8926   ac_cv_header_sys_types_h_makedev=yes
8927 else
8928   echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 ac_cv_header_sys_types_h_makedev=no
8932 fi
8933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8934
8935 fi
8936 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8937 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8938
8939 if test $ac_cv_header_sys_types_h_makedev = no; then
8940 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8941   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8942 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8943 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8947 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8948 else
8949   # Is the header compilable?
8950 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8951 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959 $ac_includes_default
8960 #include <sys/mkdev.h>
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964   (eval $ac_compile) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } &&
8968          { ac_try='test -s conftest.$ac_objext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_header_compiler=yes
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 ac_header_compiler=no
8980 fi
8981 rm -f conftest.$ac_objext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8983 echo "${ECHO_T}$ac_header_compiler" >&6
8984
8985 # Is the header present?
8986 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8987 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995 #include <sys/mkdev.h>
8996 _ACEOF
8997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } >/dev/null; then
9005   if test -s conftest.err; then
9006     ac_cpp_err=$ac_c_preproc_warn_flag
9007   else
9008     ac_cpp_err=
9009   fi
9010 else
9011   ac_cpp_err=yes
9012 fi
9013 if test -z "$ac_cpp_err"; then
9014   ac_header_preproc=yes
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019   ac_header_preproc=no
9020 fi
9021 rm -f conftest.err conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9023 echo "${ECHO_T}$ac_header_preproc" >&6
9024
9025 # So?  What about this header?
9026 case $ac_header_compiler:$ac_header_preproc in
9027   yes:no )
9028     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9029 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9030     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9031 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9032     (
9033       cat <<\_ASBOX
9034 ## ------------------------------------ ##
9035 ## Report this to bug-autoconf@gnu.org. ##
9036 ## ------------------------------------ ##
9037 _ASBOX
9038     ) |
9039       sed "s/^/$as_me: WARNING:     /" >&2
9040     ;;
9041   no:yes )
9042     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9048     (
9049       cat <<\_ASBOX
9050 ## ------------------------------------ ##
9051 ## Report this to bug-autoconf@gnu.org. ##
9052 ## ------------------------------------ ##
9053 _ASBOX
9054     ) |
9055       sed "s/^/$as_me: WARNING:     /" >&2
9056     ;;
9057 esac
9058 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9059 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9060 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9064 fi
9065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9066 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9067
9068 fi
9069 if test $ac_cv_header_sys_mkdev_h = yes; then
9070
9071 cat >>confdefs.h <<\_ACEOF
9072 #define MAJOR_IN_MKDEV 1
9073 _ACEOF
9074
9075 fi
9076
9077
9078
9079   if test $ac_cv_header_sys_mkdev_h = no; then
9080     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9081   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9082 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9083 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 fi
9086 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9087 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9088 else
9089   # Is the header compilable?
9090 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9091 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 $ac_includes_default
9100 #include <sys/sysmacros.h>
9101 _ACEOF
9102 rm -f conftest.$ac_objext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9104   (eval $ac_compile) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } &&
9108          { ac_try='test -s conftest.$ac_objext'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; }; then
9114   ac_header_compiler=yes
9115 else
9116   echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119 ac_header_compiler=no
9120 fi
9121 rm -f conftest.$ac_objext conftest.$ac_ext
9122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9123 echo "${ECHO_T}$ac_header_compiler" >&6
9124
9125 # Is the header present?
9126 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9127 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9128 cat >conftest.$ac_ext <<_ACEOF
9129 #line $LINENO "configure"
9130 /* confdefs.h.  */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h.  */
9135 #include <sys/sysmacros.h>
9136 _ACEOF
9137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9139   ac_status=$?
9140   grep -v '^ *+' conftest.er1 >conftest.err
9141   rm -f conftest.er1
9142   cat conftest.err >&5
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); } >/dev/null; then
9145   if test -s conftest.err; then
9146     ac_cpp_err=$ac_c_preproc_warn_flag
9147   else
9148     ac_cpp_err=
9149   fi
9150 else
9151   ac_cpp_err=yes
9152 fi
9153 if test -z "$ac_cpp_err"; then
9154   ac_header_preproc=yes
9155 else
9156   echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159   ac_header_preproc=no
9160 fi
9161 rm -f conftest.err conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9163 echo "${ECHO_T}$ac_header_preproc" >&6
9164
9165 # So?  What about this header?
9166 case $ac_header_compiler:$ac_header_preproc in
9167   yes:no )
9168     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9169 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9170     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9172     (
9173       cat <<\_ASBOX
9174 ## ------------------------------------ ##
9175 ## Report this to bug-autoconf@gnu.org. ##
9176 ## ------------------------------------ ##
9177 _ASBOX
9178     ) |
9179       sed "s/^/$as_me: WARNING:     /" >&2
9180     ;;
9181   no:yes )
9182     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9187 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9188     (
9189       cat <<\_ASBOX
9190 ## ------------------------------------ ##
9191 ## Report this to bug-autoconf@gnu.org. ##
9192 ## ------------------------------------ ##
9193 _ASBOX
9194     ) |
9195       sed "s/^/$as_me: WARNING:     /" >&2
9196     ;;
9197 esac
9198 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9199 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9200 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9204 fi
9205 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9206 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9207
9208 fi
9209 if test $ac_cv_header_sys_sysmacros_h = yes; then
9210
9211 cat >>confdefs.h <<\_ACEOF
9212 #define MAJOR_IN_SYSMACROS 1
9213 _ACEOF
9214
9215 fi
9216
9217
9218   fi
9219 fi
9220
9221
9222
9223
9224
9225
9226 ac_header_dirent=no
9227 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9228   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9229 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9230 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241 #include <sys/types.h>
9242 #include <$ac_hdr>
9243
9244 int
9245 main ()
9246 {
9247 if ((DIR *) 0)
9248 return 0;
9249   ;
9250   return 0;
9251 }
9252 _ACEOF
9253 rm -f conftest.$ac_objext
9254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255   (eval $ac_compile) 2>&5
9256   ac_status=$?
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -s conftest.$ac_objext'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; }; then
9265   eval "$as_ac_Header=yes"
9266 else
9267   echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 eval "$as_ac_Header=no"
9271 fi
9272 rm -f conftest.$ac_objext conftest.$ac_ext
9273 fi
9274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9277   cat >>confdefs.h <<_ACEOF
9278 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9279 _ACEOF
9280
9281 ac_header_dirent=$ac_hdr; break
9282 fi
9283
9284 done
9285 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9286 if test $ac_header_dirent = dirent.h; then
9287   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9289 if test "${ac_cv_search_opendir+set}" = set; then
9290   echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292   ac_func_search_save_LIBS=$LIBS
9293 ac_cv_search_opendir=no
9294 cat >conftest.$ac_ext <<_ACEOF
9295 #line $LINENO "configure"
9296 /* confdefs.h.  */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h.  */
9301
9302 /* Override any gcc2 internal prototype to avoid an error.  */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 /* We use char because int might match the return type of a gcc2
9307    builtin and then its argument prototype would still apply.  */
9308 char opendir ();
9309 int
9310 main ()
9311 {
9312 opendir ();
9313   ;
9314   return 0;
9315 }
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319   (eval $ac_link) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } &&
9323          { ac_try='test -s conftest$ac_exeext'
9324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325   (eval $ac_try) 2>&5
9326   ac_status=$?
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); }; }; then
9329   ac_cv_search_opendir="none required"
9330 else
9331   echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9333
9334 fi
9335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9336 if test "$ac_cv_search_opendir" = no; then
9337   for ac_lib in dir; do
9338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9339     cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346
9347 /* Override any gcc2 internal prototype to avoid an error.  */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 /* We use char because int might match the return type of a gcc2
9352    builtin and then its argument prototype would still apply.  */
9353 char opendir ();
9354 int
9355 main ()
9356 {
9357 opendir ();
9358   ;
9359   return 0;
9360 }
9361 _ACEOF
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9364   (eval $ac_link) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } &&
9368          { ac_try='test -s conftest$ac_exeext'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   ac_cv_search_opendir="-l$ac_lib"
9375 break
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 fi
9381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9382   done
9383 fi
9384 LIBS=$ac_func_search_save_LIBS
9385 fi
9386 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9387 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9388 if test "$ac_cv_search_opendir" != no; then
9389   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9390
9391 fi
9392
9393 else
9394   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9396 if test "${ac_cv_search_opendir+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   ac_func_search_save_LIBS=$LIBS
9400 ac_cv_search_opendir=no
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408
9409 /* Override any gcc2 internal prototype to avoid an error.  */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 /* We use char because int might match the return type of a gcc2
9414    builtin and then its argument prototype would still apply.  */
9415 char opendir ();
9416 int
9417 main ()
9418 {
9419 opendir ();
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426   (eval $ac_link) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } &&
9430          { ac_try='test -s conftest$ac_exeext'
9431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; }; then
9436   ac_cv_search_opendir="none required"
9437 else
9438   echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9440
9441 fi
9442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9443 if test "$ac_cv_search_opendir" = no; then
9444   for ac_lib in x; do
9445     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9446     cat >conftest.$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453
9454 /* Override any gcc2 internal prototype to avoid an error.  */
9455 #ifdef __cplusplus
9456 extern "C"
9457 #endif
9458 /* We use char because int might match the return type of a gcc2
9459    builtin and then its argument prototype would still apply.  */
9460 char opendir ();
9461 int
9462 main ()
9463 {
9464 opendir ();
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471   (eval $ac_link) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } &&
9475          { ac_try='test -s conftest$ac_exeext'
9476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477   (eval $ac_try) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_cv_search_opendir="-l$ac_lib"
9482 break
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 fi
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9489   done
9490 fi
9491 LIBS=$ac_func_search_save_LIBS
9492 fi
9493 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9494 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9495 if test "$ac_cv_search_opendir" != no; then
9496   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9497
9498 fi
9499
9500 fi
9501
9502 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9503 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9504 if test "${ac_cv_header_stat_broken+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   cat >conftest.$ac_ext <<_ACEOF
9508 #line $LINENO "configure"
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514 #include <sys/types.h>
9515 #include <sys/stat.h>
9516
9517 #if defined(S_ISBLK) && defined(S_IFDIR)
9518 # if S_ISBLK (S_IFDIR)
9519 You lose.
9520 # endif
9521 #endif
9522
9523 #if defined(S_ISBLK) && defined(S_IFCHR)
9524 # if S_ISBLK (S_IFCHR)
9525 You lose.
9526 # endif
9527 #endif
9528
9529 #if defined(S_ISLNK) && defined(S_IFREG)
9530 # if S_ISLNK (S_IFREG)
9531 You lose.
9532 # endif
9533 #endif
9534
9535 #if defined(S_ISSOCK) && defined(S_IFREG)
9536 # if S_ISSOCK (S_IFREG)
9537 You lose.
9538 # endif
9539 #endif
9540
9541 _ACEOF
9542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9543   $EGREP "You lose" >/dev/null 2>&1; then
9544   ac_cv_header_stat_broken=yes
9545 else
9546   ac_cv_header_stat_broken=no
9547 fi
9548 rm -f conftest*
9549
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9552 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9553 if test $ac_cv_header_stat_broken = yes; then
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define STAT_MACROS_BROKEN 1
9557 _ACEOF
9558
9559 fi
9560
9561 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9562 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9563 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 #include <sys/types.h>
9574 #include <sys/wait.h>
9575 #ifndef WEXITSTATUS
9576 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9577 #endif
9578 #ifndef WIFEXITED
9579 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9580 #endif
9581
9582 int
9583 main ()
9584 {
9585   int s;
9586   wait (&s);
9587   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9594   (eval $ac_compile) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -s conftest.$ac_objext'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; }; then
9604   ac_cv_header_sys_wait_h=yes
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 ac_cv_header_sys_wait_h=no
9610 fi
9611 rm -f conftest.$ac_objext conftest.$ac_ext
9612 fi
9613 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9614 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9615 if test $ac_cv_header_sys_wait_h = yes; then
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_SYS_WAIT_H 1
9619 _ACEOF
9620
9621 fi
9622
9623 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9625 if test "${ac_cv_header_time+set}" = set; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628   cat >conftest.$ac_ext <<_ACEOF
9629 #line $LINENO "configure"
9630 /* confdefs.h.  */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h.  */
9635 #include <sys/types.h>
9636 #include <sys/time.h>
9637 #include <time.h>
9638
9639 int
9640 main ()
9641 {
9642 if ((struct tm *) 0)
9643 return 0;
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650   (eval $ac_compile) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } &&
9654          { ac_try='test -s conftest.$ac_objext'
9655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656   (eval $ac_try) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; }; then
9660   ac_cv_header_time=yes
9661 else
9662   echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9664
9665 ac_cv_header_time=no
9666 fi
9667 rm -f conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9670 echo "${ECHO_T}$ac_cv_header_time" >&6
9671 if test $ac_cv_header_time = yes; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define TIME_WITH_SYS_TIME 1
9675 _ACEOF
9676
9677 fi
9678
9679
9680 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9681 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9682 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9683   echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685   cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692 $ac_includes_default
9693 int
9694 main ()
9695 {
9696 static struct stat ac_aggr;
9697 if (ac_aggr.st_blksize)
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   ac_cv_member_struct_stat_st_blksize=yes
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 cat >conftest.$ac_ext <<_ACEOF
9721 #line $LINENO "configure"
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 $ac_includes_default
9728 int
9729 main ()
9730 {
9731 static struct stat ac_aggr;
9732 if (sizeof ac_aggr.st_blksize)
9733 return 0;
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740   (eval $ac_compile) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -s conftest.$ac_objext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_member_struct_stat_st_blksize=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_cv_member_struct_stat_st_blksize=no
9756 fi
9757 rm -f conftest.$ac_objext conftest.$ac_ext
9758 fi
9759 rm -f conftest.$ac_objext conftest.$ac_ext
9760 fi
9761 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9763 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9764
9765 cat >>confdefs.h <<_ACEOF
9766 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9767 _ACEOF
9768
9769
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_ST_BLKSIZE 1
9772 _ACEOF
9773
9774 fi
9775
9776
9777 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9778 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9779 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9780   echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782   cat >conftest.$ac_ext <<_ACEOF
9783 #line $LINENO "configure"
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789 $ac_includes_default
9790 int
9791 main ()
9792 {
9793 static struct stat ac_aggr;
9794 if (ac_aggr.st_blocks)
9795 return 0;
9796   ;
9797   return 0;
9798 }
9799 _ACEOF
9800 rm -f conftest.$ac_objext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9802   (eval $ac_compile) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } &&
9806          { ac_try='test -s conftest.$ac_objext'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812   ac_cv_member_struct_stat_st_blocks=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 cat >conftest.$ac_ext <<_ACEOF
9818 #line $LINENO "configure"
9819 /* confdefs.h.  */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h.  */
9824 $ac_includes_default
9825 int
9826 main ()
9827 {
9828 static struct stat ac_aggr;
9829 if (sizeof ac_aggr.st_blocks)
9830 return 0;
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9837   (eval $ac_compile) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } &&
9841          { ac_try='test -s conftest.$ac_objext'
9842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843   (eval $ac_try) 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; }; then
9847   ac_cv_member_struct_stat_st_blocks=yes
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_cv_member_struct_stat_st_blocks=no
9853 fi
9854 rm -f conftest.$ac_objext conftest.$ac_ext
9855 fi
9856 rm -f conftest.$ac_objext conftest.$ac_ext
9857 fi
9858 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9859 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9860 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9861
9862 cat >>confdefs.h <<_ACEOF
9863 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9864 _ACEOF
9865
9866
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_ST_BLOCKS 1
9869 _ACEOF
9870
9871 else
9872   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9873 fi
9874
9875
9876 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9878 if test "${ac_cv_struct_tm+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 #include <sys/types.h>
9889 #include <time.h>
9890
9891 int
9892 main ()
9893 {
9894 struct tm *tp; tp->tm_sec;
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 rm -f conftest.$ac_objext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9901   (eval $ac_compile) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } &&
9905          { ac_try='test -s conftest.$ac_objext'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; }; then
9911   ac_cv_struct_tm=time.h
9912 else
9913   echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 ac_cv_struct_tm=sys/time.h
9917 fi
9918 rm -f conftest.$ac_objext conftest.$ac_ext
9919 fi
9920 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9921 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9922 if test $ac_cv_struct_tm = sys/time.h; then
9923
9924 cat >>confdefs.h <<\_ACEOF
9925 #define TM_IN_SYS_TIME 1
9926 _ACEOF
9927
9928 fi
9929
9930 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9931 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9932 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 #line $LINENO "configure"
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942 #include <sys/types.h>
9943 #include <$ac_cv_struct_tm>
9944
9945
9946 int
9947 main ()
9948 {
9949 static struct tm ac_aggr;
9950 if (ac_aggr.tm_zone)
9951 return 0;
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958   (eval $ac_compile) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -s conftest.$ac_objext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   ac_cv_member_struct_tm_tm_zone=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980 #include <sys/types.h>
9981 #include <$ac_cv_struct_tm>
9982
9983
9984 int
9985 main ()
9986 {
9987 static struct tm ac_aggr;
9988 if (sizeof ac_aggr.tm_zone)
9989 return 0;
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996   (eval $ac_compile) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); } &&
10000          { ac_try='test -s conftest.$ac_objext'
10001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002   (eval $ac_try) 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); }; }; then
10006   ac_cv_member_struct_tm_tm_zone=yes
10007 else
10008   echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_cv_member_struct_tm_tm_zone=no
10012 fi
10013 rm -f conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 rm -f conftest.$ac_objext conftest.$ac_ext
10016 fi
10017 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10018 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10019 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10020
10021 cat >>confdefs.h <<_ACEOF
10022 #define HAVE_STRUCT_TM_TM_ZONE 1
10023 _ACEOF
10024
10025
10026 fi
10027
10028 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10029
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_TM_ZONE 1
10032 _ACEOF
10033
10034 else
10035   echo "$as_me:$LINENO: checking for tzname" >&5
10036 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10037 if test "${ac_cv_var_tzname+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   cat >conftest.$ac_ext <<_ACEOF
10041 #line $LINENO "configure"
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047 #include <time.h>
10048 #ifndef tzname /* For SGI.  */
10049 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10050 #endif
10051
10052 int
10053 main ()
10054 {
10055 atoi(*tzname);
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062   (eval $ac_link) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -s conftest$ac_exeext'
10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068   (eval $ac_try) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_var_tzname=yes
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 ac_cv_var_tzname=no
10078 fi
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10080 fi
10081 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10082 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10083   if test $ac_cv_var_tzname = yes; then
10084
10085 cat >>confdefs.h <<\_ACEOF
10086 #define HAVE_TZNAME 1
10087 _ACEOF
10088
10089   fi
10090 fi
10091
10092
10093 echo "$as_me:$LINENO: checking for utime.h" >&5
10094 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10095 if test "${ba_cv_header_utime_h+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10100 /* confdefs.h.  */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h.  */
10105
10106 #include <sys/types.h>
10107 #include <utime.h>
10108 int
10109 main ()
10110 {
10111 struct utimbuf foo
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118   (eval $ac_compile) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -s conftest.$ac_objext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ba_cv_header_utime_h=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ba_cv_header_utime_h=no
10134 fi
10135 rm -f conftest.$ac_objext conftest.$ac_ext
10136 fi
10137 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10138 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10139 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10140 #define HAVE_UTIME_H 1
10141 _ACEOF
10142
10143
10144 echo "$as_me:$LINENO: checking for socklen_t" >&5
10145 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10146 if test "${ba_cv_header_socklen_t+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156
10157 #include <sys/types.h>
10158 #include <sys/socket.h>
10159 int
10160 main ()
10161 {
10162 socklen_t x
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169   (eval $ac_compile) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } &&
10173          { ac_try='test -s conftest.$ac_objext'
10174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175   (eval $ac_try) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   ba_cv_header_socklen_t=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ba_cv_header_socklen_t=no
10185 fi
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10189 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10190 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_SOCKLEN_T 1
10192 _ACEOF
10193
10194
10195 echo "$as_me:$LINENO: checking for bigendian" >&5
10196 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10197 if test "${ba_cv_bigendian+set}" = set; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   if test "$cross_compiling" = yes; then
10201   ba_cv_bigendian=no
10202 else
10203   cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10205 /* confdefs.h.  */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h.  */
10210 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10211 _ACEOF
10212 rm -f conftest$ac_exeext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214   (eval $ac_link) 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219   (eval $ac_try) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; }; then
10223   ba_cv_bigendian=yes
10224 else
10225   echo "$as_me: program exited with status $ac_status" >&5
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ( exit $ac_status )
10230 ba_cv_bigendian=no
10231 fi
10232 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 fi
10235 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10236 echo "${ECHO_T}$ba_cv_bigendian" >&6
10237 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_BIGENDIAN 1
10239 _ACEOF
10240
10241
10242
10243 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10244 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10245 if test "${ac_cv_c_const+set}" = set; then
10246   echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248   cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10250 /* confdefs.h.  */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h.  */
10255
10256 int
10257 main ()
10258 {
10259 /* FIXME: Include the comments suggested by Paul. */
10260 #ifndef __cplusplus
10261   /* Ultrix mips cc rejects this.  */
10262   typedef int charset[2];
10263   const charset x;
10264   /* SunOS 4.1.1 cc rejects this.  */
10265   char const *const *ccp;
10266   char **p;
10267   /* NEC SVR4.0.2 mips cc rejects this.  */
10268   struct point {int x, y;};
10269   static struct point const zero = {0,0};
10270   /* AIX XL C 1.02.0.0 rejects this.
10271      It does not let you subtract one const X* pointer from another in
10272      an arm of an if-expression whose if-part is not a constant
10273      expression */
10274   const char *g = "string";
10275   ccp = &g + (g ? g-g : 0);
10276   /* HPUX 7.0 cc rejects these. */
10277   ++ccp;
10278   p = (char**) ccp;
10279   ccp = (char const *const *) p;
10280   { /* SCO 3.2v4 cc rejects this.  */
10281     char *t;
10282     char const *s = 0 ? (char *) 0 : (char const *) 0;
10283
10284     *t++ = 0;
10285   }
10286   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10287     int x[] = {25, 17};
10288     const int *foo = &x[0];
10289     ++foo;
10290   }
10291   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10292     typedef const int *iptr;
10293     iptr p = 0;
10294     ++p;
10295   }
10296   { /* AIX XL C 1.02.0.0 rejects this saying
10297        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10298     struct s { int j; const int *ap[3]; };
10299     struct s *b; b->j = 5;
10300   }
10301   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10302     const int foo = 10;
10303   }
10304 #endif
10305
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312   (eval $ac_compile) 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -s conftest.$ac_objext'
10317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318   (eval $ac_try) 2>&5
10319   ac_status=$?
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); }; }; then
10322   ac_cv_c_const=yes
10323 else
10324   echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 ac_cv_c_const=no
10328 fi
10329 rm -f conftest.$ac_objext conftest.$ac_ext
10330 fi
10331 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10332 echo "${ECHO_T}$ac_cv_c_const" >&6
10333 if test $ac_cv_c_const = no; then
10334
10335 cat >>confdefs.h <<\_ACEOF
10336 #define const
10337 _ACEOF
10338
10339 fi
10340
10341
10342
10343 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10344 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10345 fstype=no
10346 # The order of these tests is important.
10347 cat >conftest.$ac_ext <<_ACEOF
10348 #line $LINENO "configure"
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354 #include <sys/statvfs.h>
10355 #include <sys/fstyp.h>
10356 _ACEOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } >/dev/null; then
10365   if test -s conftest.err; then
10366     ac_cpp_err=$ac_c_preproc_warn_flag
10367   else
10368     ac_cpp_err=
10369   fi
10370 else
10371   ac_cpp_err=yes
10372 fi
10373 if test -z "$ac_cpp_err"; then
10374   cat >>confdefs.h <<\_ACEOF
10375 #define FSTYPE_STATVFS 1
10376 _ACEOF
10377  fstype=SVR4
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382
10383 fi
10384 rm -f conftest.err conftest.$ac_ext
10385 if test $fstype = no; then
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 /* confdefs.h.  */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h.  */
10393 #include <sys/statfs.h>
10394 #include <sys/fstyp.h>
10395 _ACEOF
10396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } >/dev/null; then
10404   if test -s conftest.err; then
10405     ac_cpp_err=$ac_c_preproc_warn_flag
10406   else
10407     ac_cpp_err=
10408   fi
10409 else
10410   ac_cpp_err=yes
10411 fi
10412 if test -z "$ac_cpp_err"; then
10413   cat >>confdefs.h <<\_ACEOF
10414 #define FSTYPE_USG_STATFS 1
10415 _ACEOF
10416  fstype=SVR3
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421
10422 fi
10423 rm -f conftest.err conftest.$ac_ext
10424 fi
10425 if test $fstype = no; then
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line $LINENO "configure"
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433 #include <sys/statfs.h>
10434 #include <sys/vmount.h>
10435 _ACEOF
10436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } >/dev/null; then
10444   if test -s conftest.err; then
10445     ac_cpp_err=$ac_c_preproc_warn_flag
10446   else
10447     ac_cpp_err=
10448   fi
10449 else
10450   ac_cpp_err=yes
10451 fi
10452 if test -z "$ac_cpp_err"; then
10453   cat >>confdefs.h <<\_ACEOF
10454 #define FSTYPE_AIX_STATFS 1
10455 _ACEOF
10456  fstype=AIX
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461
10462 fi
10463 rm -f conftest.err conftest.$ac_ext
10464 fi
10465 if test $fstype = no; then
10466 cat >conftest.$ac_ext <<_ACEOF
10467 #line $LINENO "configure"
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473 #include <mntent.h>
10474 _ACEOF
10475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10477   ac_status=$?
10478   grep -v '^ *+' conftest.er1 >conftest.err
10479   rm -f conftest.er1
10480   cat conftest.err >&5
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } >/dev/null; then
10483   if test -s conftest.err; then
10484     ac_cpp_err=$ac_c_preproc_warn_flag
10485   else
10486     ac_cpp_err=
10487   fi
10488 else
10489   ac_cpp_err=yes
10490 fi
10491 if test -z "$ac_cpp_err"; then
10492   cat >>confdefs.h <<\_ACEOF
10493 #define FSTYPE_MNTENT 1
10494 _ACEOF
10495  fstype=4.3BSD
10496 else
10497   echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500
10501 fi
10502 rm -f conftest.err conftest.$ac_ext
10503 fi
10504 if test $fstype = no; then
10505 cat >conftest.$ac_ext <<_ACEOF
10506 #line $LINENO "configure"
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512 #include <sys/mount.h>
10513
10514 _ACEOF
10515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10516   $EGREP "f_type;" >/dev/null 2>&1; then
10517   cat >>confdefs.h <<\_ACEOF
10518 #define FSTYPE_STATFS 1
10519 _ACEOF
10520  fstype=4.4BSD/OSF1
10521 fi
10522 rm -f conftest*
10523
10524 fi
10525 if test $fstype = no; then
10526 cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10528 /* confdefs.h.  */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h.  */
10533 #include <sys/mount.h>
10534 #include <sys/fs_types.h>
10535 _ACEOF
10536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } >/dev/null; then
10544   if test -s conftest.err; then
10545     ac_cpp_err=$ac_c_preproc_warn_flag
10546   else
10547     ac_cpp_err=
10548   fi
10549 else
10550   ac_cpp_err=yes
10551 fi
10552 if test -z "$ac_cpp_err"; then
10553   cat >>confdefs.h <<\_ACEOF
10554 #define FSTYPE_GETMNT 1
10555 _ACEOF
10556  fstype=Ultrix
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561
10562 fi
10563 rm -f conftest.err conftest.$ac_ext
10564 fi
10565 echo "$as_me:$LINENO: result: $fstype" >&5
10566 echo "${ECHO_T}$fstype" >&6
10567
10568 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10569 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10570 if test "${ac_cv_type_signal+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10575 /* confdefs.h.  */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h.  */
10580 #include <sys/types.h>
10581 #include <signal.h>
10582 #ifdef signal
10583 # undef signal
10584 #endif
10585 #ifdef __cplusplus
10586 extern "C" void (*signal (int, void (*)(int)))(int);
10587 #else
10588 void (*signal ()) ();
10589 #endif
10590
10591 int
10592 main ()
10593 {
10594 int i;
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601   (eval $ac_compile) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } &&
10605          { ac_try='test -s conftest.$ac_objext'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; }; then
10611   ac_cv_type_signal=void
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 ac_cv_type_signal=int
10617 fi
10618 rm -f conftest.$ac_objext conftest.$ac_ext
10619 fi
10620 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10621 echo "${ECHO_T}$ac_cv_type_signal" >&6
10622
10623 cat >>confdefs.h <<_ACEOF
10624 #define RETSIGTYPE $ac_cv_type_signal
10625 _ACEOF
10626
10627
10628
10629 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10630 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10631 if test "${bash_cv_signal_vintage+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634
10635   cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642 #include <signal.h>
10643 int
10644 main ()
10645 {
10646
10647     sigset_t ss;
10648     struct sigaction sa;
10649     sigemptyset(&ss); sigsuspend(&ss);
10650     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10651     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10652
10653   ;
10654   return 0;
10655 }
10656 _ACEOF
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659   (eval $ac_link) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -s conftest$ac_exeext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   bash_cv_signal_vintage=posix
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674
10675     cat >conftest.$ac_ext <<_ACEOF
10676 #line $LINENO "configure"
10677 /* confdefs.h.  */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h.  */
10682 #include <signal.h>
10683 int
10684 main ()
10685 {
10686
10687         int mask = sigmask(SIGINT);
10688         sigsetmask(mask); sigblock(mask); sigpause(mask);
10689
10690   ;
10691   return 0;
10692 }
10693 _ACEOF
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696   (eval $ac_link) 2>&5
10697   ac_status=$?
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } &&
10700          { ac_try='test -s conftest$ac_exeext'
10701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702   (eval $ac_try) 2>&5
10703   ac_status=$?
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); }; }; then
10706   bash_cv_signal_vintage=4.2bsd
10707 else
10708   echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711
10712       cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 /* confdefs.h.  */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h.  */
10719
10720         #include <signal.h>
10721         RETSIGTYPE foo() { }
10722 int
10723 main ()
10724 {
10725
10726                 int mask = sigmask(SIGINT);
10727                 sigset(SIGINT, foo); sigrelse(SIGINT);
10728                 sighold(SIGINT); sigpause(SIGINT);
10729
10730   ;
10731   return 0;
10732 }
10733 _ACEOF
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736   (eval $ac_link) 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); } &&
10740          { ac_try='test -s conftest$ac_exeext'
10741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742   (eval $ac_try) 2>&5
10743   ac_status=$?
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); }; }; then
10746   bash_cv_signal_vintage=svr3
10747 else
10748   echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 bash_cv_signal_vintage=v7
10752
10753 fi
10754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10755
10756 fi
10757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10758
10759 fi
10760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10761
10762 fi
10763
10764 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10765 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10766 if test "$bash_cv_signal_vintage" = posix; then
10767 cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_POSIX_SIGNALS 1
10769 _ACEOF
10770
10771 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_BSD_SIGNALS 1
10774 _ACEOF
10775
10776 elif test "$bash_cv_signal_vintage" = svr3; then
10777 cat >>confdefs.h <<\_ACEOF
10778 #define HAVE_USG_SIGHOLD 1
10779 _ACEOF
10780
10781 fi
10782
10783 echo "$as_me:$LINENO: checking for mode_t" >&5
10784 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10785 if test "${ac_cv_type_mode_t+set}" = set; then
10786   echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788   cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795 $ac_includes_default
10796 int
10797 main ()
10798 {
10799 if ((mode_t *) 0)
10800   return 0;
10801 if (sizeof (mode_t))
10802   return 0;
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809   (eval $ac_compile) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } &&
10813          { ac_try='test -s conftest.$ac_objext'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; }; then
10819   ac_cv_type_mode_t=yes
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 ac_cv_type_mode_t=no
10825 fi
10826 rm -f conftest.$ac_objext conftest.$ac_ext
10827 fi
10828 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10829 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10830 if test $ac_cv_type_mode_t = yes; then
10831   :
10832 else
10833
10834 cat >>confdefs.h <<_ACEOF
10835 #define mode_t int
10836 _ACEOF
10837
10838 fi
10839
10840 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10841 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10842 if test "${ac_cv_type_uid_t+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   cat >conftest.$ac_ext <<_ACEOF
10846 #line $LINENO "configure"
10847 /* confdefs.h.  */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h.  */
10852 #include <sys/types.h>
10853
10854 _ACEOF
10855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10856   $EGREP "uid_t" >/dev/null 2>&1; then
10857   ac_cv_type_uid_t=yes
10858 else
10859   ac_cv_type_uid_t=no
10860 fi
10861 rm -f conftest*
10862
10863 fi
10864 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10865 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10866 if test $ac_cv_type_uid_t = no; then
10867
10868 cat >>confdefs.h <<\_ACEOF
10869 #define uid_t int
10870 _ACEOF
10871
10872
10873 cat >>confdefs.h <<\_ACEOF
10874 #define gid_t int
10875 _ACEOF
10876
10877 fi
10878
10879 echo "$as_me:$LINENO: checking for size_t" >&5
10880 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10881 if test "${ac_cv_type_size_t+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   cat >conftest.$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891 $ac_includes_default
10892 int
10893 main ()
10894 {
10895 if ((size_t *) 0)
10896   return 0;
10897 if (sizeof (size_t))
10898   return 0;
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905   (eval $ac_compile) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); } &&
10909          { ac_try='test -s conftest.$ac_objext'
10910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911   (eval $ac_try) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; }; then
10915   ac_cv_type_size_t=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 ac_cv_type_size_t=no
10921 fi
10922 rm -f conftest.$ac_objext conftest.$ac_ext
10923 fi
10924 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10925 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10926 if test $ac_cv_type_size_t = yes; then
10927   :
10928 else
10929
10930 cat >>confdefs.h <<_ACEOF
10931 #define size_t unsigned
10932 _ACEOF
10933
10934 fi
10935
10936 echo "$as_me:$LINENO: checking for pid_t" >&5
10937 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10938 if test "${ac_cv_type_pid_t+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10943 /* confdefs.h.  */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h.  */
10948 $ac_includes_default
10949 int
10950 main ()
10951 {
10952 if ((pid_t *) 0)
10953   return 0;
10954 if (sizeof (pid_t))
10955   return 0;
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962   (eval $ac_compile) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } &&
10966          { ac_try='test -s conftest.$ac_objext'
10967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968   (eval $ac_try) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; }; then
10972   ac_cv_type_pid_t=yes
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977 ac_cv_type_pid_t=no
10978 fi
10979 rm -f conftest.$ac_objext conftest.$ac_ext
10980 fi
10981 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10982 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10983 if test $ac_cv_type_pid_t = yes; then
10984   :
10985 else
10986
10987 cat >>confdefs.h <<_ACEOF
10988 #define pid_t int
10989 _ACEOF
10990
10991 fi
10992
10993 echo "$as_me:$LINENO: checking for off_t" >&5
10994 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10995 if test "${ac_cv_type_off_t+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005 $ac_includes_default
11006 int
11007 main ()
11008 {
11009 if ((off_t *) 0)
11010   return 0;
11011 if (sizeof (off_t))
11012   return 0;
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019   (eval $ac_compile) 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -s conftest.$ac_objext'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; }; then
11029   ac_cv_type_off_t=yes
11030 else
11031   echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_type_off_t=no
11035 fi
11036 rm -f conftest.$ac_objext conftest.$ac_ext
11037 fi
11038 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11039 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11040 if test $ac_cv_type_off_t = yes; then
11041   :
11042 else
11043
11044 cat >>confdefs.h <<_ACEOF
11045 #define off_t long
11046 _ACEOF
11047
11048 fi
11049
11050 echo "$as_me:$LINENO: checking for ino_t" >&5
11051 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11052 if test "${ac_cv_type_ino_t+set}" = set; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055   cat >conftest.$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062 $ac_includes_default
11063 int
11064 main ()
11065 {
11066 if ((ino_t *) 0)
11067   return 0;
11068 if (sizeof (ino_t))
11069   return 0;
11070   ;
11071   return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076   (eval $ac_compile) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } &&
11080          { ac_try='test -s conftest.$ac_objext'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; }; then
11086   ac_cv_type_ino_t=yes
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091 ac_cv_type_ino_t=no
11092 fi
11093 rm -f conftest.$ac_objext conftest.$ac_ext
11094 fi
11095 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11096 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11097 if test $ac_cv_type_ino_t = yes; then
11098   :
11099 else
11100
11101 cat >>confdefs.h <<_ACEOF
11102 #define ino_t unsigned long
11103 _ACEOF
11104
11105 fi
11106
11107 echo "$as_me:$LINENO: checking for dev_t" >&5
11108 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11109 if test "${ac_cv_type_dev_t+set}" = set; then
11110   echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112   cat >conftest.$ac_ext <<_ACEOF
11113 #line $LINENO "configure"
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119 $ac_includes_default
11120 int
11121 main ()
11122 {
11123 if ((dev_t *) 0)
11124   return 0;
11125 if (sizeof (dev_t))
11126   return 0;
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133   (eval $ac_compile) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -s conftest.$ac_objext'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   ac_cv_type_dev_t=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_cv_type_dev_t=no
11149 fi
11150 rm -f conftest.$ac_objext conftest.$ac_ext
11151 fi
11152 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11153 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11154 if test $ac_cv_type_dev_t = yes; then
11155   :
11156 else
11157
11158 cat >>confdefs.h <<_ACEOF
11159 #define dev_t unsigned long
11160 _ACEOF
11161
11162 fi
11163
11164 echo "$as_me:$LINENO: checking for daddr_t" >&5
11165 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11166 if test "${ac_cv_type_daddr_t+set}" = set; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169   cat >conftest.$ac_ext <<_ACEOF
11170 #line $LINENO "configure"
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176 $ac_includes_default
11177 int
11178 main ()
11179 {
11180 if ((daddr_t *) 0)
11181   return 0;
11182 if (sizeof (daddr_t))
11183   return 0;
11184   ;
11185   return 0;
11186 }
11187 _ACEOF
11188 rm -f conftest.$ac_objext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11190   (eval $ac_compile) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); } &&
11194          { ac_try='test -s conftest.$ac_objext'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }; then
11200   ac_cv_type_daddr_t=yes
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205 ac_cv_type_daddr_t=no
11206 fi
11207 rm -f conftest.$ac_objext conftest.$ac_ext
11208 fi
11209 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11210 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11211 if test $ac_cv_type_daddr_t = yes; then
11212   :
11213 else
11214
11215 cat >>confdefs.h <<_ACEOF
11216 #define daddr_t long
11217 _ACEOF
11218
11219 fi
11220
11221 echo "$as_me:$LINENO: checking for major_t" >&5
11222 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11223 if test "${ac_cv_type_major_t+set}" = set; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226   cat >conftest.$ac_ext <<_ACEOF
11227 #line $LINENO "configure"
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233 $ac_includes_default
11234 int
11235 main ()
11236 {
11237 if ((major_t *) 0)
11238   return 0;
11239 if (sizeof (major_t))
11240   return 0;
11241   ;
11242   return 0;
11243 }
11244 _ACEOF
11245 rm -f conftest.$ac_objext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11247   (eval $ac_compile) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } &&
11251          { ac_try='test -s conftest.$ac_objext'
11252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253   (eval $ac_try) 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); }; }; then
11257   ac_cv_type_major_t=yes
11258 else
11259   echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 ac_cv_type_major_t=no
11263 fi
11264 rm -f conftest.$ac_objext conftest.$ac_ext
11265 fi
11266 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11267 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11268 if test $ac_cv_type_major_t = yes; then
11269   :
11270 else
11271
11272 cat >>confdefs.h <<_ACEOF
11273 #define major_t int
11274 _ACEOF
11275
11276 fi
11277
11278 echo "$as_me:$LINENO: checking for minor_t" >&5
11279 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11280 if test "${ac_cv_type_minor_t+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 $ac_includes_default
11291 int
11292 main ()
11293 {
11294 if ((minor_t *) 0)
11295   return 0;
11296 if (sizeof (minor_t))
11297   return 0;
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304   (eval $ac_compile) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } &&
11308          { ac_try='test -s conftest.$ac_objext'
11309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310   (eval $ac_try) 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; }; then
11314   ac_cv_type_minor_t=yes
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 ac_cv_type_minor_t=no
11320 fi
11321 rm -f conftest.$ac_objext conftest.$ac_ext
11322 fi
11323 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11324 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11325 if test $ac_cv_type_minor_t = yes; then
11326   :
11327 else
11328
11329 cat >>confdefs.h <<_ACEOF
11330 #define minor_t int
11331 _ACEOF
11332
11333 fi
11334
11335 echo "$as_me:$LINENO: checking for ssize_t" >&5
11336 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11337 if test "${ac_cv_type_ssize_t+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 $ac_includes_default
11348 int
11349 main ()
11350 {
11351 if ((ssize_t *) 0)
11352   return 0;
11353 if (sizeof (ssize_t))
11354   return 0;
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361   (eval $ac_compile) 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } &&
11365          { ac_try='test -s conftest.$ac_objext'
11366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367   (eval $ac_try) 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); }; }; then
11371   ac_cv_type_ssize_t=yes
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376 ac_cv_type_ssize_t=no
11377 fi
11378 rm -f conftest.$ac_objext conftest.$ac_ext
11379 fi
11380 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11381 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11382 if test $ac_cv_type_ssize_t = yes; then
11383   :
11384 else
11385
11386 cat >>confdefs.h <<_ACEOF
11387 #define ssize_t int
11388 _ACEOF
11389
11390 fi
11391
11392 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11393 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11394 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404 $ac_includes_default
11405 int
11406 main ()
11407 {
11408 static struct stat ac_aggr;
11409 if (ac_aggr.st_blocks)
11410 return 0;
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417   (eval $ac_compile) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } &&
11421          { ac_try='test -s conftest.$ac_objext'
11422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423   (eval $ac_try) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); }; }; then
11427   ac_cv_member_struct_stat_st_blocks=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432 cat >conftest.$ac_ext <<_ACEOF
11433 #line $LINENO "configure"
11434 /* confdefs.h.  */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h.  */
11439 $ac_includes_default
11440 int
11441 main ()
11442 {
11443 static struct stat ac_aggr;
11444 if (sizeof ac_aggr.st_blocks)
11445 return 0;
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452   (eval $ac_compile) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -s conftest.$ac_objext'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   ac_cv_member_struct_stat_st_blocks=yes
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 ac_cv_member_struct_stat_st_blocks=no
11468 fi
11469 rm -f conftest.$ac_objext conftest.$ac_ext
11470 fi
11471 rm -f conftest.$ac_objext conftest.$ac_ext
11472 fi
11473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11474 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11475 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11476
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11479 _ACEOF
11480
11481
11482 cat >>confdefs.h <<\_ACEOF
11483 #define HAVE_ST_BLOCKS 1
11484 _ACEOF
11485
11486 else
11487   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11488 fi
11489
11490
11491
11492 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11493 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11494 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   cat >conftest.$ac_ext <<_ACEOF
11498 #line $LINENO "configure"
11499 /* confdefs.h.  */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h.  */
11504 $ac_includes_default
11505 int
11506 main ()
11507 {
11508 static struct stat ac_aggr;
11509 if (ac_aggr.st_rdev)
11510 return 0;
11511   ;
11512   return 0;
11513 }
11514 _ACEOF
11515 rm -f conftest.$ac_objext
11516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11517   (eval $ac_compile) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } &&
11521          { ac_try='test -s conftest.$ac_objext'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; }; then
11527   ac_cv_member_struct_stat_st_rdev=yes
11528 else
11529   echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11531
11532 cat >conftest.$ac_ext <<_ACEOF
11533 #line $LINENO "configure"
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 $ac_includes_default
11540 int
11541 main ()
11542 {
11543 static struct stat ac_aggr;
11544 if (sizeof ac_aggr.st_rdev)
11545 return 0;
11546   ;
11547   return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552   (eval $ac_compile) 2>&5
11553   ac_status=$?
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } &&
11556          { ac_try='test -s conftest.$ac_objext'
11557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558   (eval $ac_try) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); }; }; then
11562   ac_cv_member_struct_stat_st_rdev=yes
11563 else
11564   echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567 ac_cv_member_struct_stat_st_rdev=no
11568 fi
11569 rm -f conftest.$ac_objext conftest.$ac_ext
11570 fi
11571 rm -f conftest.$ac_objext conftest.$ac_ext
11572 fi
11573 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11574 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11575 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11576
11577 cat >>confdefs.h <<_ACEOF
11578 #define HAVE_STRUCT_STAT_ST_RDEV 1
11579 _ACEOF
11580
11581
11582 cat >>confdefs.h <<\_ACEOF
11583 #define HAVE_ST_RDEV 1
11584 _ACEOF
11585
11586 fi
11587
11588
11589 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11590 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11591 if test "${ac_cv_struct_tm+set}" = set; then
11592   echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594   cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 /* confdefs.h.  */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h.  */
11601 #include <sys/types.h>
11602 #include <time.h>
11603
11604 int
11605 main ()
11606 {
11607 struct tm *tp; tp->tm_sec;
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 rm -f conftest.$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614   (eval $ac_compile) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); } &&
11618          { ac_try='test -s conftest.$ac_objext'
11619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620   (eval $ac_try) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); }; }; then
11624   ac_cv_struct_tm=time.h
11625 else
11626   echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_cv_struct_tm=sys/time.h
11630 fi
11631 rm -f conftest.$ac_objext conftest.$ac_ext
11632 fi
11633 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11634 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11635 if test $ac_cv_struct_tm = sys/time.h; then
11636
11637 cat >>confdefs.h <<\_ACEOF
11638 #define TM_IN_SYS_TIME 1
11639 _ACEOF
11640
11641 fi
11642
11643 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11644 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11645 if test "${ac_cv_c_const+set}" = set; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655
11656 int
11657 main ()
11658 {
11659 /* FIXME: Include the comments suggested by Paul. */
11660 #ifndef __cplusplus
11661   /* Ultrix mips cc rejects this.  */
11662   typedef int charset[2];
11663   const charset x;
11664   /* SunOS 4.1.1 cc rejects this.  */
11665   char const *const *ccp;
11666   char **p;
11667   /* NEC SVR4.0.2 mips cc rejects this.  */
11668   struct point {int x, y;};
11669   static struct point const zero = {0,0};
11670   /* AIX XL C 1.02.0.0 rejects this.
11671      It does not let you subtract one const X* pointer from another in
11672      an arm of an if-expression whose if-part is not a constant
11673      expression */
11674   const char *g = "string";
11675   ccp = &g + (g ? g-g : 0);
11676   /* HPUX 7.0 cc rejects these. */
11677   ++ccp;
11678   p = (char**) ccp;
11679   ccp = (char const *const *) p;
11680   { /* SCO 3.2v4 cc rejects this.  */
11681     char *t;
11682     char const *s = 0 ? (char *) 0 : (char const *) 0;
11683
11684     *t++ = 0;
11685   }
11686   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11687     int x[] = {25, 17};
11688     const int *foo = &x[0];
11689     ++foo;
11690   }
11691   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11692     typedef const int *iptr;
11693     iptr p = 0;
11694     ++p;
11695   }
11696   { /* AIX XL C 1.02.0.0 rejects this saying
11697        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11698     struct s { int j; const int *ap[3]; };
11699     struct s *b; b->j = 5;
11700   }
11701   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11702     const int foo = 10;
11703   }
11704 #endif
11705
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712   (eval $ac_compile) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } &&
11716          { ac_try='test -s conftest.$ac_objext'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; }; then
11722   ac_cv_c_const=yes
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 ac_cv_c_const=no
11728 fi
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11730 fi
11731 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11732 echo "${ECHO_T}$ac_cv_c_const" >&6
11733 if test $ac_cv_c_const = no; then
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define const
11737 _ACEOF
11738
11739 fi
11740
11741
11742
11743 echo "$as_me:$LINENO: checking for char" >&5
11744 echo $ECHO_N "checking for char... $ECHO_C" >&6
11745 if test "${ac_cv_type_char+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 $ac_includes_default
11756 int
11757 main ()
11758 {
11759 if ((char *) 0)
11760   return 0;
11761 if (sizeof (char))
11762   return 0;
11763   ;
11764   return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769   (eval $ac_compile) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } &&
11773          { ac_try='test -s conftest.$ac_objext'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; }; then
11779   ac_cv_type_char=yes
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_cv_type_char=no
11785 fi
11786 rm -f conftest.$ac_objext conftest.$ac_ext
11787 fi
11788 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11789 echo "${ECHO_T}$ac_cv_type_char" >&6
11790
11791 echo "$as_me:$LINENO: checking size of char" >&5
11792 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11793 if test "${ac_cv_sizeof_char+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   if test "$ac_cv_type_char" = yes; then
11797   # The cast to unsigned long works around a bug in the HP C Compiler
11798   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11799   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11800   # This bug is HP SR number 8606223364.
11801   if test "$cross_compiling" = yes; then
11802   # Depending upon the size, compute the lo and hi bounds.
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 $ac_includes_default
11811 int
11812 main ()
11813 {
11814 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11815 test_array [0] = 0
11816
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823   (eval $ac_compile) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); } &&
11827          { ac_try='test -s conftest.$ac_objext'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; }; then
11833   ac_lo=0 ac_mid=0
11834   while :; do
11835     cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 /* confdefs.h.  */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h.  */
11842 $ac_includes_default
11843 int
11844 main ()
11845 {
11846 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11847 test_array [0] = 0
11848
11849   ;
11850   return 0;
11851 }
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855   (eval $ac_compile) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); } &&
11859          { ac_try='test -s conftest.$ac_objext'
11860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861   (eval $ac_try) 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; }; then
11865   ac_hi=$ac_mid; break
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_lo=`expr $ac_mid + 1`
11871                     if test $ac_lo -le $ac_mid; then
11872                       ac_lo= ac_hi=
11873                       break
11874                     fi
11875                     ac_mid=`expr 2 '*' $ac_mid + 1`
11876 fi
11877 rm -f conftest.$ac_objext conftest.$ac_ext
11878   done
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883 cat >conftest.$ac_ext <<_ACEOF
11884 #line $LINENO "configure"
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890 $ac_includes_default
11891 int
11892 main ()
11893 {
11894 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11895 test_array [0] = 0
11896
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903   (eval $ac_compile) 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } &&
11907          { ac_try='test -s conftest.$ac_objext'
11908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909   (eval $ac_try) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   ac_hi=-1 ac_mid=-1
11914   while :; do
11915     cat >conftest.$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922 $ac_includes_default
11923 int
11924 main ()
11925 {
11926 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11927 test_array [0] = 0
11928
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935   (eval $ac_compile) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -s conftest.$ac_objext'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; }; then
11945   ac_lo=$ac_mid; break
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11949
11950 ac_hi=`expr '(' $ac_mid ')' - 1`
11951                        if test $ac_mid -le $ac_hi; then
11952                          ac_lo= ac_hi=
11953                          break
11954                        fi
11955                        ac_mid=`expr 2 '*' $ac_mid`
11956 fi
11957 rm -f conftest.$ac_objext conftest.$ac_ext
11958   done
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963 ac_lo= ac_hi=
11964 fi
11965 rm -f conftest.$ac_objext conftest.$ac_ext
11966 fi
11967 rm -f conftest.$ac_objext conftest.$ac_ext
11968 # Binary search between lo and hi bounds.
11969 while test "x$ac_lo" != "x$ac_hi"; do
11970   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11971   cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 /* confdefs.h.  */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h.  */
11978 $ac_includes_default
11979 int
11980 main ()
11981 {
11982 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11983 test_array [0] = 0
11984
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991   (eval $ac_compile) 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } &&
11995          { ac_try='test -s conftest.$ac_objext'
11996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997   (eval $ac_try) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; }; then
12001   ac_hi=$ac_mid
12002 else
12003   echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12005
12006 ac_lo=`expr '(' $ac_mid ')' + 1`
12007 fi
12008 rm -f conftest.$ac_objext conftest.$ac_ext
12009 done
12010 case $ac_lo in
12011 ?*) ac_cv_sizeof_char=$ac_lo;;
12012 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12013 See \`config.log' for more details." >&5
12014 echo "$as_me: error: cannot compute sizeof (char), 77
12015 See \`config.log' for more details." >&2;}
12016    { (exit 1); exit 1; }; } ;;
12017 esac
12018 else
12019   if test "$cross_compiling" = yes; then
12020   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12021 See \`config.log' for more details." >&5
12022 echo "$as_me: error: cannot run test program while cross compiling
12023 See \`config.log' for more details." >&2;}
12024    { (exit 1); exit 1; }; }
12025 else
12026   cat >conftest.$ac_ext <<_ACEOF
12027 #line $LINENO "configure"
12028 /* confdefs.h.  */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h.  */
12033 $ac_includes_default
12034 long longval () { return (long) (sizeof (char)); }
12035 unsigned long ulongval () { return (long) (sizeof (char)); }
12036 #include <stdio.h>
12037 #include <stdlib.h>
12038 int
12039 main ()
12040 {
12041
12042   FILE *f = fopen ("conftest.val", "w");
12043   if (! f)
12044     exit (1);
12045   if (((long) (sizeof (char))) < 0)
12046     {
12047       long i = longval ();
12048       if (i != ((long) (sizeof (char))))
12049         exit (1);
12050       fprintf (f, "%ld\n", i);
12051     }
12052   else
12053     {
12054       unsigned long i = ulongval ();
12055       if (i != ((long) (sizeof (char))))
12056         exit (1);
12057       fprintf (f, "%lu\n", i);
12058     }
12059   exit (ferror (f) || fclose (f) != 0);
12060
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067   (eval $ac_link) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_cv_sizeof_char=`cat conftest.val`
12077 else
12078   echo "$as_me: program exited with status $ac_status" >&5
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ( exit $ac_status )
12083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12084 See \`config.log' for more details." >&5
12085 echo "$as_me: error: cannot compute sizeof (char), 77
12086 See \`config.log' for more details." >&2;}
12087    { (exit 1); exit 1; }; }
12088 fi
12089 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12090 fi
12091 fi
12092 rm -f conftest.val
12093 else
12094   ac_cv_sizeof_char=0
12095 fi
12096 fi
12097 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12098 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12099 cat >>confdefs.h <<_ACEOF
12100 #define SIZEOF_CHAR $ac_cv_sizeof_char
12101 _ACEOF
12102
12103
12104 echo "$as_me:$LINENO: checking for short int" >&5
12105 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12106 if test "${ac_cv_type_short_int+set}" = set; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12111 /* confdefs.h.  */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h.  */
12116 $ac_includes_default
12117 int
12118 main ()
12119 {
12120 if ((short int *) 0)
12121   return 0;
12122 if (sizeof (short int))
12123   return 0;
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130   (eval $ac_compile) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -s conftest.$ac_objext'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   ac_cv_type_short_int=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 ac_cv_type_short_int=no
12146 fi
12147 rm -f conftest.$ac_objext conftest.$ac_ext
12148 fi
12149 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12150 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12151
12152 echo "$as_me:$LINENO: checking size of short int" >&5
12153 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12154 if test "${ac_cv_sizeof_short_int+set}" = set; then
12155   echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12157   if test "$ac_cv_type_short_int" = yes; then
12158   # The cast to unsigned long works around a bug in the HP C Compiler
12159   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12160   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12161   # This bug is HP SR number 8606223364.
12162   if test "$cross_compiling" = yes; then
12163   # Depending upon the size, compute the lo and hi bounds.
12164 cat >conftest.$ac_ext <<_ACEOF
12165 #line $LINENO "configure"
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 $ac_includes_default
12172 int
12173 main ()
12174 {
12175 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12176 test_array [0] = 0
12177
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12184   (eval $ac_compile) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -s conftest.$ac_objext'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   ac_lo=0 ac_mid=0
12195   while :; do
12196     cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 $ac_includes_default
12204 int
12205 main ()
12206 {
12207 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12208 test_array [0] = 0
12209
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216   (eval $ac_compile) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -s conftest.$ac_objext'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   ac_hi=$ac_mid; break
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_lo=`expr $ac_mid + 1`
12232                     if test $ac_lo -le $ac_mid; then
12233                       ac_lo= ac_hi=
12234                       break
12235                     fi
12236                     ac_mid=`expr 2 '*' $ac_mid + 1`
12237 fi
12238 rm -f conftest.$ac_objext conftest.$ac_ext
12239   done
12240 else
12241   echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 cat >conftest.$ac_ext <<_ACEOF
12245 #line $LINENO "configure"
12246 /* confdefs.h.  */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h.  */
12251 $ac_includes_default
12252 int
12253 main ()
12254 {
12255 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12256 test_array [0] = 0
12257
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264   (eval $ac_compile) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } &&
12268          { ac_try='test -s conftest.$ac_objext'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; }; then
12274   ac_hi=-1 ac_mid=-1
12275   while :; do
12276     cat >conftest.$ac_ext <<_ACEOF
12277 #line $LINENO "configure"
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283 $ac_includes_default
12284 int
12285 main ()
12286 {
12287 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12288 test_array [0] = 0
12289
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296   (eval $ac_compile) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } &&
12300          { ac_try='test -s conftest.$ac_objext'
12301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302   (eval $ac_try) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; }; then
12306   ac_lo=$ac_mid; break
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 ac_hi=`expr '(' $ac_mid ')' - 1`
12312                        if test $ac_mid -le $ac_hi; then
12313                          ac_lo= ac_hi=
12314                          break
12315                        fi
12316                        ac_mid=`expr 2 '*' $ac_mid`
12317 fi
12318 rm -f conftest.$ac_objext conftest.$ac_ext
12319   done
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 ac_lo= ac_hi=
12325 fi
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12327 fi
12328 rm -f conftest.$ac_objext conftest.$ac_ext
12329 # Binary search between lo and hi bounds.
12330 while test "x$ac_lo" != "x$ac_hi"; do
12331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12332   cat >conftest.$ac_ext <<_ACEOF
12333 #line $LINENO "configure"
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 $ac_includes_default
12340 int
12341 main ()
12342 {
12343 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12344 test_array [0] = 0
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352   (eval $ac_compile) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } &&
12356          { ac_try='test -s conftest.$ac_objext'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   ac_hi=$ac_mid
12363 else
12364   echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 ac_lo=`expr '(' $ac_mid ')' + 1`
12368 fi
12369 rm -f conftest.$ac_objext conftest.$ac_ext
12370 done
12371 case $ac_lo in
12372 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12373 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12374 See \`config.log' for more details." >&5
12375 echo "$as_me: error: cannot compute sizeof (short int), 77
12376 See \`config.log' for more details." >&2;}
12377    { (exit 1); exit 1; }; } ;;
12378 esac
12379 else
12380   if test "$cross_compiling" = yes; then
12381   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12382 See \`config.log' for more details." >&5
12383 echo "$as_me: error: cannot run test program while cross compiling
12384 See \`config.log' for more details." >&2;}
12385    { (exit 1); exit 1; }; }
12386 else
12387   cat >conftest.$ac_ext <<_ACEOF
12388 #line $LINENO "configure"
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394 $ac_includes_default
12395 long longval () { return (long) (sizeof (short int)); }
12396 unsigned long ulongval () { return (long) (sizeof (short int)); }
12397 #include <stdio.h>
12398 #include <stdlib.h>
12399 int
12400 main ()
12401 {
12402
12403   FILE *f = fopen ("conftest.val", "w");
12404   if (! f)
12405     exit (1);
12406   if (((long) (sizeof (short int))) < 0)
12407     {
12408       long i = longval ();
12409       if (i != ((long) (sizeof (short int))))
12410         exit (1);
12411       fprintf (f, "%ld\n", i);
12412     }
12413   else
12414     {
12415       unsigned long i = ulongval ();
12416       if (i != ((long) (sizeof (short int))))
12417         exit (1);
12418       fprintf (f, "%lu\n", i);
12419     }
12420   exit (ferror (f) || fclose (f) != 0);
12421
12422   ;
12423   return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428   (eval $ac_link) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_sizeof_short_int=`cat conftest.val`
12438 else
12439   echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ( exit $ac_status )
12444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12445 See \`config.log' for more details." >&5
12446 echo "$as_me: error: cannot compute sizeof (short int), 77
12447 See \`config.log' for more details." >&2;}
12448    { (exit 1); exit 1; }; }
12449 fi
12450 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 fi
12453 rm -f conftest.val
12454 else
12455   ac_cv_sizeof_short_int=0
12456 fi
12457 fi
12458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12459 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12460 cat >>confdefs.h <<_ACEOF
12461 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12462 _ACEOF
12463
12464
12465 echo "$as_me:$LINENO: checking for int" >&5
12466 echo $ECHO_N "checking for int... $ECHO_C" >&6
12467 if test "${ac_cv_type_int+set}" = set; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470   cat >conftest.$ac_ext <<_ACEOF
12471 #line $LINENO "configure"
12472 /* confdefs.h.  */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h.  */
12477 $ac_includes_default
12478 int
12479 main ()
12480 {
12481 if ((int *) 0)
12482   return 0;
12483 if (sizeof (int))
12484   return 0;
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 rm -f conftest.$ac_objext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491   (eval $ac_compile) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } &&
12495          { ac_try='test -s conftest.$ac_objext'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; }; then
12501   ac_cv_type_int=yes
12502 else
12503   echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 ac_cv_type_int=no
12507 fi
12508 rm -f conftest.$ac_objext conftest.$ac_ext
12509 fi
12510 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12511 echo "${ECHO_T}$ac_cv_type_int" >&6
12512
12513 echo "$as_me:$LINENO: checking size of int" >&5
12514 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12515 if test "${ac_cv_sizeof_int+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   if test "$ac_cv_type_int" = yes; then
12519   # The cast to unsigned long works around a bug in the HP C Compiler
12520   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12521   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12522   # This bug is HP SR number 8606223364.
12523   if test "$cross_compiling" = yes; then
12524   # Depending upon the size, compute the lo and hi bounds.
12525 cat >conftest.$ac_ext <<_ACEOF
12526 #line $LINENO "configure"
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 $ac_includes_default
12533 int
12534 main ()
12535 {
12536 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12537 test_array [0] = 0
12538
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545   (eval $ac_compile) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } &&
12549          { ac_try='test -s conftest.$ac_objext'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   ac_lo=0 ac_mid=0
12556   while :; do
12557     cat >conftest.$ac_ext <<_ACEOF
12558 #line $LINENO "configure"
12559 /* confdefs.h.  */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h.  */
12564 $ac_includes_default
12565 int
12566 main ()
12567 {
12568 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12569 test_array [0] = 0
12570
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 rm -f conftest.$ac_objext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577   (eval $ac_compile) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } &&
12581          { ac_try='test -s conftest.$ac_objext'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587   ac_hi=$ac_mid; break
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 ac_lo=`expr $ac_mid + 1`
12593                     if test $ac_lo -le $ac_mid; then
12594                       ac_lo= ac_hi=
12595                       break
12596                     fi
12597                     ac_mid=`expr 2 '*' $ac_mid + 1`
12598 fi
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12600   done
12601 else
12602   echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605 cat >conftest.$ac_ext <<_ACEOF
12606 #line $LINENO "configure"
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612 $ac_includes_default
12613 int
12614 main ()
12615 {
12616 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12617 test_array [0] = 0
12618
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625   (eval $ac_compile) 2>&5
12626   ac_status=$?
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -s conftest.$ac_objext'
12630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631   (eval $ac_try) 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; }; then
12635   ac_hi=-1 ac_mid=-1
12636   while :; do
12637     cat >conftest.$ac_ext <<_ACEOF
12638 #line $LINENO "configure"
12639 /* confdefs.h.  */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h.  */
12644 $ac_includes_default
12645 int
12646 main ()
12647 {
12648 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12649 test_array [0] = 0
12650
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657   (eval $ac_compile) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } &&
12661          { ac_try='test -s conftest.$ac_objext'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; }; then
12667   ac_lo=$ac_mid; break
12668 else
12669   echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672 ac_hi=`expr '(' $ac_mid ')' - 1`
12673                        if test $ac_mid -le $ac_hi; then
12674                          ac_lo= ac_hi=
12675                          break
12676                        fi
12677                        ac_mid=`expr 2 '*' $ac_mid`
12678 fi
12679 rm -f conftest.$ac_objext conftest.$ac_ext
12680   done
12681 else
12682   echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685 ac_lo= ac_hi=
12686 fi
12687 rm -f conftest.$ac_objext conftest.$ac_ext
12688 fi
12689 rm -f conftest.$ac_objext conftest.$ac_ext
12690 # Binary search between lo and hi bounds.
12691 while test "x$ac_lo" != "x$ac_hi"; do
12692   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12693   cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 $ac_includes_default
12701 int
12702 main ()
12703 {
12704 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12705 test_array [0] = 0
12706
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713   (eval $ac_compile) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } &&
12717          { ac_try='test -s conftest.$ac_objext'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; }; then
12723   ac_hi=$ac_mid
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_lo=`expr '(' $ac_mid ')' + 1`
12729 fi
12730 rm -f conftest.$ac_objext conftest.$ac_ext
12731 done
12732 case $ac_lo in
12733 ?*) ac_cv_sizeof_int=$ac_lo;;
12734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12735 See \`config.log' for more details." >&5
12736 echo "$as_me: error: cannot compute sizeof (int), 77
12737 See \`config.log' for more details." >&2;}
12738    { (exit 1); exit 1; }; } ;;
12739 esac
12740 else
12741   if test "$cross_compiling" = yes; then
12742   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12743 See \`config.log' for more details." >&5
12744 echo "$as_me: error: cannot run test program while cross compiling
12745 See \`config.log' for more details." >&2;}
12746    { (exit 1); exit 1; }; }
12747 else
12748   cat >conftest.$ac_ext <<_ACEOF
12749 #line $LINENO "configure"
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755 $ac_includes_default
12756 long longval () { return (long) (sizeof (int)); }
12757 unsigned long ulongval () { return (long) (sizeof (int)); }
12758 #include <stdio.h>
12759 #include <stdlib.h>
12760 int
12761 main ()
12762 {
12763
12764   FILE *f = fopen ("conftest.val", "w");
12765   if (! f)
12766     exit (1);
12767   if (((long) (sizeof (int))) < 0)
12768     {
12769       long i = longval ();
12770       if (i != ((long) (sizeof (int))))
12771         exit (1);
12772       fprintf (f, "%ld\n", i);
12773     }
12774   else
12775     {
12776       unsigned long i = ulongval ();
12777       if (i != ((long) (sizeof (int))))
12778         exit (1);
12779       fprintf (f, "%lu\n", i);
12780     }
12781   exit (ferror (f) || fclose (f) != 0);
12782
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 rm -f conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789   (eval $ac_link) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798   ac_cv_sizeof_int=`cat conftest.val`
12799 else
12800   echo "$as_me: program exited with status $ac_status" >&5
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804 ( exit $ac_status )
12805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12806 See \`config.log' for more details." >&5
12807 echo "$as_me: error: cannot compute sizeof (int), 77
12808 See \`config.log' for more details." >&2;}
12809    { (exit 1); exit 1; }; }
12810 fi
12811 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12812 fi
12813 fi
12814 rm -f conftest.val
12815 else
12816   ac_cv_sizeof_int=0
12817 fi
12818 fi
12819 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12820 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12821 cat >>confdefs.h <<_ACEOF
12822 #define SIZEOF_INT $ac_cv_sizeof_int
12823 _ACEOF
12824
12825
12826 echo "$as_me:$LINENO: checking for long int" >&5
12827 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12828 if test "${ac_cv_type_long_int+set}" = set; then
12829   echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831   cat >conftest.$ac_ext <<_ACEOF
12832 #line $LINENO "configure"
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838 $ac_includes_default
12839 int
12840 main ()
12841 {
12842 if ((long int *) 0)
12843   return 0;
12844 if (sizeof (long int))
12845   return 0;
12846   ;
12847   return 0;
12848 }
12849 _ACEOF
12850 rm -f conftest.$ac_objext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852   (eval $ac_compile) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } &&
12856          { ac_try='test -s conftest.$ac_objext'
12857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858   (eval $ac_try) 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; }; then
12862   ac_cv_type_long_int=yes
12863 else
12864   echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_cv_type_long_int=no
12868 fi
12869 rm -f conftest.$ac_objext conftest.$ac_ext
12870 fi
12871 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12872 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12873
12874 echo "$as_me:$LINENO: checking size of long int" >&5
12875 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12876 if test "${ac_cv_sizeof_long_int+set}" = set; then
12877   echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879   if test "$ac_cv_type_long_int" = yes; then
12880   # The cast to unsigned long works around a bug in the HP C Compiler
12881   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12882   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12883   # This bug is HP SR number 8606223364.
12884   if test "$cross_compiling" = yes; then
12885   # Depending upon the size, compute the lo and hi bounds.
12886 cat >conftest.$ac_ext <<_ACEOF
12887 #line $LINENO "configure"
12888 /* confdefs.h.  */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h.  */
12893 $ac_includes_default
12894 int
12895 main ()
12896 {
12897 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12898 test_array [0] = 0
12899
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906   (eval $ac_compile) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); } &&
12910          { ac_try='test -s conftest.$ac_objext'
12911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912   (eval $ac_try) 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); }; }; then
12916   ac_lo=0 ac_mid=0
12917   while :; do
12918     cat >conftest.$ac_ext <<_ACEOF
12919 #line $LINENO "configure"
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 $ac_includes_default
12926 int
12927 main ()
12928 {
12929 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12930 test_array [0] = 0
12931
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 rm -f conftest.$ac_objext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938   (eval $ac_compile) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); } &&
12942          { ac_try='test -s conftest.$ac_objext'
12943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944   (eval $ac_try) 2>&5
12945   ac_status=$?
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); }; }; then
12948   ac_hi=$ac_mid; break
12949 else
12950   echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 ac_lo=`expr $ac_mid + 1`
12954                     if test $ac_lo -le $ac_mid; then
12955                       ac_lo= ac_hi=
12956                       break
12957                     fi
12958                     ac_mid=`expr 2 '*' $ac_mid + 1`
12959 fi
12960 rm -f conftest.$ac_objext conftest.$ac_ext
12961   done
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973 $ac_includes_default
12974 int
12975 main ()
12976 {
12977 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12978 test_array [0] = 0
12979
12980   ;
12981   return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest.$ac_objext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986   (eval $ac_compile) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } &&
12990          { ac_try='test -s conftest.$ac_objext'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   ac_hi=-1 ac_mid=-1
12997   while :; do
12998     cat >conftest.$ac_ext <<_ACEOF
12999 #line $LINENO "configure"
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005 $ac_includes_default
13006 int
13007 main ()
13008 {
13009 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13010 test_array [0] = 0
13011
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018   (eval $ac_compile) 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } &&
13022          { ac_try='test -s conftest.$ac_objext'
13023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024   (eval $ac_try) 2>&5
13025   ac_status=$?
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }; }; then
13028   ac_lo=$ac_mid; break
13029 else
13030   echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 ac_hi=`expr '(' $ac_mid ')' - 1`
13034                        if test $ac_mid -le $ac_hi; then
13035                          ac_lo= ac_hi=
13036                          break
13037                        fi
13038                        ac_mid=`expr 2 '*' $ac_mid`
13039 fi
13040 rm -f conftest.$ac_objext conftest.$ac_ext
13041   done
13042 else
13043   echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_lo= ac_hi=
13047 fi
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13049 fi
13050 rm -f conftest.$ac_objext conftest.$ac_ext
13051 # Binary search between lo and hi bounds.
13052 while test "x$ac_lo" != "x$ac_hi"; do
13053   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13054   cat >conftest.$ac_ext <<_ACEOF
13055 #line $LINENO "configure"
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061 $ac_includes_default
13062 int
13063 main ()
13064 {
13065 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13066 test_array [0] = 0
13067
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074   (eval $ac_compile) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); } &&
13078          { ac_try='test -s conftest.$ac_objext'
13079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080   (eval $ac_try) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; }; then
13084   ac_hi=$ac_mid
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ac_lo=`expr '(' $ac_mid ')' + 1`
13090 fi
13091 rm -f conftest.$ac_objext conftest.$ac_ext
13092 done
13093 case $ac_lo in
13094 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13095 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13096 See \`config.log' for more details." >&5
13097 echo "$as_me: error: cannot compute sizeof (long int), 77
13098 See \`config.log' for more details." >&2;}
13099    { (exit 1); exit 1; }; } ;;
13100 esac
13101 else
13102   if test "$cross_compiling" = yes; then
13103   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13104 See \`config.log' for more details." >&5
13105 echo "$as_me: error: cannot run test program while cross compiling
13106 See \`config.log' for more details." >&2;}
13107    { (exit 1); exit 1; }; }
13108 else
13109   cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116 $ac_includes_default
13117 long longval () { return (long) (sizeof (long int)); }
13118 unsigned long ulongval () { return (long) (sizeof (long int)); }
13119 #include <stdio.h>
13120 #include <stdlib.h>
13121 int
13122 main ()
13123 {
13124
13125   FILE *f = fopen ("conftest.val", "w");
13126   if (! f)
13127     exit (1);
13128   if (((long) (sizeof (long int))) < 0)
13129     {
13130       long i = longval ();
13131       if (i != ((long) (sizeof (long int))))
13132         exit (1);
13133       fprintf (f, "%ld\n", i);
13134     }
13135   else
13136     {
13137       unsigned long i = ulongval ();
13138       if (i != ((long) (sizeof (long int))))
13139         exit (1);
13140       fprintf (f, "%lu\n", i);
13141     }
13142   exit (ferror (f) || fclose (f) != 0);
13143
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest$ac_exeext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13150   (eval $ac_link) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; }; then
13159   ac_cv_sizeof_long_int=`cat conftest.val`
13160 else
13161   echo "$as_me: program exited with status $ac_status" >&5
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ( exit $ac_status )
13166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13167 See \`config.log' for more details." >&5
13168 echo "$as_me: error: cannot compute sizeof (long int), 77
13169 See \`config.log' for more details." >&2;}
13170    { (exit 1); exit 1; }; }
13171 fi
13172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13173 fi
13174 fi
13175 rm -f conftest.val
13176 else
13177   ac_cv_sizeof_long_int=0
13178 fi
13179 fi
13180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13181 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13182 cat >>confdefs.h <<_ACEOF
13183 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13184 _ACEOF
13185
13186
13187 echo "$as_me:$LINENO: checking for long long int" >&5
13188 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13189 if test "${ac_cv_type_long_long_int+set}" = set; then
13190   echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192   cat >conftest.$ac_ext <<_ACEOF
13193 #line $LINENO "configure"
13194 /* confdefs.h.  */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h.  */
13199 $ac_includes_default
13200 int
13201 main ()
13202 {
13203 if ((long long int *) 0)
13204   return 0;
13205 if (sizeof (long long int))
13206   return 0;
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213   (eval $ac_compile) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } &&
13217          { ac_try='test -s conftest.$ac_objext'
13218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219   (eval $ac_try) 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; }; then
13223   ac_cv_type_long_long_int=yes
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228 ac_cv_type_long_long_int=no
13229 fi
13230 rm -f conftest.$ac_objext conftest.$ac_ext
13231 fi
13232 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13233 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13234
13235 echo "$as_me:$LINENO: checking size of long long int" >&5
13236 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13237 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   if test "$ac_cv_type_long_long_int" = yes; then
13241   # The cast to unsigned long works around a bug in the HP C Compiler
13242   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13243   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13244   # This bug is HP SR number 8606223364.
13245   if test "$cross_compiling" = yes; then
13246   # Depending upon the size, compute the lo and hi bounds.
13247 cat >conftest.$ac_ext <<_ACEOF
13248 #line $LINENO "configure"
13249 /* confdefs.h.  */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h.  */
13254 $ac_includes_default
13255 int
13256 main ()
13257 {
13258 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13259 test_array [0] = 0
13260
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267   (eval $ac_compile) 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); } &&
13271          { ac_try='test -s conftest.$ac_objext'
13272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273   (eval $ac_try) 2>&5
13274   ac_status=$?
13275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276   (exit $ac_status); }; }; then
13277   ac_lo=0 ac_mid=0
13278   while :; do
13279     cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 $ac_includes_default
13287 int
13288 main ()
13289 {
13290 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13291 test_array [0] = 0
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299   (eval $ac_compile) 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -s conftest.$ac_objext'
13304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305   (eval $ac_try) 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; }; then
13309   ac_hi=$ac_mid; break
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 ac_lo=`expr $ac_mid + 1`
13315                     if test $ac_lo -le $ac_mid; then
13316                       ac_lo= ac_hi=
13317                       break
13318                     fi
13319                     ac_mid=`expr 2 '*' $ac_mid + 1`
13320 fi
13321 rm -f conftest.$ac_objext conftest.$ac_ext
13322   done
13323 else
13324   echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13326
13327 cat >conftest.$ac_ext <<_ACEOF
13328 #line $LINENO "configure"
13329 /* confdefs.h.  */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h.  */
13334 $ac_includes_default
13335 int
13336 main ()
13337 {
13338 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13339 test_array [0] = 0
13340
13341   ;
13342   return 0;
13343 }
13344 _ACEOF
13345 rm -f conftest.$ac_objext
13346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13347   (eval $ac_compile) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } &&
13351          { ac_try='test -s conftest.$ac_objext'
13352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353   (eval $ac_try) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; }; then
13357   ac_hi=-1 ac_mid=-1
13358   while :; do
13359     cat >conftest.$ac_ext <<_ACEOF
13360 #line $LINENO "configure"
13361 /* confdefs.h.  */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h.  */
13366 $ac_includes_default
13367 int
13368 main ()
13369 {
13370 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13371 test_array [0] = 0
13372
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379   (eval $ac_compile) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); } &&
13383          { ac_try='test -s conftest.$ac_objext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_lo=$ac_mid; break
13390 else
13391   echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 ac_hi=`expr '(' $ac_mid ')' - 1`
13395                        if test $ac_mid -le $ac_hi; then
13396                          ac_lo= ac_hi=
13397                          break
13398                        fi
13399                        ac_mid=`expr 2 '*' $ac_mid`
13400 fi
13401 rm -f conftest.$ac_objext conftest.$ac_ext
13402   done
13403 else
13404   echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407 ac_lo= ac_hi=
13408 fi
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13410 fi
13411 rm -f conftest.$ac_objext conftest.$ac_ext
13412 # Binary search between lo and hi bounds.
13413 while test "x$ac_lo" != "x$ac_hi"; do
13414   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13415   cat >conftest.$ac_ext <<_ACEOF
13416 #line $LINENO "configure"
13417 /* confdefs.h.  */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h.  */
13422 $ac_includes_default
13423 int
13424 main ()
13425 {
13426 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13427 test_array [0] = 0
13428
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435   (eval $ac_compile) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_hi=$ac_mid
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 ac_lo=`expr '(' $ac_mid ')' + 1`
13451 fi
13452 rm -f conftest.$ac_objext conftest.$ac_ext
13453 done
13454 case $ac_lo in
13455 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13457 See \`config.log' for more details." >&5
13458 echo "$as_me: error: cannot compute sizeof (long long int), 77
13459 See \`config.log' for more details." >&2;}
13460    { (exit 1); exit 1; }; } ;;
13461 esac
13462 else
13463   if test "$cross_compiling" = yes; then
13464   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13465 See \`config.log' for more details." >&5
13466 echo "$as_me: error: cannot run test program while cross compiling
13467 See \`config.log' for more details." >&2;}
13468    { (exit 1); exit 1; }; }
13469 else
13470   cat >conftest.$ac_ext <<_ACEOF
13471 #line $LINENO "configure"
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477 $ac_includes_default
13478 long longval () { return (long) (sizeof (long long int)); }
13479 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13480 #include <stdio.h>
13481 #include <stdlib.h>
13482 int
13483 main ()
13484 {
13485
13486   FILE *f = fopen ("conftest.val", "w");
13487   if (! f)
13488     exit (1);
13489   if (((long) (sizeof (long long int))) < 0)
13490     {
13491       long i = longval ();
13492       if (i != ((long) (sizeof (long long int))))
13493         exit (1);
13494       fprintf (f, "%ld\n", i);
13495     }
13496   else
13497     {
13498       unsigned long i = ulongval ();
13499       if (i != ((long) (sizeof (long long int))))
13500         exit (1);
13501       fprintf (f, "%lu\n", i);
13502     }
13503   exit (ferror (f) || fclose (f) != 0);
13504
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511   (eval $ac_link) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516   (eval $ac_try) 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); }; }; then
13520   ac_cv_sizeof_long_long_int=`cat conftest.val`
13521 else
13522   echo "$as_me: program exited with status $ac_status" >&5
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526 ( exit $ac_status )
13527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13528 See \`config.log' for more details." >&5
13529 echo "$as_me: error: cannot compute sizeof (long long int), 77
13530 See \`config.log' for more details." >&2;}
13531    { (exit 1); exit 1; }; }
13532 fi
13533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13534 fi
13535 fi
13536 rm -f conftest.val
13537 else
13538   ac_cv_sizeof_long_long_int=0
13539 fi
13540 fi
13541 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13542 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13543 cat >>confdefs.h <<_ACEOF
13544 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13545 _ACEOF
13546
13547
13548 echo "$as_me:$LINENO: checking for int *" >&5
13549 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13550 if test "${ac_cv_type_int_p+set}" = set; then
13551   echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553   cat >conftest.$ac_ext <<_ACEOF
13554 #line $LINENO "configure"
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 $ac_includes_default
13561 int
13562 main ()
13563 {
13564 if ((int * *) 0)
13565   return 0;
13566 if (sizeof (int *))
13567   return 0;
13568   ;
13569   return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574   (eval $ac_compile) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -s conftest.$ac_objext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_type_int_p=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_cv_type_int_p=no
13590 fi
13591 rm -f conftest.$ac_objext conftest.$ac_ext
13592 fi
13593 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13594 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13595
13596 echo "$as_me:$LINENO: checking size of int *" >&5
13597 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13598 if test "${ac_cv_sizeof_int_p+set}" = set; then
13599   echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
13601   if test "$ac_cv_type_int_p" = yes; then
13602   # The cast to unsigned long works around a bug in the HP C Compiler
13603   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13604   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13605   # This bug is HP SR number 8606223364.
13606   if test "$cross_compiling" = yes; then
13607   # Depending upon the size, compute the lo and hi bounds.
13608 cat >conftest.$ac_ext <<_ACEOF
13609 #line $LINENO "configure"
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615 $ac_includes_default
13616 int
13617 main ()
13618 {
13619 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13620 test_array [0] = 0
13621
13622   ;
13623   return 0;
13624 }
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628   (eval $ac_compile) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -s conftest.$ac_objext'
13633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634   (eval $ac_try) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; }; then
13638   ac_lo=0 ac_mid=0
13639   while :; do
13640     cat >conftest.$ac_ext <<_ACEOF
13641 #line $LINENO "configure"
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647 $ac_includes_default
13648 int
13649 main ()
13650 {
13651 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13652 test_array [0] = 0
13653
13654   ;
13655   return 0;
13656 }
13657 _ACEOF
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660   (eval $ac_compile) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -s conftest.$ac_objext'
13665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666   (eval $ac_try) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; }; then
13670   ac_hi=$ac_mid; break
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 ac_lo=`expr $ac_mid + 1`
13676                     if test $ac_lo -le $ac_mid; then
13677                       ac_lo= ac_hi=
13678                       break
13679                     fi
13680                     ac_mid=`expr 2 '*' $ac_mid + 1`
13681 fi
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13683   done
13684 else
13685   echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688 cat >conftest.$ac_ext <<_ACEOF
13689 #line $LINENO "configure"
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695 $ac_includes_default
13696 int
13697 main ()
13698 {
13699 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13700 test_array [0] = 0
13701
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708   (eval $ac_compile) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); } &&
13712          { ac_try='test -s conftest.$ac_objext'
13713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714   (eval $ac_try) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; }; then
13718   ac_hi=-1 ac_mid=-1
13719   while :; do
13720     cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 /* confdefs.h.  */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h.  */
13727 $ac_includes_default
13728 int
13729 main ()
13730 {
13731 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13732 test_array [0] = 0
13733
13734   ;
13735   return 0;
13736 }
13737 _ACEOF
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740   (eval $ac_compile) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } &&
13744          { ac_try='test -s conftest.$ac_objext'
13745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746   (eval $ac_try) 2>&5
13747   ac_status=$?
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); }; }; then
13750   ac_lo=$ac_mid; break
13751 else
13752   echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755 ac_hi=`expr '(' $ac_mid ')' - 1`
13756                        if test $ac_mid -le $ac_hi; then
13757                          ac_lo= ac_hi=
13758                          break
13759                        fi
13760                        ac_mid=`expr 2 '*' $ac_mid`
13761 fi
13762 rm -f conftest.$ac_objext conftest.$ac_ext
13763   done
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13767
13768 ac_lo= ac_hi=
13769 fi
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13771 fi
13772 rm -f conftest.$ac_objext conftest.$ac_ext
13773 # Binary search between lo and hi bounds.
13774 while test "x$ac_lo" != "x$ac_hi"; do
13775   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13776   cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13778 /* confdefs.h.  */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h.  */
13783 $ac_includes_default
13784 int
13785 main ()
13786 {
13787 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13788 test_array [0] = 0
13789
13790   ;
13791   return 0;
13792 }
13793 _ACEOF
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796   (eval $ac_compile) 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -s conftest.$ac_objext'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }; then
13806   ac_hi=$ac_mid
13807 else
13808   echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 ac_lo=`expr '(' $ac_mid ')' + 1`
13812 fi
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13814 done
13815 case $ac_lo in
13816 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13817 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13818 See \`config.log' for more details." >&5
13819 echo "$as_me: error: cannot compute sizeof (int *), 77
13820 See \`config.log' for more details." >&2;}
13821    { (exit 1); exit 1; }; } ;;
13822 esac
13823 else
13824   if test "$cross_compiling" = yes; then
13825   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13826 See \`config.log' for more details." >&5
13827 echo "$as_me: error: cannot run test program while cross compiling
13828 See \`config.log' for more details." >&2;}
13829    { (exit 1); exit 1; }; }
13830 else
13831   cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838 $ac_includes_default
13839 long longval () { return (long) (sizeof (int *)); }
13840 unsigned long ulongval () { return (long) (sizeof (int *)); }
13841 #include <stdio.h>
13842 #include <stdlib.h>
13843 int
13844 main ()
13845 {
13846
13847   FILE *f = fopen ("conftest.val", "w");
13848   if (! f)
13849     exit (1);
13850   if (((long) (sizeof (int *))) < 0)
13851     {
13852       long i = longval ();
13853       if (i != ((long) (sizeof (int *))))
13854         exit (1);
13855       fprintf (f, "%ld\n", i);
13856     }
13857   else
13858     {
13859       unsigned long i = ulongval ();
13860       if (i != ((long) (sizeof (int *))))
13861         exit (1);
13862       fprintf (f, "%lu\n", i);
13863     }
13864   exit (ferror (f) || fclose (f) != 0);
13865
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872   (eval $ac_link) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   ac_cv_sizeof_int_p=`cat conftest.val`
13882 else
13883   echo "$as_me: program exited with status $ac_status" >&5
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 ( exit $ac_status )
13888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13889 See \`config.log' for more details." >&5
13890 echo "$as_me: error: cannot compute sizeof (int *), 77
13891 See \`config.log' for more details." >&2;}
13892    { (exit 1); exit 1; }; }
13893 fi
13894 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13895 fi
13896 fi
13897 rm -f conftest.val
13898 else
13899   ac_cv_sizeof_int_p=0
13900 fi
13901 fi
13902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13903 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13904 cat >>confdefs.h <<_ACEOF
13905 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13906 _ACEOF
13907
13908
13909
13910 # Check for sys/types.h types
13911 echo "$as_me:$LINENO: checking for u_int type" >&5
13912 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13913 if test "${ac_cv_have_u_int+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916
13917     cat >conftest.$ac_ext <<_ACEOF
13918 #line $LINENO "configure"
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924  #include <sys/types.h>
13925 int
13926 main ()
13927 {
13928  u_int a; a = 1;
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935   (eval $ac_compile) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } &&
13939          { ac_try='test -s conftest.$ac_objext'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945    ac_cv_have_u_int="yes"
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950  ac_cv_have_u_int="no"
13951
13952 fi
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13954
13955 fi
13956 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13957 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13958 if test "x$ac_cv_have_u_int" = "xyes" ; then
13959    cat >>confdefs.h <<\_ACEOF
13960 #define HAVE_U_INT 1
13961 _ACEOF
13962
13963    have_u_int=1
13964 fi
13965
13966 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13967 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13968 if test "${ac_cv_have_intmax_t+set}" = set; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971
13972    cat >conftest.$ac_ext <<_ACEOF
13973 #line $LINENO "configure"
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979  #include <sys/types.h>
13980 int
13981 main ()
13982 {
13983  intmax_t a; a = 1;
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990   (eval $ac_compile) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -s conftest.$ac_objext'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000    ac_cv_have_intmax_t="yes"
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005
14006          cat >conftest.$ac_ext <<_ACEOF
14007 #line $LINENO "configure"
14008 /* confdefs.h.  */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h.  */
14013  #include <stdint.h>
14014 int
14015 main ()
14016 {
14017  intmax_t a; a = 1;
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_have_intmax_t="yes"
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039  ac_cv_have_intmax_t="no"
14040
14041 fi
14042 rm -f conftest.$ac_objext conftest.$ac_ext
14043
14044
14045 fi
14046 rm -f conftest.$ac_objext conftest.$ac_ext
14047
14048
14049 fi
14050 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14051 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14052 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14053    cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_INTMAX_T 1
14055 _ACEOF
14056
14057    have_intmax_t=1
14058 fi
14059
14060
14061 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14062 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14063 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066
14067    cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074  #include <sys/types.h>
14075 int
14076 main ()
14077 {
14078  u_intmax_t a; a = 1;
14079   ;
14080   return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085   (eval $ac_compile) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); } &&
14089          { ac_try='test -s conftest.$ac_objext'
14090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091   (eval $ac_try) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; }; then
14095    ac_cv_have_u_intmax_t="yes"
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100
14101          cat >conftest.$ac_ext <<_ACEOF
14102 #line $LINENO "configure"
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108  #include <stdint.h>
14109 int
14110 main ()
14111 {
14112  u_intmax_t a; a = 1;
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 rm -f conftest.$ac_objext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14119   (eval $ac_compile) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); } &&
14123          { ac_try='test -s conftest.$ac_objext'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129    ac_cv_have_u_intmax_t="yes"
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134  ac_cv_have_u_intmax_t="no"
14135
14136 fi
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138
14139
14140 fi
14141 rm -f conftest.$ac_objext conftest.$ac_ext
14142
14143 fi
14144 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14145 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14146 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14147    cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_U_INTMAX_T 1
14149 _ACEOF
14150
14151    have_u_intmax_t=1
14152 fi
14153
14154
14155 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14156 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14157 if test "${ac_cv_have_intxx_t+set}" = set; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160
14161    cat >conftest.$ac_ext <<_ACEOF
14162 #line $LINENO "configure"
14163 /* confdefs.h.  */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h.  */
14168  #include <sys/types.h>
14169 int
14170 main ()
14171 {
14172  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14173   ;
14174   return 0;
14175 }
14176 _ACEOF
14177 rm -f conftest.$ac_objext
14178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14179   (eval $ac_compile) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -s conftest.$ac_objext'
14184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185   (eval $ac_try) 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; }; then
14189    ac_cv_have_intxx_t="yes"
14190 else
14191   echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194  ac_cv_have_intxx_t="no"
14195
14196 fi
14197 rm -f conftest.$ac_objext conftest.$ac_ext
14198
14199 fi
14200 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14201 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14202 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14203    cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_INTXX_T 1
14205 _ACEOF
14206
14207    have_intxx_t=1
14208 fi
14209
14210 echo "$as_me:$LINENO: checking for int64_t type" >&5
14211 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14212 if test "${ac_cv_have_int64_t+set}" = set; then
14213   echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215
14216    cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14218 /* confdefs.h.  */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h.  */
14223  #include <sys/types.h>
14224 int
14225 main ()
14226 {
14227  int64_t a; a = 1;
14228   ;
14229   return 0;
14230 }
14231 _ACEOF
14232 rm -f conftest.$ac_objext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14234   (eval $ac_compile) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); } &&
14238          { ac_try='test -s conftest.$ac_objext'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; }; then
14244    ac_cv_have_int64_t="yes"
14245 else
14246   echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249  ac_cv_have_int64_t="no"
14250
14251 fi
14252 rm -f conftest.$ac_objext conftest.$ac_ext
14253
14254 fi
14255 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14256 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14257 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14258    cat >>confdefs.h <<\_ACEOF
14259 #define HAVE_INT64_T 1
14260 _ACEOF
14261
14262    have_int64_t=1
14263 fi
14264
14265 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14266 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14267 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270
14271    cat >conftest.$ac_ext <<_ACEOF
14272 #line $LINENO "configure"
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278  #include <sys/types.h>
14279 int
14280 main ()
14281 {
14282  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14283   ;
14284   return 0;
14285 }
14286 _ACEOF
14287 rm -f conftest.$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289   (eval $ac_compile) 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -s conftest.$ac_objext'
14294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295   (eval $ac_try) 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; }; then
14299    ac_cv_have_u_intxx_t="yes"
14300 else
14301   echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14303
14304  ac_cv_have_u_intxx_t="no"
14305
14306 fi
14307 rm -f conftest.$ac_objext conftest.$ac_ext
14308
14309 fi
14310 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14311 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14312 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14313    cat >>confdefs.h <<\_ACEOF
14314 #define HAVE_U_INTXX_T 1
14315 _ACEOF
14316
14317    have_u_intxx_t=1
14318 fi
14319
14320 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14321 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14322 if test "${ac_cv_have_u_int64_t+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325
14326    cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333  #include <sys/types.h>
14334 int
14335 main ()
14336 {
14337  u_int64_t a; a = 1;
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344   (eval $ac_compile) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -s conftest.$ac_objext'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354    ac_cv_have_u_int64_t="yes"
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359  ac_cv_have_u_int64_t="no"
14360
14361 fi
14362 rm -f conftest.$ac_objext conftest.$ac_ext
14363
14364 fi
14365 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14366 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14367 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14368    cat >>confdefs.h <<\_ACEOF
14369 #define HAVE_U_INT64_T 1
14370 _ACEOF
14371
14372    have_u_int64_t=1
14373 fi
14374
14375 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14376            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14377 then
14378    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14379 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14380    cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387  #include <sys/bitypes.h>
14388 int
14389 main ()
14390 {
14391  int8_t a; int16_t b; int32_t c;
14392         u_int8_t e; u_int16_t f; u_int32_t g;
14393         a = b = c = e = f = g = 1;
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 rm -f conftest.$ac_objext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400   (eval $ac_compile) 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); } &&
14404          { ac_try='test -s conftest.$ac_objext'
14405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406   (eval $ac_try) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; }; then
14410    cat >>confdefs.h <<\_ACEOF
14411 #define HAVE_U_INTXX_T 1
14412 _ACEOF
14413
14414         cat >>confdefs.h <<\_ACEOF
14415 #define HAVE_INTXX_T 1
14416 _ACEOF
14417
14418         cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_SYS_BITYPES_H 1
14420 _ACEOF
14421
14422         echo "$as_me:$LINENO: result: yes" >&5
14423 echo "${ECHO_T}yes" >&6
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428  echo "$as_me:$LINENO: result: no" >&5
14429 echo "${ECHO_T}no" >&6
14430
14431 fi
14432 rm -f conftest.$ac_objext conftest.$ac_ext
14433 fi
14434
14435 if test -z "$have_u_intxx_t" ; then
14436    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14437 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14438 if test "${ac_cv_have_uintxx_t+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441
14442       cat >conftest.$ac_ext <<_ACEOF
14443 #line $LINENO "configure"
14444 /* confdefs.h.  */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h.  */
14449  #include <sys/types.h>
14450 int
14451 main ()
14452 {
14453  uint8_t a; uint16_t b;
14454            uint32_t c; a = b = c = 1;
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461   (eval $ac_compile) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); } &&
14465          { ac_try='test -s conftest.$ac_objext'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471    ac_cv_have_uintxx_t="yes"
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476  ac_cv_have_uintxx_t="no"
14477
14478 fi
14479 rm -f conftest.$ac_objext conftest.$ac_ext
14480
14481 fi
14482 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14483 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14484    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14485       cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_UINTXX_T 1
14487 _ACEOF
14488
14489    fi
14490 fi
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506 for ac_func in \
14507         fork \
14508         getcwd \
14509         gethostname \
14510         getpid \
14511         gettimeofday \
14512         setpgid \
14513         setpgrp \
14514         setsid \
14515         signal \
14516         strerror \
14517         strncmp \
14518         strncpy \
14519         vfprintf \
14520
14521 do
14522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14523 echo "$as_me:$LINENO: checking for $ac_func" >&5
14524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14525 if eval "test \"\${$as_ac_var+set}\" = set"; then
14526   echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528   cat >conftest.$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 /* System header to define __stub macros and hopefully few prototypes,
14536     which can conflict with char $ac_func (); below.
14537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14538     <limits.h> exists even on freestanding compilers.  */
14539 #ifdef __STDC__
14540 # include <limits.h>
14541 #else
14542 # include <assert.h>
14543 #endif
14544 /* Override any gcc2 internal prototype to avoid an error.  */
14545 #ifdef __cplusplus
14546 extern "C"
14547 {
14548 #endif
14549 /* We use char because int might match the return type of a gcc2
14550    builtin and then its argument prototype would still apply.  */
14551 char $ac_func ();
14552 /* The GNU C library defines this for functions which it implements
14553     to always fail with ENOSYS.  Some functions are actually named
14554     something starting with __ and the normal name is an alias.  */
14555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14556 choke me
14557 #else
14558 char (*f) () = $ac_func;
14559 #endif
14560 #ifdef __cplusplus
14561 }
14562 #endif
14563
14564 int
14565 main ()
14566 {
14567 return f != $ac_func;
14568   ;
14569   return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574   (eval $ac_link) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } &&
14578          { ac_try='test -s conftest$ac_exeext'
14579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580   (eval $ac_try) 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; }; then
14584   eval "$as_ac_var=yes"
14585 else
14586   echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589 eval "$as_ac_var=no"
14590 fi
14591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14592 fi
14593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14595 if test `eval echo '${'$as_ac_var'}'` = yes; then
14596   cat >>confdefs.h <<_ACEOF
14597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14598 _ACEOF
14599
14600 else
14601   echo 'configure: cannot find needed function.'; exit 1
14602
14603 fi
14604 done
14605
14606
14607
14608 for ac_func in fchdir
14609 do
14610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14611 echo "$as_me:$LINENO: checking for $ac_func" >&5
14612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_var+set}\" = set"; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 /* confdefs.h.  */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h.  */
14623 /* System header to define __stub macros and hopefully few prototypes,
14624     which can conflict with char $ac_func (); below.
14625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14626     <limits.h> exists even on freestanding compilers.  */
14627 #ifdef __STDC__
14628 # include <limits.h>
14629 #else
14630 # include <assert.h>
14631 #endif
14632 /* Override any gcc2 internal prototype to avoid an error.  */
14633 #ifdef __cplusplus
14634 extern "C"
14635 {
14636 #endif
14637 /* We use char because int might match the return type of a gcc2
14638    builtin and then its argument prototype would still apply.  */
14639 char $ac_func ();
14640 /* The GNU C library defines this for functions which it implements
14641     to always fail with ENOSYS.  Some functions are actually named
14642     something starting with __ and the normal name is an alias.  */
14643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14644 choke me
14645 #else
14646 char (*f) () = $ac_func;
14647 #endif
14648 #ifdef __cplusplus
14649 }
14650 #endif
14651
14652 int
14653 main ()
14654 {
14655 return f != $ac_func;
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest.$ac_objext conftest$ac_exeext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14662   (eval $ac_link) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } &&
14666          { ac_try='test -s conftest$ac_exeext'
14667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668   (eval $ac_try) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; }; then
14672   eval "$as_ac_var=yes"
14673 else
14674   echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677 eval "$as_ac_var=no"
14678 fi
14679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14680 fi
14681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14683 if test `eval echo '${'$as_ac_var'}'` = yes; then
14684   cat >>confdefs.h <<_ACEOF
14685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14686 _ACEOF
14687  cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_FCHDIR 1
14689 _ACEOF
14690
14691 fi
14692 done
14693
14694
14695 for ac_func in strtoll
14696 do
14697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14698 echo "$as_me:$LINENO: checking for $ac_func" >&5
14699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14700 if eval "test \"\${$as_ac_var+set}\" = set"; then
14701   echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703   cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 /* System header to define __stub macros and hopefully few prototypes,
14711     which can conflict with char $ac_func (); below.
14712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14713     <limits.h> exists even on freestanding compilers.  */
14714 #ifdef __STDC__
14715 # include <limits.h>
14716 #else
14717 # include <assert.h>
14718 #endif
14719 /* Override any gcc2 internal prototype to avoid an error.  */
14720 #ifdef __cplusplus
14721 extern "C"
14722 {
14723 #endif
14724 /* We use char because int might match the return type of a gcc2
14725    builtin and then its argument prototype would still apply.  */
14726 char $ac_func ();
14727 /* The GNU C library defines this for functions which it implements
14728     to always fail with ENOSYS.  Some functions are actually named
14729     something starting with __ and the normal name is an alias.  */
14730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14731 choke me
14732 #else
14733 char (*f) () = $ac_func;
14734 #endif
14735 #ifdef __cplusplus
14736 }
14737 #endif
14738
14739 int
14740 main ()
14741 {
14742 return f != $ac_func;
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14749   (eval $ac_link) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } &&
14753          { ac_try='test -s conftest$ac_exeext'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; }; then
14759   eval "$as_ac_var=yes"
14760 else
14761   echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 eval "$as_ac_var=no"
14765 fi
14766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14767 fi
14768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14770 if test `eval echo '${'$as_ac_var'}'` = yes; then
14771   cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14773 _ACEOF
14774  cat >>confdefs.h <<\_ACEOF
14775 #define HAVE_STRTOLL 1
14776 _ACEOF
14777
14778 fi
14779 done
14780
14781
14782
14783 for ac_func in chflags
14784 do
14785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14786 echo "$as_me:$LINENO: checking for $ac_func" >&5
14787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14788 if eval "test \"\${$as_ac_var+set}\" = set"; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   cat >conftest.$ac_ext <<_ACEOF
14792 #line $LINENO "configure"
14793 /* confdefs.h.  */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h.  */
14798 /* System header to define __stub macros and hopefully few prototypes,
14799     which can conflict with char $ac_func (); below.
14800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801     <limits.h> exists even on freestanding compilers.  */
14802 #ifdef __STDC__
14803 # include <limits.h>
14804 #else
14805 # include <assert.h>
14806 #endif
14807 /* Override any gcc2 internal prototype to avoid an error.  */
14808 #ifdef __cplusplus
14809 extern "C"
14810 {
14811 #endif
14812 /* We use char because int might match the return type of a gcc2
14813    builtin and then its argument prototype would still apply.  */
14814 char $ac_func ();
14815 /* The GNU C library defines this for functions which it implements
14816     to always fail with ENOSYS.  Some functions are actually named
14817     something starting with __ and the normal name is an alias.  */
14818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14819 choke me
14820 #else
14821 char (*f) () = $ac_func;
14822 #endif
14823 #ifdef __cplusplus
14824 }
14825 #endif
14826
14827 int
14828 main ()
14829 {
14830 return f != $ac_func;
14831   ;
14832   return 0;
14833 }
14834 _ACEOF
14835 rm -f conftest.$ac_objext conftest$ac_exeext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14837   (eval $ac_link) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } &&
14841          { ac_try='test -s conftest$ac_exeext'
14842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843   (eval $ac_try) 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; }; then
14847   eval "$as_ac_var=yes"
14848 else
14849   echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 eval "$as_ac_var=no"
14853 fi
14854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14855 fi
14856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14858 if test `eval echo '${'$as_ac_var'}'` = yes; then
14859   cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14861 _ACEOF
14862
14863 fi
14864 done
14865
14866
14867
14868
14869
14870
14871 for ac_func in snprintf vsnprintf gethostid getdomainname
14872 do
14873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 echo "$as_me:$LINENO: checking for $ac_func" >&5
14875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14876 if eval "test \"\${$as_ac_var+set}\" = set"; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   cat >conftest.$ac_ext <<_ACEOF
14880 #line $LINENO "configure"
14881 /* confdefs.h.  */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h.  */
14886 /* System header to define __stub macros and hopefully few prototypes,
14887     which can conflict with char $ac_func (); below.
14888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14889     <limits.h> exists even on freestanding compilers.  */
14890 #ifdef __STDC__
14891 # include <limits.h>
14892 #else
14893 # include <assert.h>
14894 #endif
14895 /* Override any gcc2 internal prototype to avoid an error.  */
14896 #ifdef __cplusplus
14897 extern "C"
14898 {
14899 #endif
14900 /* We use char because int might match the return type of a gcc2
14901    builtin and then its argument prototype would still apply.  */
14902 char $ac_func ();
14903 /* The GNU C library defines this for functions which it implements
14904     to always fail with ENOSYS.  Some functions are actually named
14905     something starting with __ and the normal name is an alias.  */
14906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14907 choke me
14908 #else
14909 char (*f) () = $ac_func;
14910 #endif
14911 #ifdef __cplusplus
14912 }
14913 #endif
14914
14915 int
14916 main ()
14917 {
14918 return f != $ac_func;
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14925   (eval $ac_link) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } &&
14929          { ac_try='test -s conftest$ac_exeext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   eval "$as_ac_var=yes"
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940 eval "$as_ac_var=no"
14941 fi
14942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14943 fi
14944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14946 if test `eval echo '${'$as_ac_var'}'` = yes; then
14947   cat >>confdefs.h <<_ACEOF
14948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14949 _ACEOF
14950
14951 fi
14952 done
14953
14954
14955
14956
14957
14958
14959 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14960 do
14961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14962 echo "$as_me:$LINENO: checking for $ac_func" >&5
14963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14964 if eval "test \"\${$as_ac_var+set}\" = set"; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967   cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974 /* System header to define __stub macros and hopefully few prototypes,
14975     which can conflict with char $ac_func (); below.
14976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14977     <limits.h> exists even on freestanding compilers.  */
14978 #ifdef __STDC__
14979 # include <limits.h>
14980 #else
14981 # include <assert.h>
14982 #endif
14983 /* Override any gcc2 internal prototype to avoid an error.  */
14984 #ifdef __cplusplus
14985 extern "C"
14986 {
14987 #endif
14988 /* We use char because int might match the return type of a gcc2
14989    builtin and then its argument prototype would still apply.  */
14990 char $ac_func ();
14991 /* The GNU C library defines this for functions which it implements
14992     to always fail with ENOSYS.  Some functions are actually named
14993     something starting with __ and the normal name is an alias.  */
14994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14995 choke me
14996 #else
14997 char (*f) () = $ac_func;
14998 #endif
14999 #ifdef __cplusplus
15000 }
15001 #endif
15002
15003 int
15004 main ()
15005 {
15006 return f != $ac_func;
15007   ;
15008   return 0;
15009 }
15010 _ACEOF
15011 rm -f conftest.$ac_objext conftest$ac_exeext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013   (eval $ac_link) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } &&
15017          { ac_try='test -s conftest$ac_exeext'
15018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019   (eval $ac_try) 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; }; then
15023   eval "$as_ac_var=yes"
15024 else
15025   echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028 eval "$as_ac_var=no"
15029 fi
15030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15031 fi
15032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15034 if test `eval echo '${'$as_ac_var'}'` = yes; then
15035   cat >>confdefs.h <<_ACEOF
15036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037 _ACEOF
15038
15039 fi
15040 done
15041
15042
15043 # If resolver functions are not in libc check for -lnsl or -lresolv.
15044 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15045 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15046 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   cat >conftest.$ac_ext <<_ACEOF
15050 #line $LINENO "configure"
15051 /* confdefs.h.  */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h.  */
15056 /* System header to define __stub macros and hopefully few prototypes,
15057     which can conflict with char gethostbyname_r (); below.
15058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15059     <limits.h> exists even on freestanding compilers.  */
15060 #ifdef __STDC__
15061 # include <limits.h>
15062 #else
15063 # include <assert.h>
15064 #endif
15065 /* Override any gcc2 internal prototype to avoid an error.  */
15066 #ifdef __cplusplus
15067 extern "C"
15068 {
15069 #endif
15070 /* We use char because int might match the return type of a gcc2
15071    builtin and then its argument prototype would still apply.  */
15072 char gethostbyname_r ();
15073 /* The GNU C library defines this for functions which it implements
15074     to always fail with ENOSYS.  Some functions are actually named
15075     something starting with __ and the normal name is an alias.  */
15076 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15077 choke me
15078 #else
15079 char (*f) () = gethostbyname_r;
15080 #endif
15081 #ifdef __cplusplus
15082 }
15083 #endif
15084
15085 int
15086 main ()
15087 {
15088 return f != gethostbyname_r;
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 rm -f conftest.$ac_objext conftest$ac_exeext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095   (eval $ac_link) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } &&
15099          { ac_try='test -s conftest$ac_exeext'
15100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101   (eval $ac_try) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105   ac_cv_func_gethostbyname_r=yes
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_cv_func_gethostbyname_r=no
15111 fi
15112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15113 fi
15114 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15115 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15116 if test $ac_cv_func_gethostbyname_r = yes; then
15117   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15118 echo "${ECHO_T}using libc's resolver" >&6
15119 else
15120
15121 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15122 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15123 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126   ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-lnsl  $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 /* confdefs.h.  */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h.  */
15135
15136 /* Override any gcc2 internal prototype to avoid an error.  */
15137 #ifdef __cplusplus
15138 extern "C"
15139 #endif
15140 /* We use char because int might match the return type of a gcc2
15141    builtin and then its argument prototype would still apply.  */
15142 char gethostbyname_r ();
15143 int
15144 main ()
15145 {
15146 gethostbyname_r ();
15147   ;
15148   return 0;
15149 }
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153   (eval $ac_link) 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); } &&
15157          { ac_try='test -s conftest$ac_exeext'
15158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159   (eval $ac_try) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); }; }; then
15163   ac_cv_lib_nsl_gethostbyname_r=yes
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 ac_cv_lib_nsl_gethostbyname_r=no
15169 fi
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15172 fi
15173 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15174 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15175 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15176   cat >>confdefs.h <<_ACEOF
15177 #define HAVE_LIBNSL 1
15178 _ACEOF
15179
15180   LIBS="-lnsl $LIBS"
15181
15182 fi
15183
15184
15185 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15186 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15187 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15188   echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190   ac_check_lib_save_LIBS=$LIBS
15191 LIBS="-lresolv  $LIBS"
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line $LINENO "configure"
15194 /* confdefs.h.  */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h.  */
15199
15200 /* Override any gcc2 internal prototype to avoid an error.  */
15201 #ifdef __cplusplus
15202 extern "C"
15203 #endif
15204 /* We use char because int might match the return type of a gcc2
15205    builtin and then its argument prototype would still apply.  */
15206 char gethostbyname_r ();
15207 int
15208 main ()
15209 {
15210 gethostbyname_r ();
15211   ;
15212   return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217   (eval $ac_link) 2>&5
15218   ac_status=$?
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } &&
15221          { ac_try='test -s conftest$ac_exeext'
15222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223   (eval $ac_try) 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; }; then
15227   ac_cv_lib_resolv_gethostbyname_r=yes
15228 else
15229   echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_cv_lib_resolv_gethostbyname_r=no
15233 fi
15234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15235 LIBS=$ac_check_lib_save_LIBS
15236 fi
15237 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15238 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15239 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15240   cat >>confdefs.h <<_ACEOF
15241 #define HAVE_LIBRESOLV 1
15242 _ACEOF
15243
15244   LIBS="-lresolv $LIBS"
15245
15246 fi
15247
15248 fi
15249
15250
15251
15252 # Find where sockets are (especially for Solaris)
15253 echo "$as_me:$LINENO: checking for socket" >&5
15254 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15255 if test "${ac_cv_func_socket+set}" = set; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258   cat >conftest.$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265 /* System header to define __stub macros and hopefully few prototypes,
15266     which can conflict with char socket (); below.
15267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15268     <limits.h> exists even on freestanding compilers.  */
15269 #ifdef __STDC__
15270 # include <limits.h>
15271 #else
15272 # include <assert.h>
15273 #endif
15274 /* Override any gcc2 internal prototype to avoid an error.  */
15275 #ifdef __cplusplus
15276 extern "C"
15277 {
15278 #endif
15279 /* We use char because int might match the return type of a gcc2
15280    builtin and then its argument prototype would still apply.  */
15281 char socket ();
15282 /* The GNU C library defines this for functions which it implements
15283     to always fail with ENOSYS.  Some functions are actually named
15284     something starting with __ and the normal name is an alias.  */
15285 #if defined (__stub_socket) || defined (__stub___socket)
15286 choke me
15287 #else
15288 char (*f) () = socket;
15289 #endif
15290 #ifdef __cplusplus
15291 }
15292 #endif
15293
15294 int
15295 main ()
15296 {
15297 return f != socket;
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304   (eval $ac_link) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); } &&
15308          { ac_try='test -s conftest$ac_exeext'
15309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310   (eval $ac_try) 2>&5
15311   ac_status=$?
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); }; }; then
15314   ac_cv_func_socket=yes
15315 else
15316   echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319 ac_cv_func_socket=no
15320 fi
15321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15322 fi
15323 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15324 echo "${ECHO_T}$ac_cv_func_socket" >&6
15325 if test $ac_cv_func_socket = yes; then
15326   echo "$as_me:$LINENO: result: using libc's socket" >&5
15327 echo "${ECHO_T}using libc's socket" >&6
15328 else
15329
15330 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15331 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15332 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   ac_check_lib_save_LIBS=$LIBS
15336 LIBS="-lxnet  $LIBS"
15337 cat >conftest.$ac_ext <<_ACEOF
15338 #line $LINENO "configure"
15339 /* confdefs.h.  */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h.  */
15344
15345 /* Override any gcc2 internal prototype to avoid an error.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 #endif
15349 /* We use char because int might match the return type of a gcc2
15350    builtin and then its argument prototype would still apply.  */
15351 char socket ();
15352 int
15353 main ()
15354 {
15355 socket ();
15356   ;
15357   return 0;
15358 }
15359 _ACEOF
15360 rm -f conftest.$ac_objext conftest$ac_exeext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15362   (eval $ac_link) 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } &&
15366          { ac_try='test -s conftest$ac_exeext'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; }; then
15372   ac_cv_lib_xnet_socket=yes
15373 else
15374   echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ac_cv_lib_xnet_socket=no
15378 fi
15379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15381 fi
15382 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15383 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15384 if test $ac_cv_lib_xnet_socket = yes; then
15385   cat >>confdefs.h <<_ACEOF
15386 #define HAVE_LIBXNET 1
15387 _ACEOF
15388
15389   LIBS="-lxnet $LIBS"
15390
15391 fi
15392
15393
15394 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15395 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15396 if test "${ac_cv_lib_socket_socket+set}" = set; then
15397   echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399   ac_check_lib_save_LIBS=$LIBS
15400 LIBS="-lsocket  $LIBS"
15401 cat >conftest.$ac_ext <<_ACEOF
15402 #line $LINENO "configure"
15403 /* confdefs.h.  */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h.  */
15408
15409 /* Override any gcc2 internal prototype to avoid an error.  */
15410 #ifdef __cplusplus
15411 extern "C"
15412 #endif
15413 /* We use char because int might match the return type of a gcc2
15414    builtin and then its argument prototype would still apply.  */
15415 char socket ();
15416 int
15417 main ()
15418 {
15419 socket ();
15420   ;
15421   return 0;
15422 }
15423 _ACEOF
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15426   (eval $ac_link) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); } &&
15430          { ac_try='test -s conftest$ac_exeext'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_cv_lib_socket_socket=yes
15437 else
15438   echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 ac_cv_lib_socket_socket=no
15442 fi
15443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15444 LIBS=$ac_check_lib_save_LIBS
15445 fi
15446 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15447 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15448 if test $ac_cv_lib_socket_socket = yes; then
15449   cat >>confdefs.h <<_ACEOF
15450 #define HAVE_LIBSOCKET 1
15451 _ACEOF
15452
15453   LIBS="-lsocket $LIBS"
15454
15455 fi
15456
15457
15458 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15459 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15460 if test "${ac_cv_lib_inet_socket+set}" = set; then
15461   echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463   ac_check_lib_save_LIBS=$LIBS
15464 LIBS="-linet  $LIBS"
15465 cat >conftest.$ac_ext <<_ACEOF
15466 #line $LINENO "configure"
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472
15473 /* Override any gcc2 internal prototype to avoid an error.  */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 /* We use char because int might match the return type of a gcc2
15478    builtin and then its argument prototype would still apply.  */
15479 char socket ();
15480 int
15481 main ()
15482 {
15483 socket ();
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490   (eval $ac_link) 2>&5
15491   ac_status=$?
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); } &&
15494          { ac_try='test -s conftest$ac_exeext'
15495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496   (eval $ac_try) 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500   ac_cv_lib_inet_socket=yes
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_cv_lib_inet_socket=no
15506 fi
15507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15508 LIBS=$ac_check_lib_save_LIBS
15509 fi
15510 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15511 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15512 if test $ac_cv_lib_inet_socket = yes; then
15513   cat >>confdefs.h <<_ACEOF
15514 #define HAVE_LIBINET 1
15515 _ACEOF
15516
15517   LIBS="-linet $LIBS"
15518
15519 fi
15520
15521 fi
15522
15523
15524
15525 for ac_func in inet_pton
15526 do
15527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15528 echo "$as_me:$LINENO: checking for $ac_func" >&5
15529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15530 if eval "test \"\${$as_ac_var+set}\" = set"; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533   cat >conftest.$ac_ext <<_ACEOF
15534 #line $LINENO "configure"
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540 /* System header to define __stub macros and hopefully few prototypes,
15541     which can conflict with char $ac_func (); below.
15542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15543     <limits.h> exists even on freestanding compilers.  */
15544 #ifdef __STDC__
15545 # include <limits.h>
15546 #else
15547 # include <assert.h>
15548 #endif
15549 /* Override any gcc2 internal prototype to avoid an error.  */
15550 #ifdef __cplusplus
15551 extern "C"
15552 {
15553 #endif
15554 /* We use char because int might match the return type of a gcc2
15555    builtin and then its argument prototype would still apply.  */
15556 char $ac_func ();
15557 /* The GNU C library defines this for functions which it implements
15558     to always fail with ENOSYS.  Some functions are actually named
15559     something starting with __ and the normal name is an alias.  */
15560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15561 choke me
15562 #else
15563 char (*f) () = $ac_func;
15564 #endif
15565 #ifdef __cplusplus
15566 }
15567 #endif
15568
15569 int
15570 main ()
15571 {
15572 return f != $ac_func;
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579   (eval $ac_link) 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } &&
15583          { ac_try='test -s conftest$ac_exeext'
15584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585   (eval $ac_try) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589   eval "$as_ac_var=yes"
15590 else
15591   echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 eval "$as_ac_var=no"
15595 fi
15596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597 fi
15598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15600 if test `eval echo '${'$as_ac_var'}'` = yes; then
15601   cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15603 _ACEOF
15604  cat >>confdefs.h <<\_ACEOF
15605 #define HAVE_INET_PTON 1
15606 _ACEOF
15607
15608 fi
15609 done
15610
15611
15612
15613 for ac_func in strftime
15614 do
15615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15616 echo "$as_me:$LINENO: checking for $ac_func" >&5
15617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15618 if eval "test \"\${$as_ac_var+set}\" = set"; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   cat >conftest.$ac_ext <<_ACEOF
15622 #line $LINENO "configure"
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628 /* System header to define __stub macros and hopefully few prototypes,
15629     which can conflict with char $ac_func (); below.
15630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15631     <limits.h> exists even on freestanding compilers.  */
15632 #ifdef __STDC__
15633 # include <limits.h>
15634 #else
15635 # include <assert.h>
15636 #endif
15637 /* Override any gcc2 internal prototype to avoid an error.  */
15638 #ifdef __cplusplus
15639 extern "C"
15640 {
15641 #endif
15642 /* We use char because int might match the return type of a gcc2
15643    builtin and then its argument prototype would still apply.  */
15644 char $ac_func ();
15645 /* The GNU C library defines this for functions which it implements
15646     to always fail with ENOSYS.  Some functions are actually named
15647     something starting with __ and the normal name is an alias.  */
15648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15649 choke me
15650 #else
15651 char (*f) () = $ac_func;
15652 #endif
15653 #ifdef __cplusplus
15654 }
15655 #endif
15656
15657 int
15658 main ()
15659 {
15660 return f != $ac_func;
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   eval "$as_ac_var=yes"
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 eval "$as_ac_var=no"
15683 fi
15684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15685 fi
15686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15688 if test `eval echo '${'$as_ac_var'}'` = yes; then
15689   cat >>confdefs.h <<_ACEOF
15690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15691 _ACEOF
15692
15693 else
15694   # strftime is in -lintl on SCO UNIX.
15695 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15696 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15697 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15698   echo $ECHO_N "(cached) $ECHO_C" >&6
15699 else
15700   ac_check_lib_save_LIBS=$LIBS
15701 LIBS="-lintl  $LIBS"
15702 cat >conftest.$ac_ext <<_ACEOF
15703 #line $LINENO "configure"
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709
15710 /* Override any gcc2 internal prototype to avoid an error.  */
15711 #ifdef __cplusplus
15712 extern "C"
15713 #endif
15714 /* We use char because int might match the return type of a gcc2
15715    builtin and then its argument prototype would still apply.  */
15716 char strftime ();
15717 int
15718 main ()
15719 {
15720 strftime ();
15721   ;
15722   return 0;
15723 }
15724 _ACEOF
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727   (eval $ac_link) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -s conftest$ac_exeext'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; }; then
15737   ac_cv_lib_intl_strftime=yes
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 ac_cv_lib_intl_strftime=no
15743 fi
15744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15745 LIBS=$ac_check_lib_save_LIBS
15746 fi
15747 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15748 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15749 if test $ac_cv_lib_intl_strftime = yes; then
15750   cat >>confdefs.h <<\_ACEOF
15751 #define HAVE_STRFTIME 1
15752 _ACEOF
15753
15754 LIBS="-lintl $LIBS"
15755 fi
15756
15757 fi
15758 done
15759
15760
15761 for ac_func in vprintf
15762 do
15763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764 echo "$as_me:$LINENO: checking for $ac_func" >&5
15765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15766 if eval "test \"\${$as_ac_var+set}\" = set"; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769   cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776 /* System header to define __stub macros and hopefully few prototypes,
15777     which can conflict with char $ac_func (); below.
15778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15779     <limits.h> exists even on freestanding compilers.  */
15780 #ifdef __STDC__
15781 # include <limits.h>
15782 #else
15783 # include <assert.h>
15784 #endif
15785 /* Override any gcc2 internal prototype to avoid an error.  */
15786 #ifdef __cplusplus
15787 extern "C"
15788 {
15789 #endif
15790 /* We use char because int might match the return type of a gcc2
15791    builtin and then its argument prototype would still apply.  */
15792 char $ac_func ();
15793 /* The GNU C library defines this for functions which it implements
15794     to always fail with ENOSYS.  Some functions are actually named
15795     something starting with __ and the normal name is an alias.  */
15796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15797 choke me
15798 #else
15799 char (*f) () = $ac_func;
15800 #endif
15801 #ifdef __cplusplus
15802 }
15803 #endif
15804
15805 int
15806 main ()
15807 {
15808 return f != $ac_func;
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815   (eval $ac_link) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -s conftest$ac_exeext'
15820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821   (eval $ac_try) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); }; }; then
15825   eval "$as_ac_var=yes"
15826 else
15827   echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 eval "$as_ac_var=no"
15831 fi
15832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15833 fi
15834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15836 if test `eval echo '${'$as_ac_var'}'` = yes; then
15837   cat >>confdefs.h <<_ACEOF
15838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15839 _ACEOF
15840
15841 echo "$as_me:$LINENO: checking for _doprnt" >&5
15842 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15843 if test "${ac_cv_func__doprnt+set}" = set; then
15844   echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846   cat >conftest.$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 /* System header to define __stub macros and hopefully few prototypes,
15854     which can conflict with char _doprnt (); below.
15855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15856     <limits.h> exists even on freestanding compilers.  */
15857 #ifdef __STDC__
15858 # include <limits.h>
15859 #else
15860 # include <assert.h>
15861 #endif
15862 /* Override any gcc2 internal prototype to avoid an error.  */
15863 #ifdef __cplusplus
15864 extern "C"
15865 {
15866 #endif
15867 /* We use char because int might match the return type of a gcc2
15868    builtin and then its argument prototype would still apply.  */
15869 char _doprnt ();
15870 /* The GNU C library defines this for functions which it implements
15871     to always fail with ENOSYS.  Some functions are actually named
15872     something starting with __ and the normal name is an alias.  */
15873 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15874 choke me
15875 #else
15876 char (*f) () = _doprnt;
15877 #endif
15878 #ifdef __cplusplus
15879 }
15880 #endif
15881
15882 int
15883 main ()
15884 {
15885 return f != _doprnt;
15886   ;
15887   return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext conftest$ac_exeext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15892   (eval $ac_link) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); } &&
15896          { ac_try='test -s conftest$ac_exeext'
15897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898   (eval $ac_try) 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902   ac_cv_func__doprnt=yes
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_cv_func__doprnt=no
15908 fi
15909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15910 fi
15911 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15912 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15913 if test $ac_cv_func__doprnt = yes; then
15914
15915 cat >>confdefs.h <<\_ACEOF
15916 #define HAVE_DOPRNT 1
15917 _ACEOF
15918
15919 fi
15920
15921 fi
15922 done
15923
15924
15925 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15926 # for constant arguments.  Useless!
15927 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15928 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15929 if test "${ac_cv_working_alloca_h+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   cat >conftest.$ac_ext <<_ACEOF
15933 #line $LINENO "configure"
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939 #include <alloca.h>
15940 int
15941 main ()
15942 {
15943 char *p = (char *) alloca (2 * sizeof (int));
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 rm -f conftest.$ac_objext conftest$ac_exeext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15950   (eval $ac_link) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); } &&
15954          { ac_try='test -s conftest$ac_exeext'
15955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956   (eval $ac_try) 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; }; then
15960   ac_cv_working_alloca_h=yes
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965 ac_cv_working_alloca_h=no
15966 fi
15967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15968 fi
15969 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15970 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15971 if test $ac_cv_working_alloca_h = yes; then
15972
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE_ALLOCA_H 1
15975 _ACEOF
15976
15977 fi
15978
15979 echo "$as_me:$LINENO: checking for alloca" >&5
15980 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15981 if test "${ac_cv_func_alloca_works+set}" = set; then
15982   echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984   cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 #ifdef __GNUC__
15992 # define alloca __builtin_alloca
15993 #else
15994 # ifdef _MSC_VER
15995 #  include <malloc.h>
15996 #  define alloca _alloca
15997 # else
15998 #  if HAVE_ALLOCA_H
15999 #   include <alloca.h>
16000 #  else
16001 #   ifdef _AIX
16002  #pragma alloca
16003 #   else
16004 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16005 char *alloca ();
16006 #    endif
16007 #   endif
16008 #  endif
16009 # endif
16010 #endif
16011
16012 int
16013 main ()
16014 {
16015 char *p = (char *) alloca (1);
16016   ;
16017   return 0;
16018 }
16019 _ACEOF
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16022   (eval $ac_link) 2>&5
16023   ac_status=$?
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); } &&
16026          { ac_try='test -s conftest$ac_exeext'
16027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028   (eval $ac_try) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; }; then
16032   ac_cv_func_alloca_works=yes
16033 else
16034   echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16036
16037 ac_cv_func_alloca_works=no
16038 fi
16039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16040 fi
16041 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16042 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16043
16044 if test $ac_cv_func_alloca_works = yes; then
16045
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_ALLOCA 1
16048 _ACEOF
16049
16050 else
16051   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16052 # that cause trouble.  Some versions do not even contain alloca or
16053 # contain a buggy version.  If you still want to use their alloca,
16054 # use ar to extract alloca.o from them instead of compiling alloca.c.
16055
16056 ALLOCA=alloca.$ac_objext
16057
16058 cat >>confdefs.h <<\_ACEOF
16059 #define C_ALLOCA 1
16060 _ACEOF
16061
16062
16063 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16064 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16065 if test "${ac_cv_os_cray+set}" = set; then
16066   echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068   cat >conftest.$ac_ext <<_ACEOF
16069 #line $LINENO "configure"
16070 /* confdefs.h.  */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h.  */
16075 #if defined(CRAY) && ! defined(CRAY2)
16076 webecray
16077 #else
16078 wenotbecray
16079 #endif
16080
16081 _ACEOF
16082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16083   $EGREP "webecray" >/dev/null 2>&1; then
16084   ac_cv_os_cray=yes
16085 else
16086   ac_cv_os_cray=no
16087 fi
16088 rm -f conftest*
16089
16090 fi
16091 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16092 echo "${ECHO_T}$ac_cv_os_cray" >&6
16093 if test $ac_cv_os_cray = yes; then
16094   for ac_func in _getb67 GETB67 getb67; do
16095     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16096 echo "$as_me:$LINENO: checking for $ac_func" >&5
16097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16098 if eval "test \"\${$as_ac_var+set}\" = set"; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16103 /* confdefs.h.  */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h.  */
16108 /* System header to define __stub macros and hopefully few prototypes,
16109     which can conflict with char $ac_func (); below.
16110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16111     <limits.h> exists even on freestanding compilers.  */
16112 #ifdef __STDC__
16113 # include <limits.h>
16114 #else
16115 # include <assert.h>
16116 #endif
16117 /* Override any gcc2 internal prototype to avoid an error.  */
16118 #ifdef __cplusplus
16119 extern "C"
16120 {
16121 #endif
16122 /* We use char because int might match the return type of a gcc2
16123    builtin and then its argument prototype would still apply.  */
16124 char $ac_func ();
16125 /* The GNU C library defines this for functions which it implements
16126     to always fail with ENOSYS.  Some functions are actually named
16127     something starting with __ and the normal name is an alias.  */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16129 choke me
16130 #else
16131 char (*f) () = $ac_func;
16132 #endif
16133 #ifdef __cplusplus
16134 }
16135 #endif
16136
16137 int
16138 main ()
16139 {
16140 return f != $ac_func;
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147   (eval $ac_link) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -s conftest$ac_exeext'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157   eval "$as_ac_var=yes"
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162 eval "$as_ac_var=no"
16163 fi
16164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16165 fi
16166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16168 if test `eval echo '${'$as_ac_var'}'` = yes; then
16169
16170 cat >>confdefs.h <<_ACEOF
16171 #define CRAY_STACKSEG_END $ac_func
16172 _ACEOF
16173
16174     break
16175 fi
16176
16177   done
16178 fi
16179
16180 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16181 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16182 if test "${ac_cv_c_stack_direction+set}" = set; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   if test "$cross_compiling" = yes; then
16186   ac_cv_c_stack_direction=0
16187 else
16188   cat >conftest.$ac_ext <<_ACEOF
16189 #line $LINENO "configure"
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195 int
16196 find_stack_direction ()
16197 {
16198   static char *addr = 0;
16199   auto char dummy;
16200   if (addr == 0)
16201     {
16202       addr = &dummy;
16203       return find_stack_direction ();
16204     }
16205   else
16206     return (&dummy > addr) ? 1 : -1;
16207 }
16208
16209 int
16210 main ()
16211 {
16212   exit (find_stack_direction () < 0);
16213 }
16214 _ACEOF
16215 rm -f conftest$ac_exeext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16217   (eval $ac_link) 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222   (eval $ac_try) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; }; then
16226   ac_cv_c_stack_direction=1
16227 else
16228   echo "$as_me: program exited with status $ac_status" >&5
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232 ( exit $ac_status )
16233 ac_cv_c_stack_direction=-1
16234 fi
16235 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16236 fi
16237 fi
16238 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16239 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16240
16241 cat >>confdefs.h <<_ACEOF
16242 #define STACK_DIRECTION $ac_cv_c_stack_direction
16243 _ACEOF
16244
16245
16246 fi
16247
16248 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16249 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16250 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16251 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16252   echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254   ac_check_lib_save_LIBS=$LIBS
16255 LIBS="-lsun  $LIBS"
16256 cat >conftest.$ac_ext <<_ACEOF
16257 #line $LINENO "configure"
16258 /* confdefs.h.  */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h.  */
16263
16264 /* Override any gcc2 internal prototype to avoid an error.  */
16265 #ifdef __cplusplus
16266 extern "C"
16267 #endif
16268 /* We use char because int might match the return type of a gcc2
16269    builtin and then its argument prototype would still apply.  */
16270 char getmntent ();
16271 int
16272 main ()
16273 {
16274 getmntent ();
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281   (eval $ac_link) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } &&
16285          { ac_try='test -s conftest$ac_exeext'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291   ac_cv_lib_sun_getmntent=yes
16292 else
16293   echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296 ac_cv_lib_sun_getmntent=no
16297 fi
16298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16299 LIBS=$ac_check_lib_save_LIBS
16300 fi
16301 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16302 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16303 if test $ac_cv_lib_sun_getmntent = yes; then
16304   LIBS="-lsun $LIBS"
16305 else
16306   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16307 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16308 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16309   echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311   ac_check_lib_save_LIBS=$LIBS
16312 LIBS="-lseq  $LIBS"
16313 cat >conftest.$ac_ext <<_ACEOF
16314 #line $LINENO "configure"
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320
16321 /* Override any gcc2 internal prototype to avoid an error.  */
16322 #ifdef __cplusplus
16323 extern "C"
16324 #endif
16325 /* We use char because int might match the return type of a gcc2
16326    builtin and then its argument prototype would still apply.  */
16327 char getmntent ();
16328 int
16329 main ()
16330 {
16331 getmntent ();
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338   (eval $ac_link) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } &&
16342          { ac_try='test -s conftest$ac_exeext'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   ac_cv_lib_seq_getmntent=yes
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 ac_cv_lib_seq_getmntent=no
16354 fi
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16357 fi
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16359 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16360 if test $ac_cv_lib_seq_getmntent = yes; then
16361   LIBS="-lseq $LIBS"
16362 else
16363   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16364 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16365 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368   ac_check_lib_save_LIBS=$LIBS
16369 LIBS="-lgen  $LIBS"
16370 cat >conftest.$ac_ext <<_ACEOF
16371 #line $LINENO "configure"
16372 /* confdefs.h.  */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h.  */
16377
16378 /* Override any gcc2 internal prototype to avoid an error.  */
16379 #ifdef __cplusplus
16380 extern "C"
16381 #endif
16382 /* We use char because int might match the return type of a gcc2
16383    builtin and then its argument prototype would still apply.  */
16384 char getmntent ();
16385 int
16386 main ()
16387 {
16388 getmntent ();
16389   ;
16390   return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395   (eval $ac_link) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } &&
16399          { ac_try='test -s conftest$ac_exeext'
16400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401   (eval $ac_try) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; }; then
16405   ac_cv_lib_gen_getmntent=yes
16406 else
16407   echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16409
16410 ac_cv_lib_gen_getmntent=no
16411 fi
16412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16413 LIBS=$ac_check_lib_save_LIBS
16414 fi
16415 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16416 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16417 if test $ac_cv_lib_gen_getmntent = yes; then
16418   LIBS="-lgen $LIBS"
16419 fi
16420
16421 fi
16422
16423 fi
16424
16425
16426 for ac_func in getmntent
16427 do
16428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 echo "$as_me:$LINENO: checking for $ac_func" >&5
16430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
16442     which can conflict with char $ac_func (); below.
16443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16444     <limits.h> exists even on freestanding compilers.  */
16445 #ifdef __STDC__
16446 # include <limits.h>
16447 #else
16448 # include <assert.h>
16449 #endif
16450 /* Override any gcc2 internal prototype to avoid an error.  */
16451 #ifdef __cplusplus
16452 extern "C"
16453 {
16454 #endif
16455 /* We use char because int might match the return type of a gcc2
16456    builtin and then its argument prototype would still apply.  */
16457 char $ac_func ();
16458 /* The GNU C library defines this for functions which it implements
16459     to always fail with ENOSYS.  Some functions are actually named
16460     something starting with __ and the normal name is an alias.  */
16461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16462 choke me
16463 #else
16464 char (*f) () = $ac_func;
16465 #endif
16466 #ifdef __cplusplus
16467 }
16468 #endif
16469
16470 int
16471 main ()
16472 {
16473 return f != $ac_func;
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480   (eval $ac_link) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); } &&
16484          { ac_try='test -s conftest$ac_exeext'
16485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486   (eval $ac_try) 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; }; then
16490   eval "$as_ac_var=yes"
16491 else
16492   echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 eval "$as_ac_var=no"
16496 fi
16497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16498 fi
16499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16501 if test `eval echo '${'$as_ac_var'}'` = yes; then
16502   cat >>confdefs.h <<_ACEOF
16503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16504 _ACEOF
16505
16506 fi
16507 done
16508
16509
16510 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16511 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16512 if test "${ac_cv_func_closedir_void+set}" = set; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   if test "$cross_compiling" = yes; then
16516   ac_cv_func_closedir_void=yes
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 $ac_includes_default
16526 #include <$ac_header_dirent>
16527 #ifndef __cplusplus
16528 int closedir ();
16529 #endif
16530
16531 int
16532 main ()
16533 {
16534 exit (closedir (opendir (".")) != 0);
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest$ac_exeext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541   (eval $ac_link) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546   (eval $ac_try) 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; }; then
16550   ac_cv_func_closedir_void=no
16551 else
16552   echo "$as_me: program exited with status $ac_status" >&5
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556 ( exit $ac_status )
16557 ac_cv_func_closedir_void=yes
16558 fi
16559 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16560 fi
16561 fi
16562 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16563 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16564 if test $ac_cv_func_closedir_void = yes; then
16565
16566 cat >>confdefs.h <<\_ACEOF
16567 #define CLOSEDIR_VOID 1
16568 _ACEOF
16569
16570 fi
16571
16572 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16573 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16574 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   if test "$cross_compiling" = yes; then
16578   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16579 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16580    { (exit 1); exit 1; }; }
16581 else
16582   cat >conftest.$ac_ext <<_ACEOF
16583 #line $LINENO "configure"
16584 /* confdefs.h.  */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h.  */
16589 #if HAVE_UNISTD_H
16590 # include <unistd.h>
16591 #endif
16592
16593 int
16594 main ()
16595 {
16596 /* If this system has a BSD-style setpgrp which takes arguments,
16597   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16598   exit successfully. */
16599   exit (setpgrp (1,1) == -1 ? 0 : 1);
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606   (eval $ac_link) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   ac_cv_func_setpgrp_void=no
16616 else
16617   echo "$as_me: program exited with status $ac_status" >&5
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 ( exit $ac_status )
16622 ac_cv_func_setpgrp_void=yes
16623 fi
16624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16625 fi
16626 fi
16627 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16628 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16629 if test $ac_cv_func_setpgrp_void = yes; then
16630
16631 cat >>confdefs.h <<\_ACEOF
16632 #define SETPGRP_VOID 1
16633 _ACEOF
16634
16635 fi
16636                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16637 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16638 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   # Some versions of Solaris, SCO, and the GNU C Library
16642    # have a broken or incompatible fnmatch.
16643    # So we run a test program.  If we are cross-compiling, take no chance.
16644    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16645    if test "$cross_compiling" = yes; then
16646   ac_cv_func_fnmatch_works=cross
16647 else
16648   cat >conftest.$ac_ext <<_ACEOF
16649 #line $LINENO "configure"
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 #include <fnmatch.h>
16656 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16657 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16658
16659 int
16660 main ()
16661 {
16662 exit
16663            (!(y ("a*", "abc", 0)
16664               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16665               && y ("a\\\\bc", "abc", 0)
16666               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16667               && y ("*x", ".x", 0)
16668               && n ("*x", ".x", FNM_PERIOD)
16669               && 1));
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676   (eval $ac_link) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   ac_cv_func_fnmatch_works=yes
16686 else
16687   echo "$as_me: program exited with status $ac_status" >&5
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691 ( exit $ac_status )
16692 ac_cv_func_fnmatch_works=no
16693 fi
16694 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16695 fi
16696 fi
16697 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16698 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16699 if test $ac_cv_func_fnmatch_works = yes; then
16700
16701 cat >>confdefs.h <<\_ACEOF
16702 #define HAVE_FNMATCH 1
16703 _ACEOF
16704
16705 fi
16706
16707
16708
16709
16710
16711 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16712 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16713 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16714   echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716   ac_check_lib_save_LIBS=$LIBS
16717 LIBS="-lxpg4  $LIBS"
16718 cat >conftest.$ac_ext <<_ACEOF
16719 #line $LINENO "configure"
16720 /* confdefs.h.  */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h.  */
16725
16726 /* Override any gcc2 internal prototype to avoid an error.  */
16727 #ifdef __cplusplus
16728 extern "C"
16729 #endif
16730 /* We use char because int might match the return type of a gcc2
16731    builtin and then its argument prototype would still apply.  */
16732 char setlocale ();
16733 int
16734 main ()
16735 {
16736 setlocale ();
16737   ;
16738   return 0;
16739 }
16740 _ACEOF
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16743   (eval $ac_link) 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); } &&
16747          { ac_try='test -s conftest$ac_exeext'
16748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749   (eval $ac_try) 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); }; }; then
16753   ac_cv_lib_xpg4_setlocale=yes
16754 else
16755   echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 ac_cv_lib_xpg4_setlocale=no
16759 fi
16760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16762 fi
16763 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16764 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16765 if test $ac_cv_lib_xpg4_setlocale = yes; then
16766   LIBS="$LIBS -lxpg4"
16767 fi
16768
16769
16770
16771
16772 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16773 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16774 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16775   echo $ECHO_N "(cached) $ECHO_C" >&6
16776 else
16777   ac_check_lib_save_LIBS=$LIBS
16778 LIBS="-lsun  $LIBS"
16779 cat >conftest.$ac_ext <<_ACEOF
16780 #line $LINENO "configure"
16781 /* confdefs.h.  */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h.  */
16786
16787 /* Override any gcc2 internal prototype to avoid an error.  */
16788 #ifdef __cplusplus
16789 extern "C"
16790 #endif
16791 /* We use char because int might match the return type of a gcc2
16792    builtin and then its argument prototype would still apply.  */
16793 char getpwnam ();
16794 int
16795 main ()
16796 {
16797 getpwnam ();
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804   (eval $ac_link) 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); } &&
16808          { ac_try='test -s conftest$ac_exeext'
16809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810   (eval $ac_try) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; }; then
16814   ac_cv_lib_sun_getpwnam=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 ac_cv_lib_sun_getpwnam=no
16820 fi
16821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822 LIBS=$ac_check_lib_save_LIBS
16823 fi
16824 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16825 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16826 if test $ac_cv_lib_sun_getpwnam = yes; then
16827   cat >>confdefs.h <<_ACEOF
16828 #define HAVE_LIBSUN 1
16829 _ACEOF
16830
16831   LIBS="-lsun $LIBS"
16832
16833 fi
16834
16835
16836
16837 for ac_header in zlib.h
16838 do
16839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16841   echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 fi
16846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16848 else
16849   # Is the header compilable?
16850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16852 cat >conftest.$ac_ext <<_ACEOF
16853 #line $LINENO "configure"
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 $ac_includes_default
16860 #include <$ac_header>
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864   (eval $ac_compile) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -s conftest.$ac_objext'
16869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870   (eval $ac_try) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; }; then
16874   ac_header_compiler=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_header_compiler=no
16880 fi
16881 rm -f conftest.$ac_objext conftest.$ac_ext
16882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16883 echo "${ECHO_T}$ac_header_compiler" >&6
16884
16885 # Is the header present?
16886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16888 cat >conftest.$ac_ext <<_ACEOF
16889 #line $LINENO "configure"
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895 #include <$ac_header>
16896 _ACEOF
16897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16899   ac_status=$?
16900   grep -v '^ *+' conftest.er1 >conftest.err
16901   rm -f conftest.er1
16902   cat conftest.err >&5
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); } >/dev/null; then
16905   if test -s conftest.err; then
16906     ac_cpp_err=$ac_c_preproc_warn_flag
16907   else
16908     ac_cpp_err=
16909   fi
16910 else
16911   ac_cpp_err=yes
16912 fi
16913 if test -z "$ac_cpp_err"; then
16914   ac_header_preproc=yes
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919   ac_header_preproc=no
16920 fi
16921 rm -f conftest.err conftest.$ac_ext
16922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16923 echo "${ECHO_T}$ac_header_preproc" >&6
16924
16925 # So?  What about this header?
16926 case $ac_header_compiler:$ac_header_preproc in
16927   yes:no )
16928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16932     (
16933       cat <<\_ASBOX
16934 ## ------------------------------------ ##
16935 ## Report this to bug-autoconf@gnu.org. ##
16936 ## ------------------------------------ ##
16937 _ASBOX
16938     ) |
16939       sed "s/^/$as_me: WARNING:     /" >&2
16940     ;;
16941   no:yes )
16942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16944     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16948     (
16949       cat <<\_ASBOX
16950 ## ------------------------------------ ##
16951 ## Report this to bug-autoconf@gnu.org. ##
16952 ## ------------------------------------ ##
16953 _ASBOX
16954     ) |
16955       sed "s/^/$as_me: WARNING:     /" >&2
16956     ;;
16957 esac
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   eval "$as_ac_Header=$ac_header_preproc"
16964 fi
16965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16967
16968 fi
16969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16970   cat >>confdefs.h <<_ACEOF
16971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16972 _ACEOF
16973
16974 fi
16975
16976 done
16977
16978 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16979 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16980 if test "${ac_cv_lib_z_deflate+set}" = set; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   ac_check_lib_save_LIBS=$LIBS
16984 LIBS="-lz  $LIBS"
16985 cat >conftest.$ac_ext <<_ACEOF
16986 #line $LINENO "configure"
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992
16993 /* Override any gcc2 internal prototype to avoid an error.  */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 /* We use char because int might match the return type of a gcc2
16998    builtin and then its argument prototype would still apply.  */
16999 char deflate ();
17000 int
17001 main ()
17002 {
17003 deflate ();
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17010   (eval $ac_link) 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } &&
17014          { ac_try='test -s conftest$ac_exeext'
17015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016   (eval $ac_try) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); }; }; then
17020   ac_cv_lib_z_deflate=yes
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025 ac_cv_lib_z_deflate=no
17026 fi
17027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17028 LIBS=$ac_check_lib_save_LIBS
17029 fi
17030 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17031 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17032 if test $ac_cv_lib_z_deflate = yes; then
17033   FDLIBS="-lz"
17034 fi
17035
17036 have_zlib=no
17037 if test x$FDLIBS = x-lz; then
17038   cat >>confdefs.h <<\_ACEOF
17039 #define HAVE_LIBZ 1
17040 _ACEOF
17041
17042   have_zlib=yes
17043 fi
17044
17045 PTHREAD_LIB=""
17046 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17047 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17048 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051   ac_check_lib_save_LIBS=$LIBS
17052 LIBS="-lpthread  $LIBS"
17053 cat >conftest.$ac_ext <<_ACEOF
17054 #line $LINENO "configure"
17055 /* confdefs.h.  */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h.  */
17060
17061 /* Override any gcc2 internal prototype to avoid an error.  */
17062 #ifdef __cplusplus
17063 extern "C"
17064 #endif
17065 /* We use char because int might match the return type of a gcc2
17066    builtin and then its argument prototype would still apply.  */
17067 char pthread_create ();
17068 int
17069 main ()
17070 {
17071 pthread_create ();
17072   ;
17073   return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17078   (eval $ac_link) 2>&5
17079   ac_status=$?
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); } &&
17082          { ac_try='test -s conftest$ac_exeext'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; }; then
17088   ac_cv_lib_pthread_pthread_create=yes
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 ac_cv_lib_pthread_pthread_create=no
17094 fi
17095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17096 LIBS=$ac_check_lib_save_LIBS
17097 fi
17098 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17099 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17100 if test $ac_cv_lib_pthread_pthread_create = yes; then
17101   PTHREAD_LIB="-lpthread"
17102 else
17103   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17104 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17105 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   ac_check_lib_save_LIBS=$LIBS
17109 LIBS="-lpthreads  $LIBS"
17110 cat >conftest.$ac_ext <<_ACEOF
17111 #line $LINENO "configure"
17112 /* confdefs.h.  */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h.  */
17117
17118 /* Override any gcc2 internal prototype to avoid an error.  */
17119 #ifdef __cplusplus
17120 extern "C"
17121 #endif
17122 /* We use char because int might match the return type of a gcc2
17123    builtin and then its argument prototype would still apply.  */
17124 char pthread_create ();
17125 int
17126 main ()
17127 {
17128 pthread_create ();
17129   ;
17130   return 0;
17131 }
17132 _ACEOF
17133 rm -f conftest.$ac_objext conftest$ac_exeext
17134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17135   (eval $ac_link) 2>&5
17136   ac_status=$?
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); } &&
17139          { ac_try='test -s conftest$ac_exeext'
17140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141   (eval $ac_try) 2>&5
17142   ac_status=$?
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); }; }; then
17145   ac_cv_lib_pthreads_pthread_create=yes
17146 else
17147   echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 ac_cv_lib_pthreads_pthread_create=no
17151 fi
17152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17154 fi
17155 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17156 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17157 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17158   PTHREAD_LIB="-lpthreads"
17159 else
17160   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17161 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17162 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165   ac_check_lib_save_LIBS=$LIBS
17166 LIBS="-lc_r  $LIBS"
17167 cat >conftest.$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174
17175 /* Override any gcc2 internal prototype to avoid an error.  */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 /* We use char because int might match the return type of a gcc2
17180    builtin and then its argument prototype would still apply.  */
17181 char pthread_create ();
17182 int
17183 main ()
17184 {
17185 pthread_create ();
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192   (eval $ac_link) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } &&
17196          { ac_try='test -s conftest$ac_exeext'
17197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198   (eval $ac_try) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; }; then
17202   ac_cv_lib_c_r_pthread_create=yes
17203 else
17204   echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ac_cv_lib_c_r_pthread_create=no
17208 fi
17209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17211 fi
17212 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17213 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17214 if test $ac_cv_lib_c_r_pthread_create = yes; then
17215   PTHREAD_LIB="-lc_r"
17216 else
17217   echo "$as_me:$LINENO: checking for pthread_create" >&5
17218 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17219 if test "${ac_cv_func_pthread_create+set}" = set; then
17220   echo $ECHO_N "(cached) $ECHO_C" >&6
17221 else
17222   cat >conftest.$ac_ext <<_ACEOF
17223 #line $LINENO "configure"
17224 /* confdefs.h.  */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h.  */
17229 /* System header to define __stub macros and hopefully few prototypes,
17230     which can conflict with char pthread_create (); below.
17231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17232     <limits.h> exists even on freestanding compilers.  */
17233 #ifdef __STDC__
17234 # include <limits.h>
17235 #else
17236 # include <assert.h>
17237 #endif
17238 /* Override any gcc2 internal prototype to avoid an error.  */
17239 #ifdef __cplusplus
17240 extern "C"
17241 {
17242 #endif
17243 /* We use char because int might match the return type of a gcc2
17244    builtin and then its argument prototype would still apply.  */
17245 char pthread_create ();
17246 /* The GNU C library defines this for functions which it implements
17247     to always fail with ENOSYS.  Some functions are actually named
17248     something starting with __ and the normal name is an alias.  */
17249 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17250 choke me
17251 #else
17252 char (*f) () = pthread_create;
17253 #endif
17254 #ifdef __cplusplus
17255 }
17256 #endif
17257
17258 int
17259 main ()
17260 {
17261 return f != pthread_create;
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268   (eval $ac_link) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } &&
17272          { ac_try='test -s conftest$ac_exeext'
17273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274   (eval $ac_try) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; }; then
17278   ac_cv_func_pthread_create=yes
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 ac_cv_func_pthread_create=no
17284 fi
17285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17286 fi
17287 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17288 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17289
17290
17291 fi
17292
17293
17294 fi
17295
17296
17297 fi
17298
17299
17300
17301 cat >>confdefs.h <<\_ACEOF
17302 #define FDLIBS 1
17303 _ACEOF
17304
17305
17306
17307 CFLAGS=${CFLAGS--O}
17308 LDFLAGS=${LDFLAGS--O}
17309 DB_LIBS="${SQL_LFLAGS}"
17310
17311 CPPFLAGS="$CPPFLAGS"
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326 OBJLIST=
17327
17328
17329 lld="lld"
17330 llu="llu"
17331
17332 WCFLAGS=
17333 WLDFLAGS=
17334
17335 #
17336 # Finally we set appropriate distribution specific
17337 #  variables and defaults
17338 #
17339 # PFILES are platform specific files
17340 PFILES="platforms/Makefile"
17341 PSCMD="ps -e"
17342 WIN32=
17343 hostname=`uname -n`
17344 case "$DISTNAME" in
17345 aix)
17346         DISTVER=`uname -r`
17347         PSCMD="ps -e -o pid,comm"
17348         PFILES="${PFILES} \
17349            platforms/aix/Makefile"
17350         TAPEDRIVE="/dev/rmt0.1"
17351   ;;
17352 alpha)
17353         DISTVER=`uname -r`
17354         PTHREAD_LIB="-lpthread -lexc"
17355         if test "${CC}" = "gcc" ; then
17356            lld="lld"
17357            llu="llu"
17358         else
17359            lld="ld"
17360            llu="lu"
17361         fi
17362         TAPEDRIVE="/dev/nrmt0"
17363   ;;
17364 bsdi)
17365         DISTVER=`uname -a |awk '{print $3}'`
17366         TAPEDRIVE="/dev/nrmt0"
17367         PTHREAD_LIB="-pthread"
17368         CFLAGS="${CFLAGS} -pthread"
17369         PSCMD="ps -x -o pid,command"
17370         lld="qd"
17371         llu="qu"
17372         PFILES="${PFILES} \
17373             platforms/bsdi/Makefile \
17374             platforms/bsdi/bacula-fd \
17375             platforms/bsdi/bacula-sd \
17376             platforms/bsdi/bacula-dir"
17377         hostname=`hostname -s`
17378         largefile_support="yes"
17379   ;;
17380 cygwin)
17381         DISTVER=`uname -a |awk '{print $3}'`
17382         TAPEDRIVE="/dev/nrst0"
17383         WIN32=win32
17384         WCFLAGS="-mwindows"
17385         WLDFLAGS="-mwindows"
17386   ;;
17387 darwin)
17388         DISTVER=`uname -r`
17389         TAPEDRIVE="/dev/nst0"
17390         PSCMD="ps -e -o pid,command"
17391         hostname=`hostname -s`
17392         PFILES="${PFILES} \
17393            platforms/darwin/Makefile"
17394   ;;
17395 debian)
17396         DISTVER=`cat /etc/debian_version`
17397         TAPEDRIVE="/dev/nrst0"
17398         PSCMD="ps -e -o pid,command"
17399         hostname=`hostname -s`
17400   ;;
17401 freebsd)
17402         DISTVER=`uname -a |awk '{print $3}'`
17403         PTHREAD_LIB="-pthread"
17404         CFLAGS="${CFLAGS} -pthread"
17405         lld="qd"
17406         llu="qu"
17407         TAPEDRIVE="/dev/nrsa0"
17408         PSCMD="ps -x -o pid,command"
17409         PFILES="${PFILES} \
17410             platforms/freebsd/Makefile \
17411             platforms/freebsd/bacula-fd \
17412             platforms/freebsd/bacula-sd \
17413             platforms/freebsd/bacula-dir"
17414         hostname=`hostname -s`
17415         largefile_support="yes"
17416   ;;
17417 hpux)
17418         DISTVER=`uname -r`
17419         TAPEDRIVE="/dev/rmt/0hnb"
17420   ;;
17421 irix)
17422         DISTVER=`uname -r`
17423         TAPEDRIVE="/dev/rmt/0cbn"
17424         PSCMD="ps -e -o pid,comm"
17425         PFILES="${PFILES} \
17426             platforms/irix/Makefile \
17427             platforms/irix/bacula-fd \
17428             platforms/irix/bacula-sd \
17429             platforms/irix/bacula-dir"
17430   ;;
17431 netbsd)
17432         DISTVER=`uname -a |awk '{print $3}'`
17433         lld="qd"
17434         llu="qu"
17435         TAPEDRIVE="/dev/nrst0"
17436         PSCMD="ps -a -o pid,command"
17437         PTHREAD_LIB="-pthread"
17438         CFLAGS="${CFLAGS} -pthread"
17439   ;;
17440 openbsd)
17441         DISTVER=`uname -a |awk '{print $3}'`
17442         lld="qd"
17443         llu="qu"
17444         TAPEDRIVE="/dev/nrst0"
17445         PSCMD="ps -a -o pid,command"
17446         PTHREAD_LIB="-pthread"
17447         CFLAGS="${CFLAGS} -pthread"
17448         PFILES="${PFILES} \
17449             platforms/openbsd/Makefile \
17450             platforms/openbsd/bacula-fd \
17451             platforms/openbsd/bacula-sd \
17452             platforms/openbsd/bacula-dir"
17453   ;;
17454 redhat)
17455         DISTVER=`cat /etc/redhat-release | grep release |\
17456            cut -f 5 -d ' '`
17457         TAPEDRIVE="/dev/nst0"
17458         PSCMD="ps -e -o pid,command"
17459         PFILES="${PFILES} \
17460             platforms/redhat/Makefile \
17461             platforms/redhat/bacula-fd \
17462             platforms/redhat/bacula-sd \
17463             platforms/redhat/bacula-dir \
17464             platforms/redhat/bacula.spec \
17465             "
17466         hostname=`hostname -s`
17467   ;;
17468 mandrake)
17469         DISTVER=`cat /etc/mandrake-release | grep release |\
17470            cut -f 5 -d ' '`
17471         TAPEDRIVE="/dev/nst0"
17472         PSCMD="ps -e -o pid,command"
17473         PFILES="${PFILES} \
17474             platforms/mandrake/Makefile \
17475             platforms/mandrake/bacula-fd \
17476             platforms/mandrake/bacula-sd \
17477             platforms/mandrake/bacula-dir \
17478             platforms/mandrake/bacula.spec \
17479             "
17480         hostname=`hostname -s`
17481   ;;
17482 gentoo)
17483         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17484         TAPEDRIVE="/dev/nst0"
17485         PSCMD="ps -e -o pid,command"
17486         PFILES="${PFILES} \
17487             platforms/gentoo/Makefile \
17488             platforms/gentoo/bacula-fd \
17489             platforms/gentoo/bacula-sd \
17490             platforms/gentoo/bacula-dir"
17491         hostname=`hostname -s`
17492   ;;
17493
17494 slackware)
17495         DISTVER=`cat /etc/slackware-version`
17496         TAPEDRIVE="/dev/nst0"
17497         PSCMD="ps -e -o pid,command"
17498         hostname=`hostname -s`
17499   ;;
17500 solaris)
17501         DISTVER=`uname -r`
17502         TAPEDRIVE="/dev/rmt/0cbn"
17503         PSCMD="ps -e -o pid,comm"
17504         PFILES="${PFILES} \
17505             platforms/solaris/Makefile \
17506             platforms/solaris/bacula-fd \
17507             platforms/solaris/bacula-sd \
17508             platforms/solaris/bacula-dir"
17509         if test x$DISTVER = x5.6 ; then
17510             cat >>confdefs.h <<\_ACEOF
17511 #define HAVE_OLD_SOCKOPT 1
17512 _ACEOF
17513
17514         fi
17515   ;;
17516 suse)
17517         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17518             cut -f 3 -d ' '`
17519         TAPEDRIVE="/dev/nst0"
17520         PSCMD="ps -e -o pid,command"
17521         hostname=`hostname -s`
17522   ;;
17523 suse5)
17524         DISTNAME=suse
17525         DISTVER=5.x
17526         TAPEDRIVE="/dev/nst0"
17527         PSCMD="ps -e -o pid,command"
17528         hostname=`hostname -s`
17529   ;;
17530 unknown)
17531         DISTVER=unknown
17532         TAPEDRIVE="/dev/nst0"
17533   ;;
17534 *)
17535   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17536   ;;
17537 esac
17538
17539
17540
17541 LIBS="$PTHREAD_LIB $LIBS"
17542
17543 cat >>confdefs.h <<_ACEOF
17544 #define lld "$lld"
17545 _ACEOF
17546
17547 cat >>confdefs.h <<_ACEOF
17548 #define llu "$llu"
17549 _ACEOF
17550
17551
17552
17553
17554
17555
17556
17557 MCOMMON=./autoconf/Make.common
17558
17559
17560 if test "x${subsysdir}" = "x${sbindir}" ; then
17561    echo " "
17562    echo " "
17563    echo "You have set both --sbindir and --with-subsys-dir"
17564    echo "  equal to: ${subsysdir} "
17565    echo "This is not permitted. Please reconfigure."
17566    echo " "
17567    echo "Aborting configuration ..."
17568    echo " "
17569    echo " "
17570    exit 1
17571 fi
17572
17573                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/console scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/console.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/alter_mysql_tables src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/alter_sqlite_tables src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17574           ac_config_commands="$ac_config_commands default"
17575 cat >confcache <<\_ACEOF
17576 # This file is a shell script that caches the results of configure
17577 # tests run on this system so they can be shared between configure
17578 # scripts and configure runs, see configure's option --config-cache.
17579 # It is not useful on other systems.  If it contains results you don't
17580 # want to keep, you may remove or edit it.
17581 #
17582 # config.status only pays attention to the cache file if you give it
17583 # the --recheck option to rerun configure.
17584 #
17585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17587 # following values.
17588
17589 _ACEOF
17590
17591 # The following way of writing the cache mishandles newlines in values,
17592 # but we know of no workaround that is simple, portable, and efficient.
17593 # So, don't put newlines in cache variables' values.
17594 # Ultrix sh set writes to stderr and can't be redirected directly,
17595 # and sets the high bit in the cache file unless we assign to the vars.
17596 {
17597   (set) 2>&1 |
17598     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17599     *ac_space=\ *)
17600       # `set' does not quote correctly, so add quotes (double-quote
17601       # substitution turns \\\\ into \\, and sed turns \\ into \).
17602       sed -n \
17603         "s/'/'\\\\''/g;
17604           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17605       ;;
17606     *)
17607       # `set' quotes correctly as required by POSIX, so do not add quotes.
17608       sed -n \
17609         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17610       ;;
17611     esac;
17612 } |
17613   sed '
17614      t clear
17615      : clear
17616      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17617      t end
17618      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17619      : end' >>confcache
17620 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17621   if test -w $cache_file; then
17622     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17623     cat confcache >$cache_file
17624   else
17625     echo "not updating unwritable cache $cache_file"
17626   fi
17627 fi
17628 rm -f confcache
17629
17630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17631 # Let make expand exec_prefix.
17632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17633
17634 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17635 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17636 # trailing colons and then remove the whole line if VPATH becomes empty
17637 # (actually we leave an empty line to preserve line numbers).
17638 if test "x$srcdir" = x.; then
17639   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17640 s/:*\$(srcdir):*/:/;
17641 s/:*\${srcdir}:*/:/;
17642 s/:*@srcdir@:*/:/;
17643 s/^\([^=]*=[    ]*\):*/\1/;
17644 s/:*$//;
17645 s/^[^=]*=[      ]*$//;
17646 }'
17647 fi
17648
17649 DEFS=-DHAVE_CONFIG_H
17650
17651 ac_libobjs=
17652 ac_ltlibobjs=
17653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17654   # 1. Remove the extension, and $U if already installed.
17655   ac_i=`echo "$ac_i" |
17656          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17657   # 2. Add them.
17658   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17659   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17660 done
17661 LIBOBJS=$ac_libobjs
17662
17663 LTLIBOBJS=$ac_ltlibobjs
17664
17665
17666
17667 : ${CONFIG_STATUS=./config.status}
17668 ac_clean_files_save=$ac_clean_files
17669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17672 cat >$CONFIG_STATUS <<_ACEOF
17673 #! $SHELL
17674 # Generated by $as_me.
17675 # Run this file to recreate the current configuration.
17676 # Compiler output produced by configure, useful for debugging
17677 # configure, is in config.log if it exists.
17678
17679 debug=false
17680 ac_cs_recheck=false
17681 ac_cs_silent=false
17682 SHELL=\${CONFIG_SHELL-$SHELL}
17683 _ACEOF
17684
17685 cat >>$CONFIG_STATUS <<\_ACEOF
17686 ## --------------------- ##
17687 ## M4sh Initialization.  ##
17688 ## --------------------- ##
17689
17690 # Be Bourne compatible
17691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17692   emulate sh
17693   NULLCMD=:
17694   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17695   # is contrary to our usage.  Disable this feature.
17696   alias -g '${1+"$@"}'='"$@"'
17697 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17698   set -o posix
17699 fi
17700
17701 # Support unset when possible.
17702 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17703   as_unset=unset
17704 else
17705   as_unset=false
17706 fi
17707
17708
17709 # Work around bugs in pre-3.0 UWIN ksh.
17710 $as_unset ENV MAIL MAILPATH
17711 PS1='$ '
17712 PS2='> '
17713 PS4='+ '
17714
17715 # NLS nuisances.
17716 for as_var in \
17717   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17718   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17719   LC_TELEPHONE LC_TIME
17720 do
17721   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17722     eval $as_var=C; export $as_var
17723   else
17724     $as_unset $as_var
17725   fi
17726 done
17727
17728 # Required to use basename.
17729 if expr a : '\(a\)' >/dev/null 2>&1; then
17730   as_expr=expr
17731 else
17732   as_expr=false
17733 fi
17734
17735 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17736   as_basename=basename
17737 else
17738   as_basename=false
17739 fi
17740
17741
17742 # Name of the executable.
17743 as_me=`$as_basename "$0" ||
17744 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17745          X"$0" : 'X\(//\)$' \| \
17746          X"$0" : 'X\(/\)$' \| \
17747          .     : '\(.\)' 2>/dev/null ||
17748 echo X/"$0" |
17749     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17750           /^X\/\(\/\/\)$/{ s//\1/; q; }
17751           /^X\/\(\/\).*/{ s//\1/; q; }
17752           s/.*/./; q'`
17753
17754
17755 # PATH needs CR, and LINENO needs CR and PATH.
17756 # Avoid depending upon Character Ranges.
17757 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17758 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17759 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17760 as_cr_digits='0123456789'
17761 as_cr_alnum=$as_cr_Letters$as_cr_digits
17762
17763 # The user is always right.
17764 if test "${PATH_SEPARATOR+set}" != set; then
17765   echo "#! /bin/sh" >conf$$.sh
17766   echo  "exit 0"   >>conf$$.sh
17767   chmod +x conf$$.sh
17768   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17769     PATH_SEPARATOR=';'
17770   else
17771     PATH_SEPARATOR=:
17772   fi
17773   rm -f conf$$.sh
17774 fi
17775
17776
17777   as_lineno_1=$LINENO
17778   as_lineno_2=$LINENO
17779   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17780   test "x$as_lineno_1" != "x$as_lineno_2" &&
17781   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17782   # Find who we are.  Look in the path if we contain no path at all
17783   # relative or not.
17784   case $0 in
17785     *[\\/]* ) as_myself=$0 ;;
17786     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17787 for as_dir in $PATH
17788 do
17789   IFS=$as_save_IFS
17790   test -z "$as_dir" && as_dir=.
17791   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17792 done
17793
17794        ;;
17795   esac
17796   # We did not find ourselves, most probably we were run as `sh COMMAND'
17797   # in which case we are not to be found in the path.
17798   if test "x$as_myself" = x; then
17799     as_myself=$0
17800   fi
17801   if test ! -f "$as_myself"; then
17802     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17803 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17804    { (exit 1); exit 1; }; }
17805   fi
17806   case $CONFIG_SHELL in
17807   '')
17808     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17809 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17810 do
17811   IFS=$as_save_IFS
17812   test -z "$as_dir" && as_dir=.
17813   for as_base in sh bash ksh sh5; do
17814          case $as_dir in
17815          /*)
17816            if ("$as_dir/$as_base" -c '
17817   as_lineno_1=$LINENO
17818   as_lineno_2=$LINENO
17819   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17820   test "x$as_lineno_1" != "x$as_lineno_2" &&
17821   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17822              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17823              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17824              CONFIG_SHELL=$as_dir/$as_base
17825              export CONFIG_SHELL
17826              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17827            fi;;
17828          esac
17829        done
17830 done
17831 ;;
17832   esac
17833
17834   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17835   # uniformly replaced by the line number.  The first 'sed' inserts a
17836   # line-number line before each line; the second 'sed' does the real
17837   # work.  The second script uses 'N' to pair each line-number line
17838   # with the numbered line, and appends trailing '-' during
17839   # substitution so that $LINENO is not a special case at line end.
17840   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17841   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17842   sed '=' <$as_myself |
17843     sed '
17844       N
17845       s,$,-,
17846       : loop
17847       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17848       t loop
17849       s,-$,,
17850       s,^['$as_cr_digits']*\n,,
17851     ' >$as_me.lineno &&
17852   chmod +x $as_me.lineno ||
17853     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17854 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17855    { (exit 1); exit 1; }; }
17856
17857   # Don't try to exec as it changes $[0], causing all sort of problems
17858   # (the dirname of $[0] is not the place where we might find the
17859   # original and so on.  Autoconf is especially sensible to this).
17860   . ./$as_me.lineno
17861   # Exit status is that of the last command.
17862   exit
17863 }
17864
17865
17866 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17867   *c*,-n*) ECHO_N= ECHO_C='
17868 ' ECHO_T='      ' ;;
17869   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17870   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17871 esac
17872
17873 if expr a : '\(a\)' >/dev/null 2>&1; then
17874   as_expr=expr
17875 else
17876   as_expr=false
17877 fi
17878
17879 rm -f conf$$ conf$$.exe conf$$.file
17880 echo >conf$$.file
17881 if ln -s conf$$.file conf$$ 2>/dev/null; then
17882   # We could just check for DJGPP; but this test a) works b) is more generic
17883   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17884   if test -f conf$$.exe; then
17885     # Don't use ln at all; we don't have any links
17886     as_ln_s='cp -p'
17887   else
17888     as_ln_s='ln -s'
17889   fi
17890 elif ln conf$$.file conf$$ 2>/dev/null; then
17891   as_ln_s=ln
17892 else
17893   as_ln_s='cp -p'
17894 fi
17895 rm -f conf$$ conf$$.exe conf$$.file
17896
17897 if mkdir -p . 2>/dev/null; then
17898   as_mkdir_p=:
17899 else
17900   as_mkdir_p=false
17901 fi
17902
17903 as_executable_p="test -f"
17904
17905 # Sed expression to map a string onto a valid CPP name.
17906 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17907
17908 # Sed expression to map a string onto a valid variable name.
17909 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17910
17911
17912 # IFS
17913 # We need space, tab and new line, in precisely that order.
17914 as_nl='
17915 '
17916 IFS="   $as_nl"
17917
17918 # CDPATH.
17919 $as_unset CDPATH
17920
17921 exec 6>&1
17922
17923 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17924 # report actual input values of CONFIG_FILES etc. instead of their
17925 # values after options handling.  Logging --version etc. is OK.
17926 exec 5>>config.log
17927 {
17928   echo
17929   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17930 ## Running $as_me. ##
17931 _ASBOX
17932 } >&5
17933 cat >&5 <<_CSEOF
17934
17935 This file was extended by $as_me, which was
17936 generated by GNU Autoconf 2.57.  Invocation command line was
17937
17938   CONFIG_FILES    = $CONFIG_FILES
17939   CONFIG_HEADERS  = $CONFIG_HEADERS
17940   CONFIG_LINKS    = $CONFIG_LINKS
17941   CONFIG_COMMANDS = $CONFIG_COMMANDS
17942   $ $0 $@
17943
17944 _CSEOF
17945 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17946 echo >&5
17947 _ACEOF
17948
17949 # Files that config.status was made for.
17950 if test -n "$ac_config_files"; then
17951   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17952 fi
17953
17954 if test -n "$ac_config_headers"; then
17955   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17956 fi
17957
17958 if test -n "$ac_config_links"; then
17959   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17960 fi
17961
17962 if test -n "$ac_config_commands"; then
17963   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17964 fi
17965
17966 cat >>$CONFIG_STATUS <<\_ACEOF
17967
17968 ac_cs_usage="\
17969 \`$as_me' instantiates files from templates according to the
17970 current configuration.
17971
17972 Usage: $0 [OPTIONS] [FILE]...
17973
17974   -h, --help       print this help, then exit
17975   -V, --version    print version number, then exit
17976   -q, --quiet      do not print progress messages
17977   -d, --debug      don't remove temporary files
17978       --recheck    update $as_me by reconfiguring in the same conditions
17979   --file=FILE[:TEMPLATE]
17980                    instantiate the configuration file FILE
17981   --header=FILE[:TEMPLATE]
17982                    instantiate the configuration header FILE
17983
17984 Configuration files:
17985 $config_files
17986
17987 Configuration headers:
17988 $config_headers
17989
17990 Configuration commands:
17991 $config_commands
17992
17993 Report bugs to <bug-autoconf@gnu.org>."
17994 _ACEOF
17995
17996 cat >>$CONFIG_STATUS <<_ACEOF
17997 ac_cs_version="\\
17998 config.status
17999 configured by $0, generated by GNU Autoconf 2.57,
18000   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18001
18002 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18003 Free Software Foundation, Inc.
18004 This config.status script is free software; the Free Software Foundation
18005 gives unlimited permission to copy, distribute and modify it."
18006 srcdir=$srcdir
18007 INSTALL="$INSTALL"
18008 _ACEOF
18009
18010 cat >>$CONFIG_STATUS <<\_ACEOF
18011 # If no file are specified by the user, then we need to provide default
18012 # value.  By we need to know if files were specified by the user.
18013 ac_need_defaults=:
18014 while test $# != 0
18015 do
18016   case $1 in
18017   --*=*)
18018     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18019     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18020     ac_shift=:
18021     ;;
18022   -*)
18023     ac_option=$1
18024     ac_optarg=$2
18025     ac_shift=shift
18026     ;;
18027   *) # This is not an option, so the user has probably given explicit
18028      # arguments.
18029      ac_option=$1
18030      ac_need_defaults=false;;
18031   esac
18032
18033   case $ac_option in
18034   # Handling of the options.
18035 _ACEOF
18036 cat >>$CONFIG_STATUS <<\_ACEOF
18037   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18038     ac_cs_recheck=: ;;
18039   --version | --vers* | -V )
18040     echo "$ac_cs_version"; exit 0 ;;
18041   --he | --h)
18042     # Conflict between --help and --header
18043     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18044 Try \`$0 --help' for more information." >&5
18045 echo "$as_me: error: ambiguous option: $1
18046 Try \`$0 --help' for more information." >&2;}
18047    { (exit 1); exit 1; }; };;
18048   --help | --hel | -h )
18049     echo "$ac_cs_usage"; exit 0 ;;
18050   --debug | --d* | -d )
18051     debug=: ;;
18052   --file | --fil | --fi | --f )
18053     $ac_shift
18054     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18055     ac_need_defaults=false;;
18056   --header | --heade | --head | --hea )
18057     $ac_shift
18058     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18059     ac_need_defaults=false;;
18060   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18061   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18062     ac_cs_silent=: ;;
18063
18064   # This is an error.
18065   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18066 Try \`$0 --help' for more information." >&5
18067 echo "$as_me: error: unrecognized option: $1
18068 Try \`$0 --help' for more information." >&2;}
18069    { (exit 1); exit 1; }; } ;;
18070
18071   *) ac_config_targets="$ac_config_targets $1" ;;
18072
18073   esac
18074   shift
18075 done
18076
18077 ac_configure_extra_args=
18078
18079 if $ac_cs_silent; then
18080   exec 6>/dev/null
18081   ac_configure_extra_args="$ac_configure_extra_args --silent"
18082 fi
18083
18084 _ACEOF
18085 cat >>$CONFIG_STATUS <<_ACEOF
18086 if \$ac_cs_recheck; then
18087   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18088   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18089 fi
18090
18091 _ACEOF
18092
18093
18094
18095
18096
18097 cat >>$CONFIG_STATUS <<\_ACEOF
18098 for ac_config_target in $ac_config_targets
18099 do
18100   case "$ac_config_target" in
18101   # Handling of arguments.
18102   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18103   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18104   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18105   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18106   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18107   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18108   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18109   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18110   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18111   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18112   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18113   "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18114   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18115   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18116   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18117   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18118   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18119   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18120   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18121   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18122   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18123   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18124   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18125   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18126   "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18127   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18128   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18129   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18130   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18131   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18132   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18133   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18134   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18135   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18136   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18137   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18138   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18139   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18140   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18141   "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
18142   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18143   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18144   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18145   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18146   "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18147   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18148   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18149   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18150   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18151   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18152   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18153   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18154   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18155   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18156   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18157   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18158   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18159   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18160   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18161   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18162   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18163 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18164    { (exit 1); exit 1; }; };;
18165   esac
18166 done
18167
18168 # If the user did not use the arguments to specify the items to instantiate,
18169 # then the envvar interface is used.  Set only those that are not.
18170 # We use the long form for the default assignment because of an extremely
18171 # bizarre bug on SunOS 4.1.3.
18172 if $ac_need_defaults; then
18173   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18174   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18175   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18176 fi
18177
18178 # Have a temporary directory for convenience.  Make it in the build tree
18179 # simply because there is no reason to put it here, and in addition,
18180 # creating and moving files from /tmp can sometimes cause problems.
18181 # Create a temporary directory, and hook for its removal unless debugging.
18182 $debug ||
18183 {
18184   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18185   trap '{ (exit 1); exit 1; }' 1 2 13 15
18186 }
18187
18188 # Create a (secure) tmp directory for tmp files.
18189
18190 {
18191   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18192   test -n "$tmp" && test -d "$tmp"
18193 }  ||
18194 {
18195   tmp=./confstat$$-$RANDOM
18196   (umask 077 && mkdir $tmp)
18197 } ||
18198 {
18199    echo "$me: cannot create a temporary directory in ." >&2
18200    { (exit 1); exit 1; }
18201 }
18202
18203 _ACEOF
18204
18205 cat >>$CONFIG_STATUS <<_ACEOF
18206
18207 #
18208 # CONFIG_FILES section.
18209 #
18210
18211 # No need to generate the scripts if there are no CONFIG_FILES.
18212 # This happens for instance when ./config.status config.h
18213 if test -n "\$CONFIG_FILES"; then
18214   # Protect against being on the right side of a sed subst in config.status.
18215   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18216    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18217 s,@SHELL@,$SHELL,;t t
18218 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18219 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18220 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18221 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18222 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18223 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18224 s,@exec_prefix@,$exec_prefix,;t t
18225 s,@prefix@,$prefix,;t t
18226 s,@program_transform_name@,$program_transform_name,;t t
18227 s,@bindir@,$bindir,;t t
18228 s,@sbindir@,$sbindir,;t t
18229 s,@libexecdir@,$libexecdir,;t t
18230 s,@datadir@,$datadir,;t t
18231 s,@sysconfdir@,$sysconfdir,;t t
18232 s,@sharedstatedir@,$sharedstatedir,;t t
18233 s,@localstatedir@,$localstatedir,;t t
18234 s,@libdir@,$libdir,;t t
18235 s,@includedir@,$includedir,;t t
18236 s,@oldincludedir@,$oldincludedir,;t t
18237 s,@infodir@,$infodir,;t t
18238 s,@mandir@,$mandir,;t t
18239 s,@build_alias@,$build_alias,;t t
18240 s,@host_alias@,$host_alias,;t t
18241 s,@target_alias@,$target_alias,;t t
18242 s,@DEFS@,$DEFS,;t t
18243 s,@ECHO_C@,$ECHO_C,;t t
18244 s,@ECHO_N@,$ECHO_N,;t t
18245 s,@ECHO_T@,$ECHO_T,;t t
18246 s,@LIBS@,$LIBS,;t t
18247 s,@BUILD_DIR@,$BUILD_DIR,;t t
18248 s,@TRUEPRG@,$TRUEPRG,;t t
18249 s,@FALSEPRG@,$FALSEPRG,;t t
18250 s,@build@,$build,;t t
18251 s,@build_cpu@,$build_cpu,;t t
18252 s,@build_vendor@,$build_vendor,;t t
18253 s,@build_os@,$build_os,;t t
18254 s,@host@,$host,;t t
18255 s,@host_cpu@,$host_cpu,;t t
18256 s,@host_vendor@,$host_vendor,;t t
18257 s,@host_os@,$host_os,;t t
18258 s,@VERSION@,$VERSION,;t t
18259 s,@DATE@,$DATE,;t t
18260 s,@LSMDATE@,$LSMDATE,;t t
18261 s,@CC@,$CC,;t t
18262 s,@CFLAGS@,$CFLAGS,;t t
18263 s,@LDFLAGS@,$LDFLAGS,;t t
18264 s,@CPPFLAGS@,$CPPFLAGS,;t t
18265 s,@ac_ct_CC@,$ac_ct_CC,;t t
18266 s,@EXEEXT@,$EXEEXT,;t t
18267 s,@OBJEXT@,$OBJEXT,;t t
18268 s,@CXX@,$CXX,;t t
18269 s,@CXXFLAGS@,$CXXFLAGS,;t t
18270 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18271 s,@CPP@,$CPP,;t t
18272 s,@EGREP@,$EGREP,;t t
18273 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18274 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18275 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18276 s,@RANLIB@,$RANLIB,;t t
18277 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18278 s,@MV@,$MV,;t t
18279 s,@RM@,$RM,;t t
18280 s,@CP@,$CP,;t t
18281 s,@SED@,$SED,;t t
18282 s,@AWK@,$AWK,;t t
18283 s,@ECHO@,$ECHO,;t t
18284 s,@CMP@,$CMP,;t t
18285 s,@TBL@,$TBL,;t t
18286 s,@AR@,$AR,;t t
18287 s,@OPENSSL@,$OPENSSL,;t t
18288 s,@MTX@,$MTX,;t t
18289 s,@PKGCONFIG@,$PKGCONFIG,;t t
18290 s,@ARFLAGS@,$ARFLAGS,;t t
18291 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18292 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18293 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18294 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18295 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18296 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18297 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18298 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18299 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18300 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18301 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18302 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18303 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18304 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18305 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18306 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18307 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18308 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18309 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18310 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18311 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18312 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18313 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18314 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18315 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18316 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18317 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18318 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18319 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18320 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18321 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18322 s,@MSGFMT@,$MSGFMT,;t t
18323 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18324 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18325 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18326 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18327 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18328 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18329 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18330 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18331 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18332 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18333 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18334 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18335 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18336 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18337 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18338 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18339 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18340 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18341 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18342 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18343 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18344 s,@GNOME_DIR@,$GNOME_DIR,;t t
18345 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18346 s,@STATIC_FD@,$STATIC_FD,;t t
18347 s,@STATIC_SD@,$STATIC_SD,;t t
18348 s,@STATIC_DIR@,$STATIC_DIR,;t t
18349 s,@STATIC_CONS@,$STATIC_CONS,;t t
18350 s,@ALL_DIRS@,$ALL_DIRS,;t t
18351 s,@CONS_INC@,$CONS_INC,;t t
18352 s,@CONS_LIBS@,$CONS_LIBS,;t t
18353 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18354 s,@READLINE_SRC@,$READLINE_SRC,;t t
18355 s,@working_dir@,$working_dir,;t t
18356 s,@scriptdir@,$scriptdir,;t t
18357 s,@dump_email@,$dump_email,;t t
18358 s,@job_email@,$job_email,;t t
18359 s,@smtp_host@,$smtp_host,;t t
18360 s,@piddir@,$piddir,;t t
18361 s,@subsysdir@,$subsysdir,;t t
18362 s,@baseport@,$baseport,;t t
18363 s,@dir_port@,$dir_port,;t t
18364 s,@fd_port@,$fd_port,;t t
18365 s,@sd_port@,$sd_port,;t t
18366 s,@dir_password@,$dir_password,;t t
18367 s,@fd_password@,$fd_password,;t t
18368 s,@sd_password@,$sd_password,;t t
18369 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18370 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18371 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18372 s,@cats@,$cats,;t t
18373 s,@DB_NAME@,$DB_NAME,;t t
18374 s,@GETCONF@,$GETCONF,;t t
18375 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18376 s,@X_CFLAGS@,$X_CFLAGS,;t t
18377 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18378 s,@X_LIBS@,$X_LIBS,;t t
18379 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18380 s,@LIBOBJS@,$LIBOBJS,;t t
18381 s,@ALLOCA@,$ALLOCA,;t t
18382 s,@FDLIBS@,$FDLIBS,;t t
18383 s,@DEBUG@,$DEBUG,;t t
18384 s,@DINCLUDE@,$DINCLUDE,;t t
18385 s,@DLIB@,$DLIB,;t t
18386 s,@DB_LIBS@,$DB_LIBS,;t t
18387 s,@WCFLAGS@,$WCFLAGS,;t t
18388 s,@WLDFLAGS@,$WLDFLAGS,;t t
18389 s,@OBJLIST@,$OBJLIST,;t t
18390 s,@hostname@,$hostname,;t t
18391 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18392 s,@PSCMD@,$PSCMD,;t t
18393 s,@WIN32@,$WIN32,;t t
18394 s,@DISTNAME@,$DISTNAME,;t t
18395 s,@DISTVER@,$DISTVER,;t t
18396 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18397 /@MCOMMON@/r $MCOMMON
18398 s,@MCOMMON@,,;t t
18399 CEOF
18400
18401 _ACEOF
18402
18403   cat >>$CONFIG_STATUS <<\_ACEOF
18404   # Split the substitutions into bite-sized pieces for seds with
18405   # small command number limits, like on Digital OSF/1 and HP-UX.
18406   ac_max_sed_lines=48
18407   ac_sed_frag=1 # Number of current file.
18408   ac_beg=1 # First line for current file.
18409   ac_end=$ac_max_sed_lines # Line after last line for current file.
18410   ac_more_lines=:
18411   ac_sed_cmds=
18412   while $ac_more_lines; do
18413     if test $ac_beg -gt 1; then
18414       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18415     else
18416       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18417     fi
18418     if test ! -s $tmp/subs.frag; then
18419       ac_more_lines=false
18420     else
18421       # The purpose of the label and of the branching condition is to
18422       # speed up the sed processing (if there are no `@' at all, there
18423       # is no need to browse any of the substitutions).
18424       # These are the two extra sed commands mentioned above.
18425       (echo ':t
18426   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18427       if test -z "$ac_sed_cmds"; then
18428         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18429       else
18430         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18431       fi
18432       ac_sed_frag=`expr $ac_sed_frag + 1`
18433       ac_beg=$ac_end
18434       ac_end=`expr $ac_end + $ac_max_sed_lines`
18435     fi
18436   done
18437   if test -z "$ac_sed_cmds"; then
18438     ac_sed_cmds=cat
18439   fi
18440 fi # test -n "$CONFIG_FILES"
18441
18442 _ACEOF
18443 cat >>$CONFIG_STATUS <<\_ACEOF
18444 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18445   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18446   case $ac_file in
18447   - | *:- | *:-:* ) # input from stdin
18448         cat >$tmp/stdin
18449         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18450         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18451   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18452         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18453   * )   ac_file_in=$ac_file.in ;;
18454   esac
18455
18456   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18457   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459          X"$ac_file" : 'X\(//\)[^/]' \| \
18460          X"$ac_file" : 'X\(//\)$' \| \
18461          X"$ac_file" : 'X\(/\)' \| \
18462          .     : '\(.\)' 2>/dev/null ||
18463 echo X"$ac_file" |
18464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18465           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18466           /^X\(\/\/\)$/{ s//\1/; q; }
18467           /^X\(\/\).*/{ s//\1/; q; }
18468           s/.*/./; q'`
18469   { if $as_mkdir_p; then
18470     mkdir -p "$ac_dir"
18471   else
18472     as_dir="$ac_dir"
18473     as_dirs=
18474     while test ! -d "$as_dir"; do
18475       as_dirs="$as_dir $as_dirs"
18476       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478          X"$as_dir" : 'X\(//\)[^/]' \| \
18479          X"$as_dir" : 'X\(//\)$' \| \
18480          X"$as_dir" : 'X\(/\)' \| \
18481          .     : '\(.\)' 2>/dev/null ||
18482 echo X"$as_dir" |
18483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18484           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18485           /^X\(\/\/\)$/{ s//\1/; q; }
18486           /^X\(\/\).*/{ s//\1/; q; }
18487           s/.*/./; q'`
18488     done
18489     test ! -n "$as_dirs" || mkdir $as_dirs
18490   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18492    { (exit 1); exit 1; }; }; }
18493
18494   ac_builddir=.
18495
18496 if test "$ac_dir" != .; then
18497   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18498   # A "../" for each directory in $ac_dir_suffix.
18499   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18500 else
18501   ac_dir_suffix= ac_top_builddir=
18502 fi
18503
18504 case $srcdir in
18505   .)  # No --srcdir option.  We are building in place.
18506     ac_srcdir=.
18507     if test -z "$ac_top_builddir"; then
18508        ac_top_srcdir=.
18509     else
18510        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18511     fi ;;
18512   [\\/]* | ?:[\\/]* )  # Absolute path.
18513     ac_srcdir=$srcdir$ac_dir_suffix;
18514     ac_top_srcdir=$srcdir ;;
18515   *) # Relative path.
18516     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18517     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18518 esac
18519 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18520 # absolute.
18521 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18522 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18523 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18524 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18525
18526
18527   case $INSTALL in
18528   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18529   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18530   esac
18531
18532   if test x"$ac_file" != x-; then
18533     { echo "$as_me:$LINENO: creating $ac_file" >&5
18534 echo "$as_me: creating $ac_file" >&6;}
18535     rm -f "$ac_file"
18536   fi
18537   # Let's still pretend it is `configure' which instantiates (i.e., don't
18538   # use $as_me), people would be surprised to read:
18539   #    /* config.h.  Generated by config.status.  */
18540   if test x"$ac_file" = x-; then
18541     configure_input=
18542   else
18543     configure_input="$ac_file.  "
18544   fi
18545   configure_input=$configure_input"Generated from `echo $ac_file_in |
18546                                      sed 's,.*/,,'` by configure."
18547
18548   # First look for the input files in the build tree, otherwise in the
18549   # src tree.
18550   ac_file_inputs=`IFS=:
18551     for f in $ac_file_in; do
18552       case $f in
18553       -) echo $tmp/stdin ;;
18554       [\\/$]*)
18555          # Absolute (can't be DOS-style, as IFS=:)
18556          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18557 echo "$as_me: error: cannot find input file: $f" >&2;}
18558    { (exit 1); exit 1; }; }
18559          echo $f;;
18560       *) # Relative
18561          if test -f "$f"; then
18562            # Build tree
18563            echo $f
18564          elif test -f "$srcdir/$f"; then
18565            # Source tree
18566            echo $srcdir/$f
18567          else
18568            # /dev/null tree
18569            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18570 echo "$as_me: error: cannot find input file: $f" >&2;}
18571    { (exit 1); exit 1; }; }
18572          fi;;
18573       esac
18574     done` || { (exit 1); exit 1; }
18575 _ACEOF
18576 cat >>$CONFIG_STATUS <<_ACEOF
18577   sed "$ac_vpsub
18578 $extrasub
18579 _ACEOF
18580 cat >>$CONFIG_STATUS <<\_ACEOF
18581 :t
18582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18583 s,@configure_input@,$configure_input,;t t
18584 s,@srcdir@,$ac_srcdir,;t t
18585 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18586 s,@top_srcdir@,$ac_top_srcdir,;t t
18587 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18588 s,@builddir@,$ac_builddir,;t t
18589 s,@abs_builddir@,$ac_abs_builddir,;t t
18590 s,@top_builddir@,$ac_top_builddir,;t t
18591 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18592 s,@INSTALL@,$ac_INSTALL,;t t
18593 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18594   rm -f $tmp/stdin
18595   if test x"$ac_file" != x-; then
18596     mv $tmp/out $ac_file
18597   else
18598     cat $tmp/out
18599     rm -f $tmp/out
18600   fi
18601
18602 done
18603 _ACEOF
18604 cat >>$CONFIG_STATUS <<\_ACEOF
18605
18606 #
18607 # CONFIG_HEADER section.
18608 #
18609
18610 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18611 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18612 #
18613 # ac_d sets the value in "#define NAME VALUE" lines.
18614 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18615 ac_dB='[        ].*$,\1#\2'
18616 ac_dC=' '
18617 ac_dD=',;t'
18618 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18619 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18620 ac_uB='$,\1#\2define\3'
18621 ac_uC=' '
18622 ac_uD=',;t'
18623
18624 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18625   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18626   case $ac_file in
18627   - | *:- | *:-:* ) # input from stdin
18628         cat >$tmp/stdin
18629         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18630         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18631   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18632         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18633   * )   ac_file_in=$ac_file.in ;;
18634   esac
18635
18636   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18637 echo "$as_me: creating $ac_file" >&6;}
18638
18639   # First look for the input files in the build tree, otherwise in the
18640   # src tree.
18641   ac_file_inputs=`IFS=:
18642     for f in $ac_file_in; do
18643       case $f in
18644       -) echo $tmp/stdin ;;
18645       [\\/$]*)
18646          # Absolute (can't be DOS-style, as IFS=:)
18647          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18648 echo "$as_me: error: cannot find input file: $f" >&2;}
18649    { (exit 1); exit 1; }; }
18650          echo $f;;
18651       *) # Relative
18652          if test -f "$f"; then
18653            # Build tree
18654            echo $f
18655          elif test -f "$srcdir/$f"; then
18656            # Source tree
18657            echo $srcdir/$f
18658          else
18659            # /dev/null tree
18660            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18661 echo "$as_me: error: cannot find input file: $f" >&2;}
18662    { (exit 1); exit 1; }; }
18663          fi;;
18664       esac
18665     done` || { (exit 1); exit 1; }
18666   # Remove the trailing spaces.
18667   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18668
18669 _ACEOF
18670
18671 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18672 # `conftest.undefs', that substitutes the proper values into
18673 # config.h.in to produce config.h.  The first handles `#define'
18674 # templates, and the second `#undef' templates.
18675 # And first: Protect against being on the right side of a sed subst in
18676 # config.status.  Protect against being in an unquoted here document
18677 # in config.status.
18678 rm -f conftest.defines conftest.undefs
18679 # Using a here document instead of a string reduces the quoting nightmare.
18680 # Putting comments in sed scripts is not portable.
18681 #
18682 # `end' is used to avoid that the second main sed command (meant for
18683 # 0-ary CPP macros) applies to n-ary macro definitions.
18684 # See the Autoconf documentation for `clear'.
18685 cat >confdef2sed.sed <<\_ACEOF
18686 s/[\\&,]/\\&/g
18687 s,[\\$`],\\&,g
18688 t clear
18689 : clear
18690 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18691 t end
18692 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18693 : end
18694 _ACEOF
18695 # If some macros were called several times there might be several times
18696 # the same #defines, which is useless.  Nevertheless, we may not want to
18697 # sort them, since we want the *last* AC-DEFINE to be honored.
18698 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18699 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18700 rm -f confdef2sed.sed
18701
18702 # This sed command replaces #undef with comments.  This is necessary, for
18703 # example, in the case of _POSIX_SOURCE, which is predefined and required
18704 # on some systems where configure will not decide to define it.
18705 cat >>conftest.undefs <<\_ACEOF
18706 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18707 _ACEOF
18708
18709 # Break up conftest.defines because some shells have a limit on the size
18710 # of here documents, and old seds have small limits too (100 cmds).
18711 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18712 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18713 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18714 echo '  :' >>$CONFIG_STATUS
18715 rm -f conftest.tail
18716 while grep . conftest.defines >/dev/null
18717 do
18718   # Write a limited-size here document to $tmp/defines.sed.
18719   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18720   # Speed up: don't consider the non `#define' lines.
18721   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18722   # Work around the forget-to-reset-the-flag bug.
18723   echo 't clr' >>$CONFIG_STATUS
18724   echo ': clr' >>$CONFIG_STATUS
18725   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18726   echo 'CEOF
18727   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18728   rm -f $tmp/in
18729   mv $tmp/out $tmp/in
18730 ' >>$CONFIG_STATUS
18731   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18732   rm -f conftest.defines
18733   mv conftest.tail conftest.defines
18734 done
18735 rm -f conftest.defines
18736 echo '  fi # grep' >>$CONFIG_STATUS
18737 echo >>$CONFIG_STATUS
18738
18739 # Break up conftest.undefs because some shells have a limit on the size
18740 # of here documents, and old seds have small limits too (100 cmds).
18741 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18742 rm -f conftest.tail
18743 while grep . conftest.undefs >/dev/null
18744 do
18745   # Write a limited-size here document to $tmp/undefs.sed.
18746   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18747   # Speed up: don't consider the non `#undef'
18748   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18749   # Work around the forget-to-reset-the-flag bug.
18750   echo 't clr' >>$CONFIG_STATUS
18751   echo ': clr' >>$CONFIG_STATUS
18752   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18753   echo 'CEOF
18754   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18755   rm -f $tmp/in
18756   mv $tmp/out $tmp/in
18757 ' >>$CONFIG_STATUS
18758   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18759   rm -f conftest.undefs
18760   mv conftest.tail conftest.undefs
18761 done
18762 rm -f conftest.undefs
18763
18764 cat >>$CONFIG_STATUS <<\_ACEOF
18765   # Let's still pretend it is `configure' which instantiates (i.e., don't
18766   # use $as_me), people would be surprised to read:
18767   #    /* config.h.  Generated by config.status.  */
18768   if test x"$ac_file" = x-; then
18769     echo "/* Generated by configure.  */" >$tmp/config.h
18770   else
18771     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18772   fi
18773   cat $tmp/in >>$tmp/config.h
18774   rm -f $tmp/in
18775   if test x"$ac_file" != x-; then
18776     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18777       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18778 echo "$as_me: $ac_file is unchanged" >&6;}
18779     else
18780       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18782          X"$ac_file" : 'X\(//\)[^/]' \| \
18783          X"$ac_file" : 'X\(//\)$' \| \
18784          X"$ac_file" : 'X\(/\)' \| \
18785          .     : '\(.\)' 2>/dev/null ||
18786 echo X"$ac_file" |
18787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18789           /^X\(\/\/\)$/{ s//\1/; q; }
18790           /^X\(\/\).*/{ s//\1/; q; }
18791           s/.*/./; q'`
18792       { if $as_mkdir_p; then
18793     mkdir -p "$ac_dir"
18794   else
18795     as_dir="$ac_dir"
18796     as_dirs=
18797     while test ! -d "$as_dir"; do
18798       as_dirs="$as_dir $as_dirs"
18799       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18801          X"$as_dir" : 'X\(//\)[^/]' \| \
18802          X"$as_dir" : 'X\(//\)$' \| \
18803          X"$as_dir" : 'X\(/\)' \| \
18804          .     : '\(.\)' 2>/dev/null ||
18805 echo X"$as_dir" |
18806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18807           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18808           /^X\(\/\/\)$/{ s//\1/; q; }
18809           /^X\(\/\).*/{ s//\1/; q; }
18810           s/.*/./; q'`
18811     done
18812     test ! -n "$as_dirs" || mkdir $as_dirs
18813   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18815    { (exit 1); exit 1; }; }; }
18816
18817       rm -f $ac_file
18818       mv $tmp/config.h $ac_file
18819     fi
18820   else
18821     cat $tmp/config.h
18822     rm -f $tmp/config.h
18823   fi
18824 done
18825 _ACEOF
18826 cat >>$CONFIG_STATUS <<\_ACEOF
18827
18828 #
18829 # CONFIG_COMMANDS section.
18830 #
18831 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18832   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18833   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18834   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18835 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18836          X"$ac_dest" : 'X\(//\)[^/]' \| \
18837          X"$ac_dest" : 'X\(//\)$' \| \
18838          X"$ac_dest" : 'X\(/\)' \| \
18839          .     : '\(.\)' 2>/dev/null ||
18840 echo X"$ac_dest" |
18841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18842           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18843           /^X\(\/\/\)$/{ s//\1/; q; }
18844           /^X\(\/\).*/{ s//\1/; q; }
18845           s/.*/./; q'`
18846   ac_builddir=.
18847
18848 if test "$ac_dir" != .; then
18849   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18850   # A "../" for each directory in $ac_dir_suffix.
18851   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18852 else
18853   ac_dir_suffix= ac_top_builddir=
18854 fi
18855
18856 case $srcdir in
18857   .)  # No --srcdir option.  We are building in place.
18858     ac_srcdir=.
18859     if test -z "$ac_top_builddir"; then
18860        ac_top_srcdir=.
18861     else
18862        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18863     fi ;;
18864   [\\/]* | ?:[\\/]* )  # Absolute path.
18865     ac_srcdir=$srcdir$ac_dir_suffix;
18866     ac_top_srcdir=$srcdir ;;
18867   *) # Relative path.
18868     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18869     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18870 esac
18871 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18872 # absolute.
18873 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18874 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18875 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18876 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18877
18878
18879   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18880 echo "$as_me: executing $ac_dest commands" >&6;}
18881   case $ac_dest in
18882     default ) (echo "Doing make of dependencies"; make depend;)
18883  ;;
18884   esac
18885 done
18886 _ACEOF
18887
18888 cat >>$CONFIG_STATUS <<\_ACEOF
18889
18890 { (exit 0); exit 0; }
18891 _ACEOF
18892 chmod +x $CONFIG_STATUS
18893 ac_clean_files=$ac_clean_files_save
18894
18895
18896 # configure is writing to config.log, and then calls config.status.
18897 # config.status does its own redirection, appending to config.log.
18898 # Unfortunately, on DOS this fails, as config.log is still kept open
18899 # by configure, so config.status won't be able to write to it; its
18900 # output is simply discarded.  So we exec the FD to /dev/null,
18901 # effectively closing config.log, so it can be properly (re)opened and
18902 # appended to by config.status.  When coming back to configure, we
18903 # need to make the FD available again.
18904 if test "$no_create" != yes; then
18905   ac_cs_success=:
18906   ac_config_status_args=
18907   test "$silent" = yes &&
18908     ac_config_status_args="$ac_config_status_args --quiet"
18909   exec 5>/dev/null
18910   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18911   exec 5>>config.log
18912   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18913   # would make configure fail if this is the last instruction.
18914   $ac_cs_success || { (exit 1); exit 1; }
18915 fi
18916
18917
18918 cd scripts
18919 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18920 chmod 755 console gconsole mtx-changer
18921 cd ..
18922 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18923 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18924 chmod 755 src/cats/create_mysql_database
18925 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18926 chmod 755 src/cats/alter_mysql_tables
18927 chmod 755 src/cats/grant_mysql_privileges
18928 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18929 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18930 chmod 755 src/cats/create_sqlite_database
18931 chmod 755 src/cats/alter_sqlite_tables
18932 chmod 755 src/cats/sqlite
18933 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18934 chmod 755 src/cats/create_bdb_database
18935
18936 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18937    largefile_support="yes"
18938 fi
18939
18940 #
18941 # A whole lot of hand springs to get the compiler version.
18942 #  This is because gcc changed the output in version 3.0
18943 #
18944 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18945 if test "x${CCVERSION}" = "x" ; then
18946   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18947 fi
18948 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18949 if test x"${CXXVERSION}" = x ; then
18950   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18951 fi
18952
18953 if test "x${subsysdir}" = "x${sbindir}" ; then
18954    echo " "
18955    echo " "
18956    echo "You have set --sbindir and --with-subsys-dir"
18957    echo "  both equal to: ${subsysdir} "
18958    echo "  This is not permitted. Please reconfigure."
18959    echo "Aborting configuration ..."
18960    echo " "
18961    echo " "
18962    exit 1
18963 fi
18964
18965 echo "
18966 Configuration on `date`:
18967
18968   Host:                       $host -- ${DISTNAME} ${DISTVER}
18969   Bacula version:             ${VERSION} (${DATE})
18970   Source code location:       ${srcdir}
18971   Install binaries:           ${sbindir}
18972   Install config files:       ${sysconfdir}
18973   Scripts directory:          ${scriptdir}
18974   Working directory:          ${working_dir}
18975   PID directory:              ${piddir}
18976   Subsys directory:           ${subsysdir}
18977   C Compiler:                 ${CC} ${CCVERSION}
18978   C++ Compiler:               ${CXX} ${CXXVERSION}
18979   Compiler flags:             ${WCFLAGS} ${CFLAGS}
18980   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
18981   Libraries:                  ${LIBS}
18982   Statically Linked Tools:    ${support_static_tools}
18983   Statically Linked FD:       ${support_static_fd}
18984   Statically Linked SD:       ${support_static_sd}
18985   Statically Linked DIR:      ${support_static_dir}
18986   Statically Linked CONS:     ${support_static_cons}
18987   Database type:              ${db_name}
18988   Database lib:               ${DB_LIBS}
18989
18990   Job Output Email:           ${job_email}
18991   Traceback Email:            ${dump_email}
18992   SMTP Host Address:          ${smtp_host}
18993   Director Port               ${dir_port}
18994   File daemon Port            ${fd_port}
18995   Storage daemon Port         ${sd_port}
18996   SQL binaries Directory      ${SQL_BINDIR}
18997
18998   Large file support:         $largefile_support
18999   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19000   TCP Wrappers support:       ${TCPW_MSG}
19001   ZLIB support:               ${have_zlib}
19002   enable-smartalloc:          ${support_smartalloc}
19003   enable-gnome:               ${support_gnome}
19004   client-only:                ${build_client_only}
19005
19006   " > config.out
19007
19008 cat config.out
19009
19010 # old stuff
19011 # cweb support:               ${got_cweb} ${CWEB_SRC}
19012 # gmp support:                ${got_gmp} ${GMP_SRC}