]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
3ee33084dd0ca7730cd878fcb3b0dfaebb89b084
[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 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 WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM 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 MACOSX 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-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $OPENSSL in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3601   ;;
3602 esac
3603 fi
3604 OPENSSL=$ac_cv_path_OPENSSL
3605
3606 if test -n "$OPENSSL"; then
3607   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $MTX in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3641   ;;
3642 esac
3643 fi
3644 MTX=$ac_cv_path_MTX
3645
3646 if test -n "$MTX"; then
3647   echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $PKGCONFIG in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3681   ;;
3682 esac
3683 fi
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3685
3686 if test -n "$PKGCONFIG"; then
3687   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $WXCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3721   ;;
3722 esac
3723 fi
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3725
3726 if test -n "$WXCONFIG"; then
3727   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3736
3737
3738 MAKE_SHELL=/bin/sh
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761   ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765    { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769    { (exit 1); exit 1; }; }
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3774 build=$ac_cv_build
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778
3779
3780
3781 echo "$as_me:$LINENO: checking host system type" >&5
3782 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3783 if test "${ac_cv_host+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   ac_cv_host_alias=$host_alias
3787 test -z "$ac_cv_host_alias" &&
3788   ac_cv_host_alias=$ac_cv_build_alias
3789 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3790   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3791 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3792    { (exit 1); exit 1; }; }
3793
3794 fi
3795 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3796 echo "${ECHO_T}$ac_cv_host" >&6
3797 host=$ac_cv_host
3798 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3799 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3800 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3801
3802
3803 case $host_os in
3804   *cygwin* ) CYGWIN=yes;;
3805          * ) CYGWIN=no;;
3806 esac
3807
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3809 then
3810
3811
3812 if $TRUEPRG; then
3813   HAVE_SUN_OS_TRUE=
3814   HAVE_SUN_OS_FALSE='#'
3815 else
3816   HAVE_SUN_OS_TRUE='#'
3817   HAVE_SUN_OS_FALSE=
3818 fi
3819         cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3821 _ACEOF
3822
3823 else
3824
3825
3826 if $FALSEPRG; then
3827   HAVE_SUN_OS_TRUE=
3828   HAVE_SUN_OS_FALSE='#'
3829 else
3830   HAVE_SUN_OS_TRUE='#'
3831   HAVE_SUN_OS_FALSE=
3832 fi
3833 fi
3834
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3836 then
3837
3838
3839 if $TRUEPRG; then
3840   HAVE_OSF1_OS_TRUE=
3841   HAVE_OSF1_OS_FALSE='#'
3842 else
3843   HAVE_OSF1_OS_TRUE='#'
3844   HAVE_OSF1_OS_FALSE=
3845 fi
3846         cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3848 _ACEOF
3849
3850 else
3851
3852
3853 if $FALSEPRG; then
3854   HAVE_OSF1_OS_TRUE=
3855   HAVE_OSF1_OS_FALSE='#'
3856 else
3857   HAVE_OSF1_OS_TRUE='#'
3858   HAVE_OSF1_OS_FALSE=
3859 fi
3860 fi
3861
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3863 then
3864
3865
3866 if $TRUEPRG; then
3867   HAVE_AIX_OS_TRUE=
3868   HAVE_AIX_OS_FALSE='#'
3869 else
3870   HAVE_AIX_OS_TRUE='#'
3871   HAVE_AIX_OS_FALSE=
3872 fi
3873         cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3875 _ACEOF
3876
3877 else
3878
3879
3880 if $FALSEPRG; then
3881   HAVE_AIX_OS_TRUE=
3882   HAVE_AIX_OS_FALSE='#'
3883 else
3884   HAVE_AIX_OS_TRUE='#'
3885   HAVE_AIX_OS_FALSE=
3886 fi
3887 fi
3888
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3890 then
3891
3892
3893 if $TRUEPRG; then
3894   HAVE_HPUX_OS_TRUE=
3895   HAVE_HPUX_OS_FALSE='#'
3896 else
3897   HAVE_HPUX_OS_TRUE='#'
3898   HAVE_HPUX_OS_FALSE=
3899 fi
3900         cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3902 _ACEOF
3903
3904 else
3905
3906
3907 if $FALSEPRG; then
3908   HAVE_HPUX_OS_TRUE=
3909   HAVE_HPUX_OS_FALSE='#'
3910 else
3911   HAVE_HPUX_OS_TRUE='#'
3912   HAVE_HPUX_OS_FALSE=
3913 fi
3914 fi
3915
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3917 then
3918
3919
3920 if $TRUEPRG; then
3921   HAVE_LINUX_OS_TRUE=
3922   HAVE_LINUX_OS_FALSE='#'
3923 else
3924   HAVE_LINUX_OS_TRUE='#'
3925   HAVE_LINUX_OS_FALSE=
3926 fi
3927         cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3929 _ACEOF
3930
3931 else
3932
3933
3934 if $FALSEPRG; then
3935   HAVE_LINUX_OS_TRUE=
3936   HAVE_LINUX_OS_FALSE='#'
3937 else
3938   HAVE_LINUX_OS_TRUE='#'
3939   HAVE_LINUX_OS_FALSE=
3940 fi
3941 fi
3942
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3944 then
3945
3946
3947 if $TRUEPRG; then
3948   HAVE_FREEBSD_OS_TRUE=
3949   HAVE_FREEBSD_OS_FALSE='#'
3950 else
3951   HAVE_FREEBSD_OS_TRUE='#'
3952   HAVE_FREEBSD_OS_FALSE=
3953 fi
3954         cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3956 _ACEOF
3957
3958 else
3959
3960
3961 if $FALSEPRG; then
3962   HAVE_FREEBSD_OS_TRUE=
3963   HAVE_FREEBSD_OS_FALSE='#'
3964 else
3965   HAVE_FREEBSD_OS_TRUE='#'
3966   HAVE_FREEBSD_OS_FALSE=
3967 fi
3968 fi
3969
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3971 then
3972
3973
3974 if $TRUEPRG; then
3975   HAVE_NETBSD_OS_TRUE=
3976   HAVE_NETBSD_OS_FALSE='#'
3977 else
3978   HAVE_NETBSD_OS_TRUE='#'
3979   HAVE_NETBSD_OS_FALSE=
3980 fi
3981         cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3983 _ACEOF
3984
3985 else
3986
3987
3988 if $FALSEPRG; then
3989   HAVE_NETBSD_OS_TRUE=
3990   HAVE_NETBSD_OS_FALSE='#'
3991 else
3992   HAVE_NETBSD_OS_TRUE='#'
3993   HAVE_NETBSD_OS_FALSE=
3994 fi
3995 fi
3996
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3998 then
3999
4000
4001 if $TRUEPRG; then
4002   HAVE_OPENBSD_OS_TRUE=
4003   HAVE_OPENBSD_OS_FALSE='#'
4004 else
4005   HAVE_OPENBSD_OS_TRUE='#'
4006   HAVE_OPENBSD_OS_FALSE=
4007 fi
4008         cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4010 _ACEOF
4011
4012 else
4013
4014
4015 if $FALSEPRG; then
4016   HAVE_OPENBSD_OS_TRUE=
4017   HAVE_OPENBSD_OS_FALSE='#'
4018 else
4019   HAVE_OPENBSD_OS_TRUE='#'
4020   HAVE_OPENBSD_OS_FALSE=
4021 fi
4022 fi
4023
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4025 then
4026
4027
4028 if $TRUEPRG; then
4029   HAVE_BSDI_OS_TRUE=
4030   HAVE_BSDI_OS_FALSE='#'
4031 else
4032   HAVE_BSDI_OS_TRUE='#'
4033   HAVE_BSDI_OS_FALSE=
4034 fi
4035         cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4037 _ACEOF
4038
4039 else
4040
4041
4042 if $FALSEPRG; then
4043   HAVE_BSDI_OS_TRUE=
4044   HAVE_BSDI_OS_FALSE='#'
4045 else
4046   HAVE_BSDI_OS_TRUE='#'
4047   HAVE_BSDI_OS_FALSE=
4048 fi
4049 fi
4050
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4052 then
4053
4054
4055 if $TRUEPRG; then
4056   HAVE_SGI_OS_TRUE=
4057   HAVE_SGI_OS_FALSE='#'
4058 else
4059   HAVE_SGI_OS_TRUE='#'
4060   HAVE_SGI_OS_FALSE=
4061 fi
4062         cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4064 _ACEOF
4065
4066 else
4067
4068
4069 if $FALSEPRG; then
4070   HAVE_SGI_OS_TRUE=
4071   HAVE_SGI_OS_FALSE='#'
4072 else
4073   HAVE_SGI_OS_TRUE='#'
4074   HAVE_SGI_OS_FALSE=
4075 fi
4076 fi
4077
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4079 then
4080
4081
4082 if $TRUEPRG; then
4083   HAVE_IRIX_OS_TRUE=
4084   HAVE_IRIX_OS_FALSE='#'
4085 else
4086   HAVE_IRIX_OS_TRUE='#'
4087   HAVE_IRIX_OS_FALSE=
4088 fi
4089         cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4091 _ACEOF
4092
4093 else
4094
4095
4096 if $FALSEPRG; then
4097   HAVE_IRIX_OS_TRUE=
4098   HAVE_IRIX_OS_FALSE='#'
4099 else
4100   HAVE_IRIX_OS_TRUE='#'
4101   HAVE_IRIX_OS_FALSE=
4102 fi
4103 fi
4104
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4106 then
4107
4108
4109 if $TRUEPRG; then
4110   HAVE_DARWIN_OS_TRUE=
4111   HAVE_DARWIN_OS_FALSE='#'
4112 else
4113   HAVE_DARWIN_OS_TRUE='#'
4114   HAVE_DARWIN_OS_FALSE=
4115 fi
4116     cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4118 _ACEOF
4119
4120 else
4121
4122
4123 if $FALSEPRG; then
4124   HAVE_DARWIN_OS_TRUE=
4125   HAVE_DARWIN_OS_FALSE='#'
4126 else
4127   HAVE_DARWIN_OS_TRUE='#'
4128   HAVE_DARWIN_OS_FALSE=
4129 fi
4130 fi
4131
4132
4133 # -----------------------------------------------------------
4134 # ----------------------------------------------------------
4135 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4136 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4137 if test "x$DISTNAME" != "x"
4138 then
4139         echo "distname set to $DISTNAME"
4140 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4141 then
4142         DISTNAME=alpha
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4144 then
4145         DISTNAME=aix
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4147 then
4148         DISTNAME=hpux
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4150 then
4151         DISTNAME=solaris
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4153 then
4154         DISTNAME=freebsd
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4156 then
4157         DISTNAME=netbsd
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4159 then
4160         DISTNAME=openbsd
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4162 then
4163         DISTNAME=irix
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4165 then
4166         DISTNAME=bsdi
4167 elif test -f /etc/SuSE-release
4168 then
4169         DISTNAME=suse
4170 elif test -d /etc/SuSEconfig
4171 then
4172         DISTNAME=suse5
4173 elif test -f /etc/mandrake-release
4174 then
4175         DISTNAME=mandrake
4176 elif test -f /etc/whitebox-release
4177 then
4178        DISTNAME=redhat
4179 elif test -f /etc/redhat-release
4180 then
4181         DISTNAME=redhat
4182 elif test -f /etc/gentoo-release
4183 then
4184         DISTNAME=gentoo
4185 elif test -f /etc/debian_version
4186 then
4187         DISTNAME=debian
4188 elif test -f /etc/slackware-version
4189 then
4190         DISTNAME=slackware
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4192 then
4193     DISTNAME=darwin
4194 elif test -f /etc/engarde-version
4195 then
4196         DISTNAME=engarde
4197 elif test "$CYGWIN" = yes
4198 then
4199         DISTNAME=cygwin
4200         cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4202 _ACEOF
4203
4204 else
4205         DISTNAME=unknown
4206 fi
4207 echo "$as_me:$LINENO: result: done" >&5
4208 echo "${ECHO_T}done" >&6
4209
4210
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4213
4214
4215
4216 if false; then
4217   INSIDE_GNOME_COMMON_TRUE=
4218   INSIDE_GNOME_COMMON_FALSE='#'
4219 else
4220   INSIDE_GNOME_COMMON_TRUE='#'
4221   INSIDE_GNOME_COMMON_FALSE=
4222 fi
4223
4224         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4225
4226         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4227
4228
4229 # ------------------------------------------------------------------
4230 #  If the user has not set --prefix, we set our default to nothing.
4231 #  In this case, if the user has not set --sysconfdir, we set it
4232 #  to the package default of /etc/bacula.  If either --prefix or
4233 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237         sysconfdir=/etc/bacula
4238     fi
4239     prefix=
4240 fi
4241 sysconfdir=`eval echo ${sysconfdir}`
4242
4243 # -------------------------------------------------------------------------
4244 #  If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247     exec_prefix=${prefix}
4248 fi
4249
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254     sbindir=${exec_prefix}/sbin
4255 fi
4256 sbindir=`eval echo ${sbindir}`
4257
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 #  language is separated by a space.
4261 # ------------------------------------------------------------------
4262 ALL_LINGUAS=""
4263
4264 for ac_prog in msgfmt
4265 do
4266   # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   case $MSGFMT in
4274   [\\/]* | ?:[\\/]*)
4275   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4276   ;;
4277   *)
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283   for ac_exec_ext in '' $ac_executable_extensions; do
4284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292   ;;
4293 esac
4294 fi
4295 MSGFMT=$ac_cv_path_MSGFMT
4296
4297 if test -n "$MSGFMT"; then
4298   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305   test -n "$MSGFMT" && break
4306 done
4307 test -n "$MSGFMT" || MSGFMT="no"
4308
4309 if test "$MSGFMT" = "no"
4310 then
4311    echo 'msgfmt program not found, disabling NLS !'
4312    USE_NLS=no
4313    USE_INCLUDED_LIBINTL=no
4314 #else
4315 #   AM_GNU_GETTEXT
4316 fi
4317
4318
4319 support_mysql=no
4320 support_sqlite=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=yes
4324 support_conio=yes
4325 support_gnome=no
4326 support_wx_console=no
4327 gnome_version=
4328 support_static_tools=no
4329 support_static_fd=no
4330 support_static_sd=no
4331 support_static_dir=no
4332 support_static_cons=no
4333 build_client_only=no
4334 cats=
4335 db_name=Internal
4336 DB_NAME=bdb
4337
4338
4339 # -------------------------------------------
4340 # gnome (default off)
4341 # -------------------------------------------
4342 # Check whether --enable-gnome or --disable-gnome was given.
4343 if test "${enable_gnome+set}" = set; then
4344   enableval="$enable_gnome"
4345   if test x$enableval = xyes; then
4346     support_gnome=yes
4347   fi
4348 fi;
4349
4350 GNOME_DIR=
4351 if test x$support_gnome = xyes; then
4352   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4353   pkg=$?
4354   if test $pkg = 0; then
4355      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4356      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4357      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4358      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4359
4360
4361
4362
4363      GNOME_DIR=src/gnome2-console
4364      gnome_version="Version 2.x"
4365   else
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4378 if test "${with_gnome_includes+set}" = set; then
4379   withval="$with_gnome_includes"
4380
4381         CFLAGS="$CFLAGS -I$withval"
4382
4383 fi;
4384
4385
4386 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4387 if test "${with_gnome_libs+set}" = set; then
4388   withval="$with_gnome_libs"
4389
4390         LDFLAGS="$LDFLAGS -L$withval"
4391         gnome_prefix=$withval
4392
4393 fi;
4394
4395
4396 # Check whether --with-gnome or --without-gnome was given.
4397 if test "${with_gnome+set}" = set; then
4398   withval="$with_gnome"
4399   if test x$withval = xyes; then
4400                         want_gnome=yes
4401                                                                         :
4402                 else
4403                         if test "x$withval" = xno; then
4404                                 want_gnome=no
4405                         else
4406                                 want_gnome=yes
4407                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4408                                 CFLAGS="$CFLAGS -I$withval/include"
4409                                 gnome_prefix=$withval/lib
4410                         fi
4411                 fi
4412 else
4413   want_gnome=yes
4414 fi;
4415
4416         if test "x$want_gnome" = xyes; then
4417
4418             # Extract the first word of "gnome-config", so it can be a program name with args.
4419 set dummy gnome-config; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   case $GNOME_CONFIG in
4426   [\\/]* | ?:[\\/]*)
4427   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4428   ;;
4429   *)
4430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443
4444   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4445   ;;
4446 esac
4447 fi
4448 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4449
4450 if test -n "$GNOME_CONFIG"; then
4451   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4452 echo "${ECHO_T}$GNOME_CONFIG" >&6
4453 else
4454   echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458             if test "$GNOME_CONFIG" = "no"; then
4459               no_gnome_config="yes"
4460             else
4461               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4462 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4463               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4464                 echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6
4466
4467
4468         # Extract the first word of "orbit-config", so it can be a program name with args.
4469 set dummy orbit-config; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   case $ORBIT_CONFIG in
4476   [\\/]* | ?:[\\/]*)
4477   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4478   ;;
4479   *)
4480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493
4494   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4495   ;;
4496 esac
4497 fi
4498 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4499
4500 if test -n "$ORBIT_CONFIG"; then
4501   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4502 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4503 else
4504   echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4506 fi
4507
4508         # Extract the first word of "orbit-idl", so it can be a program name with args.
4509 set dummy orbit-idl; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $ORBIT_IDL in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4535   ;;
4536 esac
4537 fi
4538 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4539
4540 if test -n "$ORBIT_IDL"; then
4541   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4542 echo "${ECHO_T}$ORBIT_IDL" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4549 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4550 if test "${gnome_cv_orbit_found+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553
4554                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4555                         gnome_cv_orbit_found=no
4556                 else
4557                         gnome_cv_orbit_found=yes
4558                 fi
4559
4560 fi
4561 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4562 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4563
4564
4565 if test x$gnome_cv_orbit_found = xyes; then
4566   HAVE_ORBIT_TRUE=
4567   HAVE_ORBIT_FALSE='#'
4568 else
4569   HAVE_ORBIT_TRUE='#'
4570   HAVE_ORBIT_FALSE=
4571 fi
4572         if test x$gnome_cv_orbit_found = xyes; then
4573
4574                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4575                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4576
4577
4578         else
4579                 if test xfail = xfailure; then
4580                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4581 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4582    { (exit 1); exit 1; }; }
4583                 fi
4584         fi
4585
4586         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4587 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4588 if test "${gnome_cv_gnorba_found+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591
4592                 gnome_cv_gnorba_found=no
4593                 if test x$gnome_cv_orbit_found = xyes; then
4594                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4595                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4596                         if test -n "$GNORBA_LIBS"; then
4597                                 gnome_cv_gnorba_found=yes
4598                         fi
4599                 fi
4600
4601 fi
4602 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4603 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4604
4605
4606 if test x$gnome_cv_gnorba_found = xyes; then
4607   HAVE_GNORBA_TRUE=
4608   HAVE_GNORBA_FALSE='#'
4609 else
4610   HAVE_GNORBA_TRUE='#'
4611   HAVE_GNORBA_FALSE=
4612 fi
4613         if test x$gnome_cv_orbit_found = xyes; then
4614
4615                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4616                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4617
4618
4619         else
4620                 if test xfail = xfailure; then
4621                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4622 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4623    { (exit 1); exit 1; }; }
4624                 fi
4625         fi
4626
4627                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4628                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4629                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4630                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4631                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4632                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4633                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4634
4635               else
4636                 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638                 no_gnome_config="yes"
4639               fi
4640             fi
4641
4642             if test x$exec_prefix = xNONE; then
4643                 if test x$prefix = xNONE; then
4644                     gnome_prefix=$ac_default_prefix/lib
4645                 else
4646                     gnome_prefix=$prefix/lib
4647                 fi
4648             else
4649                 gnome_prefix=`eval echo \`echo $libdir\``
4650             fi
4651
4652             if test "$no_gnome_config" = "yes"; then
4653               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4654 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4655               if test -f $gnome_prefix/gnomeConf.sh; then
4656                 echo "$as_me:$LINENO: result: found" >&5
4657 echo "${ECHO_T}found" >&6
4658                 echo "loading gnome configuration from" \
4659                      "$gnome_prefix/gnomeConf.sh"
4660                 . $gnome_prefix/gnomeConf.sh
4661
4662               else
4663                 echo "$as_me:$LINENO: result: not found" >&5
4664 echo "${ECHO_T}not found" >&6
4665                 if test xfail = xfail; then
4666                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4667 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4668    { (exit 1); exit 1; }; }
4669                 fi
4670               fi
4671             fi
4672         fi
4673
4674         if test -n ""; then
4675           n=""
4676           for i in $n; do
4677             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4678 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4679             case $i in
4680               applets)
4681
4682                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4683                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4684 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4685               docklets)
4686
4687                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4688                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4689 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4690               capplet)
4691
4692                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4693                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4694 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4695               *)
4696                 echo "$as_me:$LINENO: result: unknown library" >&5
4697 echo "${ECHO_T}unknown library" >&6
4698             esac
4699             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4700             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4701           done
4702         fi
4703
4704
4705      GNOME_DIR=src/gnome-console
4706      gnome_version="Version 1.4"
4707   fi
4708 fi
4709
4710
4711
4712 # -------------------------------------------
4713 # wx-console (default off)
4714 # -------------------------------------------
4715 # Check whether --enable-wx-console or --disable-wx-console was given.
4716 if test "${enable_wx_console+set}" = set; then
4717   enableval="$enable_wx_console"
4718   if test x$enableval = xyes; then
4719     support_wx_console=yes
4720   fi
4721 fi;
4722
4723 WX_DIR=
4724 if test x$support_wx_console = xyes; then
4725   abc=`$WXCONFIG --cppflags`
4726   pkg=$?
4727   if test $pkg = 0; then
4728      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4729      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4730
4731
4732      WX_DIR=src/wx-console
4733   else
4734      echo " "
4735      echo "wx-config program not found. wx-console disabled."
4736      echo " "
4737      support_wx_console=no
4738   fi
4739 fi
4740
4741
4742
4743
4744 # -------------------------------------------
4745 # smartalloc (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4748 if test "${enable_smartalloc+set}" = set; then
4749   enableval="$enable_smartalloc"
4750   if test x$enableval = xno; then
4751     support_smartalloc=no
4752   fi
4753 fi;
4754
4755 if test x$support_smartalloc = xyes; then
4756    cat >>confdefs.h <<\_ACEOF
4757 #define SMARTALLOC 1
4758 _ACEOF
4759
4760 fi
4761
4762 # -------------------------------------------
4763 # static-tools (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-tools or --disable-static-tools was given.
4766 if test "${enable_static_tools+set}" = set; then
4767   enableval="$enable_static_tools"
4768   if test x$enableval = xyes; then
4769      support_static_tools=yes
4770    fi
4771 fi;
4772
4773 TTOOL_LDFLAGS=
4774 if test x$support_static_tools = xyes; then
4775    TTOOL_LDFLAGS="-static"
4776 fi
4777
4778
4779 # -------------------------------------------
4780 # static-fd    (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-fd or --disable-static-fd was given.
4783 if test "${enable_static_fd+set}" = set; then
4784   enableval="$enable_static_fd"
4785   if test x$enableval = xyes; then
4786      support_static_fd=yes
4787    fi
4788 fi;
4789
4790 STATIC_FD=
4791 if test x$support_static_fd = xyes; then
4792    STATIC_FD="static-bacula-fd"
4793 fi
4794
4795
4796 # -------------------------------------------
4797 # static-sd    (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-sd or --disable-static-sd was given.
4800 if test "${enable_static_sd+set}" = set; then
4801   enableval="$enable_static_sd"
4802   if test x$enableval = xyes; then
4803      support_static_sd=yes
4804    fi
4805 fi;
4806
4807 STATIC_SD=
4808 if test x$support_static_sd = xyes; then
4809    STATIC_SD="static-bacula-sd"
4810 fi
4811
4812
4813 # -------------------------------------------
4814 # static-dir   (default off)
4815 # -------------------------------------------
4816 # Check whether --enable-static-dir or --disable-static-dir was given.
4817 if test "${enable_static_dir+set}" = set; then
4818   enableval="$enable_static_dir"
4819   if test x$enableval = xyes; then
4820      support_static_dir=yes
4821    fi
4822 fi;
4823
4824 STATIC_DIR=
4825 if test x$support_static_dir = xyes; then
4826    STATIC_DIR="static-bacula-dir"
4827 fi
4828
4829
4830 # -------------------------------------------
4831 # static-cons  (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-static-cons or --disable-static-cons was given.
4834 if test "${enable_static_cons+set}" = set; then
4835   enableval="$enable_static_cons"
4836   if test x$enableval = xyes; then
4837      support_static_cons=yes
4838    fi
4839 fi;
4840
4841 STATIC_CONS=
4842 STATIC_GNOME_CONS=
4843 STATIC_WX_CONS=
4844 if test x$support_static_cons = xyes; then
4845    STATIC_CONS="static-bconsole"
4846    STATIC_GNOME_CONS="static-gnome-console"
4847    STATIC_WX_CONS="static-wx-console"
4848 fi
4849
4850
4851
4852
4853 # -------------------------------------------
4854 # client_only  (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-client-only or --disable-client-only was given.
4857 if test "${enable_client_only+set}" = set; then
4858   enableval="$enable_client_only"
4859   if test x$enableval = xyes; then
4860      build_client_only=yes
4861     db_name=None
4862     DB_NAME=none
4863    fi
4864 fi;
4865 if test x$build_client_only = xno; then
4866    ALL_DIRS="subdirs"
4867 else
4868    ALL_DIRS=""
4869 fi
4870
4871
4872 # ---------------------------------------------------
4873 # Check for conio (Bacula readline substitute)(
4874 # ---------------------------------------------------
4875 # this allows you to turn it completely off
4876 # Check whether --enable-conio or --disable-conio was given.
4877 if test "${enable_conio+set}" = set; then
4878   enableval="$enable_conio"
4879   if test x$enableval = xno; then
4880     support_conio=no
4881   fi
4882 fi;
4883
4884 got_conio="no"
4885 if test x$support_conio = xyes; then
4886    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4888 if test "${ac_cv_header_stdc+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 #include <stdlib.h>
4899 #include <stdarg.h>
4900 #include <string.h>
4901 #include <float.h>
4902
4903 int
4904 main ()
4905 {
4906
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913   (eval $ac_compile) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -s conftest.$ac_objext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_cv_header_stdc=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_cv_header_stdc=no
4929 fi
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4931
4932 if test $ac_cv_header_stdc = yes; then
4933   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4934   cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #include <string.h>
4942
4943 _ACEOF
4944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4945   $EGREP "memchr" >/dev/null 2>&1; then
4946   :
4947 else
4948   ac_cv_header_stdc=no
4949 fi
4950 rm -f conftest*
4951
4952 fi
4953
4954 if test $ac_cv_header_stdc = yes; then
4955   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4956   cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963 #include <stdlib.h>
4964
4965 _ACEOF
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967   $EGREP "free" >/dev/null 2>&1; then
4968   :
4969 else
4970   ac_cv_header_stdc=no
4971 fi
4972 rm -f conftest*
4973
4974 fi
4975
4976 if test $ac_cv_header_stdc = yes; then
4977   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4978   if test "$cross_compiling" = yes; then
4979   :
4980 else
4981   cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #include <ctype.h>
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4992 #else
4993 # define ISLOWER(c) \
4994                    (('a' <= (c) && (c) <= 'i') \
4995                      || ('j' <= (c) && (c) <= 'r') \
4996                      || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4998 #endif
4999
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5001 int
5002 main ()
5003 {
5004   int i;
5005   for (i = 0; i < 256; i++)
5006     if (XOR (islower (i), ISLOWER (i))
5007         || toupper (i) != TOUPPER (i))
5008       exit(2);
5009   exit (0);
5010 }
5011 _ACEOF
5012 rm -f conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014   (eval $ac_link) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   :
5024 else
5025   echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ( exit $ac_status )
5030 ac_cv_header_stdc=no
5031 fi
5032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 fi
5035 fi
5036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5038 if test $ac_cv_header_stdc = yes; then
5039
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5042 _ACEOF
5043
5044 fi
5045
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057                   inttypes.h stdint.h unistd.h
5058 do
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 $ac_includes_default
5073
5074 #include <$ac_header>
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078   (eval $ac_compile) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } &&
5082          { ac_try='test -s conftest.$ac_objext'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; }; then
5088   eval "$as_ac_Header=yes"
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 eval "$as_ac_Header=no"
5094 fi
5095 rm -f conftest.$ac_objext conftest.$ac_ext
5096 fi
5097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100   cat >>confdefs.h <<_ACEOF
5101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102 _ACEOF
5103
5104 fi
5105
5106 done
5107
5108
5109 if test "${ac_cv_header_termcap_h+set}" = set; then
5110   echo "$as_me:$LINENO: checking for termcap.h" >&5
5111 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5112 if test "${ac_cv_header_termcap_h+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 fi
5115 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5116 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5117 else
5118   # Is the header compilable?
5119 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5120 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5122 #line $LINENO "configure"
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 $ac_includes_default
5129 #include <termcap.h>
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133   (eval $ac_compile) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } &&
5137          { ac_try='test -s conftest.$ac_objext'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; }; then
5143   ac_header_compiler=yes
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_header_compiler=no
5149 fi
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5152 echo "${ECHO_T}$ac_header_compiler" >&6
5153
5154 # Is the header present?
5155 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5156 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164 #include <termcap.h>
5165 _ACEOF
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168   ac_status=$?
5169   grep -v '^ *+' conftest.er1 >conftest.err
5170   rm -f conftest.er1
5171   cat conftest.err >&5
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); } >/dev/null; then
5174   if test -s conftest.err; then
5175     ac_cpp_err=$ac_c_preproc_warn_flag
5176   else
5177     ac_cpp_err=
5178   fi
5179 else
5180   ac_cpp_err=yes
5181 fi
5182 if test -z "$ac_cpp_err"; then
5183   ac_header_preproc=yes
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188   ac_header_preproc=no
5189 fi
5190 rm -f conftest.err conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192 echo "${ECHO_T}$ac_header_preproc" >&6
5193
5194 # So?  What about this header?
5195 case $ac_header_compiler:$ac_header_preproc in
5196   yes:no )
5197     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5201     (
5202       cat <<\_ASBOX
5203 ## ------------------------------------ ##
5204 ## Report this to bug-autoconf@gnu.org. ##
5205 ## ------------------------------------ ##
5206 _ASBOX
5207     ) |
5208       sed "s/^/$as_me: WARNING:     /" >&2
5209     ;;
5210   no:yes )
5211     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5212 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5213     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5214 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5215     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5216 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5217     (
5218       cat <<\_ASBOX
5219 ## ------------------------------------ ##
5220 ## Report this to bug-autoconf@gnu.org. ##
5221 ## ------------------------------------ ##
5222 _ASBOX
5223     ) |
5224       sed "s/^/$as_me: WARNING:     /" >&2
5225     ;;
5226 esac
5227 echo "$as_me:$LINENO: checking for termcap.h" >&5
5228 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5229 if test "${ac_cv_header_termcap_h+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   ac_cv_header_termcap_h=$ac_header_preproc
5233 fi
5234 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5235 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5236
5237 fi
5238 if test $ac_cv_header_termcap_h = yes; then
5239    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5240 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5241 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-ltermcap  $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253
5254 /* Override any gcc2 internal prototype to avoid an error.  */
5255 #ifdef __cplusplus
5256 extern "C"
5257 #endif
5258 /* We use char because int might match the return type of a gcc2
5259    builtin and then its argument prototype would still apply.  */
5260 char tgetent ();
5261 int
5262 main ()
5263 {
5264 tgetent ();
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271   (eval $ac_link) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } &&
5275          { ac_try='test -s conftest$ac_exeext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_cv_lib_termcap_tgetent=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_cv_lib_termcap_tgetent=no
5287 fi
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5290 fi
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5292 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5293 if test $ac_cv_lib_termcap_tgetent = yes; then
5294    CONS_LIBS="-ltermcap"
5295          CONS_OBJ="conio.o"
5296          CONS_SRC="conio.c"
5297          got_conio="yes"
5298          support_readline=no
5299
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_CONIO 1
5302 _ACEOF
5303
5304
5305 else
5306    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5307 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5308 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lncurses  $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 /* confdefs.h.  */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h.  */
5320
5321 /* Override any gcc2 internal prototype to avoid an error.  */
5322 #ifdef __cplusplus
5323 extern "C"
5324 #endif
5325 /* We use char because int might match the return type of a gcc2
5326    builtin and then its argument prototype would still apply.  */
5327 char tgetent ();
5328 int
5329 main ()
5330 {
5331 tgetent ();
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338   (eval $ac_link) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } &&
5342          { ac_try='test -s conftest$ac_exeext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   ac_cv_lib_ncurses_tgetent=yes
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_cv_lib_ncurses_tgetent=no
5354 fi
5355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5357 fi
5358 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5360 if test $ac_cv_lib_ncurses_tgetent = yes; then
5361    CONS_LIBS="-lncurses"
5362            CONS_OBJ="conio.o"
5363            CONS_SRC="conio.c"
5364            got_conio="yes"
5365            support_readline=no
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_CONIO 1
5369 _ACEOF
5370
5371
5372 else
5373    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5374 fi
5375
5376
5377 fi
5378
5379
5380 else
5381   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5382 fi
5383
5384
5385 fi
5386
5387
5388 # ---------------------------------------------------
5389 # Check for readline support/directory (default off)
5390 # ---------------------------------------------------
5391 # this allows you to turn it completely off
5392 # Check whether --enable-readline or --disable-readline was given.
5393 if test "${enable_readline+set}" = set; then
5394   enableval="$enable_readline"
5395   if test x$enableval = xno; then
5396     support_readline=no
5397   fi
5398 fi;
5399
5400 got_readline="no"
5401 READLINE_SRC=
5402 if test x$support_readline = xyes; then
5403
5404 # Check whether --with-readline or --without-readline was given.
5405 if test "${with_readline+set}" = set; then
5406   withval="$with_readline"
5407
5408         case "$with_readline" in
5409         no) : ;;
5410         yes|*)
5411           if test "$with_readline" != "yes"; then
5412             CONS_INC="-I${with_readline}"
5413             CONS_LDFLAGS="-L$with_readline"
5414           else
5415              with_readline="/usr/include/readline"
5416           fi
5417           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5420 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 fi
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 else
5427   # Is the header compilable?
5428 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5429 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437 $ac_includes_default
5438 #include <${with_readline}/readline.h>
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442   (eval $ac_compile) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -s conftest.$ac_objext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452   ac_header_compiler=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_header_compiler=no
5458 fi
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5461 echo "${ECHO_T}$ac_header_compiler" >&6
5462
5463 # Is the header present?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 #include <${with_readline}/readline.h>
5474 _ACEOF
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } >/dev/null; then
5483   if test -s conftest.err; then
5484     ac_cpp_err=$ac_c_preproc_warn_flag
5485   else
5486     ac_cpp_err=
5487   fi
5488 else
5489   ac_cpp_err=yes
5490 fi
5491 if test -z "$ac_cpp_err"; then
5492   ac_header_preproc=yes
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497   ac_header_preproc=no
5498 fi
5499 rm -f conftest.err conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5501 echo "${ECHO_T}$ac_header_preproc" >&6
5502
5503 # So?  What about this header?
5504 case $ac_header_compiler:$ac_header_preproc in
5505   yes:no )
5506     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5507 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5508     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5510     (
5511       cat <<\_ASBOX
5512 ## ------------------------------------ ##
5513 ## Report this to bug-autoconf@gnu.org. ##
5514 ## ------------------------------------ ##
5515 _ASBOX
5516     ) |
5517       sed "s/^/$as_me: WARNING:     /" >&2
5518     ;;
5519   no:yes )
5520     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5521 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5522     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5523 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5524     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5526     (
5527       cat <<\_ASBOX
5528 ## ------------------------------------ ##
5529 ## Report this to bug-autoconf@gnu.org. ##
5530 ## ------------------------------------ ##
5531 _ASBOX
5532     ) |
5533       sed "s/^/$as_me: WARNING:     /" >&2
5534     ;;
5535 esac
5536 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5537 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   eval "$as_ac_Header=$ac_header_preproc"
5542 fi
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5545
5546 fi
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548    cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_READLINE 1
5550 _ACEOF
5551
5552                CONS_LIBS="-lreadline -ltermcap"
5553                got_readline="yes"
5554
5555 else
5556    echo " "
5557                echo "readline.h not found. readline turned off ..."
5558                echo " "
5559
5560
5561 fi
5562
5563
5564           ;;
5565         esac
5566
5567 else
5568
5569        # check for standard readline library
5570        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5571   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5572 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5573 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 fi
5576 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5577 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5578 else
5579   # Is the header compilable?
5580 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5581 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 $ac_includes_default
5590 #include </usr/include/readline/readline.h>
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } &&
5598          { ac_try='test -s conftest.$ac_objext'
5599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600   (eval $ac_try) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; }; then
5604   ac_header_compiler=yes
5605 else
5606   echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ac_header_compiler=no
5610 fi
5611 rm -f conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6
5614
5615 # Is the header present?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 #include </usr/include/readline/readline.h>
5626 _ACEOF
5627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } >/dev/null; then
5635   if test -s conftest.err; then
5636     ac_cpp_err=$ac_c_preproc_warn_flag
5637   else
5638     ac_cpp_err=
5639   fi
5640 else
5641   ac_cpp_err=yes
5642 fi
5643 if test -z "$ac_cpp_err"; then
5644   ac_header_preproc=yes
5645 else
5646   echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649   ac_header_preproc=no
5650 fi
5651 rm -f conftest.err conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653 echo "${ECHO_T}$ac_header_preproc" >&6
5654
5655 # So?  What about this header?
5656 case $ac_header_compiler:$ac_header_preproc in
5657   yes:no )
5658     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5661 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5662     (
5663       cat <<\_ASBOX
5664 ## ------------------------------------ ##
5665 ## Report this to bug-autoconf@gnu.org. ##
5666 ## ------------------------------------ ##
5667 _ASBOX
5668     ) |
5669       sed "s/^/$as_me: WARNING:     /" >&2
5670     ;;
5671   no:yes )
5672     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5674     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5676     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5678     (
5679       cat <<\_ASBOX
5680 ## ------------------------------------ ##
5681 ## Report this to bug-autoconf@gnu.org. ##
5682 ## ------------------------------------ ##
5683 _ASBOX
5684     ) |
5685       sed "s/^/$as_me: WARNING:     /" >&2
5686     ;;
5687 esac
5688 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5689 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5690 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5694 fi
5695 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5696 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5697
5698 fi
5699 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5700    cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_READLINE 1
5702 _ACEOF
5703
5704            got_readline="yes"
5705            CONS_INC="-I/usr/include/readline"
5706            CONS_LIBS="-lreadline -ltermcap"
5707
5708 else
5709
5710            # Did not find standard library, so try Bacula's default
5711             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5714 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 fi
5718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5720 else
5721   # Is the header compilable?
5722 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5723 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 $ac_includes_default
5732 #include <${TOP_DIR}/depkgs/readline/readline.h>
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736   (eval $ac_compile) 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -s conftest.$ac_objext'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }; then
5746   ac_header_compiler=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751 ac_header_compiler=no
5752 fi
5753 rm -f conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5755 echo "${ECHO_T}$ac_header_compiler" >&6
5756
5757 # Is the header present?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 #include <${TOP_DIR}/depkgs/readline/readline.h>
5768 _ACEOF
5769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5771   ac_status=$?
5772   grep -v '^ *+' conftest.er1 >conftest.err
5773   rm -f conftest.er1
5774   cat conftest.err >&5
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); } >/dev/null; then
5777   if test -s conftest.err; then
5778     ac_cpp_err=$ac_c_preproc_warn_flag
5779   else
5780     ac_cpp_err=
5781   fi
5782 else
5783   ac_cpp_err=yes
5784 fi
5785 if test -z "$ac_cpp_err"; then
5786   ac_header_preproc=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791   ac_header_preproc=no
5792 fi
5793 rm -f conftest.err conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5795 echo "${ECHO_T}$ac_header_preproc" >&6
5796
5797 # So?  What about this header?
5798 case $ac_header_compiler:$ac_header_preproc in
5799   yes:no )
5800     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5801 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5802     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5804     (
5805       cat <<\_ASBOX
5806 ## ------------------------------------ ##
5807 ## Report this to bug-autoconf@gnu.org. ##
5808 ## ------------------------------------ ##
5809 _ASBOX
5810     ) |
5811       sed "s/^/$as_me: WARNING:     /" >&2
5812     ;;
5813   no:yes )
5814     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5815 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5816     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5817 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5818     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5820     (
5821       cat <<\_ASBOX
5822 ## ------------------------------------ ##
5823 ## Report this to bug-autoconf@gnu.org. ##
5824 ## ------------------------------------ ##
5825 _ASBOX
5826     ) |
5827       sed "s/^/$as_me: WARNING:     /" >&2
5828     ;;
5829 esac
5830 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5831 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   eval "$as_ac_Header=$ac_header_preproc"
5836 fi
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5839
5840 fi
5841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5842    cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_READLINE 1
5844 _ACEOF
5845
5846                  got_readline="yes"
5847                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5848                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5849                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5850                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5851
5852 else
5853    echo " "
5854                 echo "readline.h not found. readline turned off ..."
5855                 echo " "
5856
5857
5858 fi
5859
5860
5861
5862
5863 fi
5864
5865
5866
5867
5868 fi;
5869 fi
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 # Minimal stuff for readline Makefile configuration
5881 MAKE_SHELL=/bin/sh
5882
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5897
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5900 You lose.
5901 # endif
5902 #endif
5903
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5906 You lose.
5907 # endif
5908 #endif
5909
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5912 You lose.
5913 # endif
5914 #endif
5915
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5918 You lose.
5919 # endif
5920 #endif
5921
5922 _ACEOF
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924   $EGREP "You lose" >/dev/null 2>&1; then
5925   ac_cv_header_stat_broken=yes
5926 else
5927   ac_cv_header_stat_broken=no
5928 fi
5929 rm -f conftest*
5930
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5935
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5938 _ACEOF
5939
5940 fi
5941
5942
5943
5944
5945
5946
5947 ac_header_dirent=no
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 #include <sys/types.h>
5963 #include <$ac_hdr>
5964
5965 int
5966 main ()
5967 {
5968 if ((DIR *) 0)
5969 return 0;
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -s conftest.$ac_objext'
5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982   (eval $ac_try) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   eval "$as_ac_Header=yes"
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 eval "$as_ac_Header=no"
5992 fi
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998   cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6000 _ACEOF
6001
6002 ac_header_dirent=$ac_hdr; break
6003 fi
6004
6005 done
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char opendir ();
6030 int
6031 main ()
6032 {
6033 opendir ();
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="none required"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 fi
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058   for ac_lib in dir; do
6059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6060     cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 /* We use char because int might match the return type of a gcc2
6073    builtin and then its argument prototype would still apply.  */
6074 char opendir ();
6075 int
6076 main ()
6077 {
6078 opendir ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_search_opendir="-l$ac_lib"
6096 break
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 fi
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103   done
6104 fi
6105 LIBS=$ac_func_search_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6111
6112 fi
6113
6114 else
6115   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129
6130 /* Override any gcc2 internal prototype to avoid an error.  */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135    builtin and then its argument prototype would still apply.  */
6136 char opendir ();
6137 int
6138 main ()
6139 {
6140 opendir ();
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147   (eval $ac_link) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_search_opendir="none required"
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6165   for ac_lib in x; do
6166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6167     cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174
6175 /* Override any gcc2 internal prototype to avoid an error.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char opendir ();
6182 int
6183 main ()
6184 {
6185 opendir ();
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_cv_search_opendir="-l$ac_lib"
6203 break
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 fi
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210   done
6211 fi
6212 LIBS=$ac_func_search_save_LIBS
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6218
6219 fi
6220
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6232 do
6233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6234 echo "$as_me:$LINENO: checking for $ac_func" >&5
6235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_var+set}\" = set"; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 /* System header to define __stub macros and hopefully few prototypes,
6247     which can conflict with char $ac_func (); below.
6248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249     <limits.h> exists even on freestanding compilers.  */
6250 #ifdef __STDC__
6251 # include <limits.h>
6252 #else
6253 # include <assert.h>
6254 #endif
6255 /* Override any gcc2 internal prototype to avoid an error.  */
6256 #ifdef __cplusplus
6257 extern "C"
6258 {
6259 #endif
6260 /* We use char because int might match the return type of a gcc2
6261    builtin and then its argument prototype would still apply.  */
6262 char $ac_func ();
6263 /* The GNU C library defines this for functions which it implements
6264     to always fail with ENOSYS.  Some functions are actually named
6265     something starting with __ and the normal name is an alias.  */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6267 choke me
6268 #else
6269 char (*f) () = $ac_func;
6270 #endif
6271 #ifdef __cplusplus
6272 }
6273 #endif
6274
6275 int
6276 main ()
6277 {
6278 return f != $ac_func;
6279   ;
6280   return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285   (eval $ac_link) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -s conftest$ac_exeext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   eval "$as_ac_var=yes"
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 eval "$as_ac_var=no"
6301 fi
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6303 fi
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6307   cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6309 _ACEOF
6310
6311 fi
6312 done
6313
6314
6315
6316 for ac_func in nanosleep nl_langinfo
6317 do
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 /* System header to define __stub macros and hopefully few prototypes,
6332     which can conflict with char $ac_func (); below.
6333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334     <limits.h> exists even on freestanding compilers.  */
6335 #ifdef __STDC__
6336 # include <limits.h>
6337 #else
6338 # include <assert.h>
6339 #endif
6340 /* Override any gcc2 internal prototype to avoid an error.  */
6341 #ifdef __cplusplus
6342 extern "C"
6343 {
6344 #endif
6345 /* We use char because int might match the return type of a gcc2
6346    builtin and then its argument prototype would still apply.  */
6347 char $ac_func ();
6348 /* The GNU C library defines this for functions which it implements
6349     to always fail with ENOSYS.  Some functions are actually named
6350     something starting with __ and the normal name is an alias.  */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 choke me
6353 #else
6354 char (*f) () = $ac_func;
6355 #endif
6356 #ifdef __cplusplus
6357 }
6358 #endif
6359
6360 int
6361 main ()
6362 {
6363 return f != $ac_func;
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370   (eval $ac_link) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } &&
6374          { ac_try='test -s conftest$ac_exeext'
6375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376   (eval $ac_try) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   eval "$as_ac_var=yes"
6381 else
6382   echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 eval "$as_ac_var=no"
6386 fi
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 fi
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6391 if test `eval echo '${'$as_ac_var'}'` = yes; then
6392   cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6394 _ACEOF
6395
6396 fi
6397 done
6398
6399
6400 for ac_header in varargs.h
6401 do
6402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404   echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 fi
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6411 else
6412   # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 /* confdefs.h.  */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h.  */
6422 $ac_includes_default
6423 #include <$ac_header>
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427   (eval $ac_compile) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -s conftest.$ac_objext'
6432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433   (eval $ac_try) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; }; then
6437   ac_header_compiler=yes
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_header_compiler=no
6443 fi
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6447
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #include <$ac_header>
6459 _ACEOF
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6462   ac_status=$?
6463   grep -v '^ *+' conftest.er1 >conftest.err
6464   rm -f conftest.er1
6465   cat conftest.err >&5
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } >/dev/null; then
6468   if test -s conftest.err; then
6469     ac_cpp_err=$ac_c_preproc_warn_flag
6470   else
6471     ac_cpp_err=
6472   fi
6473 else
6474   ac_cpp_err=yes
6475 fi
6476 if test -z "$ac_cpp_err"; then
6477   ac_header_preproc=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482   ac_header_preproc=no
6483 fi
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6487
6488 # So?  What about this header?
6489 case $ac_header_compiler:$ac_header_preproc in
6490   yes:no )
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495     (
6496       cat <<\_ASBOX
6497 ## ------------------------------------ ##
6498 ## Report this to bug-autoconf@gnu.org. ##
6499 ## ------------------------------------ ##
6500 _ASBOX
6501     ) |
6502       sed "s/^/$as_me: WARNING:     /" >&2
6503     ;;
6504   no:yes )
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511     (
6512       cat <<\_ASBOX
6513 ## ------------------------------------ ##
6514 ## Report this to bug-autoconf@gnu.org. ##
6515 ## ------------------------------------ ##
6516 _ASBOX
6517     ) |
6518       sed "s/^/$as_me: WARNING:     /" >&2
6519     ;;
6520 esac
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   eval "$as_ac_Header=$ac_header_preproc"
6527 fi
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6530
6531 fi
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533   cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 fi
6538
6539 done
6540
6541
6542 # End of readline/conio stuff
6543 # -----------------------------------------------------------------------
6544
6545
6546 # ---------------------------------------------------
6547 # Check for GMP support/directory
6548 # ---------------------------------------------------
6549 #GMP_SRC=
6550 #local_gmp="no"
6551 #AC_ARG_WITH(gmp,
6552 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6553 #  [
6554 #     case "$with_gmp" in
6555 #     no) : ;;
6556 #     yes|*)
6557 #       if test "$with_gmp" != "yes"; then
6558 #         GMP_INC="-I$with_gmp"
6559 #         GMP_LIBS="-lgmp"
6560 #         GMP_LDFLAGS="-L$with_gmp"
6561 #       else
6562 #          with_gmp="/usr/include"
6563 #       fi
6564 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6565 #          [ AC_MSG_RESULT(yes)
6566 #            AC_DEFINE(HAVE_GMP)
6567 #            GMP_LIBS="-lgmp"
6568 #            got_gmp="yes"
6569 #          ],
6570 #          [ AC_MSG_ERROR([*** gmp library missing])
6571 #          ]
6572 #       )
6573 #       ;;
6574 #     esac
6575 #  ],[
6576 #    # check for standard gmp library
6577 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6578 #    [ AC_MSG_RESULT(yes)
6579 #      AC_DEFINE(HAVE_GMP)
6580 #      got_gmp="yes"
6581 #      GMP_INC=
6582 #      GMP_LIBS="-lgmp"
6583 #    ], [
6584 #      # Did not find standard library, so use our own
6585 #      AC_MSG_RESULT(yes)
6586 #      AC_DEFINE(HAVE_GMP)
6587 #      got_gmp="yes"
6588 #      local_gmp="yes"
6589 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6590 #      GMP_LIBS="-lgmp"
6591 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6592 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6593 #    ])
6594 #  ]
6595 #)
6596 #AC_SUBST(GMP_INC)
6597 #AC_SUBST(GMP_LIBS)
6598 #AC_SUBST(GMP_LDFLAGS)
6599 #AC_SUBST(GMP_SRC)
6600
6601 # End of GMP stuff
6602 # -----------------------------------------------------------------------
6603
6604
6605 # ---------------------------------------------------
6606 # Check for CWEB support/directory
6607 # ---------------------------------------------------
6608 #CWEB_SRC=
6609 #CWEB=/bin
6610 #local_cweb="no"
6611 #AC_ARG_WITH(cweb,
6612 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6613 #  [
6614 #     case "$with_cweb" in
6615 #     no) : ;;
6616 #     yes|*)
6617 #       if test "$with_cweb" != "yes"; then
6618 #         CWEB_INC="-I$with_cweb"
6619 #         CWEB_LIBS="-lcweb"
6620 #         CWEB_LDFLAGS="-L$with_cweb"
6621 #       else
6622 #          with_cweb="/usr/include"
6623 #       fi
6624 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6625 #          [ AC_MSG_RESULT(yes)
6626 #            AC_DEFINE(HAVE_CWEB)
6627 #            CWEB_LIBS="-lcweb"
6628 #            got_cweb="yes"
6629 #          ],
6630 #          [ AC_MSG_ERROR([*** cweb library missing])
6631 #          ]
6632 #       )
6633 #       ;;
6634 #     esac
6635 #  ],[
6636 #    # check for standard cweb library
6637 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6638 #    [ AC_MSG_RESULT(yes)
6639 #      AC_DEFINE(HAVE_CWEB)
6640 #      got_cweb="yes"
6641 #      CWEB_INC=
6642 #      CWEB_LIBS="-lcweb"
6643 #    ], [
6644 #      # Did not find starndard library, so use our own
6645 #      AC_MSG_RESULT(yes)
6646 #      AC_DEFINE(HAVE_CWEB)
6647 #      got_cweb="yes"
6648 #      local_cweb="yes"
6649 #      CWEB=${TOP_DIR}/depkgs/cweb
6650 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6651 #      CWEB_LIBS="-lcweb"
6652 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6653 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6654 #    ])
6655 #  ]
6656 #)
6657 #AC_SUBST(CWEB)
6658 #AC_SUBST(CWEB_INC)
6659 #AC_SUBST(CWEB_LIBS)
6660 #AC_SUBST(CWEB_LDFLAGS)
6661 #AC_SUBST(CWEB_SRC)
6662
6663 # End of CWEB stuff
6664 # -----------------------------------------------------------------------
6665
6666
6667
6668 # -----------------------------------------------------------
6669 # Check whether user wants TCP wrappers support (default off)
6670 # -----------------------------------------------------------
6671 TCPW_MSG="no"
6672
6673 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6674 if test "${with_tcp_wrappers+set}" = set; then
6675   withval="$with_tcp_wrappers"
6676
6677     if test "x$withval" != "xno" ; then
6678        saved_LIBS="$LIBS"
6679        LIBS="$saved_LIBS -lwrap"
6680        echo "$as_me:$LINENO: checking for libwrap" >&5
6681 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6682        cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689  #include <tcpd.h>
6690              int deny_severity = 0;
6691              int allow_severity = 0;
6692              struct request_info *req;
6693 int
6694 main ()
6695 {
6696  hosts_access(req);
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -s conftest$ac_exeext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713
6714             echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6
6716             cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_LIBWRAP 1
6718 _ACEOF
6719
6720             TCPW_MSG="yes"
6721
6722 else
6723   echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6725
6726
6727             LIBS="$saved_LIBS -lwrap -lnsl"
6728             cat >conftest.$ac_ext <<_ACEOF
6729 #line $LINENO "configure"
6730 /* confdefs.h.  */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h.  */
6735  #include <tcpd.h>
6736                  int deny_severity = 0;
6737                  int allow_severity = 0;
6738                  struct request_info *req;
6739 int
6740 main ()
6741 {
6742  hosts_access(req);
6743   ;
6744   return 0;
6745 }
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749   (eval $ac_link) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759
6760                  echo "$as_me:$LINENO: result: yes" >&5
6761 echo "${ECHO_T}yes" >&6
6762                  cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_LIBWRAP 1
6764 _ACEOF
6765
6766                  TCPW_MSG="yes"
6767
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6773 echo "$as_me: error: *** libwrap missing" >&2;}
6774    { (exit 1); exit 1; }; }
6775
6776 fi
6777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6778
6779 fi
6780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6781     fi
6782
6783
6784 fi;
6785
6786 # ------------------------------------------
6787 # Where to place working dir
6788 # ------------------------------------------
6789 working_dir=`eval echo ${prefix}/var/bacula/working`
6790
6791 # Check whether --with-working-dir or --without-working-dir was given.
6792 if test "${with_working_dir+set}" = set; then
6793   withval="$with_working_dir"
6794
6795        if test "x$withval" != "xno" ; then
6796               working_dir=$withval
6797        fi
6798
6799
6800 fi;
6801
6802
6803
6804
6805 # ------------------------------------------
6806 # Where to place scriptdir (script files)
6807 # ------------------------------------------
6808 scriptdir=`eval echo ${sysconfdir}`
6809
6810 # Check whether --with-scriptdir or --without-scriptdir was given.
6811 if test "${with_scriptdir+set}" = set; then
6812   withval="$with_scriptdir"
6813
6814        if test "x$withval" != "xno" ; then
6815               scriptdir=$withval
6816        fi
6817
6818
6819 fi;
6820
6821
6822
6823
6824 # ------------------------------------------
6825 # Where to send dump email
6826 # ------------------------------------------
6827 dump_email=root@localhost
6828
6829 # Check whether --with-dump-email or --without-dump-email was given.
6830 if test "${with_dump_email+set}" = set; then
6831   withval="$with_dump_email"
6832
6833        if test "x$withval" != "xno" ; then
6834               dump_email=$withval
6835        fi
6836
6837
6838 fi;
6839
6840
6841
6842 # ------------------------------------------
6843 # Where to send job email
6844 # ------------------------------------------
6845 job_email=root@localhost
6846
6847 # Check whether --with-job-email or --without-job-email was given.
6848 if test "${with_job_email+set}" = set; then
6849   withval="$with_job_email"
6850
6851        if test "x$withval" != "xno" ; then
6852               job_email=$withval
6853        fi
6854
6855
6856 fi;
6857
6858
6859
6860 # ------------------------------------------
6861 # Where to find smtp host
6862 # ------------------------------------------
6863 smtp_host=localhost
6864
6865 # Check whether --with-smtp_host or --without-smtp_host was given.
6866 if test "${with_smtp_host+set}" = set; then
6867   withval="$with_smtp_host"
6868
6869        if test "x$withval" != "xno" ; then
6870               smtp_host=$withval
6871        fi
6872
6873
6874 fi;
6875
6876
6877
6878
6879 # ------------------------------------
6880 # Where to place pid files
6881 # ------------------------------------
6882 piddir=/var/run
6883
6884 # Check whether --with-pid-dir or --without-pid-dir was given.
6885 if test "${with_pid_dir+set}" = set; then
6886   withval="$with_pid_dir"
6887
6888         if test "x$withval" != "xno" ; then
6889             piddir=$withval
6890         fi
6891
6892
6893 fi;
6894
6895 cat >>confdefs.h <<_ACEOF
6896 #define _PATH_BACULA_PIDDIR "$piddir"
6897 _ACEOF
6898
6899
6900
6901
6902 # ------------------------------------
6903 # Where to place subsys "lock file"
6904 # ------------------------------------
6905 subsysdir=/var/run/subsys
6906
6907 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6908 if test "${with_subsys_dir+set}" = set; then
6909   withval="$with_subsys_dir"
6910
6911         if test "x$withval" != "xno" ; then
6912             subsysdir=$withval
6913         fi
6914
6915
6916 fi;
6917
6918
6919
6920
6921
6922 # ------------------------------------
6923 # Where to start assigning ports
6924 # ------------------------------------
6925 baseport=9101
6926
6927 # Check whether --with-baseport or --without-baseport was given.
6928 if test "${with_baseport+set}" = set; then
6929   withval="$with_baseport"
6930
6931         if test "x$withval" != "xno" ; then
6932              baseport=$withval
6933         fi
6934
6935
6936 fi;
6937
6938
6939 dir_port=`expr $baseport`
6940 fd_port=`expr $baseport + 1`
6941 sd_port=`expr $fd_port + 1`
6942
6943
6944
6945
6946
6947
6948 # ------------------------------------------
6949 # Generate passwords
6950 # ------------------------------------------
6951 dir_password=
6952
6953 # Check whether --with-dir-password or --without-dir-password was given.
6954 if test "${with_dir_password+set}" = set; then
6955   withval="$with_dir_password"
6956
6957        if test "x$withval" != "xno" ; then
6958            dir_password=$withval
6959        fi
6960
6961
6962 fi;
6963
6964 if test "x$dir_password" = "x" ; then
6965    if test "x$OPENSSL" = "xnone" ; then
6966 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6967       key=`autoconf/randpass 33`
6968    else
6969       key=`openssl rand -base64 33`
6970    fi
6971    dir_password=$key
6972 fi
6973
6974 fd_password=
6975
6976 # Check whether --with-fd-password or --without-fd-password was given.
6977 if test "${with_fd_password+set}" = set; then
6978   withval="$with_fd_password"
6979
6980        if test "x$withval" != "xno" ; then
6981            fd_password=$withval
6982        fi
6983
6984
6985 fi;
6986
6987 if test "x$fd_password" = "x" ; then
6988    if test "x$OPENSSL" = "xnone" ; then
6989 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6990       key=`autoconf/randpass 37`
6991    else
6992       key=`openssl rand -base64 33`
6993    fi
6994    fd_password=$key
6995 fi
6996
6997 sd_password=
6998
6999 # Check whether --with-sd-password or --without-sd-password was given.
7000 if test "${with_sd_password+set}" = set; then
7001   withval="$with_sd_password"
7002
7003        if test "x$withval" != "xno" ; then
7004            sd_password=$withval
7005        fi
7006
7007
7008 fi;
7009
7010 if test "x$sd_password" = "x" ; then
7011    if test "x$OPENSSL" = "xnone" ; then
7012 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7013       key=`autoconf/randpass 41`
7014    else
7015       key=`openssl rand -base64 33`
7016    fi
7017    sd_password=$key
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026 #
7027 # Handle users and groups for each daemon
7028 #
7029 dir_user=
7030
7031 # Check whether --with-dir_user or --without-dir_user was given.
7032 if test "${with_dir_user+set}" = set; then
7033   withval="$with_dir_user"
7034
7035         if test "x$withval" != "x" ; then
7036              dir_user=$withval
7037         fi
7038
7039
7040 fi;
7041
7042 dir_group=
7043
7044 # Check whether --with-dir_group or --without-dir_group was given.
7045 if test "${with_dir_group+set}" = set; then
7046   withval="$with_dir_group"
7047
7048         if test "x$withval" != "x" ; then
7049              dir_group=$withval
7050         fi
7051
7052
7053 fi;
7054
7055 sd_user=
7056
7057 # Check whether --with-sd_user or --without-sd_user was given.
7058 if test "${with_sd_user+set}" = set; then
7059   withval="$with_sd_user"
7060
7061         if test "x$withval" != "x" ; then
7062              sd_user=$withval
7063         fi
7064
7065
7066 fi;
7067
7068 sd_group=
7069
7070 # Check whether --with-sd_group or --without-sd_group was given.
7071 if test "${with_sd_group+set}" = set; then
7072   withval="$with_sd_group"
7073
7074         if test "x$withval" != "x" ; then
7075              sd_group=$withval
7076         fi
7077
7078
7079 fi;
7080
7081 fd_user=
7082
7083 # Check whether --with-fd_user or --without-fd_user was given.
7084 if test "${with_fd_user+set}" = set; then
7085   withval="$with_fd_user"
7086
7087         if test "x$withval" != "x" ; then
7088              fd_user=$withval
7089         fi
7090
7091
7092 fi;
7093
7094 fd_group=
7095
7096 # Check whether --with-fd_group or --without-fd_group was given.
7097 if test "${with_fd_group+set}" = set; then
7098   withval="$with_fd_group"
7099
7100         if test "x$withval" != "x" ; then
7101              fd_group=$withval
7102         fi
7103
7104
7105 fi;
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 #
7118 # allow setting default executable permissions
7119 #
7120 SBINPERM=0754
7121
7122 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7123 if test "${with_sbin_perm+set}" = set; then
7124   withval="$with_sbin_perm"
7125
7126         if test "x$withval" != "x" ; then
7127             SBINPERM=$withval
7128         fi
7129
7130
7131 fi;
7132
7133
7134
7135 # ------------------------------------------------
7136 # Bacula check for various SQL database engines
7137 # ------------------------------------------------
7138
7139 db_found=no
7140 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7141 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7142
7143 # Check whether --with-postgresql or --without-postgresql was given.
7144 if test "${with_postgresql+set}" = set; then
7145   withval="$with_postgresql"
7146
7147   if test "$withval" != "no"; then
7148       if test "$db_found" = "yes"; then
7149           echo "$as_me:$LINENO: result: error" >&5
7150 echo "${ECHO_T}error" >&6
7151           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7152 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7153    { (exit 1); exit 1; }; };
7154       fi
7155       if test "$withval" = "yes"; then
7156           if test -f /usr/local/include/libpq-fe.h; then
7157               POSTGRESQL_INCDIR=/usr/local/include
7158               POSTGRESQL_LIBDIR=/usr/local/lib
7159               POSTGRESQL_BINDIR=/usr/local/bin
7160           elif test -f /usr/include/libpq-fe.h; then
7161               POSTGRESQL_INCDIR=/usr/include
7162               POSTGRESQL_LIBDIR=/usr/lib
7163               POSTGRESQL_BINDIR=/usr/bin
7164           elif test -f /usr/include/pgsql/libpq-fe.h; then
7165               POSTGRESQL_INCDIR=/usr/include/pgsql
7166               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7167               POSTGRESQL_BINDIR=/usr/bin
7168           elif test -f /usr/include/postgresql/libpq-fe.h; then
7169               POSTGRESQL_INCDIR=/usr/include/postgresql
7170               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7171               POSTGRESQL_BINDIR=/usr/bin
7172           else
7173               echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7176 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7177    { (exit 1); exit 1; }; }
7178           fi
7179       elif test -f $withval/include/libpq-fe.h; then
7180           POSTGRESQL_INCDIR=$withval/include
7181           POSTGRESQL_LIBDIR=$withval/lib
7182           POSTGRESQL_BINDIR=$withval/bin
7183       else
7184           echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7187 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7188    { (exit 1); exit 1; }; }
7189       fi
7190       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7191       echo "$as_me:$LINENO: checking for crypt" >&5
7192 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7193 if test "${ac_cv_func_crypt+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   cat >conftest.$ac_ext <<_ACEOF
7197 #line $LINENO "configure"
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 /* System header to define __stub macros and hopefully few prototypes,
7204     which can conflict with char crypt (); below.
7205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206     <limits.h> exists even on freestanding compilers.  */
7207 #ifdef __STDC__
7208 # include <limits.h>
7209 #else
7210 # include <assert.h>
7211 #endif
7212 /* Override any gcc2 internal prototype to avoid an error.  */
7213 #ifdef __cplusplus
7214 extern "C"
7215 {
7216 #endif
7217 /* We use char because int might match the return type of a gcc2
7218    builtin and then its argument prototype would still apply.  */
7219 char crypt ();
7220 /* The GNU C library defines this for functions which it implements
7221     to always fail with ENOSYS.  Some functions are actually named
7222     something starting with __ and the normal name is an alias.  */
7223 #if defined (__stub_crypt) || defined (__stub___crypt)
7224 choke me
7225 #else
7226 char (*f) () = crypt;
7227 #endif
7228 #ifdef __cplusplus
7229 }
7230 #endif
7231
7232 int
7233 main ()
7234 {
7235 return f != crypt;
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242   (eval $ac_link) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -s conftest$ac_exeext'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; }; then
7252   ac_cv_func_crypt=yes
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 ac_cv_func_crypt=no
7258 fi
7259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7260 fi
7261 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7262 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7263 if test $ac_cv_func_crypt = yes; then
7264   :
7265 else
7266   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7267 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7268 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lcrypt  $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280
7281 /* Override any gcc2 internal prototype to avoid an error.  */
7282 #ifdef __cplusplus
7283 extern "C"
7284 #endif
7285 /* We use char because int might match the return type of a gcc2
7286    builtin and then its argument prototype would still apply.  */
7287 char crypt ();
7288 int
7289 main ()
7290 {
7291 crypt ();
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298   (eval $ac_link) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); } &&
7302          { ac_try='test -s conftest$ac_exeext'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   ac_cv_lib_crypt_crypt=yes
7309 else
7310   echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_cv_lib_crypt_crypt=no
7314 fi
7315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7316 LIBS=$ac_check_lib_save_LIBS
7317 fi
7318 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7319 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7320 if test $ac_cv_lib_crypt_crypt = yes; then
7321   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7322 fi
7323
7324 fi
7325
7326       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7327       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7328       SQL_BINDIR=$POSTGRESQL_BINDIR
7329       cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_POSTGRESQL 1
7331 _ACEOF
7332
7333       echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7335       db_found=yes
7336       support_postgresql=yes
7337       db_name=PostgreSQL
7338       DB_NAME=postgresql
7339   else
7340       echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342   fi
7343
7344 else
7345
7346   echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7348
7349 fi;
7350
7351
7352
7353
7354
7355
7356
7357 db_found=no
7358 echo "$as_me:$LINENO: checking for MySQL support" >&5
7359 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7360
7361 # Check whether --with-mysql or --without-mysql was given.
7362 if test "${with_mysql+set}" = set; then
7363   withval="$with_mysql"
7364
7365   if test "$withval" != "no"; then
7366         if test "$withval" = "yes"; then
7367                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7368                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7369                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7370                         MYSQL_BINDIR=/usr/local/mysql/bin
7371                 elif test -f /usr/include/mysql/mysql.h; then
7372                         MYSQL_INCDIR=/usr/include/mysql
7373                         MYSQL_LIBDIR=/usr/lib/mysql
7374                         MYSQL_BINDIR=/usr/bin
7375                 elif test -f /usr/include/mysql.h; then
7376                         MYSQL_INCDIR=/usr/include
7377                         MYSQL_LIBDIR=/usr/lib
7378                         MYSQL_BINDIR=/usr/bin
7379                 elif test -f /usr/local/include/mysql/mysql.h; then
7380                         MYSQL_INCDIR=/usr/local/include/mysql
7381                         MYSQL_LIBDIR=/usr/local/lib/mysql
7382                         MYSQL_BINDIR=/usr/local/bin
7383                 elif test -f /usr/local/include/mysql.h; then
7384                         MYSQL_INCDIR=/usr/local/include
7385                         MYSQL_LIBDIR=/usr/local/lib
7386                         MYSQL_BINDIR=/usr/local/bin
7387                 else
7388                    echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7391 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7392    { (exit 1); exit 1; }; }
7393                 fi
7394         else
7395                 if test -f $withval/include/mysql/mysql.h; then
7396                         MYSQL_INCDIR=$withval/include/mysql
7397                         MYSQL_LIBDIR=$withval/lib/mysql
7398                         MYSQL_BINDIR=$withval/bin
7399                 elif test -f $withval/include/mysql.h; then
7400                         MYSQL_INCDIR=$withval/include
7401                         MYSQL_LIBDIR=$withval/lib
7402                         MYSQL_BINDIR=$withval/bin
7403                 else
7404                    echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7407 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7408    { (exit 1); exit 1; }; }
7409                 fi
7410         fi
7411     SQL_INCLUDE=-I$MYSQL_INCDIR
7412     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7413        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7414        cat >>confdefs.h <<\_ACEOF
7415 #define HAVE_THREAD_SAFE_MYSQL 1
7416 _ACEOF
7417
7418     else
7419        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7420     fi
7421     SQL_BINDIR=$MYSQL_BINDIR
7422
7423     cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_MYSQL 1
7425 _ACEOF
7426
7427     echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7429     db_found=yes
7430     support_mysql=yes
7431     db_name=MySQL
7432     DB_NAME=mysql
7433
7434   else
7435         echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7437   fi
7438
7439
7440 fi;
7441
7442
7443 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7444 if test "${with_embedded_mysql+set}" = set; then
7445   withval="$with_embedded_mysql"
7446
7447   if test "$withval" != "no"; then
7448         if test "$withval" = "yes"; then
7449                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7450                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7451                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7452                         MYSQL_BINDIR=/usr/local/mysql/bin
7453                 elif test -f /usr/include/mysql/mysql.h; then
7454                         MYSQL_INCDIR=/usr/include/mysql
7455                         MYSQL_LIBDIR=/usr/lib/mysql
7456                         MYSQL_BINDIR=/usr/bin
7457                 elif test -f /usr/include/mysql.h; then
7458                         MYSQL_INCDIR=/usr/include
7459                         MYSQL_LIBDIR=/usr/lib
7460                         MYSQL_BINDIR=/usr/bin
7461                 elif test -f /usr/local/include/mysql/mysql.h; then
7462                         MYSQL_INCDIR=/usr/local/include/mysql
7463                         MYSQL_LIBDIR=/usr/local/lib/mysql
7464                         MYSQL_BINDIR=/usr/local/bin
7465                 elif test -f /usr/local/include/mysql.h; then
7466                         MYSQL_INCDIR=/usr/local/include
7467                         MYSQL_LIBDIR=/usr/local/lib
7468                         MYSQL_BINDIR=/usr/local/bin
7469                 else
7470                    echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7473 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7474    { (exit 1); exit 1; }; }
7475                 fi
7476         else
7477                 if test -f $withval/include/mysql/mysql.h; then
7478                         MYSQL_INCDIR=$withval/include/mysql
7479                         MYSQL_LIBDIR=$withval/lib/mysql
7480                         MYSQL_BINDIR=$withval/bin
7481                 elif test -f $withval/include/mysql.h; then
7482                         MYSQL_INCDIR=$withval/include
7483                         MYSQL_LIBDIR=$withval/lib
7484                         MYSQL_BINDIR=$withval/bin
7485                 else
7486                    echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7489 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7490    { (exit 1); exit 1; }; }
7491                 fi
7492         fi
7493     SQL_INCLUDE=-I$MYSQL_INCDIR
7494     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7495     SQL_BINDIR=$MYSQL_BINDIR
7496
7497     cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MYSQL 1
7499 _ACEOF
7500
7501     cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_EMBEDDED_MYSQL 1
7503 _ACEOF
7504
7505     echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7507     db_found=yes
7508     support_mysql=yes
7509     db_name=MySQL
7510     DB_NAME=mysql
7511
7512   else
7513         echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515   fi
7516
7517
7518 fi;
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 db_found=no
7529 echo "$as_me:$LINENO: checking for SQLite support" >&5
7530 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7531
7532 # Check whether --with-sqlite or --without-sqlite was given.
7533 if test "${with_sqlite+set}" = set; then
7534   withval="$with_sqlite"
7535
7536   if test "$withval" != "no"; then
7537      if test "$withval" = "yes"; then
7538         if test -f /usr/local/include/sqlite.h; then
7539            SQLITE_INCDIR=/usr/local/include
7540            SQLITE_LIBDIR=/usr/local/lib
7541            SQLITE_BINDIR=/usr/local/bin
7542         elif test -f /usr/include/sqlite.h; then
7543            SQLITE_INCDIR=/usr/include
7544            SQLITE_LIBDIR=/usr/lib
7545            SQLITE_BINDIR=/usr/bin
7546         else
7547            echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7550 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7551    { (exit 1); exit 1; }; }
7552         fi
7553      else
7554         if test -f $withval/sqlite.h; then
7555            SQLITE_INCDIR=$withval
7556            SQLITE_LIBDIR=$withval
7557            SQLITE_BINDIR=$withval
7558         else
7559            echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7562 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7563    { (exit 1); exit 1; }; }
7564         fi
7565      fi
7566      SQL_INCLUDE=-I$SQLITE_INCDIR
7567      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7568      SQL_BINDIR=$SQLITE_BINDIR
7569
7570      cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_SQLITE 1
7572 _ACEOF
7573
7574      echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7576      db_found=yes
7577      support_sqlite=yes
7578      db_name=SQLite
7579      DB_NAME=sqlite
7580
7581   else
7582      echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584   fi
7585
7586 else
7587
7588   echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7590
7591 fi;
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define PROTOTYPES 1
7603 _ACEOF
7604
7605
7606 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7607     if test -z "$CCOPTS"; then
7608         CCOPTS='-g -O2 -Wall'
7609     fi
7610     CFLAGS="$CCOPTS"
7611 fi
7612
7613
7614
7615
7616 largefile_support="no"
7617
7618    # Check whether --enable-largefile or --disable-largefile was given.
7619 if test "${enable_largefile+set}" = set; then
7620   enableval="$enable_largefile"
7621
7622 fi;
7623    if test "$enable_largefile" != no; then
7624      if test -n "$ac_tool_prefix"; then
7625   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7627 echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7629 if test "${ac_cv_prog_GETCONF+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   if test -n "$GETCONF"; then
7633   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640   for ac_exec_ext in '' $ac_executable_extensions; do
7641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647 done
7648
7649 fi
7650 fi
7651 GETCONF=$ac_cv_prog_GETCONF
7652 if test -n "$GETCONF"; then
7653   echo "$as_me:$LINENO: result: $GETCONF" >&5
7654 echo "${ECHO_T}$GETCONF" >&6
7655 else
7656   echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7658 fi
7659
7660 fi
7661 if test -z "$ac_cv_prog_GETCONF"; then
7662   ac_ct_GETCONF=$GETCONF
7663   # Extract the first word of "getconf", so it can be a program name with args.
7664 set dummy getconf; ac_word=$2
7665 echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7667 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   if test -n "$ac_ct_GETCONF"; then
7671   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678   for ac_exec_ext in '' $ac_executable_extensions; do
7679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680     ac_cv_prog_ac_ct_GETCONF="getconf"
7681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685 done
7686
7687 fi
7688 fi
7689 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7690 if test -n "$ac_ct_GETCONF"; then
7691   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7692 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7693 else
7694   echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7696 fi
7697
7698   GETCONF=$ac_ct_GETCONF
7699 else
7700   GETCONF="$ac_cv_prog_GETCONF"
7701 fi
7702
7703      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7704 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7705 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7709         ac_cv_sys_largefile_CFLAGS=no
7710         case "$host_os" in
7711            # IRIX 6.2 and later require cc -n32.
7712            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7713              if test "$GCC" != yes; then
7714                ac_cv_sys_largefile_CFLAGS=-n32
7715              fi
7716              ac_save_CC="$CC"
7717              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7718              cat >conftest.$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725
7726 int
7727 main ()
7728 {
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736   (eval $ac_link) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -s conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   :
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_cv_sys_largefile_CFLAGS=no
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754              CC="$ac_save_CC"
7755            esac
7756       }
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7759 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7760      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7761 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7762 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7766         ac_cv_sys_largefile_LDFLAGS=no
7767
7768       }
7769 fi
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7772      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7773 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7778         ac_cv_sys_largefile_LIBS=no
7779
7780       }
7781 fi
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7784
7785      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7786        case "$ac_flag" in
7787        no) ;;
7788        -D_FILE_OFFSET_BITS=*) ;;
7789        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7790        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7791        -D?* | -I?*)
7792          case "$ac_flag" in
7793    no) ;;
7794    ?*)
7795      case "$CPPFLAGS" in
7796      '') CPPFLAGS="$ac_flag" ;;
7797      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7798      esac ;;
7799    esac ;;
7800        *)
7801          case "$ac_flag" in
7802    no) ;;
7803    ?*)
7804      case "$CFLAGS" in
7805      '') CFLAGS="$ac_flag" ;;
7806      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7807      esac ;;
7808    esac ;;
7809        esac
7810      done
7811      case "$ac_cv_sys_largefile_LDFLAGS" in
7812    no) ;;
7813    ?*)
7814      case "$LDFLAGS" in
7815      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7816      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7817      esac ;;
7818    esac
7819      case "$ac_cv_sys_largefile_LIBS" in
7820    no) ;;
7821    ?*)
7822      case "$LIBS" in
7823      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7824      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7825      esac ;;
7826    esac
7827      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7828 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7829 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   ac_cv_sys_file_offset_bits=no
7833       case "$host_os" in
7834         # HP-UX 10.20 and later
7835         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7836           ac_cv_sys_file_offset_bits=64 ;;
7837         esac
7838       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7839         case "$ac_flag" in
7840         -D_FILE_OFFSET_BITS)
7841           ac_cv_sys_file_offset_bits=1 ;;
7842         -D_FILE_OFFSET_BITS=*)
7843           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7844         esac
7845       done
7846
7847 fi
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7850    if test "$ac_cv_sys_file_offset_bits" != no; then
7851
7852 cat >>confdefs.h <<_ACEOF
7853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7854 _ACEOF
7855
7856    fi
7857      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7858 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7859 if test "${ac_cv_sys_largefile_source+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   ac_cv_sys_largefile_source=no
7863       case "$host_os" in
7864         # HP-UX 10.20 and later
7865         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7866           ac_cv_sys_largefile_source=1 ;;
7867         esac
7868       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7869         case "$ac_flag" in
7870         -D_LARGEFILE_SOURCE)
7871           ac_cv_sys_largefile_source=1 ;;
7872         -D_LARGEFILE_SOURCE=*)
7873           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7874         esac
7875       done
7876
7877 fi
7878 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7879 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7880    if test "$ac_cv_sys_largefile_source" != no; then
7881
7882 cat >>confdefs.h <<_ACEOF
7883 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7884 _ACEOF
7885
7886    fi
7887      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7888 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7889 if test "${ac_cv_sys_large_files+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   ac_cv_sys_large_files=no
7893       case "$host_os" in
7894         # AIX 4.2 and later
7895         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7896           ac_cv_sys_large_files=1 ;;
7897         esac
7898       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7899         case "$ac_flag" in
7900         -D_LARGE_FILES)
7901           ac_cv_sys_large_files=1 ;;
7902         -D_LARGE_FILES=*)
7903           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7904         esac
7905       done
7906
7907 fi
7908 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7909 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7910    if test "$ac_cv_sys_large_files" != no; then
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define _LARGE_FILES $ac_cv_sys_large_files
7914 _ACEOF
7915
7916    fi
7917    fi
7918
7919
7920
7921 echo "$as_me:$LINENO: checking for X" >&5
7922 echo $ECHO_N "checking for X... $ECHO_C" >&6
7923
7924
7925 # Check whether --with-x or --without-x was given.
7926 if test "${with_x+set}" = set; then
7927   withval="$with_x"
7928
7929 fi;
7930 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7931 if test "x$with_x" = xno; then
7932   # The user explicitly disabled X.
7933   have_x=disabled
7934 else
7935   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7936     # Both variables are already set.
7937     have_x=yes
7938   else
7939     if test "${ac_cv_have_x+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   # One or both of the vars are not set, and there is no cached value.
7943 ac_x_includes=no ac_x_libraries=no
7944 rm -fr conftest.dir
7945 if mkdir conftest.dir; then
7946   cd conftest.dir
7947   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7948   cat >Imakefile <<'_ACEOF'
7949 acfindx:
7950         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7951 _ACEOF
7952   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7953     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7954     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7955     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7956     for ac_extension in a so sl; do
7957       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7958          test -f $ac_im_libdir/libX11.$ac_extension; then
7959         ac_im_usrlibdir=$ac_im_libdir; break
7960       fi
7961     done
7962     # Screen out bogus values from the imake configuration.  They are
7963     # bogus both because they are the default anyway, and because
7964     # using them would break gcc on systems where it needs fixed includes.
7965     case $ac_im_incroot in
7966         /usr/include) ;;
7967         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7968     esac
7969     case $ac_im_usrlibdir in
7970         /usr/lib | /lib) ;;
7971         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7972     esac
7973   fi
7974   cd ..
7975   rm -fr conftest.dir
7976 fi
7977
7978 # Standard set of common directories for X headers.
7979 # Check X11 before X11Rn because it is often a symlink to the current release.
7980 ac_x_header_dirs='
7981 /usr/X11/include
7982 /usr/X11R6/include
7983 /usr/X11R5/include
7984 /usr/X11R4/include
7985
7986 /usr/include/X11
7987 /usr/include/X11R6
7988 /usr/include/X11R5
7989 /usr/include/X11R4
7990
7991 /usr/local/X11/include
7992 /usr/local/X11R6/include
7993 /usr/local/X11R5/include
7994 /usr/local/X11R4/include
7995
7996 /usr/local/include/X11
7997 /usr/local/include/X11R6
7998 /usr/local/include/X11R5
7999 /usr/local/include/X11R4
8000
8001 /usr/X386/include
8002 /usr/x386/include
8003 /usr/XFree86/include/X11
8004
8005 /usr/include
8006 /usr/local/include
8007 /usr/unsupported/include
8008 /usr/athena/include
8009 /usr/local/x11r5/include
8010 /usr/lpp/Xamples/include
8011
8012 /usr/openwin/include
8013 /usr/openwin/share/include'
8014
8015 if test "$ac_x_includes" = no; then
8016   # Guess where to find include files, by looking for Intrinsic.h.
8017   # First, try using that file with no special directory specified.
8018   cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <X11/Intrinsic.h>
8026 _ACEOF
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } >/dev/null; then
8035   if test -s conftest.err; then
8036     ac_cpp_err=$ac_c_preproc_warn_flag
8037   else
8038     ac_cpp_err=
8039   fi
8040 else
8041   ac_cpp_err=yes
8042 fi
8043 if test -z "$ac_cpp_err"; then
8044   # We can compile using X headers with no special include directory.
8045 ac_x_includes=
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050   for ac_dir in $ac_x_header_dirs; do
8051   if test -r "$ac_dir/X11/Intrinsic.h"; then
8052     ac_x_includes=$ac_dir
8053     break
8054   fi
8055 done
8056 fi
8057 rm -f conftest.err conftest.$ac_ext
8058 fi # $ac_x_includes = no
8059
8060 if test "$ac_x_libraries" = no; then
8061   # Check for the libraries.
8062   # See if we find them without any special options.
8063   # Don't add to $LIBS permanently.
8064   ac_save_LIBS=$LIBS
8065   LIBS="-lXt $LIBS"
8066   cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #include <X11/Intrinsic.h>
8074 int
8075 main ()
8076 {
8077 XtMalloc (0)
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084   (eval $ac_link) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } &&
8088          { ac_try='test -s conftest$ac_exeext'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; }; then
8094   LIBS=$ac_save_LIBS
8095 # We can link X programs with no special library path.
8096 ac_x_libraries=
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 LIBS=$ac_save_LIBS
8102 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8103 do
8104   # Don't even attempt the hair of trying to link an X program!
8105   for ac_extension in a so sl; do
8106     if test -r $ac_dir/libXt.$ac_extension; then
8107       ac_x_libraries=$ac_dir
8108       break 2
8109     fi
8110   done
8111 done
8112 fi
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 fi # $ac_x_libraries = no
8115
8116 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8117   # Didn't find X anywhere.  Cache the known absence of X.
8118   ac_cv_have_x="have_x=no"
8119 else
8120   # Record where we found X for the cache.
8121   ac_cv_have_x="have_x=yes \
8122                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8123 fi
8124 fi
8125
8126   fi
8127   eval "$ac_cv_have_x"
8128 fi # $with_x != no
8129
8130 if test "$have_x" != yes; then
8131   echo "$as_me:$LINENO: result: $have_x" >&5
8132 echo "${ECHO_T}$have_x" >&6
8133   no_x=yes
8134 else
8135   # If each of the values was on the command line, it overrides each guess.
8136   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8137   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8138   # Update the cache value to reflect the command line values.
8139   ac_cv_have_x="have_x=yes \
8140                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8141   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8142 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8143 fi
8144
8145 if test "$no_x" = yes; then
8146   # Not all programs may use this symbol, but it does not hurt to define it.
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define X_DISPLAY_MISSING 1
8150 _ACEOF
8151
8152   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8153 else
8154   if test -n "$x_includes"; then
8155     X_CFLAGS="$X_CFLAGS -I$x_includes"
8156   fi
8157
8158   # It would also be nice to do this for all -L options, not just this one.
8159   if test -n "$x_libraries"; then
8160     X_LIBS="$X_LIBS -L$x_libraries"
8161     # For Solaris; some versions of Sun CC require a space after -R and
8162     # others require no space.  Words are not sufficient . . . .
8163     case `(uname -sr) 2>/dev/null` in
8164     "SunOS 5"*)
8165       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8166 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8167       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8168       cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175
8176 int
8177 main ()
8178 {
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -s conftest$ac_exeext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_R_nospace=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_R_nospace=no
8202 fi
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204       if test $ac_R_nospace = yes; then
8205         echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207         X_LIBS="$X_LIBS -R$x_libraries"
8208       else
8209         LIBS="$ac_xsave_LIBS -R $x_libraries"
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
8218 int
8219 main ()
8220 {
8221
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228   (eval $ac_link) 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -s conftest$ac_exeext'
8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238   ac_R_space=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_R_space=no
8244 fi
8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246         if test $ac_R_space = yes; then
8247           echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249           X_LIBS="$X_LIBS -R $x_libraries"
8250         else
8251           echo "$as_me:$LINENO: result: neither works" >&5
8252 echo "${ECHO_T}neither works" >&6
8253         fi
8254       fi
8255       LIBS=$ac_xsave_LIBS
8256     esac
8257   fi
8258
8259   # Check for system-dependent libraries X programs must link with.
8260   # Do this before checking for the system-independent R6 libraries
8261   # (-lICE), since we may need -lsocket or whatever for X linking.
8262
8263   if test "$ISC" = yes; then
8264     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8265   else
8266     # Martyn Johnson says this is needed for Ultrix, if the X
8267     # libraries were built with DECnet support.  And Karl Berry says
8268     # the Alpha needs dnet_stub (dnet does not exist).
8269     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8270     cat >conftest.$ac_ext <<_ACEOF
8271 #line $LINENO "configure"
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277
8278 /* Override any gcc2 internal prototype to avoid an error.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 /* We use char because int might match the return type of a gcc2
8283    builtin and then its argument prototype would still apply.  */
8284 char XOpenDisplay ();
8285 int
8286 main ()
8287 {
8288 XOpenDisplay ();
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295   (eval $ac_link) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   :
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8311 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8312 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_check_lib_save_LIBS=$LIBS
8316 LIBS="-ldnet  $LIBS"
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325 /* Override any gcc2 internal prototype to avoid an error.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330    builtin and then its argument prototype would still apply.  */
8331 char dnet_ntoa ();
8332 int
8333 main ()
8334 {
8335 dnet_ntoa ();
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342   (eval $ac_link) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -s conftest$ac_exeext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_cv_lib_dnet_dnet_ntoa=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_lib_dnet_dnet_ntoa=no
8358 fi
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 LIBS=$ac_check_lib_save_LIBS
8361 fi
8362 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8363 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8364 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8365   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8366 fi
8367
8368     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8369       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8370 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8371 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-ldnet_stub  $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383
8384 /* Override any gcc2 internal prototype to avoid an error.  */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389    builtin and then its argument prototype would still apply.  */
8390 char dnet_ntoa ();
8391 int
8392 main ()
8393 {
8394 dnet_ntoa ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401   (eval $ac_link) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_lib_dnet_stub_dnet_ntoa=no
8417 fi
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8423 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8424   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8425 fi
8426
8427     fi
8428 fi
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430     LIBS="$ac_xsave_LIBS"
8431
8432     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8433     # to get the SysV transport functions.
8434     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8435     # needs -lnsl.
8436     # The nsl library prevents programs from opening the X display
8437     # on Irix 5.2, according to T.E. Dickey.
8438     # The functions gethostbyname, getservbyname, and inet_addr are
8439     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8440     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8441 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8442 if test "${ac_cv_func_gethostbyname+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 /* System header to define __stub macros and hopefully few prototypes,
8453     which can conflict with char gethostbyname (); below.
8454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455     <limits.h> exists even on freestanding compilers.  */
8456 #ifdef __STDC__
8457 # include <limits.h>
8458 #else
8459 # include <assert.h>
8460 #endif
8461 /* Override any gcc2 internal prototype to avoid an error.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 {
8465 #endif
8466 /* We use char because int might match the return type of a gcc2
8467    builtin and then its argument prototype would still apply.  */
8468 char gethostbyname ();
8469 /* The GNU C library defines this for functions which it implements
8470     to always fail with ENOSYS.  Some functions are actually named
8471     something starting with __ and the normal name is an alias.  */
8472 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8473 choke me
8474 #else
8475 char (*f) () = gethostbyname;
8476 #endif
8477 #ifdef __cplusplus
8478 }
8479 #endif
8480
8481 int
8482 main ()
8483 {
8484 return f != gethostbyname;
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491   (eval $ac_link) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_func_gethostbyname=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_func_gethostbyname=no
8507 fi
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8512
8513     if test $ac_cv_func_gethostbyname = no; then
8514       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8515 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8516 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   ac_check_lib_save_LIBS=$LIBS
8520 LIBS="-lnsl  $LIBS"
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528
8529 /* Override any gcc2 internal prototype to avoid an error.  */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534    builtin and then its argument prototype would still apply.  */
8535 char gethostbyname ();
8536 int
8537 main ()
8538 {
8539 gethostbyname ();
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546   (eval $ac_link) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -s conftest$ac_exeext'
8551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552   (eval $ac_try) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   ac_cv_lib_nsl_gethostbyname=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 ac_cv_lib_nsl_gethostbyname=no
8562 fi
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8569   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8570 fi
8571
8572       if test $ac_cv_lib_nsl_gethostbyname = no; then
8573         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lbsd  $LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587
8588 /* Override any gcc2 internal prototype to avoid an error.  */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 /* We use char because int might match the return type of a gcc2
8593    builtin and then its argument prototype would still apply.  */
8594 char gethostbyname ();
8595 int
8596 main ()
8597 {
8598 gethostbyname ();
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605   (eval $ac_link) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -s conftest$ac_exeext'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; }; then
8615   ac_cv_lib_bsd_gethostbyname=yes
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_cv_lib_bsd_gethostbyname=no
8621 fi
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8626 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8627 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8628   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8629 fi
8630
8631       fi
8632     fi
8633
8634     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8635     # socket/setsockopt and other routines are undefined under SCO ODT
8636     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8637     # on later versions), says Simon Leinen: it contains gethostby*
8638     # variants that don't use the name server (or something).  -lsocket
8639     # must be given before -lnsl if both are needed.  We assume that
8640     # if connect needs -lnsl, so does gethostbyname.
8641     echo "$as_me:$LINENO: checking for connect" >&5
8642 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8643 if test "${ac_cv_func_connect+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653 /* System header to define __stub macros and hopefully few prototypes,
8654     which can conflict with char connect (); below.
8655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656     <limits.h> exists even on freestanding compilers.  */
8657 #ifdef __STDC__
8658 # include <limits.h>
8659 #else
8660 # include <assert.h>
8661 #endif
8662 /* Override any gcc2 internal prototype to avoid an error.  */
8663 #ifdef __cplusplus
8664 extern "C"
8665 {
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668    builtin and then its argument prototype would still apply.  */
8669 char connect ();
8670 /* The GNU C library defines this for functions which it implements
8671     to always fail with ENOSYS.  Some functions are actually named
8672     something starting with __ and the normal name is an alias.  */
8673 #if defined (__stub_connect) || defined (__stub___connect)
8674 choke me
8675 #else
8676 char (*f) () = connect;
8677 #endif
8678 #ifdef __cplusplus
8679 }
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 return f != connect;
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692   (eval $ac_link) 2>&5
8693   ac_status=$?
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } &&
8696          { ac_try='test -s conftest$ac_exeext'
8697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698   (eval $ac_try) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; }; then
8702   ac_cv_func_connect=yes
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 ac_cv_func_connect=no
8708 fi
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8710 fi
8711 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8712 echo "${ECHO_T}$ac_cv_func_connect" >&6
8713
8714     if test $ac_cv_func_connect = no; then
8715       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8717 if test "${ac_cv_lib_socket_connect+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735    builtin and then its argument prototype would still apply.  */
8736 char connect ();
8737 int
8738 main ()
8739 {
8740 connect ();
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747   (eval $ac_link) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -s conftest$ac_exeext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   ac_cv_lib_socket_connect=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 ac_cv_lib_socket_connect=no
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 LIBS=$ac_check_lib_save_LIBS
8766 fi
8767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8769 if test $ac_cv_lib_socket_connect = yes; then
8770   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8771 fi
8772
8773     fi
8774
8775     # Guillermo Gomez says -lposix is necessary on A/UX.
8776     echo "$as_me:$LINENO: checking for remove" >&5
8777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8778 if test "${ac_cv_func_remove+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
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 /* System header to define __stub macros and hopefully few prototypes,
8789     which can conflict with char remove (); below.
8790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791     <limits.h> exists even on freestanding compilers.  */
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char remove ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub_remove) || defined (__stub___remove)
8809 choke me
8810 #else
8811 char (*f) () = remove;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != remove;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   ac_cv_func_remove=yes
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_func_remove=no
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8847 echo "${ECHO_T}$ac_cv_func_remove" >&6
8848
8849     if test $ac_cv_func_remove = no; then
8850       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8851 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8852 if test "${ac_cv_lib_posix_remove+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lposix  $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864
8865 /* Override any gcc2 internal prototype to avoid an error.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char remove ();
8872 int
8873 main ()
8874 {
8875 remove ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882   (eval $ac_link) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } &&
8886          { ac_try='test -s conftest$ac_exeext'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892   ac_cv_lib_posix_remove=yes
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 ac_cv_lib_posix_remove=no
8898 fi
8899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8903 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8904 if test $ac_cv_lib_posix_remove = yes; then
8905   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8906 fi
8907
8908     fi
8909
8910     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8911     echo "$as_me:$LINENO: checking for shmat" >&5
8912 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8913 if test "${ac_cv_func_shmat+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923 /* System header to define __stub macros and hopefully few prototypes,
8924     which can conflict with char shmat (); below.
8925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8926     <limits.h> exists even on freestanding compilers.  */
8927 #ifdef __STDC__
8928 # include <limits.h>
8929 #else
8930 # include <assert.h>
8931 #endif
8932 /* Override any gcc2 internal prototype to avoid an error.  */
8933 #ifdef __cplusplus
8934 extern "C"
8935 {
8936 #endif
8937 /* We use char because int might match the return type of a gcc2
8938    builtin and then its argument prototype would still apply.  */
8939 char shmat ();
8940 /* The GNU C library defines this for functions which it implements
8941     to always fail with ENOSYS.  Some functions are actually named
8942     something starting with __ and the normal name is an alias.  */
8943 #if defined (__stub_shmat) || defined (__stub___shmat)
8944 choke me
8945 #else
8946 char (*f) () = shmat;
8947 #endif
8948 #ifdef __cplusplus
8949 }
8950 #endif
8951
8952 int
8953 main ()
8954 {
8955 return f != shmat;
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962   (eval $ac_link) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -s conftest$ac_exeext'
8967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968   (eval $ac_try) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; }; then
8972   ac_cv_func_shmat=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_cv_func_shmat=no
8978 fi
8979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8980 fi
8981 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8982 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8983
8984     if test $ac_cv_func_shmat = no; then
8985       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8986 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8987 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   ac_check_lib_save_LIBS=$LIBS
8991 LIBS="-lipc  $LIBS"
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999
9000 /* Override any gcc2 internal prototype to avoid an error.  */
9001 #ifdef __cplusplus
9002 extern "C"
9003 #endif
9004 /* We use char because int might match the return type of a gcc2
9005    builtin and then its argument prototype would still apply.  */
9006 char shmat ();
9007 int
9008 main ()
9009 {
9010 shmat ();
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017   (eval $ac_link) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); } &&
9021          { ac_try='test -s conftest$ac_exeext'
9022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023   (eval $ac_try) 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   ac_cv_lib_ipc_shmat=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 ac_cv_lib_ipc_shmat=no
9033 fi
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9039 if test $ac_cv_lib_ipc_shmat = yes; then
9040   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9041 fi
9042
9043     fi
9044   fi
9045
9046   # Check for libraries that X11R6 Xt/Xaw programs need.
9047   ac_save_LDFLAGS=$LDFLAGS
9048   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9049   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9050   # check for ICE first), but we must link in the order -lSM -lICE or
9051   # we get undefined symbols.  So assume we have SM if we have ICE.
9052   # These have to be linked with before -lX11, unlike the other
9053   # libraries we check for below, so use a different variable.
9054   # John Interrante, Karl Berry
9055   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9056 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9057 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060   ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 #line $LINENO "configure"
9064 /* confdefs.h.  */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h.  */
9069
9070 /* Override any gcc2 internal prototype to avoid an error.  */
9071 #ifdef __cplusplus
9072 extern "C"
9073 #endif
9074 /* We use char because int might match the return type of a gcc2
9075    builtin and then its argument prototype would still apply.  */
9076 char IceConnectionNumber ();
9077 int
9078 main ()
9079 {
9080 IceConnectionNumber ();
9081   ;
9082   return 0;
9083 }
9084 _ACEOF
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087   (eval $ac_link) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); } &&
9091          { ac_try='test -s conftest$ac_exeext'
9092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093   (eval $ac_try) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); }; }; then
9097   ac_cv_lib_ICE_IceConnectionNumber=yes
9098 else
9099   echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9101
9102 ac_cv_lib_ICE_IceConnectionNumber=no
9103 fi
9104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9106 fi
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9108 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9109 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9110   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9111 fi
9112
9113   LDFLAGS=$ac_save_LDFLAGS
9114
9115 fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143 for ac_header in \
9144         assert.h \
9145         fcntl.h \
9146         grp.h \
9147         pwd.h \
9148         libc.h \
9149         limits.h \
9150         stdarg.h \
9151         stdlib.h \
9152         stdint.h \
9153         string.h \
9154         termios.h \
9155         unistd.h \
9156         sys/bitypes.h \
9157         sys/byteorder.h \
9158         sys/ioctl.h \
9159         sys/select.h \
9160         sys/sockio.h \
9161         sys/time.h \
9162         sys/socket.h \
9163         arpa/nameser.h \
9164         resolv.h \
9165         mtio.h \
9166         sys/mtio.h \
9167         sys/tape.h \
9168         regex.h \
9169
9170 do
9171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173   echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 fi
9178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180 else
9181   # Is the header compilable?
9182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9184 cat >conftest.$ac_ext <<_ACEOF
9185 #line $LINENO "configure"
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191 $ac_includes_default
9192 #include <$ac_header>
9193 _ACEOF
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196   (eval $ac_compile) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); } &&
9200          { ac_try='test -s conftest.$ac_objext'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; }; then
9206   ac_header_compiler=yes
9207 else
9208   echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 ac_header_compiler=no
9212 fi
9213 rm -f conftest.$ac_objext conftest.$ac_ext
9214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9215 echo "${ECHO_T}$ac_header_compiler" >&6
9216
9217 # Is the header present?
9218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9220 cat >conftest.$ac_ext <<_ACEOF
9221 #line $LINENO "configure"
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227 #include <$ac_header>
9228 _ACEOF
9229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9231   ac_status=$?
9232   grep -v '^ *+' conftest.er1 >conftest.err
9233   rm -f conftest.er1
9234   cat conftest.err >&5
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } >/dev/null; then
9237   if test -s conftest.err; then
9238     ac_cpp_err=$ac_c_preproc_warn_flag
9239   else
9240     ac_cpp_err=
9241   fi
9242 else
9243   ac_cpp_err=yes
9244 fi
9245 if test -z "$ac_cpp_err"; then
9246   ac_header_preproc=yes
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251   ac_header_preproc=no
9252 fi
9253 rm -f conftest.err conftest.$ac_ext
9254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9255 echo "${ECHO_T}$ac_header_preproc" >&6
9256
9257 # So?  What about this header?
9258 case $ac_header_compiler:$ac_header_preproc in
9259   yes:no )
9260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9264     (
9265       cat <<\_ASBOX
9266 ## ------------------------------------ ##
9267 ## Report this to bug-autoconf@gnu.org. ##
9268 ## ------------------------------------ ##
9269 _ASBOX
9270     ) |
9271       sed "s/^/$as_me: WARNING:     /" >&2
9272     ;;
9273   no:yes )
9274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9276     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280     (
9281       cat <<\_ASBOX
9282 ## ------------------------------------ ##
9283 ## Report this to bug-autoconf@gnu.org. ##
9284 ## ------------------------------------ ##
9285 _ASBOX
9286     ) |
9287       sed "s/^/$as_me: WARNING:     /" >&2
9288     ;;
9289 esac
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   eval "$as_ac_Header=$ac_header_preproc"
9296 fi
9297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9299
9300 fi
9301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9302   cat >>confdefs.h <<_ACEOF
9303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9304 _ACEOF
9305
9306 fi
9307
9308 done
9309
9310 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9311 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9312 if test "${ac_cv_header_stdc+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   cat >conftest.$ac_ext <<_ACEOF
9316 #line $LINENO "configure"
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322 #include <stdlib.h>
9323 #include <stdarg.h>
9324 #include <string.h>
9325 #include <float.h>
9326
9327 int
9328 main ()
9329 {
9330
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337   (eval $ac_compile) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } &&
9341          { ac_try='test -s conftest.$ac_objext'
9342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343   (eval $ac_try) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; }; then
9347   ac_cv_header_stdc=yes
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ac_cv_header_stdc=no
9353 fi
9354 rm -f conftest.$ac_objext conftest.$ac_ext
9355
9356 if test $ac_cv_header_stdc = yes; then
9357   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9358   cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365 #include <string.h>
9366
9367 _ACEOF
9368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9369   $EGREP "memchr" >/dev/null 2>&1; then
9370   :
9371 else
9372   ac_cv_header_stdc=no
9373 fi
9374 rm -f conftest*
9375
9376 fi
9377
9378 if test $ac_cv_header_stdc = yes; then
9379   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9380   cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 /* confdefs.h.  */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h.  */
9387 #include <stdlib.h>
9388
9389 _ACEOF
9390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9391   $EGREP "free" >/dev/null 2>&1; then
9392   :
9393 else
9394   ac_cv_header_stdc=no
9395 fi
9396 rm -f conftest*
9397
9398 fi
9399
9400 if test $ac_cv_header_stdc = yes; then
9401   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9402   if test "$cross_compiling" = yes; then
9403   :
9404 else
9405   cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <ctype.h>
9413 #if ((' ' & 0x0FF) == 0x020)
9414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9416 #else
9417 # define ISLOWER(c) \
9418                    (('a' <= (c) && (c) <= 'i') \
9419                      || ('j' <= (c) && (c) <= 'r') \
9420                      || ('s' <= (c) && (c) <= 'z'))
9421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9422 #endif
9423
9424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9425 int
9426 main ()
9427 {
9428   int i;
9429   for (i = 0; i < 256; i++)
9430     if (XOR (islower (i), ISLOWER (i))
9431         || toupper (i) != TOUPPER (i))
9432       exit(2);
9433   exit (0);
9434 }
9435 _ACEOF
9436 rm -f conftest$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438   (eval $ac_link) 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; }; then
9447   :
9448 else
9449   echo "$as_me: program exited with status $ac_status" >&5
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9452
9453 ( exit $ac_status )
9454 ac_cv_header_stdc=no
9455 fi
9456 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9457 fi
9458 fi
9459 fi
9460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9462 if test $ac_cv_header_stdc = yes; then
9463
9464 cat >>confdefs.h <<\_ACEOF
9465 #define STDC_HEADERS 1
9466 _ACEOF
9467
9468 fi
9469
9470 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9471 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9472 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9473   echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475   cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482 #include <sys/types.h>
9483 int
9484 main ()
9485 {
9486 return makedev(0, 0);
9487   ;
9488   return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493   (eval $ac_link) 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); } &&
9497          { ac_try='test -s conftest$ac_exeext'
9498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499   (eval $ac_try) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; }; then
9503   ac_cv_header_sys_types_h_makedev=yes
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508 ac_cv_header_sys_types_h_makedev=no
9509 fi
9510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9511
9512 fi
9513 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9514 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9515
9516 if test $ac_cv_header_sys_types_h_makedev = no; then
9517 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9518   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9519 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9520 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9521   echo $ECHO_N "(cached) $ECHO_C" >&6
9522 fi
9523 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9524 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9525 else
9526   # Is the header compilable?
9527 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9528 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9531 /* confdefs.h.  */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h.  */
9536 $ac_includes_default
9537 #include <sys/mkdev.h>
9538 _ACEOF
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541   (eval $ac_compile) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -s conftest.$ac_objext'
9546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547   (eval $ac_try) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }; }; then
9551   ac_header_compiler=yes
9552 else
9553   echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9555
9556 ac_header_compiler=no
9557 fi
9558 rm -f conftest.$ac_objext conftest.$ac_ext
9559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9560 echo "${ECHO_T}$ac_header_compiler" >&6
9561
9562 # Is the header present?
9563 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9564 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9565 cat >conftest.$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9567 /* confdefs.h.  */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h.  */
9572 #include <sys/mkdev.h>
9573 _ACEOF
9574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9576   ac_status=$?
9577   grep -v '^ *+' conftest.er1 >conftest.err
9578   rm -f conftest.er1
9579   cat conftest.err >&5
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } >/dev/null; then
9582   if test -s conftest.err; then
9583     ac_cpp_err=$ac_c_preproc_warn_flag
9584   else
9585     ac_cpp_err=
9586   fi
9587 else
9588   ac_cpp_err=yes
9589 fi
9590 if test -z "$ac_cpp_err"; then
9591   ac_header_preproc=yes
9592 else
9593   echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596   ac_header_preproc=no
9597 fi
9598 rm -f conftest.err conftest.$ac_ext
9599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9600 echo "${ECHO_T}$ac_header_preproc" >&6
9601
9602 # So?  What about this header?
9603 case $ac_header_compiler:$ac_header_preproc in
9604   yes:no )
9605     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9606 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9607     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9608 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9609     (
9610       cat <<\_ASBOX
9611 ## ------------------------------------ ##
9612 ## Report this to bug-autoconf@gnu.org. ##
9613 ## ------------------------------------ ##
9614 _ASBOX
9615     ) |
9616       sed "s/^/$as_me: WARNING:     /" >&2
9617     ;;
9618   no:yes )
9619     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9620 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9621     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9622 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9623     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9625     (
9626       cat <<\_ASBOX
9627 ## ------------------------------------ ##
9628 ## Report this to bug-autoconf@gnu.org. ##
9629 ## ------------------------------------ ##
9630 _ASBOX
9631     ) |
9632       sed "s/^/$as_me: WARNING:     /" >&2
9633     ;;
9634 esac
9635 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9636 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9641 fi
9642 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9643 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9644
9645 fi
9646 if test $ac_cv_header_sys_mkdev_h = yes; then
9647
9648 cat >>confdefs.h <<\_ACEOF
9649 #define MAJOR_IN_MKDEV 1
9650 _ACEOF
9651
9652 fi
9653
9654
9655
9656   if test $ac_cv_header_sys_mkdev_h = no; then
9657     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9658   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9659 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9660 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 fi
9663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9664 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9665 else
9666   # Is the header compilable?
9667 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9668 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676 $ac_includes_default
9677 #include <sys/sysmacros.h>
9678 _ACEOF
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681   (eval $ac_compile) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -s conftest.$ac_objext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   ac_header_compiler=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_header_compiler=no
9697 fi
9698 rm -f conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9700 echo "${ECHO_T}$ac_header_compiler" >&6
9701
9702 # Is the header present?
9703 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9704 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9706 #line $LINENO "configure"
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712 #include <sys/sysmacros.h>
9713 _ACEOF
9714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } >/dev/null; then
9722   if test -s conftest.err; then
9723     ac_cpp_err=$ac_c_preproc_warn_flag
9724   else
9725     ac_cpp_err=
9726   fi
9727 else
9728   ac_cpp_err=yes
9729 fi
9730 if test -z "$ac_cpp_err"; then
9731   ac_header_preproc=yes
9732 else
9733   echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736   ac_header_preproc=no
9737 fi
9738 rm -f conftest.err conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9740 echo "${ECHO_T}$ac_header_preproc" >&6
9741
9742 # So?  What about this header?
9743 case $ac_header_compiler:$ac_header_preproc in
9744   yes:no )
9745     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9746 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9747     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9748 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9749     (
9750       cat <<\_ASBOX
9751 ## ------------------------------------ ##
9752 ## Report this to bug-autoconf@gnu.org. ##
9753 ## ------------------------------------ ##
9754 _ASBOX
9755     ) |
9756       sed "s/^/$as_me: WARNING:     /" >&2
9757     ;;
9758   no:yes )
9759     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9760 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9761     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9762 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9763     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9764 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9765     (
9766       cat <<\_ASBOX
9767 ## ------------------------------------ ##
9768 ## Report this to bug-autoconf@gnu.org. ##
9769 ## ------------------------------------ ##
9770 _ASBOX
9771     ) |
9772       sed "s/^/$as_me: WARNING:     /" >&2
9773     ;;
9774 esac
9775 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9776 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9777 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9778   echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9781 fi
9782 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9783 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9784
9785 fi
9786 if test $ac_cv_header_sys_sysmacros_h = yes; then
9787
9788 cat >>confdefs.h <<\_ACEOF
9789 #define MAJOR_IN_SYSMACROS 1
9790 _ACEOF
9791
9792 fi
9793
9794
9795   fi
9796 fi
9797
9798
9799
9800
9801
9802
9803 ac_header_dirent=no
9804 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9805   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9806 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9807 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   cat >conftest.$ac_ext <<_ACEOF
9812 #line $LINENO "configure"
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818 #include <sys/types.h>
9819 #include <$ac_hdr>
9820
9821 int
9822 main ()
9823 {
9824 if ((DIR *) 0)
9825 return 0;
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832   (eval $ac_compile) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } &&
9836          { ac_try='test -s conftest.$ac_objext'
9837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838   (eval $ac_try) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; }; then
9842   eval "$as_ac_Header=yes"
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 eval "$as_ac_Header=no"
9848 fi
9849 rm -f conftest.$ac_objext conftest.$ac_ext
9850 fi
9851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854   cat >>confdefs.h <<_ACEOF
9855 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9856 _ACEOF
9857
9858 ac_header_dirent=$ac_hdr; break
9859 fi
9860
9861 done
9862 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9863 if test $ac_header_dirent = dirent.h; then
9864   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9866 if test "${ac_cv_search_opendir+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   ac_func_search_save_LIBS=$LIBS
9870 ac_cv_search_opendir=no
9871 cat >conftest.$ac_ext <<_ACEOF
9872 #line $LINENO "configure"
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878
9879 /* Override any gcc2 internal prototype to avoid an error.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 /* We use char because int might match the return type of a gcc2
9884    builtin and then its argument prototype would still apply.  */
9885 char opendir ();
9886 int
9887 main ()
9888 {
9889 opendir ();
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896   (eval $ac_link) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_search_opendir="none required"
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 fi
9912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9913 if test "$ac_cv_search_opendir" = no; then
9914   for ac_lib in dir; do
9915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9916     cat >conftest.$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923
9924 /* Override any gcc2 internal prototype to avoid an error.  */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 /* We use char because int might match the return type of a gcc2
9929    builtin and then its argument prototype would still apply.  */
9930 char opendir ();
9931 int
9932 main ()
9933 {
9934 opendir ();
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941   (eval $ac_link) 2>&5
9942   ac_status=$?
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } &&
9945          { ac_try='test -s conftest$ac_exeext'
9946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947   (eval $ac_try) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); }; }; then
9951   ac_cv_search_opendir="-l$ac_lib"
9952 break
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 fi
9958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9959   done
9960 fi
9961 LIBS=$ac_func_search_save_LIBS
9962 fi
9963 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9964 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9965 if test "$ac_cv_search_opendir" != no; then
9966   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9967
9968 fi
9969
9970 else
9971   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9973 if test "${ac_cv_search_opendir+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   ac_func_search_save_LIBS=$LIBS
9977 ac_cv_search_opendir=no
9978 cat >conftest.$ac_ext <<_ACEOF
9979 #line $LINENO "configure"
9980 /* confdefs.h.  */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h.  */
9985
9986 /* Override any gcc2 internal prototype to avoid an error.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 /* We use char because int might match the return type of a gcc2
9991    builtin and then its argument prototype would still apply.  */
9992 char opendir ();
9993 int
9994 main ()
9995 {
9996 opendir ();
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003   (eval $ac_link) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } &&
10007          { ac_try='test -s conftest$ac_exeext'
10008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009   (eval $ac_try) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; }; then
10013   ac_cv_search_opendir="none required"
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 fi
10019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10020 if test "$ac_cv_search_opendir" = no; then
10021   for ac_lib in x; do
10022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10023     cat >conftest.$ac_ext <<_ACEOF
10024 #line $LINENO "configure"
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030
10031 /* Override any gcc2 internal prototype to avoid an error.  */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 /* We use char because int might match the return type of a gcc2
10036    builtin and then its argument prototype would still apply.  */
10037 char opendir ();
10038 int
10039 main ()
10040 {
10041 opendir ();
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048   (eval $ac_link) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -s conftest$ac_exeext'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; }; then
10058   ac_cv_search_opendir="-l$ac_lib"
10059 break
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 fi
10065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10066   done
10067 fi
10068 LIBS=$ac_func_search_save_LIBS
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10071 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10072 if test "$ac_cv_search_opendir" != no; then
10073   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10074
10075 fi
10076
10077 fi
10078
10079 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10080 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10081 if test "${ac_cv_header_stat_broken+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10086 /* confdefs.h.  */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h.  */
10091 #include <sys/types.h>
10092 #include <sys/stat.h>
10093
10094 #if defined(S_ISBLK) && defined(S_IFDIR)
10095 # if S_ISBLK (S_IFDIR)
10096 You lose.
10097 # endif
10098 #endif
10099
10100 #if defined(S_ISBLK) && defined(S_IFCHR)
10101 # if S_ISBLK (S_IFCHR)
10102 You lose.
10103 # endif
10104 #endif
10105
10106 #if defined(S_ISLNK) && defined(S_IFREG)
10107 # if S_ISLNK (S_IFREG)
10108 You lose.
10109 # endif
10110 #endif
10111
10112 #if defined(S_ISSOCK) && defined(S_IFREG)
10113 # if S_ISSOCK (S_IFREG)
10114 You lose.
10115 # endif
10116 #endif
10117
10118 _ACEOF
10119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10120   $EGREP "You lose" >/dev/null 2>&1; then
10121   ac_cv_header_stat_broken=yes
10122 else
10123   ac_cv_header_stat_broken=no
10124 fi
10125 rm -f conftest*
10126
10127 fi
10128 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10129 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10130 if test $ac_cv_header_stat_broken = yes; then
10131
10132 cat >>confdefs.h <<\_ACEOF
10133 #define STAT_MACROS_BROKEN 1
10134 _ACEOF
10135
10136 fi
10137
10138 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10139 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10140 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 /* confdefs.h.  */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h.  */
10150 #include <sys/types.h>
10151 #include <sys/wait.h>
10152 #ifndef WEXITSTATUS
10153 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10154 #endif
10155 #ifndef WIFEXITED
10156 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10157 #endif
10158
10159 int
10160 main ()
10161 {
10162   int s;
10163   wait (&s);
10164   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171   (eval $ac_compile) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -s conftest.$ac_objext'
10176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177   (eval $ac_try) 2>&5
10178   ac_status=$?
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); }; }; then
10181   ac_cv_header_sys_wait_h=yes
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ac_cv_header_sys_wait_h=no
10187 fi
10188 rm -f conftest.$ac_objext conftest.$ac_ext
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10191 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10192 if test $ac_cv_header_sys_wait_h = yes; then
10193
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_SYS_WAIT_H 1
10196 _ACEOF
10197
10198 fi
10199
10200 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10201 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10202 if test "${ac_cv_header_time+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10207 /* confdefs.h.  */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h.  */
10212 #include <sys/types.h>
10213 #include <sys/time.h>
10214 #include <time.h>
10215
10216 int
10217 main ()
10218 {
10219 if ((struct tm *) 0)
10220 return 0;
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227   (eval $ac_compile) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -s conftest.$ac_objext'
10232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233   (eval $ac_try) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); }; }; then
10237   ac_cv_header_time=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242 ac_cv_header_time=no
10243 fi
10244 rm -f conftest.$ac_objext conftest.$ac_ext
10245 fi
10246 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10247 echo "${ECHO_T}$ac_cv_header_time" >&6
10248 if test $ac_cv_header_time = yes; then
10249
10250 cat >>confdefs.h <<\_ACEOF
10251 #define TIME_WITH_SYS_TIME 1
10252 _ACEOF
10253
10254 fi
10255
10256
10257 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10258 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10259 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   cat >conftest.$ac_ext <<_ACEOF
10263 #line $LINENO "configure"
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269 $ac_includes_default
10270 int
10271 main ()
10272 {
10273 static struct stat ac_aggr;
10274 if (ac_aggr.st_blksize)
10275 return 0;
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 rm -f conftest.$ac_objext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282   (eval $ac_compile) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -s conftest.$ac_objext'
10287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288   (eval $ac_try) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_member_struct_stat_st_blksize=yes
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 cat >conftest.$ac_ext <<_ACEOF
10298 #line $LINENO "configure"
10299 /* confdefs.h.  */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h.  */
10304 $ac_includes_default
10305 int
10306 main ()
10307 {
10308 static struct stat ac_aggr;
10309 if (sizeof ac_aggr.st_blksize)
10310 return 0;
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317   (eval $ac_compile) 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); } &&
10321          { ac_try='test -s conftest.$ac_objext'
10322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323   (eval $ac_try) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); }; }; then
10327   ac_cv_member_struct_stat_st_blksize=yes
10328 else
10329   echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332 ac_cv_member_struct_stat_st_blksize=no
10333 fi
10334 rm -f conftest.$ac_objext conftest.$ac_ext
10335 fi
10336 rm -f conftest.$ac_objext conftest.$ac_ext
10337 fi
10338 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10339 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10340 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10341
10342 cat >>confdefs.h <<_ACEOF
10343 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10344 _ACEOF
10345
10346
10347 cat >>confdefs.h <<\_ACEOF
10348 #define HAVE_ST_BLKSIZE 1
10349 _ACEOF
10350
10351 fi
10352
10353
10354 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10355 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10356 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   cat >conftest.$ac_ext <<_ACEOF
10360 #line $LINENO "configure"
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 $ac_includes_default
10367 int
10368 main ()
10369 {
10370 static struct stat ac_aggr;
10371 if (ac_aggr.st_blocks)
10372 return 0;
10373   ;
10374   return 0;
10375 }
10376 _ACEOF
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379   (eval $ac_compile) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } &&
10383          { ac_try='test -s conftest.$ac_objext'
10384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385   (eval $ac_try) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }; }; then
10389   ac_cv_member_struct_stat_st_blocks=yes
10390 else
10391   echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10393
10394 cat >conftest.$ac_ext <<_ACEOF
10395 #line $LINENO "configure"
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 $ac_includes_default
10402 int
10403 main ()
10404 {
10405 static struct stat ac_aggr;
10406 if (sizeof ac_aggr.st_blocks)
10407 return 0;
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414   (eval $ac_compile) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -s conftest.$ac_objext'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; }; then
10424   ac_cv_member_struct_stat_st_blocks=yes
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 ac_cv_member_struct_stat_st_blocks=no
10430 fi
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10432 fi
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10436 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10437 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10441 _ACEOF
10442
10443
10444 cat >>confdefs.h <<\_ACEOF
10445 #define HAVE_ST_BLOCKS 1
10446 _ACEOF
10447
10448 else
10449   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10450 fi
10451
10452
10453 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10454 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10455 if test "${ac_cv_struct_tm+set}" = set; then
10456   echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458   cat >conftest.$ac_ext <<_ACEOF
10459 #line $LINENO "configure"
10460 /* confdefs.h.  */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h.  */
10465 #include <sys/types.h>
10466 #include <time.h>
10467
10468 int
10469 main ()
10470 {
10471 struct tm *tp; tp->tm_sec;
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478   (eval $ac_compile) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -s conftest.$ac_objext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   ac_cv_struct_tm=time.h
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_cv_struct_tm=sys/time.h
10494 fi
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10496 fi
10497 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10498 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10499 if test $ac_cv_struct_tm = sys/time.h; then
10500
10501 cat >>confdefs.h <<\_ACEOF
10502 #define TM_IN_SYS_TIME 1
10503 _ACEOF
10504
10505 fi
10506
10507 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10508 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10509 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519 #include <sys/types.h>
10520 #include <$ac_cv_struct_tm>
10521
10522
10523 int
10524 main ()
10525 {
10526 static struct tm ac_aggr;
10527 if (ac_aggr.tm_zone)
10528 return 0;
10529   ;
10530   return 0;
10531 }
10532 _ACEOF
10533 rm -f conftest.$ac_objext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535   (eval $ac_compile) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -s conftest.$ac_objext'
10540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541   (eval $ac_try) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; }; then
10545   ac_cv_member_struct_tm_tm_zone=yes
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557 #include <sys/types.h>
10558 #include <$ac_cv_struct_tm>
10559
10560
10561 int
10562 main ()
10563 {
10564 static struct tm ac_aggr;
10565 if (sizeof ac_aggr.tm_zone)
10566 return 0;
10567   ;
10568   return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573   (eval $ac_compile) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } &&
10577          { ac_try='test -s conftest.$ac_objext'
10578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579   (eval $ac_try) 2>&5
10580   ac_status=$?
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); }; }; then
10583   ac_cv_member_struct_tm_tm_zone=yes
10584 else
10585   echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10587
10588 ac_cv_member_struct_tm_tm_zone=no
10589 fi
10590 rm -f conftest.$ac_objext conftest.$ac_ext
10591 fi
10592 rm -f conftest.$ac_objext conftest.$ac_ext
10593 fi
10594 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10595 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10596 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10597
10598 cat >>confdefs.h <<_ACEOF
10599 #define HAVE_STRUCT_TM_TM_ZONE 1
10600 _ACEOF
10601
10602
10603 fi
10604
10605 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10606
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE_TM_ZONE 1
10609 _ACEOF
10610
10611 else
10612   echo "$as_me:$LINENO: checking for tzname" >&5
10613 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10614 if test "${ac_cv_var_tzname+set}" = set; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617   cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 /* confdefs.h.  */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h.  */
10624 #include <time.h>
10625 #ifndef tzname /* For SGI.  */
10626 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10627 #endif
10628
10629 int
10630 main ()
10631 {
10632 atoi(*tzname);
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639   (eval $ac_link) 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } &&
10643          { ac_try='test -s conftest$ac_exeext'
10644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645   (eval $ac_try) 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); }; }; then
10649   ac_cv_var_tzname=yes
10650 else
10651   echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 ac_cv_var_tzname=no
10655 fi
10656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10657 fi
10658 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10659 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10660   if test $ac_cv_var_tzname = yes; then
10661
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_TZNAME 1
10664 _ACEOF
10665
10666   fi
10667 fi
10668
10669
10670 echo "$as_me:$LINENO: checking for utime.h" >&5
10671 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10672 if test "${ba_cv_header_utime_h+set}" = set; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
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
10683 #include <sys/types.h>
10684 #include <utime.h>
10685 int
10686 main ()
10687 {
10688 struct utimbuf foo
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 rm -f conftest.$ac_objext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695   (eval $ac_compile) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -s conftest.$ac_objext'
10700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705   ba_cv_header_utime_h=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710 ba_cv_header_utime_h=no
10711 fi
10712 rm -f conftest.$ac_objext conftest.$ac_ext
10713 fi
10714 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10715 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10716 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_UTIME_H 1
10718 _ACEOF
10719
10720
10721 echo "$as_me:$LINENO: checking for socklen_t" >&5
10722 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10723 if test "${ba_cv_header_socklen_t+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733
10734 #include <sys/types.h>
10735 #include <sys/socket.h>
10736 int
10737 main ()
10738 {
10739 socklen_t x
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 rm -f conftest.$ac_objext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10746   (eval $ac_compile) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } &&
10750          { ac_try='test -s conftest.$ac_objext'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; }; then
10756   ba_cv_header_socklen_t=yes
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761 ba_cv_header_socklen_t=no
10762 fi
10763 rm -f conftest.$ac_objext conftest.$ac_ext
10764 fi
10765 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10766 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10767 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_SOCKLEN_T 1
10769 _ACEOF
10770
10771
10772 echo "$as_me:$LINENO: checking for bigendian" >&5
10773 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10774 if test "${ba_cv_bigendian+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   if test "$cross_compiling" = yes; then
10778   ba_cv_bigendian=no
10779 else
10780   cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 /* confdefs.h.  */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h.  */
10787 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10788 _ACEOF
10789 rm -f conftest$ac_exeext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10791   (eval $ac_link) 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796   (eval $ac_try) 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800   ba_cv_bigendian=yes
10801 else
10802   echo "$as_me: program exited with status $ac_status" >&5
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ( exit $ac_status )
10807 ba_cv_bigendian=no
10808 fi
10809 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10810 fi
10811 fi
10812 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10813 echo "${ECHO_T}$ba_cv_bigendian" >&6
10814 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_BIGENDIAN 1
10816 _ACEOF
10817
10818
10819
10820 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10822 if test "${ac_cv_c_const+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832
10833 int
10834 main ()
10835 {
10836 /* FIXME: Include the comments suggested by Paul. */
10837 #ifndef __cplusplus
10838   /* Ultrix mips cc rejects this.  */
10839   typedef int charset[2];
10840   const charset x;
10841   /* SunOS 4.1.1 cc rejects this.  */
10842   char const *const *ccp;
10843   char **p;
10844   /* NEC SVR4.0.2 mips cc rejects this.  */
10845   struct point {int x, y;};
10846   static struct point const zero = {0,0};
10847   /* AIX XL C 1.02.0.0 rejects this.
10848      It does not let you subtract one const X* pointer from another in
10849      an arm of an if-expression whose if-part is not a constant
10850      expression */
10851   const char *g = "string";
10852   ccp = &g + (g ? g-g : 0);
10853   /* HPUX 7.0 cc rejects these. */
10854   ++ccp;
10855   p = (char**) ccp;
10856   ccp = (char const *const *) p;
10857   { /* SCO 3.2v4 cc rejects this.  */
10858     char *t;
10859     char const *s = 0 ? (char *) 0 : (char const *) 0;
10860
10861     *t++ = 0;
10862   }
10863   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10864     int x[] = {25, 17};
10865     const int *foo = &x[0];
10866     ++foo;
10867   }
10868   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10869     typedef const int *iptr;
10870     iptr p = 0;
10871     ++p;
10872   }
10873   { /* AIX XL C 1.02.0.0 rejects this saying
10874        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10875     struct s { int j; const int *ap[3]; };
10876     struct s *b; b->j = 5;
10877   }
10878   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10879     const int foo = 10;
10880   }
10881 #endif
10882
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10889   (eval $ac_compile) 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } &&
10893          { ac_try='test -s conftest.$ac_objext'
10894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895   (eval $ac_try) 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; }; then
10899   ac_cv_c_const=yes
10900 else
10901   echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904 ac_cv_c_const=no
10905 fi
10906 rm -f conftest.$ac_objext conftest.$ac_ext
10907 fi
10908 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10909 echo "${ECHO_T}$ac_cv_c_const" >&6
10910 if test $ac_cv_c_const = no; then
10911
10912 cat >>confdefs.h <<\_ACEOF
10913 #define const
10914 _ACEOF
10915
10916 fi
10917
10918
10919
10920 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10921 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10922 fstype=no
10923 # The order of these tests is important.
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931 #include <sys/statvfs.h>
10932 #include <sys/fstyp.h>
10933 _ACEOF
10934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } >/dev/null; then
10942   if test -s conftest.err; then
10943     ac_cpp_err=$ac_c_preproc_warn_flag
10944   else
10945     ac_cpp_err=
10946   fi
10947 else
10948   ac_cpp_err=yes
10949 fi
10950 if test -z "$ac_cpp_err"; then
10951   cat >>confdefs.h <<\_ACEOF
10952 #define FSTYPE_STATVFS 1
10953 _ACEOF
10954  fstype=SVR4
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959
10960 fi
10961 rm -f conftest.err conftest.$ac_ext
10962 if test $fstype = no; then
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 #include <sys/statfs.h>
10971 #include <sys/fstyp.h>
10972 _ACEOF
10973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10975   ac_status=$?
10976   grep -v '^ *+' conftest.er1 >conftest.err
10977   rm -f conftest.er1
10978   cat conftest.err >&5
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } >/dev/null; then
10981   if test -s conftest.err; then
10982     ac_cpp_err=$ac_c_preproc_warn_flag
10983   else
10984     ac_cpp_err=
10985   fi
10986 else
10987   ac_cpp_err=yes
10988 fi
10989 if test -z "$ac_cpp_err"; then
10990   cat >>confdefs.h <<\_ACEOF
10991 #define FSTYPE_USG_STATFS 1
10992 _ACEOF
10993  fstype=SVR3
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998
10999 fi
11000 rm -f conftest.err conftest.$ac_ext
11001 fi
11002 if test $fstype = no; then
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11005 /* confdefs.h.  */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h.  */
11010 #include <sys/statfs.h>
11011 #include <sys/vmount.h>
11012 _ACEOF
11013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } >/dev/null; then
11021   if test -s conftest.err; then
11022     ac_cpp_err=$ac_c_preproc_warn_flag
11023   else
11024     ac_cpp_err=
11025   fi
11026 else
11027   ac_cpp_err=yes
11028 fi
11029 if test -z "$ac_cpp_err"; then
11030   cat >>confdefs.h <<\_ACEOF
11031 #define FSTYPE_AIX_STATFS 1
11032 _ACEOF
11033  fstype=AIX
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038
11039 fi
11040 rm -f conftest.err conftest.$ac_ext
11041 fi
11042 if test $fstype = no; then
11043 cat >conftest.$ac_ext <<_ACEOF
11044 #line $LINENO "configure"
11045 /* confdefs.h.  */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h.  */
11050 #include <mntent.h>
11051 _ACEOF
11052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } >/dev/null; then
11060   if test -s conftest.err; then
11061     ac_cpp_err=$ac_c_preproc_warn_flag
11062   else
11063     ac_cpp_err=
11064   fi
11065 else
11066   ac_cpp_err=yes
11067 fi
11068 if test -z "$ac_cpp_err"; then
11069   cat >>confdefs.h <<\_ACEOF
11070 #define FSTYPE_MNTENT 1
11071 _ACEOF
11072  fstype=4.3BSD
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077
11078 fi
11079 rm -f conftest.err conftest.$ac_ext
11080 fi
11081 if test $fstype = no; then
11082 cat >conftest.$ac_ext <<_ACEOF
11083 #line $LINENO "configure"
11084 /* confdefs.h.  */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h.  */
11089 #include <sys/mount.h>
11090
11091 _ACEOF
11092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11093   $EGREP "f_type;" >/dev/null 2>&1; then
11094   cat >>confdefs.h <<\_ACEOF
11095 #define FSTYPE_STATFS 1
11096 _ACEOF
11097  fstype=4.4BSD/OSF1
11098 fi
11099 rm -f conftest*
11100
11101 fi
11102 if test $fstype = no; then
11103 cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 /* confdefs.h.  */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h.  */
11110 #include <sys/mount.h>
11111 #include <sys/fs_types.h>
11112 _ACEOF
11113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11115   ac_status=$?
11116   grep -v '^ *+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } >/dev/null; then
11121   if test -s conftest.err; then
11122     ac_cpp_err=$ac_c_preproc_warn_flag
11123   else
11124     ac_cpp_err=
11125   fi
11126 else
11127   ac_cpp_err=yes
11128 fi
11129 if test -z "$ac_cpp_err"; then
11130   cat >>confdefs.h <<\_ACEOF
11131 #define FSTYPE_GETMNT 1
11132 _ACEOF
11133  fstype=Ultrix
11134 else
11135   echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138
11139 fi
11140 rm -f conftest.err conftest.$ac_ext
11141 fi
11142 echo "$as_me:$LINENO: result: $fstype" >&5
11143 echo "${ECHO_T}$fstype" >&6
11144
11145 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11146 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11147 if test "${ac_cv_type_signal+set}" = set; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150   cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157 #include <sys/types.h>
11158 #include <signal.h>
11159 #ifdef signal
11160 # undef signal
11161 #endif
11162 #ifdef __cplusplus
11163 extern "C" void (*signal (int, void (*)(int)))(int);
11164 #else
11165 void (*signal ()) ();
11166 #endif
11167
11168 int
11169 main ()
11170 {
11171 int i;
11172   ;
11173   return 0;
11174 }
11175 _ACEOF
11176 rm -f conftest.$ac_objext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178   (eval $ac_compile) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } &&
11182          { ac_try='test -s conftest.$ac_objext'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; }; then
11188   ac_cv_type_signal=void
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ac_cv_type_signal=int
11194 fi
11195 rm -f conftest.$ac_objext conftest.$ac_ext
11196 fi
11197 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11198 echo "${ECHO_T}$ac_cv_type_signal" >&6
11199
11200 cat >>confdefs.h <<_ACEOF
11201 #define RETSIGTYPE $ac_cv_type_signal
11202 _ACEOF
11203
11204
11205
11206 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11207 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11208 if test "${bash_cv_signal_vintage+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211
11212   cat >conftest.$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 #include <signal.h>
11220 int
11221 main ()
11222 {
11223
11224     sigset_t ss;
11225     struct sigaction sa;
11226     sigemptyset(&ss); sigsuspend(&ss);
11227     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11228     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11229
11230   ;
11231   return 0;
11232 }
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236   (eval $ac_link) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } &&
11240          { ac_try='test -s conftest$ac_exeext'
11241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242   (eval $ac_try) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }; }; then
11246   bash_cv_signal_vintage=posix
11247 else
11248   echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11250
11251
11252     cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259 #include <signal.h>
11260 int
11261 main ()
11262 {
11263
11264         int mask = sigmask(SIGINT);
11265         sigsetmask(mask); sigblock(mask); sigpause(mask);
11266
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11273   (eval $ac_link) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); } &&
11277          { ac_try='test -s conftest$ac_exeext'
11278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279   (eval $ac_try) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; }; then
11283   bash_cv_signal_vintage=4.2bsd
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288
11289       cat >conftest.$ac_ext <<_ACEOF
11290 #line $LINENO "configure"
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296
11297         #include <signal.h>
11298         RETSIGTYPE foo() { }
11299 int
11300 main ()
11301 {
11302
11303                 int mask = sigmask(SIGINT);
11304                 sigset(SIGINT, foo); sigrelse(SIGINT);
11305                 sighold(SIGINT); sigpause(SIGINT);
11306
11307   ;
11308   return 0;
11309 }
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11313   (eval $ac_link) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); } &&
11317          { ac_try='test -s conftest$ac_exeext'
11318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319   (eval $ac_try) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }; then
11323   bash_cv_signal_vintage=svr3
11324 else
11325   echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11327
11328 bash_cv_signal_vintage=v7
11329
11330 fi
11331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11332
11333 fi
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11335
11336 fi
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338
11339 fi
11340
11341 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11342 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11343 if test "$bash_cv_signal_vintage" = posix; then
11344 cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_POSIX_SIGNALS 1
11346 _ACEOF
11347
11348 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11349 cat >>confdefs.h <<\_ACEOF
11350 #define HAVE_BSD_SIGNALS 1
11351 _ACEOF
11352
11353 elif test "$bash_cv_signal_vintage" = svr3; then
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_USG_SIGHOLD 1
11356 _ACEOF
11357
11358 fi
11359
11360 echo "$as_me:$LINENO: checking for mode_t" >&5
11361 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11362 if test "${ac_cv_type_mode_t+set}" = set; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   cat >conftest.$ac_ext <<_ACEOF
11366 #line $LINENO "configure"
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 $ac_includes_default
11373 int
11374 main ()
11375 {
11376 if ((mode_t *) 0)
11377   return 0;
11378 if (sizeof (mode_t))
11379   return 0;
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386   (eval $ac_compile) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } &&
11390          { ac_try='test -s conftest.$ac_objext'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; }; then
11396   ac_cv_type_mode_t=yes
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 ac_cv_type_mode_t=no
11402 fi
11403 rm -f conftest.$ac_objext conftest.$ac_ext
11404 fi
11405 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11406 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11407 if test $ac_cv_type_mode_t = yes; then
11408   :
11409 else
11410
11411 cat >>confdefs.h <<_ACEOF
11412 #define mode_t int
11413 _ACEOF
11414
11415 fi
11416
11417 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11418 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11419 if test "${ac_cv_type_uid_t+set}" = set; then
11420   echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422   cat >conftest.$ac_ext <<_ACEOF
11423 #line $LINENO "configure"
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 #include <sys/types.h>
11430
11431 _ACEOF
11432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11433   $EGREP "uid_t" >/dev/null 2>&1; then
11434   ac_cv_type_uid_t=yes
11435 else
11436   ac_cv_type_uid_t=no
11437 fi
11438 rm -f conftest*
11439
11440 fi
11441 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11442 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11443 if test $ac_cv_type_uid_t = no; then
11444
11445 cat >>confdefs.h <<\_ACEOF
11446 #define uid_t int
11447 _ACEOF
11448
11449
11450 cat >>confdefs.h <<\_ACEOF
11451 #define gid_t int
11452 _ACEOF
11453
11454 fi
11455
11456 echo "$as_me:$LINENO: checking for size_t" >&5
11457 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11458 if test "${ac_cv_type_size_t+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 $ac_includes_default
11469 int
11470 main ()
11471 {
11472 if ((size_t *) 0)
11473   return 0;
11474 if (sizeof (size_t))
11475   return 0;
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482   (eval $ac_compile) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -s conftest.$ac_objext'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   ac_cv_type_size_t=yes
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497 ac_cv_type_size_t=no
11498 fi
11499 rm -f conftest.$ac_objext conftest.$ac_ext
11500 fi
11501 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11502 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11503 if test $ac_cv_type_size_t = yes; then
11504   :
11505 else
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define size_t unsigned
11509 _ACEOF
11510
11511 fi
11512
11513 echo "$as_me:$LINENO: checking for pid_t" >&5
11514 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11515 if test "${ac_cv_type_pid_t+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525 $ac_includes_default
11526 int
11527 main ()
11528 {
11529 if ((pid_t *) 0)
11530   return 0;
11531 if (sizeof (pid_t))
11532   return 0;
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539   (eval $ac_compile) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -s conftest.$ac_objext'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; }; then
11549   ac_cv_type_pid_t=yes
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 ac_cv_type_pid_t=no
11555 fi
11556 rm -f conftest.$ac_objext conftest.$ac_ext
11557 fi
11558 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11559 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11560 if test $ac_cv_type_pid_t = yes; then
11561   :
11562 else
11563
11564 cat >>confdefs.h <<_ACEOF
11565 #define pid_t int
11566 _ACEOF
11567
11568 fi
11569
11570 echo "$as_me:$LINENO: checking for off_t" >&5
11571 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11572 if test "${ac_cv_type_off_t+set}" = set; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 $ac_includes_default
11583 int
11584 main ()
11585 {
11586 if ((off_t *) 0)
11587   return 0;
11588 if (sizeof (off_t))
11589   return 0;
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11596   (eval $ac_compile) 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } &&
11600          { ac_try='test -s conftest.$ac_objext'
11601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602   (eval $ac_try) 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); }; }; then
11606   ac_cv_type_off_t=yes
11607 else
11608   echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11610
11611 ac_cv_type_off_t=no
11612 fi
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11614 fi
11615 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11616 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11617 if test $ac_cv_type_off_t = yes; then
11618   :
11619 else
11620
11621 cat >>confdefs.h <<_ACEOF
11622 #define off_t long
11623 _ACEOF
11624
11625 fi
11626
11627 echo "$as_me:$LINENO: checking for ino_t" >&5
11628 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11629 if test "${ac_cv_type_ino_t+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11634 /* confdefs.h.  */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h.  */
11639 $ac_includes_default
11640 int
11641 main ()
11642 {
11643 if ((ino_t *) 0)
11644   return 0;
11645 if (sizeof (ino_t))
11646   return 0;
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653   (eval $ac_compile) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -s conftest.$ac_objext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   ac_cv_type_ino_t=yes
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_cv_type_ino_t=no
11669 fi
11670 rm -f conftest.$ac_objext conftest.$ac_ext
11671 fi
11672 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11674 if test $ac_cv_type_ino_t = yes; then
11675   :
11676 else
11677
11678 cat >>confdefs.h <<_ACEOF
11679 #define ino_t unsigned long
11680 _ACEOF
11681
11682 fi
11683
11684 echo "$as_me:$LINENO: checking for dev_t" >&5
11685 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11686 if test "${ac_cv_type_dev_t+set}" = set; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 #line $LINENO "configure"
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 $ac_includes_default
11697 int
11698 main ()
11699 {
11700 if ((dev_t *) 0)
11701   return 0;
11702 if (sizeof (dev_t))
11703   return 0;
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710   (eval $ac_compile) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); } &&
11714          { ac_try='test -s conftest.$ac_objext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   ac_cv_type_dev_t=yes
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ac_cv_type_dev_t=no
11726 fi
11727 rm -f conftest.$ac_objext conftest.$ac_ext
11728 fi
11729 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11730 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11731 if test $ac_cv_type_dev_t = yes; then
11732   :
11733 else
11734
11735 cat >>confdefs.h <<_ACEOF
11736 #define dev_t unsigned long
11737 _ACEOF
11738
11739 fi
11740
11741 echo "$as_me:$LINENO: checking for daddr_t" >&5
11742 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11743 if test "${ac_cv_type_daddr_t+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 $ac_includes_default
11754 int
11755 main ()
11756 {
11757 if ((daddr_t *) 0)
11758   return 0;
11759 if (sizeof (daddr_t))
11760   return 0;
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767   (eval $ac_compile) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -s conftest.$ac_objext'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; }; then
11777   ac_cv_type_daddr_t=yes
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782 ac_cv_type_daddr_t=no
11783 fi
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11785 fi
11786 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11787 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11788 if test $ac_cv_type_daddr_t = yes; then
11789   :
11790 else
11791
11792 cat >>confdefs.h <<_ACEOF
11793 #define daddr_t long
11794 _ACEOF
11795
11796 fi
11797
11798 echo "$as_me:$LINENO: checking for major_t" >&5
11799 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11800 if test "${ac_cv_type_major_t+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
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 if ((major_t *) 0)
11815   return 0;
11816 if (sizeof (major_t))
11817   return 0;
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824   (eval $ac_compile) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -s conftest.$ac_objext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   ac_cv_type_major_t=yes
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_type_major_t=no
11840 fi
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11842 fi
11843 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11844 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11845 if test $ac_cv_type_major_t = yes; then
11846   :
11847 else
11848
11849 cat >>confdefs.h <<_ACEOF
11850 #define major_t int
11851 _ACEOF
11852
11853 fi
11854
11855 echo "$as_me:$LINENO: checking for minor_t" >&5
11856 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11857 if test "${ac_cv_type_minor_t+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 $ac_includes_default
11868 int
11869 main ()
11870 {
11871 if ((minor_t *) 0)
11872   return 0;
11873 if (sizeof (minor_t))
11874   return 0;
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881   (eval $ac_compile) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -s conftest.$ac_objext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_type_minor_t=yes
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_type_minor_t=no
11897 fi
11898 rm -f conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11901 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11902 if test $ac_cv_type_minor_t = yes; then
11903   :
11904 else
11905
11906 cat >>confdefs.h <<_ACEOF
11907 #define minor_t int
11908 _ACEOF
11909
11910 fi
11911
11912 echo "$as_me:$LINENO: checking for ssize_t" >&5
11913 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11914 if test "${ac_cv_type_ssize_t+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   cat >conftest.$ac_ext <<_ACEOF
11918 #line $LINENO "configure"
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 $ac_includes_default
11925 int
11926 main ()
11927 {
11928 if ((ssize_t *) 0)
11929   return 0;
11930 if (sizeof (ssize_t))
11931   return 0;
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938   (eval $ac_compile) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } &&
11942          { ac_try='test -s conftest.$ac_objext'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_cv_type_ssize_t=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_cv_type_ssize_t=no
11954 fi
11955 rm -f conftest.$ac_objext conftest.$ac_ext
11956 fi
11957 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11958 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11959 if test $ac_cv_type_ssize_t = yes; then
11960   :
11961 else
11962
11963 cat >>confdefs.h <<_ACEOF
11964 #define ssize_t int
11965 _ACEOF
11966
11967 fi
11968
11969 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11970 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11971 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 #line $LINENO "configure"
11976 /* confdefs.h.  */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h.  */
11981 $ac_includes_default
11982 int
11983 main ()
11984 {
11985 static struct stat ac_aggr;
11986 if (ac_aggr.st_blocks)
11987 return 0;
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994   (eval $ac_compile) 2>&5
11995   ac_status=$?
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } &&
11998          { ac_try='test -s conftest.$ac_objext'
11999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000   (eval $ac_try) 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; }; then
12004   ac_cv_member_struct_stat_st_blocks=yes
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 $ac_includes_default
12017 int
12018 main ()
12019 {
12020 static struct stat ac_aggr;
12021 if (sizeof ac_aggr.st_blocks)
12022 return 0;
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029   (eval $ac_compile) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -s conftest.$ac_objext'
12034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035   (eval $ac_try) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; }; then
12039   ac_cv_member_struct_stat_st_blocks=yes
12040 else
12041   echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ac_cv_member_struct_stat_st_blocks=no
12045 fi
12046 rm -f conftest.$ac_objext conftest.$ac_ext
12047 fi
12048 rm -f conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12051 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12052 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12053
12054 cat >>confdefs.h <<_ACEOF
12055 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12056 _ACEOF
12057
12058
12059 cat >>confdefs.h <<\_ACEOF
12060 #define HAVE_ST_BLOCKS 1
12061 _ACEOF
12062
12063 else
12064   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12065 fi
12066
12067
12068
12069 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12070 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12071 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12072   echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074   cat >conftest.$ac_ext <<_ACEOF
12075 #line $LINENO "configure"
12076 /* confdefs.h.  */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h.  */
12081 $ac_includes_default
12082 int
12083 main ()
12084 {
12085 static struct stat ac_aggr;
12086 if (ac_aggr.st_rdev)
12087 return 0;
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094   (eval $ac_compile) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); } &&
12098          { ac_try='test -s conftest.$ac_objext'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_cv_member_struct_stat_st_rdev=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
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 static struct stat ac_aggr;
12121 if (sizeof ac_aggr.st_rdev)
12122 return 0;
12123   ;
12124   return 0;
12125 }
12126 _ACEOF
12127 rm -f conftest.$ac_objext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12129   (eval $ac_compile) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } &&
12133          { ac_try='test -s conftest.$ac_objext'
12134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135   (eval $ac_try) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   ac_cv_member_struct_stat_st_rdev=yes
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144 ac_cv_member_struct_stat_st_rdev=no
12145 fi
12146 rm -f conftest.$ac_objext conftest.$ac_ext
12147 fi
12148 rm -f conftest.$ac_objext conftest.$ac_ext
12149 fi
12150 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12151 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12152 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12153
12154 cat >>confdefs.h <<_ACEOF
12155 #define HAVE_STRUCT_STAT_ST_RDEV 1
12156 _ACEOF
12157
12158
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_ST_RDEV 1
12161 _ACEOF
12162
12163 fi
12164
12165
12166 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12167 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12168 if test "${ac_cv_struct_tm+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   cat >conftest.$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 #include <sys/types.h>
12179 #include <time.h>
12180
12181 int
12182 main ()
12183 {
12184 struct tm *tp; tp->tm_sec;
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191   (eval $ac_compile) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); } &&
12195          { ac_try='test -s conftest.$ac_objext'
12196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197   (eval $ac_try) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; }; then
12201   ac_cv_struct_tm=time.h
12202 else
12203   echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 ac_cv_struct_tm=sys/time.h
12207 fi
12208 rm -f conftest.$ac_objext conftest.$ac_ext
12209 fi
12210 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12211 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12212 if test $ac_cv_struct_tm = sys/time.h; then
12213
12214 cat >>confdefs.h <<\_ACEOF
12215 #define TM_IN_SYS_TIME 1
12216 _ACEOF
12217
12218 fi
12219
12220 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12222 if test "${ac_cv_c_const+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   cat >conftest.$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232
12233 int
12234 main ()
12235 {
12236 /* FIXME: Include the comments suggested by Paul. */
12237 #ifndef __cplusplus
12238   /* Ultrix mips cc rejects this.  */
12239   typedef int charset[2];
12240   const charset x;
12241   /* SunOS 4.1.1 cc rejects this.  */
12242   char const *const *ccp;
12243   char **p;
12244   /* NEC SVR4.0.2 mips cc rejects this.  */
12245   struct point {int x, y;};
12246   static struct point const zero = {0,0};
12247   /* AIX XL C 1.02.0.0 rejects this.
12248      It does not let you subtract one const X* pointer from another in
12249      an arm of an if-expression whose if-part is not a constant
12250      expression */
12251   const char *g = "string";
12252   ccp = &g + (g ? g-g : 0);
12253   /* HPUX 7.0 cc rejects these. */
12254   ++ccp;
12255   p = (char**) ccp;
12256   ccp = (char const *const *) p;
12257   { /* SCO 3.2v4 cc rejects this.  */
12258     char *t;
12259     char const *s = 0 ? (char *) 0 : (char const *) 0;
12260
12261     *t++ = 0;
12262   }
12263   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12264     int x[] = {25, 17};
12265     const int *foo = &x[0];
12266     ++foo;
12267   }
12268   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12269     typedef const int *iptr;
12270     iptr p = 0;
12271     ++p;
12272   }
12273   { /* AIX XL C 1.02.0.0 rejects this saying
12274        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12275     struct s { int j; const int *ap[3]; };
12276     struct s *b; b->j = 5;
12277   }
12278   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12279     const int foo = 10;
12280   }
12281 #endif
12282
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289   (eval $ac_compile) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293          { ac_try='test -s conftest.$ac_objext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   ac_cv_c_const=yes
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_c_const=no
12305 fi
12306 rm -f conftest.$ac_objext conftest.$ac_ext
12307 fi
12308 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12309 echo "${ECHO_T}$ac_cv_c_const" >&6
12310 if test $ac_cv_c_const = no; then
12311
12312 cat >>confdefs.h <<\_ACEOF
12313 #define const
12314 _ACEOF
12315
12316 fi
12317
12318
12319
12320 echo "$as_me:$LINENO: checking for char" >&5
12321 echo $ECHO_N "checking for char... $ECHO_C" >&6
12322 if test "${ac_cv_type_char+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   cat >conftest.$ac_ext <<_ACEOF
12326 #line $LINENO "configure"
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332 $ac_includes_default
12333 int
12334 main ()
12335 {
12336 if ((char *) 0)
12337   return 0;
12338 if (sizeof (char))
12339   return 0;
12340   ;
12341   return 0;
12342 }
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346   (eval $ac_compile) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -s conftest.$ac_objext'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; }; then
12356   ac_cv_type_char=yes
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361 ac_cv_type_char=no
12362 fi
12363 rm -f conftest.$ac_objext conftest.$ac_ext
12364 fi
12365 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12366 echo "${ECHO_T}$ac_cv_type_char" >&6
12367
12368 echo "$as_me:$LINENO: checking size of char" >&5
12369 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12370 if test "${ac_cv_sizeof_char+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   if test "$ac_cv_type_char" = yes; then
12374   # The cast to unsigned long works around a bug in the HP C Compiler
12375   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12376   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12377   # This bug is HP SR number 8606223364.
12378   if test "$cross_compiling" = yes; then
12379   # Depending upon the size, compute the lo and hi bounds.
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 /* confdefs.h.  */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h.  */
12387 $ac_includes_default
12388 int
12389 main ()
12390 {
12391 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12392 test_array [0] = 0
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400   (eval $ac_compile) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } &&
12404          { ac_try='test -s conftest.$ac_objext'
12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406   (eval $ac_try) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; }; then
12410   ac_lo=0 ac_mid=0
12411   while :; do
12412     cat >conftest.$ac_ext <<_ACEOF
12413 #line $LINENO "configure"
12414 /* confdefs.h.  */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h.  */
12419 $ac_includes_default
12420 int
12421 main ()
12422 {
12423 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12424 test_array [0] = 0
12425
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432   (eval $ac_compile) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -s conftest.$ac_objext'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_hi=$ac_mid; break
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_lo=`expr $ac_mid + 1`
12448                     if test $ac_lo -le $ac_mid; then
12449                       ac_lo= ac_hi=
12450                       break
12451                     fi
12452                     ac_mid=`expr 2 '*' $ac_mid + 1`
12453 fi
12454 rm -f conftest.$ac_objext conftest.$ac_ext
12455   done
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 cat >conftest.$ac_ext <<_ACEOF
12461 #line $LINENO "configure"
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467 $ac_includes_default
12468 int
12469 main ()
12470 {
12471 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12472 test_array [0] = 0
12473
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480   (eval $ac_compile) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); } &&
12484          { ac_try='test -s conftest.$ac_objext'
12485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486   (eval $ac_try) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; }; then
12490   ac_hi=-1 ac_mid=-1
12491   while :; do
12492     cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499 $ac_includes_default
12500 int
12501 main ()
12502 {
12503 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12504 test_array [0] = 0
12505
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 rm -f conftest.$ac_objext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512   (eval $ac_compile) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } &&
12516          { ac_try='test -s conftest.$ac_objext'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; }; then
12522   ac_lo=$ac_mid; break
12523 else
12524   echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 ac_hi=`expr '(' $ac_mid ')' - 1`
12528                        if test $ac_mid -le $ac_hi; then
12529                          ac_lo= ac_hi=
12530                          break
12531                        fi
12532                        ac_mid=`expr 2 '*' $ac_mid`
12533 fi
12534 rm -f conftest.$ac_objext conftest.$ac_ext
12535   done
12536 else
12537   echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12539
12540 ac_lo= ac_hi=
12541 fi
12542 rm -f conftest.$ac_objext conftest.$ac_ext
12543 fi
12544 rm -f conftest.$ac_objext conftest.$ac_ext
12545 # Binary search between lo and hi bounds.
12546 while test "x$ac_lo" != "x$ac_hi"; do
12547   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12548   cat >conftest.$ac_ext <<_ACEOF
12549 #line $LINENO "configure"
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555 $ac_includes_default
12556 int
12557 main ()
12558 {
12559 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12560 test_array [0] = 0
12561
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568   (eval $ac_compile) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } &&
12572          { ac_try='test -s conftest.$ac_objext'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   ac_hi=$ac_mid
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_lo=`expr '(' $ac_mid ')' + 1`
12584 fi
12585 rm -f conftest.$ac_objext conftest.$ac_ext
12586 done
12587 case $ac_lo in
12588 ?*) ac_cv_sizeof_char=$ac_lo;;
12589 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12590 See \`config.log' for more details." >&5
12591 echo "$as_me: error: cannot compute sizeof (char), 77
12592 See \`config.log' for more details." >&2;}
12593    { (exit 1); exit 1; }; } ;;
12594 esac
12595 else
12596   if test "$cross_compiling" = yes; then
12597   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12598 See \`config.log' for more details." >&5
12599 echo "$as_me: error: cannot run test program while cross compiling
12600 See \`config.log' for more details." >&2;}
12601    { (exit 1); exit 1; }; }
12602 else
12603   cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12605 /* confdefs.h.  */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h.  */
12610 $ac_includes_default
12611 long longval () { return (long) (sizeof (char)); }
12612 unsigned long ulongval () { return (long) (sizeof (char)); }
12613 #include <stdio.h>
12614 #include <stdlib.h>
12615 int
12616 main ()
12617 {
12618
12619   FILE *f = fopen ("conftest.val", "w");
12620   if (! f)
12621     exit (1);
12622   if (((long) (sizeof (char))) < 0)
12623     {
12624       long i = longval ();
12625       if (i != ((long) (sizeof (char))))
12626         exit (1);
12627       fprintf (f, "%ld\n", i);
12628     }
12629   else
12630     {
12631       unsigned long i = ulongval ();
12632       if (i != ((long) (sizeof (char))))
12633         exit (1);
12634       fprintf (f, "%lu\n", i);
12635     }
12636   exit (ferror (f) || fclose (f) != 0);
12637
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 rm -f conftest$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644   (eval $ac_link) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649   (eval $ac_try) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; }; then
12653   ac_cv_sizeof_char=`cat conftest.val`
12654 else
12655   echo "$as_me: program exited with status $ac_status" >&5
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ( exit $ac_status )
12660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12661 See \`config.log' for more details." >&5
12662 echo "$as_me: error: cannot compute sizeof (char), 77
12663 See \`config.log' for more details." >&2;}
12664    { (exit 1); exit 1; }; }
12665 fi
12666 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 fi
12669 rm -f conftest.val
12670 else
12671   ac_cv_sizeof_char=0
12672 fi
12673 fi
12674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12675 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12676 cat >>confdefs.h <<_ACEOF
12677 #define SIZEOF_CHAR $ac_cv_sizeof_char
12678 _ACEOF
12679
12680
12681 echo "$as_me:$LINENO: checking for short int" >&5
12682 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12683 if test "${ac_cv_type_short_int+set}" = set; then
12684   echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686   cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 $ac_includes_default
12694 int
12695 main ()
12696 {
12697 if ((short int *) 0)
12698   return 0;
12699 if (sizeof (short int))
12700   return 0;
12701   ;
12702   return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707   (eval $ac_compile) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } &&
12711          { ac_try='test -s conftest.$ac_objext'
12712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713   (eval $ac_try) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); }; }; then
12717   ac_cv_type_short_int=yes
12718 else
12719   echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12721
12722 ac_cv_type_short_int=no
12723 fi
12724 rm -f conftest.$ac_objext conftest.$ac_ext
12725 fi
12726 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12727 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12728
12729 echo "$as_me:$LINENO: checking size of short int" >&5
12730 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12731 if test "${ac_cv_sizeof_short_int+set}" = set; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734   if test "$ac_cv_type_short_int" = yes; then
12735   # The cast to unsigned long works around a bug in the HP C Compiler
12736   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12737   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12738   # This bug is HP SR number 8606223364.
12739   if test "$cross_compiling" = yes; then
12740   # Depending upon the size, compute the lo and hi bounds.
12741 cat >conftest.$ac_ext <<_ACEOF
12742 #line $LINENO "configure"
12743 /* confdefs.h.  */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h.  */
12748 $ac_includes_default
12749 int
12750 main ()
12751 {
12752 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12753 test_array [0] = 0
12754
12755   ;
12756   return 0;
12757 }
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761   (eval $ac_compile) 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } &&
12765          { ac_try='test -s conftest.$ac_objext'
12766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767   (eval $ac_try) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); }; }; then
12771   ac_lo=0 ac_mid=0
12772   while :; do
12773     cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 /* confdefs.h.  */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h.  */
12780 $ac_includes_default
12781 int
12782 main ()
12783 {
12784 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12785 test_array [0] = 0
12786
12787   ;
12788   return 0;
12789 }
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12793   (eval $ac_compile) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); } &&
12797          { ac_try='test -s conftest.$ac_objext'
12798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799   (eval $ac_try) 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; }; then
12803   ac_hi=$ac_mid; break
12804 else
12805   echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 ac_lo=`expr $ac_mid + 1`
12809                     if test $ac_lo -le $ac_mid; then
12810                       ac_lo= ac_hi=
12811                       break
12812                     fi
12813                     ac_mid=`expr 2 '*' $ac_mid + 1`
12814 fi
12815 rm -f conftest.$ac_objext conftest.$ac_ext
12816   done
12817 else
12818   echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 cat >conftest.$ac_ext <<_ACEOF
12822 #line $LINENO "configure"
12823 /* confdefs.h.  */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h.  */
12828 $ac_includes_default
12829 int
12830 main ()
12831 {
12832 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12833 test_array [0] = 0
12834
12835   ;
12836   return 0;
12837 }
12838 _ACEOF
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841   (eval $ac_compile) 2>&5
12842   ac_status=$?
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -s conftest.$ac_objext'
12846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847   (eval $ac_try) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   ac_hi=-1 ac_mid=-1
12852   while :; do
12853     cat >conftest.$ac_ext <<_ACEOF
12854 #line $LINENO "configure"
12855 /* confdefs.h.  */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h.  */
12860 $ac_includes_default
12861 int
12862 main ()
12863 {
12864 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12865 test_array [0] = 0
12866
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 rm -f conftest.$ac_objext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12873   (eval $ac_compile) 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } &&
12877          { ac_try='test -s conftest.$ac_objext'
12878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879   (eval $ac_try) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; }; then
12883   ac_lo=$ac_mid; break
12884 else
12885   echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 ac_hi=`expr '(' $ac_mid ')' - 1`
12889                        if test $ac_mid -le $ac_hi; then
12890                          ac_lo= ac_hi=
12891                          break
12892                        fi
12893                        ac_mid=`expr 2 '*' $ac_mid`
12894 fi
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12896   done
12897 else
12898   echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_lo= ac_hi=
12902 fi
12903 rm -f conftest.$ac_objext conftest.$ac_ext
12904 fi
12905 rm -f conftest.$ac_objext conftest.$ac_ext
12906 # Binary search between lo and hi bounds.
12907 while test "x$ac_lo" != "x$ac_hi"; do
12908   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12909   cat >conftest.$ac_ext <<_ACEOF
12910 #line $LINENO "configure"
12911 /* confdefs.h.  */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h.  */
12916 $ac_includes_default
12917 int
12918 main ()
12919 {
12920 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12921 test_array [0] = 0
12922
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929   (eval $ac_compile) 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } &&
12933          { ac_try='test -s conftest.$ac_objext'
12934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935   (eval $ac_try) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; }; then
12939   ac_hi=$ac_mid
12940 else
12941   echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 ac_lo=`expr '(' $ac_mid ')' + 1`
12945 fi
12946 rm -f conftest.$ac_objext conftest.$ac_ext
12947 done
12948 case $ac_lo in
12949 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12950 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12951 See \`config.log' for more details." >&5
12952 echo "$as_me: error: cannot compute sizeof (short int), 77
12953 See \`config.log' for more details." >&2;}
12954    { (exit 1); exit 1; }; } ;;
12955 esac
12956 else
12957   if test "$cross_compiling" = yes; then
12958   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12959 See \`config.log' for more details." >&5
12960 echo "$as_me: error: cannot run test program while cross compiling
12961 See \`config.log' for more details." >&2;}
12962    { (exit 1); exit 1; }; }
12963 else
12964   cat >conftest.$ac_ext <<_ACEOF
12965 #line $LINENO "configure"
12966 /* confdefs.h.  */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h.  */
12971 $ac_includes_default
12972 long longval () { return (long) (sizeof (short int)); }
12973 unsigned long ulongval () { return (long) (sizeof (short int)); }
12974 #include <stdio.h>
12975 #include <stdlib.h>
12976 int
12977 main ()
12978 {
12979
12980   FILE *f = fopen ("conftest.val", "w");
12981   if (! f)
12982     exit (1);
12983   if (((long) (sizeof (short int))) < 0)
12984     {
12985       long i = longval ();
12986       if (i != ((long) (sizeof (short int))))
12987         exit (1);
12988       fprintf (f, "%ld\n", i);
12989     }
12990   else
12991     {
12992       unsigned long i = ulongval ();
12993       if (i != ((long) (sizeof (short int))))
12994         exit (1);
12995       fprintf (f, "%lu\n", i);
12996     }
12997   exit (ferror (f) || fclose (f) != 0);
12998
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 rm -f conftest$ac_exeext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13005   (eval $ac_link) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010   (eval $ac_try) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; }; then
13014   ac_cv_sizeof_short_int=`cat conftest.val`
13015 else
13016   echo "$as_me: program exited with status $ac_status" >&5
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020 ( exit $ac_status )
13021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13022 See \`config.log' for more details." >&5
13023 echo "$as_me: error: cannot compute sizeof (short int), 77
13024 See \`config.log' for more details." >&2;}
13025    { (exit 1); exit 1; }; }
13026 fi
13027 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13028 fi
13029 fi
13030 rm -f conftest.val
13031 else
13032   ac_cv_sizeof_short_int=0
13033 fi
13034 fi
13035 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13036 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13037 cat >>confdefs.h <<_ACEOF
13038 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13039 _ACEOF
13040
13041
13042 echo "$as_me:$LINENO: checking for int" >&5
13043 echo $ECHO_N "checking for int... $ECHO_C" >&6
13044 if test "${ac_cv_type_int+set}" = set; then
13045   echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047   cat >conftest.$ac_ext <<_ACEOF
13048 #line $LINENO "configure"
13049 /* confdefs.h.  */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h.  */
13054 $ac_includes_default
13055 int
13056 main ()
13057 {
13058 if ((int *) 0)
13059   return 0;
13060 if (sizeof (int))
13061   return 0;
13062   ;
13063   return 0;
13064 }
13065 _ACEOF
13066 rm -f conftest.$ac_objext
13067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13068   (eval $ac_compile) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); } &&
13072          { ac_try='test -s conftest.$ac_objext'
13073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074   (eval $ac_try) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; }; then
13078   ac_cv_type_int=yes
13079 else
13080   echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083 ac_cv_type_int=no
13084 fi
13085 rm -f conftest.$ac_objext conftest.$ac_ext
13086 fi
13087 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13088 echo "${ECHO_T}$ac_cv_type_int" >&6
13089
13090 echo "$as_me:$LINENO: checking size of int" >&5
13091 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13092 if test "${ac_cv_sizeof_int+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   if test "$ac_cv_type_int" = yes; then
13096   # The cast to unsigned long works around a bug in the HP C Compiler
13097   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13098   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13099   # This bug is HP SR number 8606223364.
13100   if test "$cross_compiling" = yes; then
13101   # Depending upon the size, compute the lo and hi bounds.
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line $LINENO "configure"
13104 /* confdefs.h.  */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h.  */
13109 $ac_includes_default
13110 int
13111 main ()
13112 {
13113 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13114 test_array [0] = 0
13115
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13122   (eval $ac_compile) 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); } &&
13126          { ac_try='test -s conftest.$ac_objext'
13127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128   (eval $ac_try) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132   ac_lo=0 ac_mid=0
13133   while :; do
13134     cat >conftest.$ac_ext <<_ACEOF
13135 #line $LINENO "configure"
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141 $ac_includes_default
13142 int
13143 main ()
13144 {
13145 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13146 test_array [0] = 0
13147
13148   ;
13149   return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154   (eval $ac_compile) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } &&
13158          { ac_try='test -s conftest.$ac_objext'
13159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160   (eval $ac_try) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); }; }; then
13164   ac_hi=$ac_mid; break
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_lo=`expr $ac_mid + 1`
13170                     if test $ac_lo -le $ac_mid; then
13171                       ac_lo= ac_hi=
13172                       break
13173                     fi
13174                     ac_mid=`expr 2 '*' $ac_mid + 1`
13175 fi
13176 rm -f conftest.$ac_objext conftest.$ac_ext
13177   done
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 cat >conftest.$ac_ext <<_ACEOF
13183 #line $LINENO "configure"
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 $ac_includes_default
13190 int
13191 main ()
13192 {
13193 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13194 test_array [0] = 0
13195
13196   ;
13197   return 0;
13198 }
13199 _ACEOF
13200 rm -f conftest.$ac_objext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202   (eval $ac_compile) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } &&
13206          { ac_try='test -s conftest.$ac_objext'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212   ac_hi=-1 ac_mid=-1
13213   while :; do
13214     cat >conftest.$ac_ext <<_ACEOF
13215 #line $LINENO "configure"
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221 $ac_includes_default
13222 int
13223 main ()
13224 {
13225 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13226 test_array [0] = 0
13227
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234   (eval $ac_compile) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } &&
13238          { ac_try='test -s conftest.$ac_objext'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; }; then
13244   ac_lo=$ac_mid; break
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 ac_hi=`expr '(' $ac_mid ')' - 1`
13250                        if test $ac_mid -le $ac_hi; then
13251                          ac_lo= ac_hi=
13252                          break
13253                        fi
13254                        ac_mid=`expr 2 '*' $ac_mid`
13255 fi
13256 rm -f conftest.$ac_objext conftest.$ac_ext
13257   done
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 ac_lo= ac_hi=
13263 fi
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13265 fi
13266 rm -f conftest.$ac_objext conftest.$ac_ext
13267 # Binary search between lo and hi bounds.
13268 while test "x$ac_lo" != "x$ac_hi"; do
13269   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13270   cat >conftest.$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277 $ac_includes_default
13278 int
13279 main ()
13280 {
13281 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13282 test_array [0] = 0
13283
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290   (eval $ac_compile) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -s conftest.$ac_objext'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; }; then
13300   ac_hi=$ac_mid
13301 else
13302   echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 ac_lo=`expr '(' $ac_mid ')' + 1`
13306 fi
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13308 done
13309 case $ac_lo in
13310 ?*) ac_cv_sizeof_int=$ac_lo;;
13311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13312 See \`config.log' for more details." >&5
13313 echo "$as_me: error: cannot compute sizeof (int), 77
13314 See \`config.log' for more details." >&2;}
13315    { (exit 1); exit 1; }; } ;;
13316 esac
13317 else
13318   if test "$cross_compiling" = yes; then
13319   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13320 See \`config.log' for more details." >&5
13321 echo "$as_me: error: cannot run test program while cross compiling
13322 See \`config.log' for more details." >&2;}
13323    { (exit 1); exit 1; }; }
13324 else
13325   cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332 $ac_includes_default
13333 long longval () { return (long) (sizeof (int)); }
13334 unsigned long ulongval () { return (long) (sizeof (int)); }
13335 #include <stdio.h>
13336 #include <stdlib.h>
13337 int
13338 main ()
13339 {
13340
13341   FILE *f = fopen ("conftest.val", "w");
13342   if (! f)
13343     exit (1);
13344   if (((long) (sizeof (int))) < 0)
13345     {
13346       long i = longval ();
13347       if (i != ((long) (sizeof (int))))
13348         exit (1);
13349       fprintf (f, "%ld\n", i);
13350     }
13351   else
13352     {
13353       unsigned long i = ulongval ();
13354       if (i != ((long) (sizeof (int))))
13355         exit (1);
13356       fprintf (f, "%lu\n", i);
13357     }
13358   exit (ferror (f) || fclose (f) != 0);
13359
13360   ;
13361   return 0;
13362 }
13363 _ACEOF
13364 rm -f conftest$ac_exeext
13365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13366   (eval $ac_link) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; }; then
13375   ac_cv_sizeof_int=`cat conftest.val`
13376 else
13377   echo "$as_me: program exited with status $ac_status" >&5
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ( exit $ac_status )
13382 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13383 See \`config.log' for more details." >&5
13384 echo "$as_me: error: cannot compute sizeof (int), 77
13385 See \`config.log' for more details." >&2;}
13386    { (exit 1); exit 1; }; }
13387 fi
13388 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13389 fi
13390 fi
13391 rm -f conftest.val
13392 else
13393   ac_cv_sizeof_int=0
13394 fi
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13397 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13398 cat >>confdefs.h <<_ACEOF
13399 #define SIZEOF_INT $ac_cv_sizeof_int
13400 _ACEOF
13401
13402
13403 echo "$as_me:$LINENO: checking for long int" >&5
13404 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13405 if test "${ac_cv_type_long_int+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   cat >conftest.$ac_ext <<_ACEOF
13409 #line $LINENO "configure"
13410 /* confdefs.h.  */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h.  */
13415 $ac_includes_default
13416 int
13417 main ()
13418 {
13419 if ((long int *) 0)
13420   return 0;
13421 if (sizeof (long int))
13422   return 0;
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429   (eval $ac_compile) 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } &&
13433          { ac_try='test -s conftest.$ac_objext'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; }; then
13439   ac_cv_type_long_int=yes
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444 ac_cv_type_long_int=no
13445 fi
13446 rm -f conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13449 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13450
13451 echo "$as_me:$LINENO: checking size of long int" >&5
13452 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13453 if test "${ac_cv_sizeof_long_int+set}" = set; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   if test "$ac_cv_type_long_int" = yes; then
13457   # The cast to unsigned long works around a bug in the HP C Compiler
13458   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13459   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13460   # This bug is HP SR number 8606223364.
13461   if test "$cross_compiling" = yes; then
13462   # Depending upon the size, compute the lo and hi bounds.
13463 cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13465 /* confdefs.h.  */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h.  */
13470 $ac_includes_default
13471 int
13472 main ()
13473 {
13474 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13475 test_array [0] = 0
13476
13477   ;
13478   return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13483   (eval $ac_compile) 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } &&
13487          { ac_try='test -s conftest.$ac_objext'
13488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489   (eval $ac_try) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; }; then
13493   ac_lo=0 ac_mid=0
13494   while :; do
13495     cat >conftest.$ac_ext <<_ACEOF
13496 #line $LINENO "configure"
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 $ac_includes_default
13503 int
13504 main ()
13505 {
13506 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13507 test_array [0] = 0
13508
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515   (eval $ac_compile) 2>&5
13516   ac_status=$?
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); } &&
13519          { ac_try='test -s conftest.$ac_objext'
13520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521   (eval $ac_try) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; }; then
13525   ac_hi=$ac_mid; break
13526 else
13527   echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 ac_lo=`expr $ac_mid + 1`
13531                     if test $ac_lo -le $ac_mid; then
13532                       ac_lo= ac_hi=
13533                       break
13534                     fi
13535                     ac_mid=`expr 2 '*' $ac_mid + 1`
13536 fi
13537 rm -f conftest.$ac_objext conftest.$ac_ext
13538   done
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 cat >conftest.$ac_ext <<_ACEOF
13544 #line $LINENO "configure"
13545 /* confdefs.h.  */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h.  */
13550 $ac_includes_default
13551 int
13552 main ()
13553 {
13554 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13555 test_array [0] = 0
13556
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563   (eval $ac_compile) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -s conftest.$ac_objext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_hi=-1 ac_mid=-1
13574   while :; do
13575     cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 $ac_includes_default
13583 int
13584 main ()
13585 {
13586 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13587 test_array [0] = 0
13588
13589   ;
13590   return 0;
13591 }
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595   (eval $ac_compile) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } &&
13599          { ac_try='test -s conftest.$ac_objext'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; }; then
13605   ac_lo=$ac_mid; break
13606 else
13607   echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 ac_hi=`expr '(' $ac_mid ')' - 1`
13611                        if test $ac_mid -le $ac_hi; then
13612                          ac_lo= ac_hi=
13613                          break
13614                        fi
13615                        ac_mid=`expr 2 '*' $ac_mid`
13616 fi
13617 rm -f conftest.$ac_objext conftest.$ac_ext
13618   done
13619 else
13620   echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13622
13623 ac_lo= ac_hi=
13624 fi
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13626 fi
13627 rm -f conftest.$ac_objext conftest.$ac_ext
13628 # Binary search between lo and hi bounds.
13629 while test "x$ac_lo" != "x$ac_hi"; do
13630   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13631   cat >conftest.$ac_ext <<_ACEOF
13632 #line $LINENO "configure"
13633 /* confdefs.h.  */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h.  */
13638 $ac_includes_default
13639 int
13640 main ()
13641 {
13642 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13643 test_array [0] = 0
13644
13645   ;
13646   return 0;
13647 }
13648 _ACEOF
13649 rm -f conftest.$ac_objext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651   (eval $ac_compile) 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); } &&
13655          { ac_try='test -s conftest.$ac_objext'
13656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657   (eval $ac_try) 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; }; then
13661   ac_hi=$ac_mid
13662 else
13663   echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 ac_lo=`expr '(' $ac_mid ')' + 1`
13667 fi
13668 rm -f conftest.$ac_objext conftest.$ac_ext
13669 done
13670 case $ac_lo in
13671 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13672 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13673 See \`config.log' for more details." >&5
13674 echo "$as_me: error: cannot compute sizeof (long int), 77
13675 See \`config.log' for more details." >&2;}
13676    { (exit 1); exit 1; }; } ;;
13677 esac
13678 else
13679   if test "$cross_compiling" = yes; then
13680   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13681 See \`config.log' for more details." >&5
13682 echo "$as_me: error: cannot run test program while cross compiling
13683 See \`config.log' for more details." >&2;}
13684    { (exit 1); exit 1; }; }
13685 else
13686   cat >conftest.$ac_ext <<_ACEOF
13687 #line $LINENO "configure"
13688 /* confdefs.h.  */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h.  */
13693 $ac_includes_default
13694 long longval () { return (long) (sizeof (long int)); }
13695 unsigned long ulongval () { return (long) (sizeof (long int)); }
13696 #include <stdio.h>
13697 #include <stdlib.h>
13698 int
13699 main ()
13700 {
13701
13702   FILE *f = fopen ("conftest.val", "w");
13703   if (! f)
13704     exit (1);
13705   if (((long) (sizeof (long int))) < 0)
13706     {
13707       long i = longval ();
13708       if (i != ((long) (sizeof (long int))))
13709         exit (1);
13710       fprintf (f, "%ld\n", i);
13711     }
13712   else
13713     {
13714       unsigned long i = ulongval ();
13715       if (i != ((long) (sizeof (long int))))
13716         exit (1);
13717       fprintf (f, "%lu\n", i);
13718     }
13719   exit (ferror (f) || fclose (f) != 0);
13720
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 rm -f conftest$ac_exeext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13727   (eval $ac_link) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; }; then
13736   ac_cv_sizeof_long_int=`cat conftest.val`
13737 else
13738   echo "$as_me: program exited with status $ac_status" >&5
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ( exit $ac_status )
13743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13744 See \`config.log' for more details." >&5
13745 echo "$as_me: error: cannot compute sizeof (long int), 77
13746 See \`config.log' for more details." >&2;}
13747    { (exit 1); exit 1; }; }
13748 fi
13749 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13750 fi
13751 fi
13752 rm -f conftest.val
13753 else
13754   ac_cv_sizeof_long_int=0
13755 fi
13756 fi
13757 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13758 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13759 cat >>confdefs.h <<_ACEOF
13760 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13761 _ACEOF
13762
13763
13764 echo "$as_me:$LINENO: checking for long long int" >&5
13765 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13766 if test "${ac_cv_type_long_long_int+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   cat >conftest.$ac_ext <<_ACEOF
13770 #line $LINENO "configure"
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776 $ac_includes_default
13777 int
13778 main ()
13779 {
13780 if ((long long int *) 0)
13781   return 0;
13782 if (sizeof (long long int))
13783   return 0;
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790   (eval $ac_compile) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); } &&
13794          { ac_try='test -s conftest.$ac_objext'
13795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796   (eval $ac_try) 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800   ac_cv_type_long_long_int=yes
13801 else
13802   echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805 ac_cv_type_long_long_int=no
13806 fi
13807 rm -f conftest.$ac_objext conftest.$ac_ext
13808 fi
13809 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13810 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13811
13812 echo "$as_me:$LINENO: checking size of long long int" >&5
13813 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13814 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   if test "$ac_cv_type_long_long_int" = yes; then
13818   # The cast to unsigned long works around a bug in the HP C Compiler
13819   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13820   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13821   # This bug is HP SR number 8606223364.
13822   if test "$cross_compiling" = yes; then
13823   # Depending upon the size, compute the lo and hi bounds.
13824 cat >conftest.$ac_ext <<_ACEOF
13825 #line $LINENO "configure"
13826 /* confdefs.h.  */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h.  */
13831 $ac_includes_default
13832 int
13833 main ()
13834 {
13835 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13836 test_array [0] = 0
13837
13838   ;
13839   return 0;
13840 }
13841 _ACEOF
13842 rm -f conftest.$ac_objext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844   (eval $ac_compile) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); } &&
13848          { ac_try='test -s conftest.$ac_objext'
13849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850   (eval $ac_try) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; }; then
13854   ac_lo=0 ac_mid=0
13855   while :; do
13856     cat >conftest.$ac_ext <<_ACEOF
13857 #line $LINENO "configure"
13858 /* confdefs.h.  */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h.  */
13863 $ac_includes_default
13864 int
13865 main ()
13866 {
13867 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13868 test_array [0] = 0
13869
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876   (eval $ac_compile) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -s conftest.$ac_objext'
13881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882   (eval $ac_try) 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); }; }; then
13886   ac_hi=$ac_mid; break
13887 else
13888   echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 ac_lo=`expr $ac_mid + 1`
13892                     if test $ac_lo -le $ac_mid; then
13893                       ac_lo= ac_hi=
13894                       break
13895                     fi
13896                     ac_mid=`expr 2 '*' $ac_mid + 1`
13897 fi
13898 rm -f conftest.$ac_objext conftest.$ac_ext
13899   done
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 $ac_includes_default
13912 int
13913 main ()
13914 {
13915 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13916 test_array [0] = 0
13917
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924   (eval $ac_compile) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -s conftest.$ac_objext'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934   ac_hi=-1 ac_mid=-1
13935   while :; do
13936     cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943 $ac_includes_default
13944 int
13945 main ()
13946 {
13947 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13948 test_array [0] = 0
13949
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 rm -f conftest.$ac_objext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956   (eval $ac_compile) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } &&
13960          { ac_try='test -s conftest.$ac_objext'
13961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962   (eval $ac_try) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; }; then
13966   ac_lo=$ac_mid; break
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971 ac_hi=`expr '(' $ac_mid ')' - 1`
13972                        if test $ac_mid -le $ac_hi; then
13973                          ac_lo= ac_hi=
13974                          break
13975                        fi
13976                        ac_mid=`expr 2 '*' $ac_mid`
13977 fi
13978 rm -f conftest.$ac_objext conftest.$ac_ext
13979   done
13980 else
13981   echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 ac_lo= ac_hi=
13985 fi
13986 rm -f conftest.$ac_objext conftest.$ac_ext
13987 fi
13988 rm -f conftest.$ac_objext conftest.$ac_ext
13989 # Binary search between lo and hi bounds.
13990 while test "x$ac_lo" != "x$ac_hi"; do
13991   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13992   cat >conftest.$ac_ext <<_ACEOF
13993 #line $LINENO "configure"
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999 $ac_includes_default
14000 int
14001 main ()
14002 {
14003 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14004 test_array [0] = 0
14005
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012   (eval $ac_compile) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } &&
14016          { ac_try='test -s conftest.$ac_objext'
14017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018   (eval $ac_try) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }; }; then
14022   ac_hi=$ac_mid
14023 else
14024   echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14026
14027 ac_lo=`expr '(' $ac_mid ')' + 1`
14028 fi
14029 rm -f conftest.$ac_objext conftest.$ac_ext
14030 done
14031 case $ac_lo in
14032 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14034 See \`config.log' for more details." >&5
14035 echo "$as_me: error: cannot compute sizeof (long long int), 77
14036 See \`config.log' for more details." >&2;}
14037    { (exit 1); exit 1; }; } ;;
14038 esac
14039 else
14040   if test "$cross_compiling" = yes; then
14041   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14042 See \`config.log' for more details." >&5
14043 echo "$as_me: error: cannot run test program while cross compiling
14044 See \`config.log' for more details." >&2;}
14045    { (exit 1); exit 1; }; }
14046 else
14047   cat >conftest.$ac_ext <<_ACEOF
14048 #line $LINENO "configure"
14049 /* confdefs.h.  */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h.  */
14054 $ac_includes_default
14055 long longval () { return (long) (sizeof (long long int)); }
14056 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14057 #include <stdio.h>
14058 #include <stdlib.h>
14059 int
14060 main ()
14061 {
14062
14063   FILE *f = fopen ("conftest.val", "w");
14064   if (! f)
14065     exit (1);
14066   if (((long) (sizeof (long long int))) < 0)
14067     {
14068       long i = longval ();
14069       if (i != ((long) (sizeof (long long int))))
14070         exit (1);
14071       fprintf (f, "%ld\n", i);
14072     }
14073   else
14074     {
14075       unsigned long i = ulongval ();
14076       if (i != ((long) (sizeof (long long int))))
14077         exit (1);
14078       fprintf (f, "%lu\n", i);
14079     }
14080   exit (ferror (f) || fclose (f) != 0);
14081
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 rm -f conftest$ac_exeext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14088   (eval $ac_link) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; }; then
14097   ac_cv_sizeof_long_long_int=`cat conftest.val`
14098 else
14099   echo "$as_me: program exited with status $ac_status" >&5
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103 ( exit $ac_status )
14104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14105 See \`config.log' for more details." >&5
14106 echo "$as_me: error: cannot compute sizeof (long long int), 77
14107 See \`config.log' for more details." >&2;}
14108    { (exit 1); exit 1; }; }
14109 fi
14110 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14111 fi
14112 fi
14113 rm -f conftest.val
14114 else
14115   ac_cv_sizeof_long_long_int=0
14116 fi
14117 fi
14118 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14119 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14120 cat >>confdefs.h <<_ACEOF
14121 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14122 _ACEOF
14123
14124
14125 echo "$as_me:$LINENO: checking for int *" >&5
14126 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14127 if test "${ac_cv_type_int_p+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   cat >conftest.$ac_ext <<_ACEOF
14131 #line $LINENO "configure"
14132 /* confdefs.h.  */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h.  */
14137 $ac_includes_default
14138 int
14139 main ()
14140 {
14141 if ((int * *) 0)
14142   return 0;
14143 if (sizeof (int *))
14144   return 0;
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14151   (eval $ac_compile) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } &&
14155          { ac_try='test -s conftest.$ac_objext'
14156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157   (eval $ac_try) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   ac_cv_type_int_p=yes
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_cv_type_int_p=no
14167 fi
14168 rm -f conftest.$ac_objext conftest.$ac_ext
14169 fi
14170 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14171 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14172
14173 echo "$as_me:$LINENO: checking size of int *" >&5
14174 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14175 if test "${ac_cv_sizeof_int_p+set}" = set; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178   if test "$ac_cv_type_int_p" = yes; then
14179   # The cast to unsigned long works around a bug in the HP C Compiler
14180   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14181   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14182   # This bug is HP SR number 8606223364.
14183   if test "$cross_compiling" = yes; then
14184   # Depending upon the size, compute the lo and hi bounds.
14185 cat >conftest.$ac_ext <<_ACEOF
14186 #line $LINENO "configure"
14187 /* confdefs.h.  */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h.  */
14192 $ac_includes_default
14193 int
14194 main ()
14195 {
14196 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14197 test_array [0] = 0
14198
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 rm -f conftest.$ac_objext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205   (eval $ac_compile) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } &&
14209          { ac_try='test -s conftest.$ac_objext'
14210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211   (eval $ac_try) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; }; then
14215   ac_lo=0 ac_mid=0
14216   while :; do
14217     cat >conftest.$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14219 /* confdefs.h.  */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h.  */
14224 $ac_includes_default
14225 int
14226 main ()
14227 {
14228 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14229 test_array [0] = 0
14230
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237   (eval $ac_compile) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -s conftest.$ac_objext'
14242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243   (eval $ac_try) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247   ac_hi=$ac_mid; break
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252 ac_lo=`expr $ac_mid + 1`
14253                     if test $ac_lo -le $ac_mid; then
14254                       ac_lo= ac_hi=
14255                       break
14256                     fi
14257                     ac_mid=`expr 2 '*' $ac_mid + 1`
14258 fi
14259 rm -f conftest.$ac_objext conftest.$ac_ext
14260   done
14261 else
14262   echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 cat >conftest.$ac_ext <<_ACEOF
14266 #line $LINENO "configure"
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 $ac_includes_default
14273 int
14274 main ()
14275 {
14276 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14277 test_array [0] = 0
14278
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285   (eval $ac_compile) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -s conftest.$ac_objext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   ac_hi=-1 ac_mid=-1
14296   while :; do
14297     cat >conftest.$ac_ext <<_ACEOF
14298 #line $LINENO "configure"
14299 /* confdefs.h.  */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h.  */
14304 $ac_includes_default
14305 int
14306 main ()
14307 {
14308 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14309 test_array [0] = 0
14310
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317   (eval $ac_compile) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -s conftest.$ac_objext'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   ac_lo=$ac_mid; break
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_hi=`expr '(' $ac_mid ')' - 1`
14333                        if test $ac_mid -le $ac_hi; then
14334                          ac_lo= ac_hi=
14335                          break
14336                        fi
14337                        ac_mid=`expr 2 '*' $ac_mid`
14338 fi
14339 rm -f conftest.$ac_objext conftest.$ac_ext
14340   done
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345 ac_lo= ac_hi=
14346 fi
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14348 fi
14349 rm -f conftest.$ac_objext conftest.$ac_ext
14350 # Binary search between lo and hi bounds.
14351 while test "x$ac_lo" != "x$ac_hi"; do
14352   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14353   cat >conftest.$ac_ext <<_ACEOF
14354 #line $LINENO "configure"
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360 $ac_includes_default
14361 int
14362 main ()
14363 {
14364 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14365 test_array [0] = 0
14366
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373   (eval $ac_compile) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379   (eval $ac_try) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_hi=$ac_mid
14384 else
14385   echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_lo=`expr '(' $ac_mid ')' + 1`
14389 fi
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14391 done
14392 case $ac_lo in
14393 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14394 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14395 See \`config.log' for more details." >&5
14396 echo "$as_me: error: cannot compute sizeof (int *), 77
14397 See \`config.log' for more details." >&2;}
14398    { (exit 1); exit 1; }; } ;;
14399 esac
14400 else
14401   if test "$cross_compiling" = yes; then
14402   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14403 See \`config.log' for more details." >&5
14404 echo "$as_me: error: cannot run test program while cross compiling
14405 See \`config.log' for more details." >&2;}
14406    { (exit 1); exit 1; }; }
14407 else
14408   cat >conftest.$ac_ext <<_ACEOF
14409 #line $LINENO "configure"
14410 /* confdefs.h.  */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h.  */
14415 $ac_includes_default
14416 long longval () { return (long) (sizeof (int *)); }
14417 unsigned long ulongval () { return (long) (sizeof (int *)); }
14418 #include <stdio.h>
14419 #include <stdlib.h>
14420 int
14421 main ()
14422 {
14423
14424   FILE *f = fopen ("conftest.val", "w");
14425   if (! f)
14426     exit (1);
14427   if (((long) (sizeof (int *))) < 0)
14428     {
14429       long i = longval ();
14430       if (i != ((long) (sizeof (int *))))
14431         exit (1);
14432       fprintf (f, "%ld\n", i);
14433     }
14434   else
14435     {
14436       unsigned long i = ulongval ();
14437       if (i != ((long) (sizeof (int *))))
14438         exit (1);
14439       fprintf (f, "%lu\n", i);
14440     }
14441   exit (ferror (f) || fclose (f) != 0);
14442
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449   (eval $ac_link) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454   (eval $ac_try) 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; }; then
14458   ac_cv_sizeof_int_p=`cat conftest.val`
14459 else
14460   echo "$as_me: program exited with status $ac_status" >&5
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 ( exit $ac_status )
14465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14466 See \`config.log' for more details." >&5
14467 echo "$as_me: error: cannot compute sizeof (int *), 77
14468 See \`config.log' for more details." >&2;}
14469    { (exit 1); exit 1; }; }
14470 fi
14471 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14472 fi
14473 fi
14474 rm -f conftest.val
14475 else
14476   ac_cv_sizeof_int_p=0
14477 fi
14478 fi
14479 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14480 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14481 cat >>confdefs.h <<_ACEOF
14482 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14483 _ACEOF
14484
14485
14486
14487 # Check for sys/types.h types
14488 echo "$as_me:$LINENO: checking for u_int type" >&5
14489 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14490 if test "${ac_cv_have_u_int+set}" = set; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493
14494     cat >conftest.$ac_ext <<_ACEOF
14495 #line $LINENO "configure"
14496 /* confdefs.h.  */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h.  */
14501  #include <sys/types.h>
14502 int
14503 main ()
14504 {
14505  u_int a; a = 1;
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512   (eval $ac_compile) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); } &&
14516          { ac_try='test -s conftest.$ac_objext'
14517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518   (eval $ac_try) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); }; }; then
14522    ac_cv_have_u_int="yes"
14523 else
14524   echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14526
14527  ac_cv_have_u_int="no"
14528
14529 fi
14530 rm -f conftest.$ac_objext conftest.$ac_ext
14531
14532 fi
14533 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14534 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14535 if test "x$ac_cv_have_u_int" = "xyes" ; then
14536    cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_U_INT 1
14538 _ACEOF
14539
14540    have_u_int=1
14541 fi
14542
14543 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14544 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14545 if test "${ac_cv_have_intmax_t+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548
14549    cat >conftest.$ac_ext <<_ACEOF
14550 #line $LINENO "configure"
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556  #include <sys/types.h>
14557 int
14558 main ()
14559 {
14560  intmax_t a; a = 1;
14561   ;
14562   return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567   (eval $ac_compile) 2>&5
14568   ac_status=$?
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); } &&
14571          { ac_try='test -s conftest.$ac_objext'
14572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573   (eval $ac_try) 2>&5
14574   ac_status=$?
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); }; }; then
14577    ac_cv_have_intmax_t="yes"
14578 else
14579   echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14581
14582
14583          cat >conftest.$ac_ext <<_ACEOF
14584 #line $LINENO "configure"
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590  #include <stdint.h>
14591 int
14592 main ()
14593 {
14594  intmax_t a; a = 1;
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601   (eval $ac_compile) 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -s conftest.$ac_objext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611    ac_cv_have_intmax_t="yes"
14612 else
14613   echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616  ac_cv_have_intmax_t="no"
14617
14618 fi
14619 rm -f conftest.$ac_objext conftest.$ac_ext
14620
14621
14622 fi
14623 rm -f conftest.$ac_objext conftest.$ac_ext
14624
14625
14626 fi
14627 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14628 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14629 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14630    cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_INTMAX_T 1
14632 _ACEOF
14633
14634    have_intmax_t=1
14635 fi
14636
14637
14638 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14639 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14640 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643
14644    cat >conftest.$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651  #include <sys/types.h>
14652 int
14653 main ()
14654 {
14655  u_intmax_t a; a = 1;
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662   (eval $ac_compile) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } &&
14666          { ac_try='test -s conftest.$ac_objext'
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    ac_cv_have_u_intmax_t="yes"
14673 else
14674   echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677
14678          cat >conftest.$ac_ext <<_ACEOF
14679 #line $LINENO "configure"
14680 /* confdefs.h.  */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h.  */
14685  #include <stdint.h>
14686 int
14687 main ()
14688 {
14689  u_intmax_t a; a = 1;
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696   (eval $ac_compile) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706    ac_cv_have_u_intmax_t="yes"
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711  ac_cv_have_u_intmax_t="no"
14712
14713 fi
14714 rm -f conftest.$ac_objext conftest.$ac_ext
14715
14716
14717 fi
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14719
14720 fi
14721 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14722 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14723 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14724    cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_U_INTMAX_T 1
14726 _ACEOF
14727
14728    have_u_intmax_t=1
14729 fi
14730
14731
14732 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14733 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14734 if test "${ac_cv_have_intxx_t+set}" = set; then
14735   echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737
14738    cat >conftest.$ac_ext <<_ACEOF
14739 #line $LINENO "configure"
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745  #include <sys/types.h>
14746 int
14747 main ()
14748 {
14749  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14750   ;
14751   return 0;
14752 }
14753 _ACEOF
14754 rm -f conftest.$ac_objext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14756   (eval $ac_compile) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } &&
14760          { ac_try='test -s conftest.$ac_objext'
14761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762   (eval $ac_try) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }; then
14766    ac_cv_have_intxx_t="yes"
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771  ac_cv_have_intxx_t="no"
14772
14773 fi
14774 rm -f conftest.$ac_objext conftest.$ac_ext
14775
14776 fi
14777 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14778 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14779 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14780    cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_INTXX_T 1
14782 _ACEOF
14783
14784    have_intxx_t=1
14785 fi
14786
14787 echo "$as_me:$LINENO: checking for int64_t type" >&5
14788 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14789 if test "${ac_cv_have_int64_t+set}" = set; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792
14793    cat >conftest.$ac_ext <<_ACEOF
14794 #line $LINENO "configure"
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800  #include <sys/types.h>
14801 int
14802 main ()
14803 {
14804  int64_t a; a = 1;
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811   (eval $ac_compile) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); } &&
14815          { ac_try='test -s conftest.$ac_objext'
14816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817   (eval $ac_try) 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; }; then
14821    ac_cv_have_int64_t="yes"
14822 else
14823   echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826  ac_cv_have_int64_t="no"
14827
14828 fi
14829 rm -f conftest.$ac_objext conftest.$ac_ext
14830
14831 fi
14832 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14833 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14834 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14835    cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_INT64_T 1
14837 _ACEOF
14838
14839    have_int64_t=1
14840 fi
14841
14842 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14843 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14844 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847
14848    cat >conftest.$ac_ext <<_ACEOF
14849 #line $LINENO "configure"
14850 /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855  #include <sys/types.h>
14856 int
14857 main ()
14858 {
14859  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14860   ;
14861   return 0;
14862 }
14863 _ACEOF
14864 rm -f conftest.$ac_objext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14866   (eval $ac_compile) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); } &&
14870          { ac_try='test -s conftest.$ac_objext'
14871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872   (eval $ac_try) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; }; then
14876    ac_cv_have_u_intxx_t="yes"
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881  ac_cv_have_u_intxx_t="no"
14882
14883 fi
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14885
14886 fi
14887 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14888 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14889 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14890    cat >>confdefs.h <<\_ACEOF
14891 #define HAVE_U_INTXX_T 1
14892 _ACEOF
14893
14894    have_u_intxx_t=1
14895 fi
14896
14897 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14898 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14899 if test "${ac_cv_have_u_int64_t+set}" = set; then
14900   echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902
14903    cat >conftest.$ac_ext <<_ACEOF
14904 #line $LINENO "configure"
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910  #include <sys/types.h>
14911 int
14912 main ()
14913 {
14914  u_int64_t a; a = 1;
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921   (eval $ac_compile) 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } &&
14925          { ac_try='test -s conftest.$ac_objext'
14926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927   (eval $ac_try) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); }; }; then
14931    ac_cv_have_u_int64_t="yes"
14932 else
14933   echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14935
14936  ac_cv_have_u_int64_t="no"
14937
14938 fi
14939 rm -f conftest.$ac_objext conftest.$ac_ext
14940
14941 fi
14942 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14943 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14944 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14945    cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_U_INT64_T 1
14947 _ACEOF
14948
14949    have_u_int64_t=1
14950 fi
14951
14952 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14953            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14954 then
14955    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14956 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14957    cat >conftest.$ac_ext <<_ACEOF
14958 #line $LINENO "configure"
14959 /* confdefs.h.  */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h.  */
14964  #include <sys/bitypes.h>
14965 int
14966 main ()
14967 {
14968  int8_t a; int16_t b; int32_t c;
14969         u_int8_t e; u_int16_t f; u_int32_t g;
14970         a = b = c = e = f = g = 1;
14971   ;
14972   return 0;
14973 }
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977   (eval $ac_compile) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } &&
14981          { ac_try='test -s conftest.$ac_objext'
14982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983   (eval $ac_try) 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; }; then
14987    cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_U_INTXX_T 1
14989 _ACEOF
14990
14991         cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_INTXX_T 1
14993 _ACEOF
14994
14995         cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_SYS_BITYPES_H 1
14997 _ACEOF
14998
14999         echo "$as_me:$LINENO: result: yes" >&5
15000 echo "${ECHO_T}yes" >&6
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005  echo "$as_me:$LINENO: result: no" >&5
15006 echo "${ECHO_T}no" >&6
15007
15008 fi
15009 rm -f conftest.$ac_objext conftest.$ac_ext
15010 fi
15011
15012 if test -z "$have_u_intxx_t" ; then
15013    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15014 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15015 if test "${ac_cv_have_uintxx_t+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018
15019       cat >conftest.$ac_ext <<_ACEOF
15020 #line $LINENO "configure"
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026  #include <sys/types.h>
15027 int
15028 main ()
15029 {
15030  uint8_t a; uint16_t b;
15031            uint32_t c; a = b = c = 1;
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15038   (eval $ac_compile) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } &&
15042          { ac_try='test -s conftest.$ac_objext'
15043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044   (eval $ac_try) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); }; }; then
15048    ac_cv_have_uintxx_t="yes"
15049 else
15050   echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053  ac_cv_have_uintxx_t="no"
15054
15055 fi
15056 rm -f conftest.$ac_objext conftest.$ac_ext
15057
15058 fi
15059 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15060 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15061    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15062       cat >>confdefs.h <<\_ACEOF
15063 #define HAVE_UINTXX_T 1
15064 _ACEOF
15065
15066    fi
15067 fi
15068
15069 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15070           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15071 then
15072    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15073 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15074    cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081  #include <sys/bitypes.h>
15082 int
15083 main ()
15084 {
15085  int64_t a; u_int64_t b;
15086        a = b = 1;
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093   (eval $ac_compile) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } &&
15097          { ac_try='test -s conftest.$ac_objext'
15098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099   (eval $ac_try) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103    cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_U_INT64_T 1
15105 _ACEOF
15106
15107        cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_INT64_T 1
15109 _ACEOF
15110
15111        echo "$as_me:$LINENO: result: yes" >&5
15112 echo "${ECHO_T}yes" >&6
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117  echo "$as_me:$LINENO: result: no" >&5
15118 echo "${ECHO_T}no" >&6
15119
15120 fi
15121 rm -f conftest.$ac_objext conftest.$ac_ext
15122 fi
15123
15124 if (test -z "$have_uintxx_t" && \
15125           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15126 then
15127    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15128 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15129    cat >conftest.$ac_ext <<_ACEOF
15130 #line $LINENO "configure"
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136  #include <sys/bitypes.h>
15137 int
15138 main ()
15139 {
15140  uint8_t a; uint16_t b;
15141           uint32_t c; a = b = c = 1;
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148   (eval $ac_compile) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } &&
15152          { ac_try='test -s conftest.$ac_objext'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158    cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_UINTXX_T 1
15160 _ACEOF
15161
15162        echo "$as_me:$LINENO: result: yes" >&5
15163 echo "${ECHO_T}yes" >&6
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168  echo "$as_me:$LINENO: result: no" >&5
15169 echo "${ECHO_T}no" >&6
15170
15171 fi
15172 rm -f conftest.$ac_objext conftest.$ac_ext
15173
15174 fi
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192 for ac_func in \
15193         fork \
15194         getcwd \
15195         gethostname \
15196         getpid \
15197         gettimeofday \
15198         setpgid \
15199         setpgrp \
15200         setsid \
15201         signal \
15202         strerror \
15203         strncmp \
15204         strncpy \
15205         vfprintf \
15206
15207 do
15208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15209 echo "$as_me:$LINENO: checking for $ac_func" >&5
15210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15211 if eval "test \"\${$as_ac_var+set}\" = set"; then
15212   echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214   cat >conftest.$ac_ext <<_ACEOF
15215 #line $LINENO "configure"
15216 /* confdefs.h.  */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h.  */
15221 /* System header to define __stub macros and hopefully few prototypes,
15222     which can conflict with char $ac_func (); below.
15223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15224     <limits.h> exists even on freestanding compilers.  */
15225 #ifdef __STDC__
15226 # include <limits.h>
15227 #else
15228 # include <assert.h>
15229 #endif
15230 /* Override any gcc2 internal prototype to avoid an error.  */
15231 #ifdef __cplusplus
15232 extern "C"
15233 {
15234 #endif
15235 /* We use char because int might match the return type of a gcc2
15236    builtin and then its argument prototype would still apply.  */
15237 char $ac_func ();
15238 /* The GNU C library defines this for functions which it implements
15239     to always fail with ENOSYS.  Some functions are actually named
15240     something starting with __ and the normal name is an alias.  */
15241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15242 choke me
15243 #else
15244 char (*f) () = $ac_func;
15245 #endif
15246 #ifdef __cplusplus
15247 }
15248 #endif
15249
15250 int
15251 main ()
15252 {
15253 return f != $ac_func;
15254   ;
15255   return 0;
15256 }
15257 _ACEOF
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260   (eval $ac_link) 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); } &&
15264          { ac_try='test -s conftest$ac_exeext'
15265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266   (eval $ac_try) 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; }; then
15270   eval "$as_ac_var=yes"
15271 else
15272   echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 eval "$as_ac_var=no"
15276 fi
15277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15278 fi
15279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15281 if test `eval echo '${'$as_ac_var'}'` = yes; then
15282   cat >>confdefs.h <<_ACEOF
15283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15284 _ACEOF
15285
15286 else
15287   echo 'configure: cannot find needed function.'; exit 1
15288
15289 fi
15290 done
15291
15292
15293
15294 for ac_func in fchdir
15295 do
15296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 echo "$as_me:$LINENO: checking for $ac_func" >&5
15298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_var+set}\" = set"; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302   cat >conftest.$ac_ext <<_ACEOF
15303 #line $LINENO "configure"
15304 /* confdefs.h.  */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h.  */
15309 /* System header to define __stub macros and hopefully few prototypes,
15310     which can conflict with char $ac_func (); below.
15311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312     <limits.h> exists even on freestanding compilers.  */
15313 #ifdef __STDC__
15314 # include <limits.h>
15315 #else
15316 # include <assert.h>
15317 #endif
15318 /* Override any gcc2 internal prototype to avoid an error.  */
15319 #ifdef __cplusplus
15320 extern "C"
15321 {
15322 #endif
15323 /* We use char because int might match the return type of a gcc2
15324    builtin and then its argument prototype would still apply.  */
15325 char $ac_func ();
15326 /* The GNU C library defines this for functions which it implements
15327     to always fail with ENOSYS.  Some functions are actually named
15328     something starting with __ and the normal name is an alias.  */
15329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15330 choke me
15331 #else
15332 char (*f) () = $ac_func;
15333 #endif
15334 #ifdef __cplusplus
15335 }
15336 #endif
15337
15338 int
15339 main ()
15340 {
15341 return f != $ac_func;
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348   (eval $ac_link) 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } &&
15352          { ac_try='test -s conftest$ac_exeext'
15353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354   (eval $ac_try) 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; }; then
15358   eval "$as_ac_var=yes"
15359 else
15360   echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 eval "$as_ac_var=no"
15364 fi
15365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15366 fi
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370   cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15372 _ACEOF
15373  cat >>confdefs.h <<\_ACEOF
15374 #define HAVE_FCHDIR 1
15375 _ACEOF
15376
15377 fi
15378 done
15379
15380
15381 for ac_func in strtoll
15382 do
15383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15384 echo "$as_me:$LINENO: checking for $ac_func" >&5
15385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_var+set}\" = set"; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   cat >conftest.$ac_ext <<_ACEOF
15390 #line $LINENO "configure"
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396 /* System header to define __stub macros and hopefully few prototypes,
15397     which can conflict with char $ac_func (); below.
15398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15399     <limits.h> exists even on freestanding compilers.  */
15400 #ifdef __STDC__
15401 # include <limits.h>
15402 #else
15403 # include <assert.h>
15404 #endif
15405 /* Override any gcc2 internal prototype to avoid an error.  */
15406 #ifdef __cplusplus
15407 extern "C"
15408 {
15409 #endif
15410 /* We use char because int might match the return type of a gcc2
15411    builtin and then its argument prototype would still apply.  */
15412 char $ac_func ();
15413 /* The GNU C library defines this for functions which it implements
15414     to always fail with ENOSYS.  Some functions are actually named
15415     something starting with __ and the normal name is an alias.  */
15416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15417 choke me
15418 #else
15419 char (*f) () = $ac_func;
15420 #endif
15421 #ifdef __cplusplus
15422 }
15423 #endif
15424
15425 int
15426 main ()
15427 {
15428 return f != $ac_func;
15429   ;
15430   return 0;
15431 }
15432 _ACEOF
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15435   (eval $ac_link) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); } &&
15439          { ac_try='test -s conftest$ac_exeext'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   eval "$as_ac_var=yes"
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 eval "$as_ac_var=no"
15451 fi
15452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15453 fi
15454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15456 if test `eval echo '${'$as_ac_var'}'` = yes; then
15457   cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15459 _ACEOF
15460  cat >>confdefs.h <<\_ACEOF
15461 #define HAVE_STRTOLL 1
15462 _ACEOF
15463
15464 fi
15465 done
15466
15467
15468
15469 for ac_func in chflags
15470 do
15471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472 echo "$as_me:$LINENO: checking for $ac_func" >&5
15473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15474 if eval "test \"\${$as_ac_var+set}\" = set"; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   cat >conftest.$ac_ext <<_ACEOF
15478 #line $LINENO "configure"
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 /* System header to define __stub macros and hopefully few prototypes,
15485     which can conflict with char $ac_func (); below.
15486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487     <limits.h> exists even on freestanding compilers.  */
15488 #ifdef __STDC__
15489 # include <limits.h>
15490 #else
15491 # include <assert.h>
15492 #endif
15493 /* Override any gcc2 internal prototype to avoid an error.  */
15494 #ifdef __cplusplus
15495 extern "C"
15496 {
15497 #endif
15498 /* We use char because int might match the return type of a gcc2
15499    builtin and then its argument prototype would still apply.  */
15500 char $ac_func ();
15501 /* The GNU C library defines this for functions which it implements
15502     to always fail with ENOSYS.  Some functions are actually named
15503     something starting with __ and the normal name is an alias.  */
15504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15505 choke me
15506 #else
15507 char (*f) () = $ac_func;
15508 #endif
15509 #ifdef __cplusplus
15510 }
15511 #endif
15512
15513 int
15514 main ()
15515 {
15516 return f != $ac_func;
15517   ;
15518   return 0;
15519 }
15520 _ACEOF
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15523   (eval $ac_link) 2>&5
15524   ac_status=$?
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } &&
15527          { ac_try='test -s conftest$ac_exeext'
15528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529   (eval $ac_try) 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; }; then
15533   eval "$as_ac_var=yes"
15534 else
15535   echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 eval "$as_ac_var=no"
15539 fi
15540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15541 fi
15542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15544 if test `eval echo '${'$as_ac_var'}'` = yes; then
15545   cat >>confdefs.h <<_ACEOF
15546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15547 _ACEOF
15548
15549 fi
15550 done
15551
15552
15553
15554
15555
15556
15557 for ac_func in snprintf vsnprintf gethostid getdomainname
15558 do
15559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15560 echo "$as_me:$LINENO: checking for $ac_func" >&5
15561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15562 if eval "test \"\${$as_ac_var+set}\" = set"; then
15563   echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565   cat >conftest.$ac_ext <<_ACEOF
15566 #line $LINENO "configure"
15567 /* confdefs.h.  */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h.  */
15572 /* System header to define __stub macros and hopefully few prototypes,
15573     which can conflict with char $ac_func (); below.
15574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15575     <limits.h> exists even on freestanding compilers.  */
15576 #ifdef __STDC__
15577 # include <limits.h>
15578 #else
15579 # include <assert.h>
15580 #endif
15581 /* Override any gcc2 internal prototype to avoid an error.  */
15582 #ifdef __cplusplus
15583 extern "C"
15584 {
15585 #endif
15586 /* We use char because int might match the return type of a gcc2
15587    builtin and then its argument prototype would still apply.  */
15588 char $ac_func ();
15589 /* The GNU C library defines this for functions which it implements
15590     to always fail with ENOSYS.  Some functions are actually named
15591     something starting with __ and the normal name is an alias.  */
15592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15593 choke me
15594 #else
15595 char (*f) () = $ac_func;
15596 #endif
15597 #ifdef __cplusplus
15598 }
15599 #endif
15600
15601 int
15602 main ()
15603 {
15604 return f != $ac_func;
15605   ;
15606   return 0;
15607 }
15608 _ACEOF
15609 rm -f conftest.$ac_objext conftest$ac_exeext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15611   (eval $ac_link) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); } &&
15615          { ac_try='test -s conftest$ac_exeext'
15616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617   (eval $ac_try) 2>&5
15618   ac_status=$?
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); }; }; then
15621   eval "$as_ac_var=yes"
15622 else
15623   echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626 eval "$as_ac_var=no"
15627 fi
15628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15629 fi
15630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15632 if test `eval echo '${'$as_ac_var'}'` = yes; then
15633   cat >>confdefs.h <<_ACEOF
15634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15635 _ACEOF
15636
15637 fi
15638 done
15639
15640
15641
15642
15643
15644
15645 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15646 do
15647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15648 echo "$as_me:$LINENO: checking for $ac_func" >&5
15649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15650 if eval "test \"\${$as_ac_var+set}\" = set"; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 else
15653   cat >conftest.$ac_ext <<_ACEOF
15654 #line $LINENO "configure"
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660 /* System header to define __stub macros and hopefully few prototypes,
15661     which can conflict with char $ac_func (); below.
15662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15663     <limits.h> exists even on freestanding compilers.  */
15664 #ifdef __STDC__
15665 # include <limits.h>
15666 #else
15667 # include <assert.h>
15668 #endif
15669 /* Override any gcc2 internal prototype to avoid an error.  */
15670 #ifdef __cplusplus
15671 extern "C"
15672 {
15673 #endif
15674 /* We use char because int might match the return type of a gcc2
15675    builtin and then its argument prototype would still apply.  */
15676 char $ac_func ();
15677 /* The GNU C library defines this for functions which it implements
15678     to always fail with ENOSYS.  Some functions are actually named
15679     something starting with __ and the normal name is an alias.  */
15680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15681 choke me
15682 #else
15683 char (*f) () = $ac_func;
15684 #endif
15685 #ifdef __cplusplus
15686 }
15687 #endif
15688
15689 int
15690 main ()
15691 {
15692 return f != $ac_func;
15693   ;
15694   return 0;
15695 }
15696 _ACEOF
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699   (eval $ac_link) 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } &&
15703          { ac_try='test -s conftest$ac_exeext'
15704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; }; then
15709   eval "$as_ac_var=yes"
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 eval "$as_ac_var=no"
15715 fi
15716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15717 fi
15718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15720 if test `eval echo '${'$as_ac_var'}'` = yes; then
15721   cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15723 _ACEOF
15724
15725 fi
15726 done
15727
15728
15729 # If resolver functions are not in libc check for -lnsl or -lresolv.
15730 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15731 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15732 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742 /* System header to define __stub macros and hopefully few prototypes,
15743     which can conflict with char gethostbyname_r (); below.
15744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15745     <limits.h> exists even on freestanding compilers.  */
15746 #ifdef __STDC__
15747 # include <limits.h>
15748 #else
15749 # include <assert.h>
15750 #endif
15751 /* Override any gcc2 internal prototype to avoid an error.  */
15752 #ifdef __cplusplus
15753 extern "C"
15754 {
15755 #endif
15756 /* We use char because int might match the return type of a gcc2
15757    builtin and then its argument prototype would still apply.  */
15758 char gethostbyname_r ();
15759 /* The GNU C library defines this for functions which it implements
15760     to always fail with ENOSYS.  Some functions are actually named
15761     something starting with __ and the normal name is an alias.  */
15762 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15763 choke me
15764 #else
15765 char (*f) () = gethostbyname_r;
15766 #endif
15767 #ifdef __cplusplus
15768 }
15769 #endif
15770
15771 int
15772 main ()
15773 {
15774 return f != gethostbyname_r;
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781   (eval $ac_link) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } &&
15785          { ac_try='test -s conftest$ac_exeext'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; }; then
15791   ac_cv_func_gethostbyname_r=yes
15792 else
15793   echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796 ac_cv_func_gethostbyname_r=no
15797 fi
15798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15799 fi
15800 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15801 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15802 if test $ac_cv_func_gethostbyname_r = yes; then
15803   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15804 echo "${ECHO_T}using libc's resolver" >&6
15805 else
15806
15807 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15808 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15809 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15810   echo $ECHO_N "(cached) $ECHO_C" >&6
15811 else
15812   ac_check_lib_save_LIBS=$LIBS
15813 LIBS="-lnsl  $LIBS"
15814 cat >conftest.$ac_ext <<_ACEOF
15815 #line $LINENO "configure"
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821
15822 /* Override any gcc2 internal prototype to avoid an error.  */
15823 #ifdef __cplusplus
15824 extern "C"
15825 #endif
15826 /* We use char because int might match the return type of a gcc2
15827    builtin and then its argument prototype would still apply.  */
15828 char gethostbyname_r ();
15829 int
15830 main ()
15831 {
15832 gethostbyname_r ();
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839   (eval $ac_link) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } &&
15843          { ac_try='test -s conftest$ac_exeext'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849   ac_cv_lib_nsl_gethostbyname_r=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_cv_lib_nsl_gethostbyname_r=no
15855 fi
15856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15858 fi
15859 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15860 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15861 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15862   cat >>confdefs.h <<_ACEOF
15863 #define HAVE_LIBNSL 1
15864 _ACEOF
15865
15866   LIBS="-lnsl $LIBS"
15867
15868 fi
15869
15870
15871 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15872 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15873 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15874   echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876   ac_check_lib_save_LIBS=$LIBS
15877 LIBS="-lresolv  $LIBS"
15878 cat >conftest.$ac_ext <<_ACEOF
15879 #line $LINENO "configure"
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885
15886 /* Override any gcc2 internal prototype to avoid an error.  */
15887 #ifdef __cplusplus
15888 extern "C"
15889 #endif
15890 /* We use char because int might match the return type of a gcc2
15891    builtin and then its argument prototype would still apply.  */
15892 char gethostbyname_r ();
15893 int
15894 main ()
15895 {
15896 gethostbyname_r ();
15897   ;
15898   return 0;
15899 }
15900 _ACEOF
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903   (eval $ac_link) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } &&
15907          { ac_try='test -s conftest$ac_exeext'
15908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909   (eval $ac_try) 2>&5
15910   ac_status=$?
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); }; }; then
15913   ac_cv_lib_resolv_gethostbyname_r=yes
15914 else
15915   echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15917
15918 ac_cv_lib_resolv_gethostbyname_r=no
15919 fi
15920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15921 LIBS=$ac_check_lib_save_LIBS
15922 fi
15923 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15924 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15925 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15926   cat >>confdefs.h <<_ACEOF
15927 #define HAVE_LIBRESOLV 1
15928 _ACEOF
15929
15930   LIBS="-lresolv $LIBS"
15931
15932 fi
15933
15934 fi
15935
15936
15937
15938 # Find where sockets are (especially for Solaris)
15939 echo "$as_me:$LINENO: checking for socket" >&5
15940 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15941 if test "${ac_cv_func_socket+set}" = set; then
15942   echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944   cat >conftest.$ac_ext <<_ACEOF
15945 #line $LINENO "configure"
15946 /* confdefs.h.  */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h.  */
15951 /* System header to define __stub macros and hopefully few prototypes,
15952     which can conflict with char socket (); below.
15953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954     <limits.h> exists even on freestanding compilers.  */
15955 #ifdef __STDC__
15956 # include <limits.h>
15957 #else
15958 # include <assert.h>
15959 #endif
15960 /* Override any gcc2 internal prototype to avoid an error.  */
15961 #ifdef __cplusplus
15962 extern "C"
15963 {
15964 #endif
15965 /* We use char because int might match the return type of a gcc2
15966    builtin and then its argument prototype would still apply.  */
15967 char socket ();
15968 /* The GNU C library defines this for functions which it implements
15969     to always fail with ENOSYS.  Some functions are actually named
15970     something starting with __ and the normal name is an alias.  */
15971 #if defined (__stub_socket) || defined (__stub___socket)
15972 choke me
15973 #else
15974 char (*f) () = socket;
15975 #endif
15976 #ifdef __cplusplus
15977 }
15978 #endif
15979
15980 int
15981 main ()
15982 {
15983 return f != socket;
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 rm -f conftest.$ac_objext conftest$ac_exeext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15990   (eval $ac_link) 2>&5
15991   ac_status=$?
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } &&
15994          { ac_try='test -s conftest$ac_exeext'
15995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996   (eval $ac_try) 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; }; then
16000   ac_cv_func_socket=yes
16001 else
16002   echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16004
16005 ac_cv_func_socket=no
16006 fi
16007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16008 fi
16009 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16010 echo "${ECHO_T}$ac_cv_func_socket" >&6
16011 if test $ac_cv_func_socket = yes; then
16012   echo "$as_me:$LINENO: result: using libc's socket" >&5
16013 echo "${ECHO_T}using libc's socket" >&6
16014 else
16015
16016 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16017 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16018 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lxnet  $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030
16031 /* Override any gcc2 internal prototype to avoid an error.  */
16032 #ifdef __cplusplus
16033 extern "C"
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036    builtin and then its argument prototype would still apply.  */
16037 char socket ();
16038 int
16039 main ()
16040 {
16041 socket ();
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048   (eval $ac_link) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } &&
16052          { ac_try='test -s conftest$ac_exeext'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058   ac_cv_lib_xnet_socket=yes
16059 else
16060   echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063 ac_cv_lib_xnet_socket=no
16064 fi
16065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16067 fi
16068 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16069 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16070 if test $ac_cv_lib_xnet_socket = yes; then
16071   cat >>confdefs.h <<_ACEOF
16072 #define HAVE_LIBXNET 1
16073 _ACEOF
16074
16075   LIBS="-lxnet $LIBS"
16076
16077 fi
16078
16079
16080 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16081 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16082 if test "${ac_cv_lib_socket_socket+set}" = set; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085   ac_check_lib_save_LIBS=$LIBS
16086 LIBS="-lsocket  $LIBS"
16087 cat >conftest.$ac_ext <<_ACEOF
16088 #line $LINENO "configure"
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094
16095 /* Override any gcc2 internal prototype to avoid an error.  */
16096 #ifdef __cplusplus
16097 extern "C"
16098 #endif
16099 /* We use char because int might match the return type of a gcc2
16100    builtin and then its argument prototype would still apply.  */
16101 char socket ();
16102 int
16103 main ()
16104 {
16105 socket ();
16106   ;
16107   return 0;
16108 }
16109 _ACEOF
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112   (eval $ac_link) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); } &&
16116          { ac_try='test -s conftest$ac_exeext'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; }; then
16122   ac_cv_lib_socket_socket=yes
16123 else
16124   echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16126
16127 ac_cv_lib_socket_socket=no
16128 fi
16129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16131 fi
16132 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16133 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16134 if test $ac_cv_lib_socket_socket = yes; then
16135   cat >>confdefs.h <<_ACEOF
16136 #define HAVE_LIBSOCKET 1
16137 _ACEOF
16138
16139   LIBS="-lsocket $LIBS"
16140
16141 fi
16142
16143
16144 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16145 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16146 if test "${ac_cv_lib_inet_socket+set}" = set; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149   ac_check_lib_save_LIBS=$LIBS
16150 LIBS="-linet  $LIBS"
16151 cat >conftest.$ac_ext <<_ACEOF
16152 #line $LINENO "configure"
16153 /* confdefs.h.  */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h.  */
16158
16159 /* Override any gcc2 internal prototype to avoid an error.  */
16160 #ifdef __cplusplus
16161 extern "C"
16162 #endif
16163 /* We use char because int might match the return type of a gcc2
16164    builtin and then its argument prototype would still apply.  */
16165 char socket ();
16166 int
16167 main ()
16168 {
16169 socket ();
16170   ;
16171   return 0;
16172 }
16173 _ACEOF
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176   (eval $ac_link) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -s conftest$ac_exeext'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; }; then
16186   ac_cv_lib_inet_socket=yes
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 ac_cv_lib_inet_socket=no
16192 fi
16193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16194 LIBS=$ac_check_lib_save_LIBS
16195 fi
16196 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16197 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16198 if test $ac_cv_lib_inet_socket = yes; then
16199   cat >>confdefs.h <<_ACEOF
16200 #define HAVE_LIBINET 1
16201 _ACEOF
16202
16203   LIBS="-linet $LIBS"
16204
16205 fi
16206
16207 fi
16208
16209
16210
16211 for ac_func in inet_pton
16212 do
16213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16214 echo "$as_me:$LINENO: checking for $ac_func" >&5
16215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16216 if eval "test \"\${$as_ac_var+set}\" = set"; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 #line $LINENO "configure"
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 /* System header to define __stub macros and hopefully few prototypes,
16227     which can conflict with char $ac_func (); below.
16228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16229     <limits.h> exists even on freestanding compilers.  */
16230 #ifdef __STDC__
16231 # include <limits.h>
16232 #else
16233 # include <assert.h>
16234 #endif
16235 /* Override any gcc2 internal prototype to avoid an error.  */
16236 #ifdef __cplusplus
16237 extern "C"
16238 {
16239 #endif
16240 /* We use char because int might match the return type of a gcc2
16241    builtin and then its argument prototype would still apply.  */
16242 char $ac_func ();
16243 /* The GNU C library defines this for functions which it implements
16244     to always fail with ENOSYS.  Some functions are actually named
16245     something starting with __ and the normal name is an alias.  */
16246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16247 choke me
16248 #else
16249 char (*f) () = $ac_func;
16250 #endif
16251 #ifdef __cplusplus
16252 }
16253 #endif
16254
16255 int
16256 main ()
16257 {
16258 return f != $ac_func;
16259   ;
16260   return 0;
16261 }
16262 _ACEOF
16263 rm -f conftest.$ac_objext conftest$ac_exeext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265   (eval $ac_link) 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); } &&
16269          { ac_try='test -s conftest$ac_exeext'
16270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271   (eval $ac_try) 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   eval "$as_ac_var=yes"
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 eval "$as_ac_var=no"
16281 fi
16282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16283 fi
16284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16286 if test `eval echo '${'$as_ac_var'}'` = yes; then
16287   cat >>confdefs.h <<_ACEOF
16288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16289 _ACEOF
16290  cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_INET_PTON 1
16292 _ACEOF
16293
16294 fi
16295 done
16296
16297
16298 for ac_func in inet_ntop
16299 do
16300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16301 echo "$as_me:$LINENO: checking for $ac_func" >&5
16302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_var+set}\" = set"; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   cat >conftest.$ac_ext <<_ACEOF
16307 #line $LINENO "configure"
16308 /* confdefs.h.  */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h.  */
16313 /* System header to define __stub macros and hopefully few prototypes,
16314     which can conflict with char $ac_func (); below.
16315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16316     <limits.h> exists even on freestanding compilers.  */
16317 #ifdef __STDC__
16318 # include <limits.h>
16319 #else
16320 # include <assert.h>
16321 #endif
16322 /* Override any gcc2 internal prototype to avoid an error.  */
16323 #ifdef __cplusplus
16324 extern "C"
16325 {
16326 #endif
16327 /* We use char because int might match the return type of a gcc2
16328    builtin and then its argument prototype would still apply.  */
16329 char $ac_func ();
16330 /* The GNU C library defines this for functions which it implements
16331     to always fail with ENOSYS.  Some functions are actually named
16332     something starting with __ and the normal name is an alias.  */
16333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16334 choke me
16335 #else
16336 char (*f) () = $ac_func;
16337 #endif
16338 #ifdef __cplusplus
16339 }
16340 #endif
16341
16342 int
16343 main ()
16344 {
16345 return f != $ac_func;
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16352   (eval $ac_link) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); } &&
16356          { ac_try='test -s conftest$ac_exeext'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; }; then
16362   eval "$as_ac_var=yes"
16363 else
16364   echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16366
16367 eval "$as_ac_var=no"
16368 fi
16369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16370 fi
16371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16373 if test `eval echo '${'$as_ac_var'}'` = yes; then
16374   cat >>confdefs.h <<_ACEOF
16375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16376 _ACEOF
16377  cat >>confdefs.h <<\_ACEOF
16378 #define HAVE_INET_NTOP 1
16379 _ACEOF
16380
16381 fi
16382 done
16383
16384
16385 for ac_func in gethostbyname2
16386 do
16387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16388 echo "$as_me:$LINENO: checking for $ac_func" >&5
16389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16390 if eval "test \"\${$as_ac_var+set}\" = set"; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   cat >conftest.$ac_ext <<_ACEOF
16394 #line $LINENO "configure"
16395 /* confdefs.h.  */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h.  */
16400 /* System header to define __stub macros and hopefully few prototypes,
16401     which can conflict with char $ac_func (); below.
16402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16403     <limits.h> exists even on freestanding compilers.  */
16404 #ifdef __STDC__
16405 # include <limits.h>
16406 #else
16407 # include <assert.h>
16408 #endif
16409 /* Override any gcc2 internal prototype to avoid an error.  */
16410 #ifdef __cplusplus
16411 extern "C"
16412 {
16413 #endif
16414 /* We use char because int might match the return type of a gcc2
16415    builtin and then its argument prototype would still apply.  */
16416 char $ac_func ();
16417 /* The GNU C library defines this for functions which it implements
16418     to always fail with ENOSYS.  Some functions are actually named
16419     something starting with __ and the normal name is an alias.  */
16420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16421 choke me
16422 #else
16423 char (*f) () = $ac_func;
16424 #endif
16425 #ifdef __cplusplus
16426 }
16427 #endif
16428
16429 int
16430 main ()
16431 {
16432 return f != $ac_func;
16433   ;
16434   return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439   (eval $ac_link) 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); } &&
16443          { ac_try='test -s conftest$ac_exeext'
16444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445   (eval $ac_try) 2>&5
16446   ac_status=$?
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); }; }; then
16449   eval "$as_ac_var=yes"
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454 eval "$as_ac_var=no"
16455 fi
16456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16457 fi
16458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461   cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 _ACEOF
16464  cat >>confdefs.h <<\_ACEOF
16465 #define HAVE_GETHOSTBYNAME2 1
16466 _ACEOF
16467
16468 fi
16469 done
16470
16471
16472 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16473 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16474 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   cat >conftest.$ac_ext <<_ACEOF
16478 #line $LINENO "configure"
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484 #include <sys/socket.h>
16485 int
16486 main ()
16487 {
16488 struct sockaddr s; s.sa_len;
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16495   (eval $ac_compile) 2>&5
16496   ac_status=$?
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } &&
16499          { ac_try='test -s conftest.$ac_objext'
16500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501   (eval $ac_try) 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); }; }; then
16505   ac_cv_struct_sockaddr_sa_len=yes
16506 else
16507   echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510 ac_cv_struct_sockaddr_sa_len=no
16511 fi
16512 rm -f conftest.$ac_objext conftest.$ac_ext
16513 fi
16514 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16515 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16516
16517  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16518
16519 cat >>confdefs.h <<\_ACEOF
16520 #define HAVE_SA_LEN 1
16521 _ACEOF
16522
16523  fi
16524
16525
16526 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16527 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16528 if test "${ac_cv_ipv6_support+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   cat >conftest.$ac_ext <<_ACEOF
16532 #line $LINENO "configure"
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538  #include <sys/types.h>
16539 #include <sys/socket.h>
16540 #include <netinet/in.h>
16541 int
16542 main ()
16543 {
16544 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16545  0;
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552   (eval $ac_link) 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } &&
16556          { ac_try='test -s conftest$ac_exeext'
16557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558   (eval $ac_try) 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; }; then
16562   ac_cv_ipv6_support=yes
16563 else
16564   echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567 ac_cv_ipv6_support=no
16568 fi
16569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16570 fi
16571 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16572 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16573
16574 if test "$ac_cv_ipv6_support" = yes; then
16575
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_IPV6 1
16578 _ACEOF
16579
16580 fi
16581
16582
16583
16584
16585 for ac_func in strftime
16586 do
16587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16588 echo "$as_me:$LINENO: checking for $ac_func" >&5
16589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16590 if eval "test \"\${$as_ac_var+set}\" = set"; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593   cat >conftest.$ac_ext <<_ACEOF
16594 #line $LINENO "configure"
16595 /* confdefs.h.  */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h.  */
16600 /* System header to define __stub macros and hopefully few prototypes,
16601     which can conflict with char $ac_func (); below.
16602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16603     <limits.h> exists even on freestanding compilers.  */
16604 #ifdef __STDC__
16605 # include <limits.h>
16606 #else
16607 # include <assert.h>
16608 #endif
16609 /* Override any gcc2 internal prototype to avoid an error.  */
16610 #ifdef __cplusplus
16611 extern "C"
16612 {
16613 #endif
16614 /* We use char because int might match the return type of a gcc2
16615    builtin and then its argument prototype would still apply.  */
16616 char $ac_func ();
16617 /* The GNU C library defines this for functions which it implements
16618     to always fail with ENOSYS.  Some functions are actually named
16619     something starting with __ and the normal name is an alias.  */
16620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16621 choke me
16622 #else
16623 char (*f) () = $ac_func;
16624 #endif
16625 #ifdef __cplusplus
16626 }
16627 #endif
16628
16629 int
16630 main ()
16631 {
16632 return f != $ac_func;
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16639   (eval $ac_link) 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); } &&
16643          { ac_try='test -s conftest$ac_exeext'
16644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645   (eval $ac_try) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   eval "$as_ac_var=yes"
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 eval "$as_ac_var=no"
16655 fi
16656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16657 fi
16658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16660 if test `eval echo '${'$as_ac_var'}'` = yes; then
16661   cat >>confdefs.h <<_ACEOF
16662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16663 _ACEOF
16664
16665 else
16666   # strftime is in -lintl on SCO UNIX.
16667 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16668 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16669 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   ac_check_lib_save_LIBS=$LIBS
16673 LIBS="-lintl  $LIBS"
16674 cat >conftest.$ac_ext <<_ACEOF
16675 #line $LINENO "configure"
16676 /* confdefs.h.  */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h.  */
16681
16682 /* Override any gcc2 internal prototype to avoid an error.  */
16683 #ifdef __cplusplus
16684 extern "C"
16685 #endif
16686 /* We use char because int might match the return type of a gcc2
16687    builtin and then its argument prototype would still apply.  */
16688 char strftime ();
16689 int
16690 main ()
16691 {
16692 strftime ();
16693   ;
16694   return 0;
16695 }
16696 _ACEOF
16697 rm -f conftest.$ac_objext conftest$ac_exeext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16699   (eval $ac_link) 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); } &&
16703          { ac_try='test -s conftest$ac_exeext'
16704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705   (eval $ac_try) 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; }; then
16709   ac_cv_lib_intl_strftime=yes
16710 else
16711   echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 ac_cv_lib_intl_strftime=no
16715 fi
16716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16717 LIBS=$ac_check_lib_save_LIBS
16718 fi
16719 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16720 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16721 if test $ac_cv_lib_intl_strftime = yes; then
16722   cat >>confdefs.h <<\_ACEOF
16723 #define HAVE_STRFTIME 1
16724 _ACEOF
16725
16726 LIBS="-lintl $LIBS"
16727 fi
16728
16729 fi
16730 done
16731
16732
16733 for ac_func in vprintf
16734 do
16735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16736 echo "$as_me:$LINENO: checking for $ac_func" >&5
16737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16738 if eval "test \"\${$as_ac_var+set}\" = set"; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   cat >conftest.$ac_ext <<_ACEOF
16742 #line $LINENO "configure"
16743 /* confdefs.h.  */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h.  */
16748 /* System header to define __stub macros and hopefully few prototypes,
16749     which can conflict with char $ac_func (); below.
16750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16751     <limits.h> exists even on freestanding compilers.  */
16752 #ifdef __STDC__
16753 # include <limits.h>
16754 #else
16755 # include <assert.h>
16756 #endif
16757 /* Override any gcc2 internal prototype to avoid an error.  */
16758 #ifdef __cplusplus
16759 extern "C"
16760 {
16761 #endif
16762 /* We use char because int might match the return type of a gcc2
16763    builtin and then its argument prototype would still apply.  */
16764 char $ac_func ();
16765 /* The GNU C library defines this for functions which it implements
16766     to always fail with ENOSYS.  Some functions are actually named
16767     something starting with __ and the normal name is an alias.  */
16768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16769 choke me
16770 #else
16771 char (*f) () = $ac_func;
16772 #endif
16773 #ifdef __cplusplus
16774 }
16775 #endif
16776
16777 int
16778 main ()
16779 {
16780 return f != $ac_func;
16781   ;
16782   return 0;
16783 }
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787   (eval $ac_link) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } &&
16791          { ac_try='test -s conftest$ac_exeext'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797   eval "$as_ac_var=yes"
16798 else
16799   echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 eval "$as_ac_var=no"
16803 fi
16804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16805 fi
16806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16808 if test `eval echo '${'$as_ac_var'}'` = yes; then
16809   cat >>confdefs.h <<_ACEOF
16810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 _ACEOF
16812
16813 echo "$as_me:$LINENO: checking for _doprnt" >&5
16814 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16815 if test "${ac_cv_func__doprnt+set}" = set; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   cat >conftest.$ac_ext <<_ACEOF
16819 #line $LINENO "configure"
16820 /* confdefs.h.  */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h.  */
16825 /* System header to define __stub macros and hopefully few prototypes,
16826     which can conflict with char _doprnt (); below.
16827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16828     <limits.h> exists even on freestanding compilers.  */
16829 #ifdef __STDC__
16830 # include <limits.h>
16831 #else
16832 # include <assert.h>
16833 #endif
16834 /* Override any gcc2 internal prototype to avoid an error.  */
16835 #ifdef __cplusplus
16836 extern "C"
16837 {
16838 #endif
16839 /* We use char because int might match the return type of a gcc2
16840    builtin and then its argument prototype would still apply.  */
16841 char _doprnt ();
16842 /* The GNU C library defines this for functions which it implements
16843     to always fail with ENOSYS.  Some functions are actually named
16844     something starting with __ and the normal name is an alias.  */
16845 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16846 choke me
16847 #else
16848 char (*f) () = _doprnt;
16849 #endif
16850 #ifdef __cplusplus
16851 }
16852 #endif
16853
16854 int
16855 main ()
16856 {
16857 return f != _doprnt;
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext conftest$ac_exeext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864   (eval $ac_link) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -s conftest$ac_exeext'
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_cv_func__doprnt=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_cv_func__doprnt=no
16880 fi
16881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882 fi
16883 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16884 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16885 if test $ac_cv_func__doprnt = yes; then
16886
16887 cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_DOPRNT 1
16889 _ACEOF
16890
16891 fi
16892
16893 fi
16894 done
16895
16896
16897 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16898 # for constant arguments.  Useless!
16899 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16900 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16901 if test "${ac_cv_working_alloca_h+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   cat >conftest.$ac_ext <<_ACEOF
16905 #line $LINENO "configure"
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911 #include <alloca.h>
16912 int
16913 main ()
16914 {
16915 char *p = (char *) alloca (2 * sizeof (int));
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922   (eval $ac_link) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } &&
16926          { ac_try='test -s conftest$ac_exeext'
16927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928   (eval $ac_try) 2>&5
16929   ac_status=$?
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); }; }; then
16932   ac_cv_working_alloca_h=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_cv_working_alloca_h=no
16938 fi
16939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16940 fi
16941 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16942 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16943 if test $ac_cv_working_alloca_h = yes; then
16944
16945 cat >>confdefs.h <<\_ACEOF
16946 #define HAVE_ALLOCA_H 1
16947 _ACEOF
16948
16949 fi
16950
16951 echo "$as_me:$LINENO: checking for alloca" >&5
16952 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16953 if test "${ac_cv_func_alloca_works+set}" = set; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956   cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 #ifdef __GNUC__
16964 # define alloca __builtin_alloca
16965 #else
16966 # ifdef _MSC_VER
16967 #  include <malloc.h>
16968 #  define alloca _alloca
16969 # else
16970 #  if HAVE_ALLOCA_H
16971 #   include <alloca.h>
16972 #  else
16973 #   ifdef _AIX
16974  #pragma alloca
16975 #   else
16976 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16977 char *alloca ();
16978 #    endif
16979 #   endif
16980 #  endif
16981 # endif
16982 #endif
16983
16984 int
16985 main ()
16986 {
16987 char *p = (char *) alloca (1);
16988   ;
16989   return 0;
16990 }
16991 _ACEOF
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994   (eval $ac_link) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } &&
16998          { ac_try='test -s conftest$ac_exeext'
16999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000   (eval $ac_try) 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }; }; then
17004   ac_cv_func_alloca_works=yes
17005 else
17006   echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ac_cv_func_alloca_works=no
17010 fi
17011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17012 fi
17013 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17014 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17015
17016 if test $ac_cv_func_alloca_works = yes; then
17017
17018 cat >>confdefs.h <<\_ACEOF
17019 #define HAVE_ALLOCA 1
17020 _ACEOF
17021
17022 else
17023   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17024 # that cause trouble.  Some versions do not even contain alloca or
17025 # contain a buggy version.  If you still want to use their alloca,
17026 # use ar to extract alloca.o from them instead of compiling alloca.c.
17027
17028 ALLOCA=alloca.$ac_objext
17029
17030 cat >>confdefs.h <<\_ACEOF
17031 #define C_ALLOCA 1
17032 _ACEOF
17033
17034
17035 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17036 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17037 if test "${ac_cv_os_cray+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040   cat >conftest.$ac_ext <<_ACEOF
17041 #line $LINENO "configure"
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047 #if defined(CRAY) && ! defined(CRAY2)
17048 webecray
17049 #else
17050 wenotbecray
17051 #endif
17052
17053 _ACEOF
17054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17055   $EGREP "webecray" >/dev/null 2>&1; then
17056   ac_cv_os_cray=yes
17057 else
17058   ac_cv_os_cray=no
17059 fi
17060 rm -f conftest*
17061
17062 fi
17063 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17064 echo "${ECHO_T}$ac_cv_os_cray" >&6
17065 if test $ac_cv_os_cray = yes; then
17066   for ac_func in _getb67 GETB67 getb67; do
17067     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068 echo "$as_me:$LINENO: checking for $ac_func" >&5
17069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17070 if eval "test \"\${$as_ac_var+set}\" = set"; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   cat >conftest.$ac_ext <<_ACEOF
17074 #line $LINENO "configure"
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 /* System header to define __stub macros and hopefully few prototypes,
17081     which can conflict with char $ac_func (); below.
17082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083     <limits.h> exists even on freestanding compilers.  */
17084 #ifdef __STDC__
17085 # include <limits.h>
17086 #else
17087 # include <assert.h>
17088 #endif
17089 /* Override any gcc2 internal prototype to avoid an error.  */
17090 #ifdef __cplusplus
17091 extern "C"
17092 {
17093 #endif
17094 /* We use char because int might match the return type of a gcc2
17095    builtin and then its argument prototype would still apply.  */
17096 char $ac_func ();
17097 /* The GNU C library defines this for functions which it implements
17098     to always fail with ENOSYS.  Some functions are actually named
17099     something starting with __ and the normal name is an alias.  */
17100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17101 choke me
17102 #else
17103 char (*f) () = $ac_func;
17104 #endif
17105 #ifdef __cplusplus
17106 }
17107 #endif
17108
17109 int
17110 main ()
17111 {
17112 return f != $ac_func;
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119   (eval $ac_link) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } &&
17123          { ac_try='test -s conftest$ac_exeext'
17124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125   (eval $ac_try) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; }; then
17129   eval "$as_ac_var=yes"
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 eval "$as_ac_var=no"
17135 fi
17136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17137 fi
17138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17140 if test `eval echo '${'$as_ac_var'}'` = yes; then
17141
17142 cat >>confdefs.h <<_ACEOF
17143 #define CRAY_STACKSEG_END $ac_func
17144 _ACEOF
17145
17146     break
17147 fi
17148
17149   done
17150 fi
17151
17152 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17153 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17154 if test "${ac_cv_c_stack_direction+set}" = set; then
17155   echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157   if test "$cross_compiling" = yes; then
17158   ac_cv_c_stack_direction=0
17159 else
17160   cat >conftest.$ac_ext <<_ACEOF
17161 #line $LINENO "configure"
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167 int
17168 find_stack_direction ()
17169 {
17170   static char *addr = 0;
17171   auto char dummy;
17172   if (addr == 0)
17173     {
17174       addr = &dummy;
17175       return find_stack_direction ();
17176     }
17177   else
17178     return (&dummy > addr) ? 1 : -1;
17179 }
17180
17181 int
17182 main ()
17183 {
17184   exit (find_stack_direction () < 0);
17185 }
17186 _ACEOF
17187 rm -f conftest$ac_exeext
17188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189   (eval $ac_link) 2>&5
17190   ac_status=$?
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194   (eval $ac_try) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); }; }; then
17198   ac_cv_c_stack_direction=1
17199 else
17200   echo "$as_me: program exited with status $ac_status" >&5
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204 ( exit $ac_status )
17205 ac_cv_c_stack_direction=-1
17206 fi
17207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17208 fi
17209 fi
17210 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17211 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17212
17213 cat >>confdefs.h <<_ACEOF
17214 #define STACK_DIRECTION $ac_cv_c_stack_direction
17215 _ACEOF
17216
17217
17218 fi
17219
17220 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17221 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17222 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17223 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-lsun  $LIBS"
17228 cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235
17236 /* Override any gcc2 internal prototype to avoid an error.  */
17237 #ifdef __cplusplus
17238 extern "C"
17239 #endif
17240 /* We use char because int might match the return type of a gcc2
17241    builtin and then its argument prototype would still apply.  */
17242 char getmntent ();
17243 int
17244 main ()
17245 {
17246 getmntent ();
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253   (eval $ac_link) 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); } &&
17257          { ac_try='test -s conftest$ac_exeext'
17258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259   (eval $ac_try) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; }; then
17263   ac_cv_lib_sun_getmntent=yes
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 ac_cv_lib_sun_getmntent=no
17269 fi
17270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17272 fi
17273 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17274 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17275 if test $ac_cv_lib_sun_getmntent = yes; then
17276   LIBS="-lsun $LIBS"
17277 else
17278   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17279 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17280 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   ac_check_lib_save_LIBS=$LIBS
17284 LIBS="-lseq  $LIBS"
17285 cat >conftest.$ac_ext <<_ACEOF
17286 #line $LINENO "configure"
17287 /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292
17293 /* Override any gcc2 internal prototype to avoid an error.  */
17294 #ifdef __cplusplus
17295 extern "C"
17296 #endif
17297 /* We use char because int might match the return type of a gcc2
17298    builtin and then its argument prototype would still apply.  */
17299 char getmntent ();
17300 int
17301 main ()
17302 {
17303 getmntent ();
17304   ;
17305   return 0;
17306 }
17307 _ACEOF
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310   (eval $ac_link) 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } &&
17314          { ac_try='test -s conftest$ac_exeext'
17315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316   (eval $ac_try) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); }; }; then
17320   ac_cv_lib_seq_getmntent=yes
17321 else
17322   echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17324
17325 ac_cv_lib_seq_getmntent=no
17326 fi
17327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17328 LIBS=$ac_check_lib_save_LIBS
17329 fi
17330 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17331 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17332 if test $ac_cv_lib_seq_getmntent = yes; then
17333   LIBS="-lseq $LIBS"
17334 else
17335   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17336 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17337 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   ac_check_lib_save_LIBS=$LIBS
17341 LIBS="-lgen  $LIBS"
17342 cat >conftest.$ac_ext <<_ACEOF
17343 #line $LINENO "configure"
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349
17350 /* Override any gcc2 internal prototype to avoid an error.  */
17351 #ifdef __cplusplus
17352 extern "C"
17353 #endif
17354 /* We use char because int might match the return type of a gcc2
17355    builtin and then its argument prototype would still apply.  */
17356 char getmntent ();
17357 int
17358 main ()
17359 {
17360 getmntent ();
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17367   (eval $ac_link) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); } &&
17371          { ac_try='test -s conftest$ac_exeext'
17372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373   (eval $ac_try) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; }; then
17377   ac_cv_lib_gen_getmntent=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 ac_cv_lib_gen_getmntent=no
17383 fi
17384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17385 LIBS=$ac_check_lib_save_LIBS
17386 fi
17387 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17388 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17389 if test $ac_cv_lib_gen_getmntent = yes; then
17390   LIBS="-lgen $LIBS"
17391 fi
17392
17393 fi
17394
17395 fi
17396
17397
17398 for ac_func in getmntent
17399 do
17400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17401 echo "$as_me:$LINENO: checking for $ac_func" >&5
17402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17403 if eval "test \"\${$as_ac_var+set}\" = set"; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406   cat >conftest.$ac_ext <<_ACEOF
17407 #line $LINENO "configure"
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413 /* System header to define __stub macros and hopefully few prototypes,
17414     which can conflict with char $ac_func (); below.
17415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17416     <limits.h> exists even on freestanding compilers.  */
17417 #ifdef __STDC__
17418 # include <limits.h>
17419 #else
17420 # include <assert.h>
17421 #endif
17422 /* Override any gcc2 internal prototype to avoid an error.  */
17423 #ifdef __cplusplus
17424 extern "C"
17425 {
17426 #endif
17427 /* We use char because int might match the return type of a gcc2
17428    builtin and then its argument prototype would still apply.  */
17429 char $ac_func ();
17430 /* The GNU C library defines this for functions which it implements
17431     to always fail with ENOSYS.  Some functions are actually named
17432     something starting with __ and the normal name is an alias.  */
17433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17434 choke me
17435 #else
17436 char (*f) () = $ac_func;
17437 #endif
17438 #ifdef __cplusplus
17439 }
17440 #endif
17441
17442 int
17443 main ()
17444 {
17445 return f != $ac_func;
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 rm -f conftest.$ac_objext conftest$ac_exeext
17451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17452   (eval $ac_link) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } &&
17456          { ac_try='test -s conftest$ac_exeext'
17457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458   (eval $ac_try) 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; }; then
17462   eval "$as_ac_var=yes"
17463 else
17464   echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17466
17467 eval "$as_ac_var=no"
17468 fi
17469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17470 fi
17471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17473 if test `eval echo '${'$as_ac_var'}'` = yes; then
17474   cat >>confdefs.h <<_ACEOF
17475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17476 _ACEOF
17477
17478 fi
17479 done
17480
17481
17482 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17483 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17484 if test "${ac_cv_func_closedir_void+set}" = set; then
17485   echo $ECHO_N "(cached) $ECHO_C" >&6
17486 else
17487   if test "$cross_compiling" = yes; then
17488   ac_cv_func_closedir_void=yes
17489 else
17490   cat >conftest.$ac_ext <<_ACEOF
17491 #line $LINENO "configure"
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497 $ac_includes_default
17498 #include <$ac_header_dirent>
17499 #ifndef __cplusplus
17500 int closedir ();
17501 #endif
17502
17503 int
17504 main ()
17505 {
17506 exit (closedir (opendir (".")) != 0);
17507   ;
17508   return 0;
17509 }
17510 _ACEOF
17511 rm -f conftest$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513   (eval $ac_link) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518   (eval $ac_try) 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; }; then
17522   ac_cv_func_closedir_void=no
17523 else
17524   echo "$as_me: program exited with status $ac_status" >&5
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17527
17528 ( exit $ac_status )
17529 ac_cv_func_closedir_void=yes
17530 fi
17531 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17532 fi
17533 fi
17534 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17535 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17536 if test $ac_cv_func_closedir_void = yes; then
17537
17538 cat >>confdefs.h <<\_ACEOF
17539 #define CLOSEDIR_VOID 1
17540 _ACEOF
17541
17542 fi
17543
17544 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17545 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17546 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549   if test "$cross_compiling" = yes; then
17550   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17551 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17552    { (exit 1); exit 1; }; }
17553 else
17554   cat >conftest.$ac_ext <<_ACEOF
17555 #line $LINENO "configure"
17556 /* confdefs.h.  */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h.  */
17561 #if HAVE_UNISTD_H
17562 # include <unistd.h>
17563 #endif
17564
17565 int
17566 main ()
17567 {
17568 /* If this system has a BSD-style setpgrp which takes arguments,
17569   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17570   exit successfully. */
17571   exit (setpgrp (1,1) == -1 ? 0 : 1);
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest$ac_exeext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578   (eval $ac_link) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583   (eval $ac_try) 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; }; then
17587   ac_cv_func_setpgrp_void=no
17588 else
17589   echo "$as_me: program exited with status $ac_status" >&5
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593 ( exit $ac_status )
17594 ac_cv_func_setpgrp_void=yes
17595 fi
17596 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17597 fi
17598 fi
17599 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17600 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17601 if test $ac_cv_func_setpgrp_void = yes; then
17602
17603 cat >>confdefs.h <<\_ACEOF
17604 #define SETPGRP_VOID 1
17605 _ACEOF
17606
17607 fi
17608                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17609 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17610 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   # Some versions of Solaris, SCO, and the GNU C Library
17614    # have a broken or incompatible fnmatch.
17615    # So we run a test program.  If we are cross-compiling, take no chance.
17616    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17617    if test "$cross_compiling" = yes; then
17618   ac_cv_func_fnmatch_works=cross
17619 else
17620   cat >conftest.$ac_ext <<_ACEOF
17621 #line $LINENO "configure"
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627 #include <fnmatch.h>
17628 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17629 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17630
17631 int
17632 main ()
17633 {
17634 exit
17635            (!(y ("a*", "abc", 0)
17636               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17637               && y ("a\\\\bc", "abc", 0)
17638               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17639               && y ("*x", ".x", 0)
17640               && n ("*x", ".x", FNM_PERIOD)
17641               && 1));
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648   (eval $ac_link) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657   ac_cv_func_fnmatch_works=yes
17658 else
17659   echo "$as_me: program exited with status $ac_status" >&5
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ( exit $ac_status )
17664 ac_cv_func_fnmatch_works=no
17665 fi
17666 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17667 fi
17668 fi
17669 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17670 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17671 if test $ac_cv_func_fnmatch_works = yes; then
17672
17673 cat >>confdefs.h <<\_ACEOF
17674 #define HAVE_FNMATCH 1
17675 _ACEOF
17676
17677 fi
17678
17679
17680
17681
17682
17683 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17684 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17685 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_check_lib_save_LIBS=$LIBS
17689 LIBS="-lxpg4  $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17691 #line $LINENO "configure"
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697
17698 /* Override any gcc2 internal prototype to avoid an error.  */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 /* We use char because int might match the return type of a gcc2
17703    builtin and then its argument prototype would still apply.  */
17704 char setlocale ();
17705 int
17706 main ()
17707 {
17708 setlocale ();
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715   (eval $ac_link) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); } &&
17719          { ac_try='test -s conftest$ac_exeext'
17720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721   (eval $ac_try) 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; }; then
17725   ac_cv_lib_xpg4_setlocale=yes
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 ac_cv_lib_xpg4_setlocale=no
17731 fi
17732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17733 LIBS=$ac_check_lib_save_LIBS
17734 fi
17735 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17736 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17737 if test $ac_cv_lib_xpg4_setlocale = yes; then
17738   LIBS="$LIBS -lxpg4"
17739 fi
17740
17741
17742
17743
17744 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17745 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17746 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   ac_check_lib_save_LIBS=$LIBS
17750 LIBS="-lsun  $LIBS"
17751 cat >conftest.$ac_ext <<_ACEOF
17752 #line $LINENO "configure"
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758
17759 /* Override any gcc2 internal prototype to avoid an error.  */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 /* We use char because int might match the return type of a gcc2
17764    builtin and then its argument prototype would still apply.  */
17765 char getpwnam ();
17766 int
17767 main ()
17768 {
17769 getpwnam ();
17770   ;
17771   return 0;
17772 }
17773 _ACEOF
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776   (eval $ac_link) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } &&
17780          { ac_try='test -s conftest$ac_exeext'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786   ac_cv_lib_sun_getpwnam=yes
17787 else
17788   echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_cv_lib_sun_getpwnam=no
17792 fi
17793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17794 LIBS=$ac_check_lib_save_LIBS
17795 fi
17796 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17797 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17798 if test $ac_cv_lib_sun_getpwnam = yes; then
17799   cat >>confdefs.h <<_ACEOF
17800 #define HAVE_LIBSUN 1
17801 _ACEOF
17802
17803   LIBS="-lsun $LIBS"
17804
17805 fi
17806
17807
17808
17809 for ac_header in zlib.h
17810 do
17811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17813   echo "$as_me:$LINENO: checking for $ac_header" >&5
17814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17816   echo $ECHO_N "(cached) $ECHO_C" >&6
17817 fi
17818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17820 else
17821   # Is the header compilable?
17822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17825 #line $LINENO "configure"
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831 $ac_includes_default
17832 #include <$ac_header>
17833 _ACEOF
17834 rm -f conftest.$ac_objext
17835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17836   (eval $ac_compile) 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } &&
17840          { ac_try='test -s conftest.$ac_objext'
17841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842   (eval $ac_try) 2>&5
17843   ac_status=$?
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); }; }; then
17846   ac_header_compiler=yes
17847 else
17848   echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17850
17851 ac_header_compiler=no
17852 fi
17853 rm -f conftest.$ac_objext conftest.$ac_ext
17854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17855 echo "${ECHO_T}$ac_header_compiler" >&6
17856
17857 # Is the header present?
17858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17860 cat >conftest.$ac_ext <<_ACEOF
17861 #line $LINENO "configure"
17862 /* confdefs.h.  */
17863 _ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h.  */
17867 #include <$ac_header>
17868 _ACEOF
17869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } >/dev/null; then
17877   if test -s conftest.err; then
17878     ac_cpp_err=$ac_c_preproc_warn_flag
17879   else
17880     ac_cpp_err=
17881   fi
17882 else
17883   ac_cpp_err=yes
17884 fi
17885 if test -z "$ac_cpp_err"; then
17886   ac_header_preproc=yes
17887 else
17888   echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17890
17891   ac_header_preproc=no
17892 fi
17893 rm -f conftest.err conftest.$ac_ext
17894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17895 echo "${ECHO_T}$ac_header_preproc" >&6
17896
17897 # So?  What about this header?
17898 case $ac_header_compiler:$ac_header_preproc in
17899   yes:no )
17900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17904     (
17905       cat <<\_ASBOX
17906 ## ------------------------------------ ##
17907 ## Report this to bug-autoconf@gnu.org. ##
17908 ## ------------------------------------ ##
17909 _ASBOX
17910     ) |
17911       sed "s/^/$as_me: WARNING:     /" >&2
17912     ;;
17913   no:yes )
17914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17916     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17920     (
17921       cat <<\_ASBOX
17922 ## ------------------------------------ ##
17923 ## Report this to bug-autoconf@gnu.org. ##
17924 ## ------------------------------------ ##
17925 _ASBOX
17926     ) |
17927       sed "s/^/$as_me: WARNING:     /" >&2
17928     ;;
17929 esac
17930 echo "$as_me:$LINENO: checking for $ac_header" >&5
17931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17933   echo $ECHO_N "(cached) $ECHO_C" >&6
17934 else
17935   eval "$as_ac_Header=$ac_header_preproc"
17936 fi
17937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17939
17940 fi
17941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17942   cat >>confdefs.h <<_ACEOF
17943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17944 _ACEOF
17945
17946 fi
17947
17948 done
17949
17950 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17951 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17952 if test "${ac_cv_lib_z_deflate+set}" = set; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lz  $LIBS"
17957 cat >conftest.$ac_ext <<_ACEOF
17958 #line $LINENO "configure"
17959 /* confdefs.h.  */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h.  */
17964
17965 /* Override any gcc2 internal prototype to avoid an error.  */
17966 #ifdef __cplusplus
17967 extern "C"
17968 #endif
17969 /* We use char because int might match the return type of a gcc2
17970    builtin and then its argument prototype would still apply.  */
17971 char deflate ();
17972 int
17973 main ()
17974 {
17975 deflate ();
17976   ;
17977   return 0;
17978 }
17979 _ACEOF
17980 rm -f conftest.$ac_objext conftest$ac_exeext
17981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17982   (eval $ac_link) 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); } &&
17986          { ac_try='test -s conftest$ac_exeext'
17987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988   (eval $ac_try) 2>&5
17989   ac_status=$?
17990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991   (exit $ac_status); }; }; then
17992   ac_cv_lib_z_deflate=yes
17993 else
17994   echo "$as_me: failed program was:" >&5
17995 sed 's/^/| /' conftest.$ac_ext >&5
17996
17997 ac_cv_lib_z_deflate=no
17998 fi
17999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18001 fi
18002 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18003 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18004 if test $ac_cv_lib_z_deflate = yes; then
18005   FDLIBS="-lz"
18006 fi
18007
18008 have_zlib=no
18009 if test x$FDLIBS = x-lz; then
18010   cat >>confdefs.h <<\_ACEOF
18011 #define HAVE_LIBZ 1
18012 _ACEOF
18013
18014   have_zlib=yes
18015 fi
18016
18017 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18018   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18019 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18020 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18021   echo $ECHO_N "(cached) $ECHO_C" >&6
18022 fi
18023 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18024 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18025 else
18026   # Is the header compilable?
18027 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18028 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18029 cat >conftest.$ac_ext <<_ACEOF
18030 #line $LINENO "configure"
18031 /* confdefs.h.  */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h.  */
18036 $ac_includes_default
18037 #include <sys/acl.h>
18038 _ACEOF
18039 rm -f conftest.$ac_objext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18041   (eval $ac_compile) 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); } &&
18045          { ac_try='test -s conftest.$ac_objext'
18046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047   (eval $ac_try) 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); }; }; then
18051   ac_header_compiler=yes
18052 else
18053   echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18055
18056 ac_header_compiler=no
18057 fi
18058 rm -f conftest.$ac_objext conftest.$ac_ext
18059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18060 echo "${ECHO_T}$ac_header_compiler" >&6
18061
18062 # Is the header present?
18063 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18064 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18065 cat >conftest.$ac_ext <<_ACEOF
18066 #line $LINENO "configure"
18067 /* confdefs.h.  */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h.  */
18072 #include <sys/acl.h>
18073 _ACEOF
18074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18076   ac_status=$?
18077   grep -v '^ *+' conftest.er1 >conftest.err
18078   rm -f conftest.er1
18079   cat conftest.err >&5
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); } >/dev/null; then
18082   if test -s conftest.err; then
18083     ac_cpp_err=$ac_c_preproc_warn_flag
18084   else
18085     ac_cpp_err=
18086   fi
18087 else
18088   ac_cpp_err=yes
18089 fi
18090 if test -z "$ac_cpp_err"; then
18091   ac_header_preproc=yes
18092 else
18093   echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096   ac_header_preproc=no
18097 fi
18098 rm -f conftest.err conftest.$ac_ext
18099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18100 echo "${ECHO_T}$ac_header_preproc" >&6
18101
18102 # So?  What about this header?
18103 case $ac_header_compiler:$ac_header_preproc in
18104   yes:no )
18105     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18106 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18107     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18108 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18109     (
18110       cat <<\_ASBOX
18111 ## ------------------------------------ ##
18112 ## Report this to bug-autoconf@gnu.org. ##
18113 ## ------------------------------------ ##
18114 _ASBOX
18115     ) |
18116       sed "s/^/$as_me: WARNING:     /" >&2
18117     ;;
18118   no:yes )
18119     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18120 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18121     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18122 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18123     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18124 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18125     (
18126       cat <<\_ASBOX
18127 ## ------------------------------------ ##
18128 ## Report this to bug-autoconf@gnu.org. ##
18129 ## ------------------------------------ ##
18130 _ASBOX
18131     ) |
18132       sed "s/^/$as_me: WARNING:     /" >&2
18133     ;;
18134 esac
18135 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18136 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18137 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   ac_cv_header_sys_acl_h=$ac_header_preproc
18141 fi
18142 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18143 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18144
18145 fi
18146
18147
18148 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18149 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18150 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18151   echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153   ac_check_lib_save_LIBS=$LIBS
18154 LIBS="-lacl  $LIBS"
18155 cat >conftest.$ac_ext <<_ACEOF
18156 #line $LINENO "configure"
18157 /* confdefs.h.  */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h.  */
18162
18163 /* Override any gcc2 internal prototype to avoid an error.  */
18164 #ifdef __cplusplus
18165 extern "C"
18166 #endif
18167 /* We use char because int might match the return type of a gcc2
18168    builtin and then its argument prototype would still apply.  */
18169 char acl_get_file ();
18170 int
18171 main ()
18172 {
18173 acl_get_file ();
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180   (eval $ac_link) 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -s conftest$ac_exeext'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; }; then
18190   ac_cv_lib_acl_acl_get_file=yes
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195 ac_cv_lib_acl_acl_get_file=no
18196 fi
18197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18198 LIBS=$ac_check_lib_save_LIBS
18199 fi
18200 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18201 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18202 if test $ac_cv_lib_acl_acl_get_file = yes; then
18203   FDLIBS="-lacl $FDLIBS"
18204 fi
18205
18206 have_acl=no
18207 if test $ac_cv_lib_acl_acl_get_file = yes; then
18208    cat >>confdefs.h <<\_ACEOF
18209 #define HAVE_ACL 1
18210 _ACEOF
18211
18212    have_acl=yes
18213 fi
18214
18215 PTHREAD_LIB=""
18216 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18217 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18218 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18219   echo $ECHO_N "(cached) $ECHO_C" >&6
18220 else
18221   ac_check_lib_save_LIBS=$LIBS
18222 LIBS="-lpthread  $LIBS"
18223 cat >conftest.$ac_ext <<_ACEOF
18224 #line $LINENO "configure"
18225 /* confdefs.h.  */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h.  */
18230
18231 /* Override any gcc2 internal prototype to avoid an error.  */
18232 #ifdef __cplusplus
18233 extern "C"
18234 #endif
18235 /* We use char because int might match the return type of a gcc2
18236    builtin and then its argument prototype would still apply.  */
18237 char pthread_create ();
18238 int
18239 main ()
18240 {
18241 pthread_create ();
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248   (eval $ac_link) 2>&5
18249   ac_status=$?
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -s conftest$ac_exeext'
18253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254   (eval $ac_try) 2>&5
18255   ac_status=$?
18256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257   (exit $ac_status); }; }; then
18258   ac_cv_lib_pthread_pthread_create=yes
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263 ac_cv_lib_pthread_pthread_create=no
18264 fi
18265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18266 LIBS=$ac_check_lib_save_LIBS
18267 fi
18268 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18269 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18270 if test $ac_cv_lib_pthread_pthread_create = yes; then
18271   PTHREAD_LIB="-lpthread"
18272 else
18273   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18274 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18275 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-lpthreads  $LIBS"
18280 cat >conftest.$ac_ext <<_ACEOF
18281 #line $LINENO "configure"
18282 /* confdefs.h.  */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h.  */
18287
18288 /* Override any gcc2 internal prototype to avoid an error.  */
18289 #ifdef __cplusplus
18290 extern "C"
18291 #endif
18292 /* We use char because int might match the return type of a gcc2
18293    builtin and then its argument prototype would still apply.  */
18294 char pthread_create ();
18295 int
18296 main ()
18297 {
18298 pthread_create ();
18299   ;
18300   return 0;
18301 }
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305   (eval $ac_link) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); } &&
18309          { ac_try='test -s conftest$ac_exeext'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; }; then
18315   ac_cv_lib_pthreads_pthread_create=yes
18316 else
18317   echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 ac_cv_lib_pthreads_pthread_create=no
18321 fi
18322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18324 fi
18325 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18326 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18327 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18328   PTHREAD_LIB="-lpthreads"
18329 else
18330   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18331 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18332 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18333   echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335   ac_check_lib_save_LIBS=$LIBS
18336 LIBS="-lc_r  $LIBS"
18337 cat >conftest.$ac_ext <<_ACEOF
18338 #line $LINENO "configure"
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344
18345 /* Override any gcc2 internal prototype to avoid an error.  */
18346 #ifdef __cplusplus
18347 extern "C"
18348 #endif
18349 /* We use char because int might match the return type of a gcc2
18350    builtin and then its argument prototype would still apply.  */
18351 char pthread_create ();
18352 int
18353 main ()
18354 {
18355 pthread_create ();
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18362   (eval $ac_link) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } &&
18366          { ac_try='test -s conftest$ac_exeext'
18367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368   (eval $ac_try) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; }; then
18372   ac_cv_lib_c_r_pthread_create=yes
18373 else
18374   echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18376
18377 ac_cv_lib_c_r_pthread_create=no
18378 fi
18379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18380 LIBS=$ac_check_lib_save_LIBS
18381 fi
18382 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18383 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18384 if test $ac_cv_lib_c_r_pthread_create = yes; then
18385   PTHREAD_LIB="-lc_r"
18386 else
18387   echo "$as_me:$LINENO: checking for pthread_create" >&5
18388 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18389 if test "${ac_cv_func_pthread_create+set}" = set; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   cat >conftest.$ac_ext <<_ACEOF
18393 #line $LINENO "configure"
18394 /* confdefs.h.  */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h.  */
18399 /* System header to define __stub macros and hopefully few prototypes,
18400     which can conflict with char pthread_create (); below.
18401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18402     <limits.h> exists even on freestanding compilers.  */
18403 #ifdef __STDC__
18404 # include <limits.h>
18405 #else
18406 # include <assert.h>
18407 #endif
18408 /* Override any gcc2 internal prototype to avoid an error.  */
18409 #ifdef __cplusplus
18410 extern "C"
18411 {
18412 #endif
18413 /* We use char because int might match the return type of a gcc2
18414    builtin and then its argument prototype would still apply.  */
18415 char pthread_create ();
18416 /* The GNU C library defines this for functions which it implements
18417     to always fail with ENOSYS.  Some functions are actually named
18418     something starting with __ and the normal name is an alias.  */
18419 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18420 choke me
18421 #else
18422 char (*f) () = pthread_create;
18423 #endif
18424 #ifdef __cplusplus
18425 }
18426 #endif
18427
18428 int
18429 main ()
18430 {
18431 return f != pthread_create;
18432   ;
18433   return 0;
18434 }
18435 _ACEOF
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18438   (eval $ac_link) 2>&5
18439   ac_status=$?
18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441   (exit $ac_status); } &&
18442          { ac_try='test -s conftest$ac_exeext'
18443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444   (eval $ac_try) 2>&5
18445   ac_status=$?
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; }; then
18448   ac_cv_func_pthread_create=yes
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 ac_cv_func_pthread_create=no
18454 fi
18455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18456 fi
18457 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18458 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18459
18460
18461 fi
18462
18463
18464 fi
18465
18466
18467 fi
18468
18469
18470
18471 cat >>confdefs.h <<\_ACEOF
18472 #define FDLIBS 1
18473 _ACEOF
18474
18475
18476
18477 CFLAGS=${CFLAGS--O}
18478 LDFLAGS=${LDFLAGS--O}
18479 DB_LIBS="${SQL_LFLAGS}"
18480
18481 CPPFLAGS="$CPPFLAGS"
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496 OBJLIST=
18497
18498
18499 lld="lld"
18500 llu="llu"
18501
18502 WCFLAGS=
18503 WLDFLAGS=
18504
18505 #
18506 # Finally we set appropriate distribution specific
18507 #  variables and defaults
18508 #
18509 # PFILES are platform specific files
18510 PFILES="platforms/Makefile"
18511 PSCMD="ps -e"
18512 WIN32=
18513 MACOSX=
18514 hostname=`uname -n | cut -d '.' -f 1`
18515 case "$DISTNAME" in
18516 aix)
18517         DISTVER=`uname -r`
18518         PSCMD="ps -e -o pid,comm"
18519         PFILES="${PFILES} \
18520            platforms/aix/Makefile"
18521         TAPEDRIVE="/dev/rmt0.1"
18522   ;;
18523 alpha)
18524         DISTVER=`uname -r`
18525         PTHREAD_LIB="-lpthread -lexc"
18526         if test "${CC}" = "gcc" ; then
18527            lld="lld"
18528            llu="llu"
18529         else
18530            lld="ld"
18531            llu="lu"
18532         fi
18533         TAPEDRIVE="/dev/nrmt0"
18534   ;;
18535 bsdi)
18536         DISTVER=`uname -a |awk '{print $3}'`
18537         TAPEDRIVE="/dev/nrmt0"
18538         PTHREAD_LIB="-pthread"
18539         CFLAGS="${CFLAGS} -pthread"
18540         PSCMD="ps -x -o pid,command"
18541         lld="qd"
18542         llu="qu"
18543         PFILES="${PFILES} \
18544             platforms/bsdi/Makefile \
18545             platforms/bsdi/bacula-fd \
18546             platforms/bsdi/bacula-sd \
18547             platforms/bsdi/bacula-dir"
18548         largefile_support="yes"
18549   ;;
18550 cygwin)
18551         DISTVER=`uname -a |awk '{print $3}'`
18552         TAPEDRIVE="/dev/nrst0"
18553         WIN32=win32
18554         WCFLAGS="-mwindows"
18555         WLDFLAGS="-mwindows"
18556   ;;
18557 darwin)
18558         DISTVER=`uname -r`
18559         TAPEDRIVE="/dev/nst0"
18560         PSCMD="ps -e -o pid,command"
18561         MACOSX=macosx
18562         PFILES="${PFILES} \
18563            platforms/darwin/Makefile"
18564   ;;
18565 debian)
18566         DISTVER=`cat /etc/debian_version`
18567         TAPEDRIVE="/dev/nrst0"
18568         PSCMD="ps -e -o pid,command"
18569   ;;
18570 freebsd)
18571         DISTVER=`uname -a |awk '{print $3}'`
18572         VER=`echo $DISTVER | cut -c 1`
18573         if test x$VER = x4 ; then
18574            PTHREAD_LIB="-pthread"
18575            CFLAGS="${CFLAGS} -pthread"
18576         fi
18577         lld="qd"
18578         llu="qu"
18579         TAPEDRIVE="/dev/nrsa0"
18580         PSCMD="ps -x -o pid,command"
18581         PFILES="${PFILES} \
18582             platforms/freebsd/Makefile \
18583             platforms/freebsd/bacula-fd \
18584             platforms/freebsd/bacula-sd \
18585             platforms/freebsd/bacula-dir"
18586         largefile_support="yes"
18587   ;;
18588 hpux)
18589         PSCMD="UNIX95=1 ps -e -o pid,comm"
18590         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18591         DISTVER=`uname -r`
18592         TAPEDRIVE="/dev/rmt/0hnb"
18593   ;;
18594 irix)
18595         DISTVER=`uname -r`
18596         TAPEDRIVE="/dev/rmt/0cbn"
18597         PSCMD="ps -e -o pid,comm"
18598         PFILES="${PFILES} \
18599             platforms/irix/Makefile \
18600             platforms/irix/bacula-fd \
18601             platforms/irix/bacula-sd \
18602             platforms/irix/bacula-dir"
18603   ;;
18604 netbsd)
18605         DISTVER=`uname -a |awk '{print $3}'`
18606         lld="qd"
18607         llu="qu"
18608         TAPEDRIVE="/dev/nrst0"
18609         PSCMD="ps -a -o pid,command"
18610         PTHREAD_LIB="-pthread"
18611         CFLAGS="${CFLAGS} -pthread"
18612   ;;
18613 openbsd)
18614         DISTVER=`uname -a |awk '{print $3}'`
18615         lld="qd"
18616         llu="qu"
18617         TAPEDRIVE="/dev/nrst0"
18618         PSCMD="ps -a -o pid,command"
18619         PTHREAD_LIB="-pthread"
18620         CFLAGS="${CFLAGS} -pthread"
18621         PFILES="${PFILES} \
18622             platforms/openbsd/Makefile \
18623             platforms/openbsd/bacula-fd \
18624             platforms/openbsd/bacula-sd \
18625             platforms/openbsd/bacula-dir"
18626   ;;
18627 redhat)
18628         if test -f /etc/whitebox-release ; then
18629            f=/etc/whitebox-release
18630         else
18631            f=/etc/redhat-release
18632         fi
18633         if test `cat $f | grep release |\
18634                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18635            DISTVER="Enterprise "`cat $f | grep release |\
18636                     cut -f 6 -d ' '`
18637         else
18638             DISTVER=`cat /etc/redhat-release | grep release |\
18639                      cut -f 5 -d ' '`
18640         fi
18641         TAPEDRIVE="/dev/nst0"
18642         PSCMD="ps -e -o pid,command"
18643         PFILES="${PFILES} \
18644             platforms/redhat/Makefile \
18645             platforms/redhat/bacula-fd \
18646             platforms/redhat/bacula-sd \
18647             platforms/redhat/bacula-dir \
18648             platforms/redhat/bacula.spec \
18649             "
18650         hostname=`hostname -s`
18651   ;;
18652 mandrake)
18653         DISTVER=`cat /etc/mandrake-release | grep release |\
18654            cut -f 5 -d ' '`
18655         TAPEDRIVE="/dev/nst0"
18656         PSCMD="ps -e -o pid,command"
18657         PFILES="${PFILES} \
18658             platforms/mandrake/Makefile \
18659             platforms/mandrake/bacula-fd \
18660             platforms/mandrake/bacula-sd \
18661             platforms/mandrake/bacula-dir \
18662             platforms/mandrake/bacula.spec \
18663             "
18664   ;;
18665 gentoo)
18666         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18667         TAPEDRIVE="/dev/nst0"
18668         PSCMD="ps -e -o pid,command"
18669         PFILES="${PFILES} \
18670             platforms/gentoo/Makefile \
18671             platforms/gentoo/bacula-fd \
18672             platforms/gentoo/bacula-sd \
18673             platforms/gentoo/bacula-dir"
18674   ;;
18675 slackware)
18676         DISTVER=`cat /etc/slackware-version`
18677         TAPEDRIVE="/dev/nst0"
18678         PSCMD="ps -e -o pid,command"
18679         PFILES="${PFILES} \
18680             platforms/slackware/Makefile \
18681             platforms/slackware/rc.bacula-fd \
18682             platforms/slackware/rc.bacula-sd \
18683             platforms/slackware/rc.bacula-dir\
18684             platforms/slackware/functions.bacula"
18685   ;;
18686 solaris)
18687         DISTVER=`uname -r`
18688         TAPEDRIVE="/dev/rmt/0cbn"
18689         PSCMD="ps -e -o pid,comm"
18690         PFILES="${PFILES} \
18691             platforms/solaris/Makefile \
18692             platforms/solaris/bacula-fd \
18693             platforms/solaris/bacula-sd \
18694             platforms/solaris/bacula-dir"
18695         if test x$DISTVER = x5.6 ; then
18696             cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_OLD_SOCKOPT 1
18698 _ACEOF
18699
18700         fi
18701   ;;
18702 suse)
18703         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18704             cut -f 3 -d ' '`
18705         TAPEDRIVE="/dev/nst0"
18706         PSCMD="ps -e -o pid,command"
18707         PFILES="${PFILES} \
18708             platforms/suse/Makefile \
18709             platforms/suse/bacula-fd \
18710             platforms/suse/bacula-sd \
18711             platforms/suse/bacula-dir \
18712             platforms/suse/bacula \
18713             platforms/suse/bacula.spec"
18714   ;;
18715 suse5)
18716         DISTNAME=suse
18717         DISTVER=5.x
18718         TAPEDRIVE="/dev/nst0"
18719         PSCMD="ps -e -o pid,command"
18720         PFILES="${PFILES} \
18721             platforms/suse/Makefile \
18722             platforms/suse/bacula-fd \
18723             platforms/suse/bacula-sd \
18724             platforms/suse/bacula-dir"
18725   ;;
18726 unknown)
18727         DISTVER=unknown
18728         TAPEDRIVE="/dev/nst0"
18729   ;;
18730 *)
18731   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18732   ;;
18733 esac
18734
18735
18736
18737 LIBS="$PTHREAD_LIB $LIBS"
18738
18739 cat >>confdefs.h <<_ACEOF
18740 #define lld "$lld"
18741 _ACEOF
18742
18743 cat >>confdefs.h <<_ACEOF
18744 #define llu "$llu"
18745 _ACEOF
18746
18747
18748
18749
18750
18751
18752
18753
18754 MCOMMON=./autoconf/Make.common
18755
18756
18757 if test "x${subsysdir}" = "x${sbindir}" ; then
18758    echo " "
18759    echo " "
18760    echo "You have set both --sbindir and --with-subsys-dir"
18761    echo "  equal to: ${subsysdir} "
18762    echo "This is not permitted. Please reconfigure."
18763    echo " "
18764    echo "Aborting configuration ..."
18765    echo " "
18766    echo " "
18767    exit 1
18768 fi
18769
18770                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18771           ac_config_commands="$ac_config_commands default"
18772 cat >confcache <<\_ACEOF
18773 # This file is a shell script that caches the results of configure
18774 # tests run on this system so they can be shared between configure
18775 # scripts and configure runs, see configure's option --config-cache.
18776 # It is not useful on other systems.  If it contains results you don't
18777 # want to keep, you may remove or edit it.
18778 #
18779 # config.status only pays attention to the cache file if you give it
18780 # the --recheck option to rerun configure.
18781 #
18782 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18784 # following values.
18785
18786 _ACEOF
18787
18788 # The following way of writing the cache mishandles newlines in values,
18789 # but we know of no workaround that is simple, portable, and efficient.
18790 # So, don't put newlines in cache variables' values.
18791 # Ultrix sh set writes to stderr and can't be redirected directly,
18792 # and sets the high bit in the cache file unless we assign to the vars.
18793 {
18794   (set) 2>&1 |
18795     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18796     *ac_space=\ *)
18797       # `set' does not quote correctly, so add quotes (double-quote
18798       # substitution turns \\\\ into \\, and sed turns \\ into \).
18799       sed -n \
18800         "s/'/'\\\\''/g;
18801           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18802       ;;
18803     *)
18804       # `set' quotes correctly as required by POSIX, so do not add quotes.
18805       sed -n \
18806         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18807       ;;
18808     esac;
18809 } |
18810   sed '
18811      t clear
18812      : clear
18813      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18814      t end
18815      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18816      : end' >>confcache
18817 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18818   if test -w $cache_file; then
18819     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18820     cat confcache >$cache_file
18821   else
18822     echo "not updating unwritable cache $cache_file"
18823   fi
18824 fi
18825 rm -f confcache
18826
18827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18828 # Let make expand exec_prefix.
18829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18830
18831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18833 # trailing colons and then remove the whole line if VPATH becomes empty
18834 # (actually we leave an empty line to preserve line numbers).
18835 if test "x$srcdir" = x.; then
18836   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18837 s/:*\$(srcdir):*/:/;
18838 s/:*\${srcdir}:*/:/;
18839 s/:*@srcdir@:*/:/;
18840 s/^\([^=]*=[    ]*\):*/\1/;
18841 s/:*$//;
18842 s/^[^=]*=[      ]*$//;
18843 }'
18844 fi
18845
18846 DEFS=-DHAVE_CONFIG_H
18847
18848 ac_libobjs=
18849 ac_ltlibobjs=
18850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18851   # 1. Remove the extension, and $U if already installed.
18852   ac_i=`echo "$ac_i" |
18853          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18854   # 2. Add them.
18855   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18856   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18857 done
18858 LIBOBJS=$ac_libobjs
18859
18860 LTLIBOBJS=$ac_ltlibobjs
18861
18862
18863
18864 : ${CONFIG_STATUS=./config.status}
18865 ac_clean_files_save=$ac_clean_files
18866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18867 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18868 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18869 cat >$CONFIG_STATUS <<_ACEOF
18870 #! $SHELL
18871 # Generated by $as_me.
18872 # Run this file to recreate the current configuration.
18873 # Compiler output produced by configure, useful for debugging
18874 # configure, is in config.log if it exists.
18875
18876 debug=false
18877 ac_cs_recheck=false
18878 ac_cs_silent=false
18879 SHELL=\${CONFIG_SHELL-$SHELL}
18880 _ACEOF
18881
18882 cat >>$CONFIG_STATUS <<\_ACEOF
18883 ## --------------------- ##
18884 ## M4sh Initialization.  ##
18885 ## --------------------- ##
18886
18887 # Be Bourne compatible
18888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18889   emulate sh
18890   NULLCMD=:
18891   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18892   # is contrary to our usage.  Disable this feature.
18893   alias -g '${1+"$@"}'='"$@"'
18894 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18895   set -o posix
18896 fi
18897
18898 # Support unset when possible.
18899 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18900   as_unset=unset
18901 else
18902   as_unset=false
18903 fi
18904
18905
18906 # Work around bugs in pre-3.0 UWIN ksh.
18907 $as_unset ENV MAIL MAILPATH
18908 PS1='$ '
18909 PS2='> '
18910 PS4='+ '
18911
18912 # NLS nuisances.
18913 for as_var in \
18914   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18915   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18916   LC_TELEPHONE LC_TIME
18917 do
18918   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18919     eval $as_var=C; export $as_var
18920   else
18921     $as_unset $as_var
18922   fi
18923 done
18924
18925 # Required to use basename.
18926 if expr a : '\(a\)' >/dev/null 2>&1; then
18927   as_expr=expr
18928 else
18929   as_expr=false
18930 fi
18931
18932 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18933   as_basename=basename
18934 else
18935   as_basename=false
18936 fi
18937
18938
18939 # Name of the executable.
18940 as_me=`$as_basename "$0" ||
18941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18942          X"$0" : 'X\(//\)$' \| \
18943          X"$0" : 'X\(/\)$' \| \
18944          .     : '\(.\)' 2>/dev/null ||
18945 echo X/"$0" |
18946     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18947           /^X\/\(\/\/\)$/{ s//\1/; q; }
18948           /^X\/\(\/\).*/{ s//\1/; q; }
18949           s/.*/./; q'`
18950
18951
18952 # PATH needs CR, and LINENO needs CR and PATH.
18953 # Avoid depending upon Character Ranges.
18954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18957 as_cr_digits='0123456789'
18958 as_cr_alnum=$as_cr_Letters$as_cr_digits
18959
18960 # The user is always right.
18961 if test "${PATH_SEPARATOR+set}" != set; then
18962   echo "#! /bin/sh" >conf$$.sh
18963   echo  "exit 0"   >>conf$$.sh
18964   chmod +x conf$$.sh
18965   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18966     PATH_SEPARATOR=';'
18967   else
18968     PATH_SEPARATOR=:
18969   fi
18970   rm -f conf$$.sh
18971 fi
18972
18973
18974   as_lineno_1=$LINENO
18975   as_lineno_2=$LINENO
18976   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18977   test "x$as_lineno_1" != "x$as_lineno_2" &&
18978   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18979   # Find who we are.  Look in the path if we contain no path at all
18980   # relative or not.
18981   case $0 in
18982     *[\\/]* ) as_myself=$0 ;;
18983     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984 for as_dir in $PATH
18985 do
18986   IFS=$as_save_IFS
18987   test -z "$as_dir" && as_dir=.
18988   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18989 done
18990
18991        ;;
18992   esac
18993   # We did not find ourselves, most probably we were run as `sh COMMAND'
18994   # in which case we are not to be found in the path.
18995   if test "x$as_myself" = x; then
18996     as_myself=$0
18997   fi
18998   if test ! -f "$as_myself"; then
18999     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19000 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19001    { (exit 1); exit 1; }; }
19002   fi
19003   case $CONFIG_SHELL in
19004   '')
19005     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19006 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19007 do
19008   IFS=$as_save_IFS
19009   test -z "$as_dir" && as_dir=.
19010   for as_base in sh bash ksh sh5; do
19011          case $as_dir in
19012          /*)
19013            if ("$as_dir/$as_base" -c '
19014   as_lineno_1=$LINENO
19015   as_lineno_2=$LINENO
19016   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19017   test "x$as_lineno_1" != "x$as_lineno_2" &&
19018   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19019              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19020              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19021              CONFIG_SHELL=$as_dir/$as_base
19022              export CONFIG_SHELL
19023              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19024            fi;;
19025          esac
19026        done
19027 done
19028 ;;
19029   esac
19030
19031   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19032   # uniformly replaced by the line number.  The first 'sed' inserts a
19033   # line-number line before each line; the second 'sed' does the real
19034   # work.  The second script uses 'N' to pair each line-number line
19035   # with the numbered line, and appends trailing '-' during
19036   # substitution so that $LINENO is not a special case at line end.
19037   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19038   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19039   sed '=' <$as_myself |
19040     sed '
19041       N
19042       s,$,-,
19043       : loop
19044       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19045       t loop
19046       s,-$,,
19047       s,^['$as_cr_digits']*\n,,
19048     ' >$as_me.lineno &&
19049   chmod +x $as_me.lineno ||
19050     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19051 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19052    { (exit 1); exit 1; }; }
19053
19054   # Don't try to exec as it changes $[0], causing all sort of problems
19055   # (the dirname of $[0] is not the place where we might find the
19056   # original and so on.  Autoconf is especially sensible to this).
19057   . ./$as_me.lineno
19058   # Exit status is that of the last command.
19059   exit
19060 }
19061
19062
19063 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19064   *c*,-n*) ECHO_N= ECHO_C='
19065 ' ECHO_T='      ' ;;
19066   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19067   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19068 esac
19069
19070 if expr a : '\(a\)' >/dev/null 2>&1; then
19071   as_expr=expr
19072 else
19073   as_expr=false
19074 fi
19075
19076 rm -f conf$$ conf$$.exe conf$$.file
19077 echo >conf$$.file
19078 if ln -s conf$$.file conf$$ 2>/dev/null; then
19079   # We could just check for DJGPP; but this test a) works b) is more generic
19080   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19081   if test -f conf$$.exe; then
19082     # Don't use ln at all; we don't have any links
19083     as_ln_s='cp -p'
19084   else
19085     as_ln_s='ln -s'
19086   fi
19087 elif ln conf$$.file conf$$ 2>/dev/null; then
19088   as_ln_s=ln
19089 else
19090   as_ln_s='cp -p'
19091 fi
19092 rm -f conf$$ conf$$.exe conf$$.file
19093
19094 if mkdir -p . 2>/dev/null; then
19095   as_mkdir_p=:
19096 else
19097   as_mkdir_p=false
19098 fi
19099
19100 as_executable_p="test -f"
19101
19102 # Sed expression to map a string onto a valid CPP name.
19103 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19104
19105 # Sed expression to map a string onto a valid variable name.
19106 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19107
19108
19109 # IFS
19110 # We need space, tab and new line, in precisely that order.
19111 as_nl='
19112 '
19113 IFS="   $as_nl"
19114
19115 # CDPATH.
19116 $as_unset CDPATH
19117
19118 exec 6>&1
19119
19120 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19121 # report actual input values of CONFIG_FILES etc. instead of their
19122 # values after options handling.  Logging --version etc. is OK.
19123 exec 5>>config.log
19124 {
19125   echo
19126   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19127 ## Running $as_me. ##
19128 _ASBOX
19129 } >&5
19130 cat >&5 <<_CSEOF
19131
19132 This file was extended by $as_me, which was
19133 generated by GNU Autoconf 2.57.  Invocation command line was
19134
19135   CONFIG_FILES    = $CONFIG_FILES
19136   CONFIG_HEADERS  = $CONFIG_HEADERS
19137   CONFIG_LINKS    = $CONFIG_LINKS
19138   CONFIG_COMMANDS = $CONFIG_COMMANDS
19139   $ $0 $@
19140
19141 _CSEOF
19142 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19143 echo >&5
19144 _ACEOF
19145
19146 # Files that config.status was made for.
19147 if test -n "$ac_config_files"; then
19148   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19149 fi
19150
19151 if test -n "$ac_config_headers"; then
19152   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19153 fi
19154
19155 if test -n "$ac_config_links"; then
19156   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19157 fi
19158
19159 if test -n "$ac_config_commands"; then
19160   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19161 fi
19162
19163 cat >>$CONFIG_STATUS <<\_ACEOF
19164
19165 ac_cs_usage="\
19166 \`$as_me' instantiates files from templates according to the
19167 current configuration.
19168
19169 Usage: $0 [OPTIONS] [FILE]...
19170
19171   -h, --help       print this help, then exit
19172   -V, --version    print version number, then exit
19173   -q, --quiet      do not print progress messages
19174   -d, --debug      don't remove temporary files
19175       --recheck    update $as_me by reconfiguring in the same conditions
19176   --file=FILE[:TEMPLATE]
19177                    instantiate the configuration file FILE
19178   --header=FILE[:TEMPLATE]
19179                    instantiate the configuration header FILE
19180
19181 Configuration files:
19182 $config_files
19183
19184 Configuration headers:
19185 $config_headers
19186
19187 Configuration commands:
19188 $config_commands
19189
19190 Report bugs to <bug-autoconf@gnu.org>."
19191 _ACEOF
19192
19193 cat >>$CONFIG_STATUS <<_ACEOF
19194 ac_cs_version="\\
19195 config.status
19196 configured by $0, generated by GNU Autoconf 2.57,
19197   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19198
19199 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19200 Free Software Foundation, Inc.
19201 This config.status script is free software; the Free Software Foundation
19202 gives unlimited permission to copy, distribute and modify it."
19203 srcdir=$srcdir
19204 INSTALL="$INSTALL"
19205 _ACEOF
19206
19207 cat >>$CONFIG_STATUS <<\_ACEOF
19208 # If no file are specified by the user, then we need to provide default
19209 # value.  By we need to know if files were specified by the user.
19210 ac_need_defaults=:
19211 while test $# != 0
19212 do
19213   case $1 in
19214   --*=*)
19215     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19216     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19217     ac_shift=:
19218     ;;
19219   -*)
19220     ac_option=$1
19221     ac_optarg=$2
19222     ac_shift=shift
19223     ;;
19224   *) # This is not an option, so the user has probably given explicit
19225      # arguments.
19226      ac_option=$1
19227      ac_need_defaults=false;;
19228   esac
19229
19230   case $ac_option in
19231   # Handling of the options.
19232 _ACEOF
19233 cat >>$CONFIG_STATUS <<\_ACEOF
19234   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19235     ac_cs_recheck=: ;;
19236   --version | --vers* | -V )
19237     echo "$ac_cs_version"; exit 0 ;;
19238   --he | --h)
19239     # Conflict between --help and --header
19240     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19241 Try \`$0 --help' for more information." >&5
19242 echo "$as_me: error: ambiguous option: $1
19243 Try \`$0 --help' for more information." >&2;}
19244    { (exit 1); exit 1; }; };;
19245   --help | --hel | -h )
19246     echo "$ac_cs_usage"; exit 0 ;;
19247   --debug | --d* | -d )
19248     debug=: ;;
19249   --file | --fil | --fi | --f )
19250     $ac_shift
19251     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19252     ac_need_defaults=false;;
19253   --header | --heade | --head | --hea )
19254     $ac_shift
19255     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19256     ac_need_defaults=false;;
19257   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19258   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19259     ac_cs_silent=: ;;
19260
19261   # This is an error.
19262   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19263 Try \`$0 --help' for more information." >&5
19264 echo "$as_me: error: unrecognized option: $1
19265 Try \`$0 --help' for more information." >&2;}
19266    { (exit 1); exit 1; }; } ;;
19267
19268   *) ac_config_targets="$ac_config_targets $1" ;;
19269
19270   esac
19271   shift
19272 done
19273
19274 ac_configure_extra_args=
19275
19276 if $ac_cs_silent; then
19277   exec 6>/dev/null
19278   ac_configure_extra_args="$ac_configure_extra_args --silent"
19279 fi
19280
19281 _ACEOF
19282 cat >>$CONFIG_STATUS <<_ACEOF
19283 if \$ac_cs_recheck; then
19284   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19285   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19286 fi
19287
19288 _ACEOF
19289
19290
19291
19292
19293
19294 cat >>$CONFIG_STATUS <<\_ACEOF
19295 for ac_config_target in $ac_config_targets
19296 do
19297   case "$ac_config_target" in
19298   # Handling of arguments.
19299   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19300   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19301   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19302   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19303   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19304   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19305   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19306   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19307   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19308   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19309   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19310   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19311   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19312   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19313   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19314   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19315   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19316   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19317   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19318   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19319   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19320   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19321   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19322   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19323   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19324   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19325   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19326   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19327   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19328   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19329   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19330   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19331   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19332   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19333   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19334   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19335   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19336   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19337   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19338   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19339   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19340   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19341   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19342   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19343   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19344   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19345   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19346   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19347   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19348   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19349   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19350   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19351   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19352   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19353   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19354   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19355   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19356   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19357   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19358   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19359   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19360   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19361   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19362   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19363   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19364   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19365   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19366   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19367   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19368   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19369   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19370   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19371   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19372   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19373   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19374   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19375   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19376   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19377   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19378   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19379   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19380   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19381   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19382   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19383   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19384   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19385   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19386   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19387   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19388   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19389 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19390    { (exit 1); exit 1; }; };;
19391   esac
19392 done
19393
19394 # If the user did not use the arguments to specify the items to instantiate,
19395 # then the envvar interface is used.  Set only those that are not.
19396 # We use the long form for the default assignment because of an extremely
19397 # bizarre bug on SunOS 4.1.3.
19398 if $ac_need_defaults; then
19399   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19400   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19401   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19402 fi
19403
19404 # Have a temporary directory for convenience.  Make it in the build tree
19405 # simply because there is no reason to put it here, and in addition,
19406 # creating and moving files from /tmp can sometimes cause problems.
19407 # Create a temporary directory, and hook for its removal unless debugging.
19408 $debug ||
19409 {
19410   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19411   trap '{ (exit 1); exit 1; }' 1 2 13 15
19412 }
19413
19414 # Create a (secure) tmp directory for tmp files.
19415
19416 {
19417   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19418   test -n "$tmp" && test -d "$tmp"
19419 }  ||
19420 {
19421   tmp=./confstat$$-$RANDOM
19422   (umask 077 && mkdir $tmp)
19423 } ||
19424 {
19425    echo "$me: cannot create a temporary directory in ." >&2
19426    { (exit 1); exit 1; }
19427 }
19428
19429 _ACEOF
19430
19431 cat >>$CONFIG_STATUS <<_ACEOF
19432
19433 #
19434 # CONFIG_FILES section.
19435 #
19436
19437 # No need to generate the scripts if there are no CONFIG_FILES.
19438 # This happens for instance when ./config.status config.h
19439 if test -n "\$CONFIG_FILES"; then
19440   # Protect against being on the right side of a sed subst in config.status.
19441   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19442    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19443 s,@SHELL@,$SHELL,;t t
19444 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19445 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19446 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19447 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19448 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19449 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19450 s,@exec_prefix@,$exec_prefix,;t t
19451 s,@prefix@,$prefix,;t t
19452 s,@program_transform_name@,$program_transform_name,;t t
19453 s,@bindir@,$bindir,;t t
19454 s,@sbindir@,$sbindir,;t t
19455 s,@libexecdir@,$libexecdir,;t t
19456 s,@datadir@,$datadir,;t t
19457 s,@sysconfdir@,$sysconfdir,;t t
19458 s,@sharedstatedir@,$sharedstatedir,;t t
19459 s,@localstatedir@,$localstatedir,;t t
19460 s,@libdir@,$libdir,;t t
19461 s,@includedir@,$includedir,;t t
19462 s,@oldincludedir@,$oldincludedir,;t t
19463 s,@infodir@,$infodir,;t t
19464 s,@mandir@,$mandir,;t t
19465 s,@build_alias@,$build_alias,;t t
19466 s,@host_alias@,$host_alias,;t t
19467 s,@target_alias@,$target_alias,;t t
19468 s,@DEFS@,$DEFS,;t t
19469 s,@ECHO_C@,$ECHO_C,;t t
19470 s,@ECHO_N@,$ECHO_N,;t t
19471 s,@ECHO_T@,$ECHO_T,;t t
19472 s,@LIBS@,$LIBS,;t t
19473 s,@BUILD_DIR@,$BUILD_DIR,;t t
19474 s,@TRUEPRG@,$TRUEPRG,;t t
19475 s,@FALSEPRG@,$FALSEPRG,;t t
19476 s,@VERSION@,$VERSION,;t t
19477 s,@DATE@,$DATE,;t t
19478 s,@LSMDATE@,$LSMDATE,;t t
19479 s,@CC@,$CC,;t t
19480 s,@CFLAGS@,$CFLAGS,;t t
19481 s,@LDFLAGS@,$LDFLAGS,;t t
19482 s,@CPPFLAGS@,$CPPFLAGS,;t t
19483 s,@ac_ct_CC@,$ac_ct_CC,;t t
19484 s,@EXEEXT@,$EXEEXT,;t t
19485 s,@OBJEXT@,$OBJEXT,;t t
19486 s,@CXX@,$CXX,;t t
19487 s,@CXXFLAGS@,$CXXFLAGS,;t t
19488 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19489 s,@CPP@,$CPP,;t t
19490 s,@EGREP@,$EGREP,;t t
19491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19494 s,@RANLIB@,$RANLIB,;t t
19495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19496 s,@MV@,$MV,;t t
19497 s,@RM@,$RM,;t t
19498 s,@CP@,$CP,;t t
19499 s,@SED@,$SED,;t t
19500 s,@AWK@,$AWK,;t t
19501 s,@ECHO@,$ECHO,;t t
19502 s,@CMP@,$CMP,;t t
19503 s,@TBL@,$TBL,;t t
19504 s,@AR@,$AR,;t t
19505 s,@OPENSSL@,$OPENSSL,;t t
19506 s,@MTX@,$MTX,;t t
19507 s,@PKGCONFIG@,$PKGCONFIG,;t t
19508 s,@WXCONFIG@,$WXCONFIG,;t t
19509 s,@ARFLAGS@,$ARFLAGS,;t t
19510 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19511 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19512 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19513 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19514 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19515 s,@build@,$build,;t t
19516 s,@build_cpu@,$build_cpu,;t t
19517 s,@build_vendor@,$build_vendor,;t t
19518 s,@build_os@,$build_os,;t t
19519 s,@host@,$host,;t t
19520 s,@host_cpu@,$host_cpu,;t t
19521 s,@host_vendor@,$host_vendor,;t t
19522 s,@host_os@,$host_os,;t t
19523 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19524 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19525 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19526 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19527 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19528 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19529 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19530 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19531 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19532 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19533 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19534 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19535 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19536 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19537 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19538 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19539 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19540 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19541 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19542 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19543 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19544 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19545 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19546 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19547 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19548 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19549 s,@MSGFMT@,$MSGFMT,;t t
19550 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19551 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19552 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19553 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19554 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19555 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19556 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19557 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19558 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19559 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19560 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19561 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19562 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19563 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19564 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19565 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19566 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19567 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19568 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19569 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19570 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19571 s,@GNOME_DIR@,$GNOME_DIR,;t t
19572 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19573 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19574 s,@WX_DIR@,$WX_DIR,;t t
19575 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19576 s,@STATIC_FD@,$STATIC_FD,;t t
19577 s,@STATIC_SD@,$STATIC_SD,;t t
19578 s,@STATIC_DIR@,$STATIC_DIR,;t t
19579 s,@STATIC_CONS@,$STATIC_CONS,;t t
19580 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19581 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19582 s,@ALL_DIRS@,$ALL_DIRS,;t t
19583 s,@CONS_INC@,$CONS_INC,;t t
19584 s,@CONS_OBJ@,$CONS_OBJ,;t t
19585 s,@CONS_SRC@,$CONS_SRC,;t t
19586 s,@CONS_LIBS@,$CONS_LIBS,;t t
19587 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19588 s,@READLINE_SRC@,$READLINE_SRC,;t t
19589 s,@working_dir@,$working_dir,;t t
19590 s,@scriptdir@,$scriptdir,;t t
19591 s,@dump_email@,$dump_email,;t t
19592 s,@job_email@,$job_email,;t t
19593 s,@smtp_host@,$smtp_host,;t t
19594 s,@piddir@,$piddir,;t t
19595 s,@subsysdir@,$subsysdir,;t t
19596 s,@baseport@,$baseport,;t t
19597 s,@dir_port@,$dir_port,;t t
19598 s,@fd_port@,$fd_port,;t t
19599 s,@sd_port@,$sd_port,;t t
19600 s,@dir_password@,$dir_password,;t t
19601 s,@fd_password@,$fd_password,;t t
19602 s,@sd_password@,$sd_password,;t t
19603 s,@dir_user@,$dir_user,;t t
19604 s,@dir_group@,$dir_group,;t t
19605 s,@sd_user@,$sd_user,;t t
19606 s,@sd_group@,$sd_group,;t t
19607 s,@fd_user@,$fd_user,;t t
19608 s,@fd_group@,$fd_group,;t t
19609 s,@SBINPERM@,$SBINPERM,;t t
19610 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19611 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19612 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19613 s,@cats@,$cats,;t t
19614 s,@DB_NAME@,$DB_NAME,;t t
19615 s,@GETCONF@,$GETCONF,;t t
19616 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19617 s,@X_CFLAGS@,$X_CFLAGS,;t t
19618 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19619 s,@X_LIBS@,$X_LIBS,;t t
19620 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19621 s,@LIBOBJS@,$LIBOBJS,;t t
19622 s,@ALLOCA@,$ALLOCA,;t t
19623 s,@FDLIBS@,$FDLIBS,;t t
19624 s,@DEBUG@,$DEBUG,;t t
19625 s,@DINCLUDE@,$DINCLUDE,;t t
19626 s,@DLIB@,$DLIB,;t t
19627 s,@DB_LIBS@,$DB_LIBS,;t t
19628 s,@WCFLAGS@,$WCFLAGS,;t t
19629 s,@WLDFLAGS@,$WLDFLAGS,;t t
19630 s,@OBJLIST@,$OBJLIST,;t t
19631 s,@hostname@,$hostname,;t t
19632 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19633 s,@PSCMD@,$PSCMD,;t t
19634 s,@WIN32@,$WIN32,;t t
19635 s,@MACOSX@,$MACOSX,;t t
19636 s,@DISTNAME@,$DISTNAME,;t t
19637 s,@DISTVER@,$DISTVER,;t t
19638 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19639 /@MCOMMON@/r $MCOMMON
19640 s,@MCOMMON@,,;t t
19641 CEOF
19642
19643 _ACEOF
19644
19645   cat >>$CONFIG_STATUS <<\_ACEOF
19646   # Split the substitutions into bite-sized pieces for seds with
19647   # small command number limits, like on Digital OSF/1 and HP-UX.
19648   ac_max_sed_lines=48
19649   ac_sed_frag=1 # Number of current file.
19650   ac_beg=1 # First line for current file.
19651   ac_end=$ac_max_sed_lines # Line after last line for current file.
19652   ac_more_lines=:
19653   ac_sed_cmds=
19654   while $ac_more_lines; do
19655     if test $ac_beg -gt 1; then
19656       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19657     else
19658       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19659     fi
19660     if test ! -s $tmp/subs.frag; then
19661       ac_more_lines=false
19662     else
19663       # The purpose of the label and of the branching condition is to
19664       # speed up the sed processing (if there are no `@' at all, there
19665       # is no need to browse any of the substitutions).
19666       # These are the two extra sed commands mentioned above.
19667       (echo ':t
19668   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19669       if test -z "$ac_sed_cmds"; then
19670         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19671       else
19672         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19673       fi
19674       ac_sed_frag=`expr $ac_sed_frag + 1`
19675       ac_beg=$ac_end
19676       ac_end=`expr $ac_end + $ac_max_sed_lines`
19677     fi
19678   done
19679   if test -z "$ac_sed_cmds"; then
19680     ac_sed_cmds=cat
19681   fi
19682 fi # test -n "$CONFIG_FILES"
19683
19684 _ACEOF
19685 cat >>$CONFIG_STATUS <<\_ACEOF
19686 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19687   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19688   case $ac_file in
19689   - | *:- | *:-:* ) # input from stdin
19690         cat >$tmp/stdin
19691         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19692         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19693   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19694         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19695   * )   ac_file_in=$ac_file.in ;;
19696   esac
19697
19698   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19699   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19701          X"$ac_file" : 'X\(//\)[^/]' \| \
19702          X"$ac_file" : 'X\(//\)$' \| \
19703          X"$ac_file" : 'X\(/\)' \| \
19704          .     : '\(.\)' 2>/dev/null ||
19705 echo X"$ac_file" |
19706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19708           /^X\(\/\/\)$/{ s//\1/; q; }
19709           /^X\(\/\).*/{ s//\1/; q; }
19710           s/.*/./; q'`
19711   { if $as_mkdir_p; then
19712     mkdir -p "$ac_dir"
19713   else
19714     as_dir="$ac_dir"
19715     as_dirs=
19716     while test ! -d "$as_dir"; do
19717       as_dirs="$as_dir $as_dirs"
19718       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19720          X"$as_dir" : 'X\(//\)[^/]' \| \
19721          X"$as_dir" : 'X\(//\)$' \| \
19722          X"$as_dir" : 'X\(/\)' \| \
19723          .     : '\(.\)' 2>/dev/null ||
19724 echo X"$as_dir" |
19725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19726           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19727           /^X\(\/\/\)$/{ s//\1/; q; }
19728           /^X\(\/\).*/{ s//\1/; q; }
19729           s/.*/./; q'`
19730     done
19731     test ! -n "$as_dirs" || mkdir $as_dirs
19732   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19733 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19734    { (exit 1); exit 1; }; }; }
19735
19736   ac_builddir=.
19737
19738 if test "$ac_dir" != .; then
19739   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19740   # A "../" for each directory in $ac_dir_suffix.
19741   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19742 else
19743   ac_dir_suffix= ac_top_builddir=
19744 fi
19745
19746 case $srcdir in
19747   .)  # No --srcdir option.  We are building in place.
19748     ac_srcdir=.
19749     if test -z "$ac_top_builddir"; then
19750        ac_top_srcdir=.
19751     else
19752        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19753     fi ;;
19754   [\\/]* | ?:[\\/]* )  # Absolute path.
19755     ac_srcdir=$srcdir$ac_dir_suffix;
19756     ac_top_srcdir=$srcdir ;;
19757   *) # Relative path.
19758     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19759     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19760 esac
19761 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19762 # absolute.
19763 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19764 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19765 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19766 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19767
19768
19769   case $INSTALL in
19770   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19771   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19772   esac
19773
19774   if test x"$ac_file" != x-; then
19775     { echo "$as_me:$LINENO: creating $ac_file" >&5
19776 echo "$as_me: creating $ac_file" >&6;}
19777     rm -f "$ac_file"
19778   fi
19779   # Let's still pretend it is `configure' which instantiates (i.e., don't
19780   # use $as_me), people would be surprised to read:
19781   #    /* config.h.  Generated by config.status.  */
19782   if test x"$ac_file" = x-; then
19783     configure_input=
19784   else
19785     configure_input="$ac_file.  "
19786   fi
19787   configure_input=$configure_input"Generated from `echo $ac_file_in |
19788                                      sed 's,.*/,,'` by configure."
19789
19790   # First look for the input files in the build tree, otherwise in the
19791   # src tree.
19792   ac_file_inputs=`IFS=:
19793     for f in $ac_file_in; do
19794       case $f in
19795       -) echo $tmp/stdin ;;
19796       [\\/$]*)
19797          # Absolute (can't be DOS-style, as IFS=:)
19798          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19799 echo "$as_me: error: cannot find input file: $f" >&2;}
19800    { (exit 1); exit 1; }; }
19801          echo $f;;
19802       *) # Relative
19803          if test -f "$f"; then
19804            # Build tree
19805            echo $f
19806          elif test -f "$srcdir/$f"; then
19807            # Source tree
19808            echo $srcdir/$f
19809          else
19810            # /dev/null tree
19811            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19812 echo "$as_me: error: cannot find input file: $f" >&2;}
19813    { (exit 1); exit 1; }; }
19814          fi;;
19815       esac
19816     done` || { (exit 1); exit 1; }
19817 _ACEOF
19818 cat >>$CONFIG_STATUS <<_ACEOF
19819   sed "$ac_vpsub
19820 $extrasub
19821 _ACEOF
19822 cat >>$CONFIG_STATUS <<\_ACEOF
19823 :t
19824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19825 s,@configure_input@,$configure_input,;t t
19826 s,@srcdir@,$ac_srcdir,;t t
19827 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19828 s,@top_srcdir@,$ac_top_srcdir,;t t
19829 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19830 s,@builddir@,$ac_builddir,;t t
19831 s,@abs_builddir@,$ac_abs_builddir,;t t
19832 s,@top_builddir@,$ac_top_builddir,;t t
19833 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19834 s,@INSTALL@,$ac_INSTALL,;t t
19835 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19836   rm -f $tmp/stdin
19837   if test x"$ac_file" != x-; then
19838     mv $tmp/out $ac_file
19839   else
19840     cat $tmp/out
19841     rm -f $tmp/out
19842   fi
19843
19844 done
19845 _ACEOF
19846 cat >>$CONFIG_STATUS <<\_ACEOF
19847
19848 #
19849 # CONFIG_HEADER section.
19850 #
19851
19852 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19853 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19854 #
19855 # ac_d sets the value in "#define NAME VALUE" lines.
19856 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19857 ac_dB='[        ].*$,\1#\2'
19858 ac_dC=' '
19859 ac_dD=',;t'
19860 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19861 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19862 ac_uB='$,\1#\2define\3'
19863 ac_uC=' '
19864 ac_uD=',;t'
19865
19866 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19867   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19868   case $ac_file in
19869   - | *:- | *:-:* ) # input from stdin
19870         cat >$tmp/stdin
19871         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19872         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19873   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19874         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19875   * )   ac_file_in=$ac_file.in ;;
19876   esac
19877
19878   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19879 echo "$as_me: creating $ac_file" >&6;}
19880
19881   # First look for the input files in the build tree, otherwise in the
19882   # src tree.
19883   ac_file_inputs=`IFS=:
19884     for f in $ac_file_in; do
19885       case $f in
19886       -) echo $tmp/stdin ;;
19887       [\\/$]*)
19888          # Absolute (can't be DOS-style, as IFS=:)
19889          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19890 echo "$as_me: error: cannot find input file: $f" >&2;}
19891    { (exit 1); exit 1; }; }
19892          echo $f;;
19893       *) # Relative
19894          if test -f "$f"; then
19895            # Build tree
19896            echo $f
19897          elif test -f "$srcdir/$f"; then
19898            # Source tree
19899            echo $srcdir/$f
19900          else
19901            # /dev/null tree
19902            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19903 echo "$as_me: error: cannot find input file: $f" >&2;}
19904    { (exit 1); exit 1; }; }
19905          fi;;
19906       esac
19907     done` || { (exit 1); exit 1; }
19908   # Remove the trailing spaces.
19909   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19910
19911 _ACEOF
19912
19913 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19914 # `conftest.undefs', that substitutes the proper values into
19915 # config.h.in to produce config.h.  The first handles `#define'
19916 # templates, and the second `#undef' templates.
19917 # And first: Protect against being on the right side of a sed subst in
19918 # config.status.  Protect against being in an unquoted here document
19919 # in config.status.
19920 rm -f conftest.defines conftest.undefs
19921 # Using a here document instead of a string reduces the quoting nightmare.
19922 # Putting comments in sed scripts is not portable.
19923 #
19924 # `end' is used to avoid that the second main sed command (meant for
19925 # 0-ary CPP macros) applies to n-ary macro definitions.
19926 # See the Autoconf documentation for `clear'.
19927 cat >confdef2sed.sed <<\_ACEOF
19928 s/[\\&,]/\\&/g
19929 s,[\\$`],\\&,g
19930 t clear
19931 : clear
19932 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19933 t end
19934 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19935 : end
19936 _ACEOF
19937 # If some macros were called several times there might be several times
19938 # the same #defines, which is useless.  Nevertheless, we may not want to
19939 # sort them, since we want the *last* AC-DEFINE to be honored.
19940 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19941 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19942 rm -f confdef2sed.sed
19943
19944 # This sed command replaces #undef with comments.  This is necessary, for
19945 # example, in the case of _POSIX_SOURCE, which is predefined and required
19946 # on some systems where configure will not decide to define it.
19947 cat >>conftest.undefs <<\_ACEOF
19948 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19949 _ACEOF
19950
19951 # Break up conftest.defines because some shells have a limit on the size
19952 # of here documents, and old seds have small limits too (100 cmds).
19953 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19954 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19955 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19956 echo '  :' >>$CONFIG_STATUS
19957 rm -f conftest.tail
19958 while grep . conftest.defines >/dev/null
19959 do
19960   # Write a limited-size here document to $tmp/defines.sed.
19961   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19962   # Speed up: don't consider the non `#define' lines.
19963   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19964   # Work around the forget-to-reset-the-flag bug.
19965   echo 't clr' >>$CONFIG_STATUS
19966   echo ': clr' >>$CONFIG_STATUS
19967   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19968   echo 'CEOF
19969   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19970   rm -f $tmp/in
19971   mv $tmp/out $tmp/in
19972 ' >>$CONFIG_STATUS
19973   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19974   rm -f conftest.defines
19975   mv conftest.tail conftest.defines
19976 done
19977 rm -f conftest.defines
19978 echo '  fi # grep' >>$CONFIG_STATUS
19979 echo >>$CONFIG_STATUS
19980
19981 # Break up conftest.undefs because some shells have a limit on the size
19982 # of here documents, and old seds have small limits too (100 cmds).
19983 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19984 rm -f conftest.tail
19985 while grep . conftest.undefs >/dev/null
19986 do
19987   # Write a limited-size here document to $tmp/undefs.sed.
19988   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19989   # Speed up: don't consider the non `#undef'
19990   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19991   # Work around the forget-to-reset-the-flag bug.
19992   echo 't clr' >>$CONFIG_STATUS
19993   echo ': clr' >>$CONFIG_STATUS
19994   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19995   echo 'CEOF
19996   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19997   rm -f $tmp/in
19998   mv $tmp/out $tmp/in
19999 ' >>$CONFIG_STATUS
20000   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20001   rm -f conftest.undefs
20002   mv conftest.tail conftest.undefs
20003 done
20004 rm -f conftest.undefs
20005
20006 cat >>$CONFIG_STATUS <<\_ACEOF
20007   # Let's still pretend it is `configure' which instantiates (i.e., don't
20008   # use $as_me), people would be surprised to read:
20009   #    /* config.h.  Generated by config.status.  */
20010   if test x"$ac_file" = x-; then
20011     echo "/* Generated by configure.  */" >$tmp/config.h
20012   else
20013     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20014   fi
20015   cat $tmp/in >>$tmp/config.h
20016   rm -f $tmp/in
20017   if test x"$ac_file" != x-; then
20018     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20019       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20020 echo "$as_me: $ac_file is unchanged" >&6;}
20021     else
20022       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20024          X"$ac_file" : 'X\(//\)[^/]' \| \
20025          X"$ac_file" : 'X\(//\)$' \| \
20026          X"$ac_file" : 'X\(/\)' \| \
20027          .     : '\(.\)' 2>/dev/null ||
20028 echo X"$ac_file" |
20029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20030           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20031           /^X\(\/\/\)$/{ s//\1/; q; }
20032           /^X\(\/\).*/{ s//\1/; q; }
20033           s/.*/./; q'`
20034       { if $as_mkdir_p; then
20035     mkdir -p "$ac_dir"
20036   else
20037     as_dir="$ac_dir"
20038     as_dirs=
20039     while test ! -d "$as_dir"; do
20040       as_dirs="$as_dir $as_dirs"
20041       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20043          X"$as_dir" : 'X\(//\)[^/]' \| \
20044          X"$as_dir" : 'X\(//\)$' \| \
20045          X"$as_dir" : 'X\(/\)' \| \
20046          .     : '\(.\)' 2>/dev/null ||
20047 echo X"$as_dir" |
20048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20049           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20050           /^X\(\/\/\)$/{ s//\1/; q; }
20051           /^X\(\/\).*/{ s//\1/; q; }
20052           s/.*/./; q'`
20053     done
20054     test ! -n "$as_dirs" || mkdir $as_dirs
20055   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20056 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20057    { (exit 1); exit 1; }; }; }
20058
20059       rm -f $ac_file
20060       mv $tmp/config.h $ac_file
20061     fi
20062   else
20063     cat $tmp/config.h
20064     rm -f $tmp/config.h
20065   fi
20066 done
20067 _ACEOF
20068 cat >>$CONFIG_STATUS <<\_ACEOF
20069
20070 #
20071 # CONFIG_COMMANDS section.
20072 #
20073 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20074   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20075   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20076   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20077 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20078          X"$ac_dest" : 'X\(//\)[^/]' \| \
20079          X"$ac_dest" : 'X\(//\)$' \| \
20080          X"$ac_dest" : 'X\(/\)' \| \
20081          .     : '\(.\)' 2>/dev/null ||
20082 echo X"$ac_dest" |
20083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20085           /^X\(\/\/\)$/{ s//\1/; q; }
20086           /^X\(\/\).*/{ s//\1/; q; }
20087           s/.*/./; q'`
20088   ac_builddir=.
20089
20090 if test "$ac_dir" != .; then
20091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20092   # A "../" for each directory in $ac_dir_suffix.
20093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20094 else
20095   ac_dir_suffix= ac_top_builddir=
20096 fi
20097
20098 case $srcdir in
20099   .)  # No --srcdir option.  We are building in place.
20100     ac_srcdir=.
20101     if test -z "$ac_top_builddir"; then
20102        ac_top_srcdir=.
20103     else
20104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20105     fi ;;
20106   [\\/]* | ?:[\\/]* )  # Absolute path.
20107     ac_srcdir=$srcdir$ac_dir_suffix;
20108     ac_top_srcdir=$srcdir ;;
20109   *) # Relative path.
20110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20112 esac
20113 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20114 # absolute.
20115 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20116 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20117 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20118 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20119
20120
20121   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20122 echo "$as_me: executing $ac_dest commands" >&6;}
20123   case $ac_dest in
20124     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20125  ;;
20126   esac
20127 done
20128 _ACEOF
20129
20130 cat >>$CONFIG_STATUS <<\_ACEOF
20131
20132 { (exit 0); exit 0; }
20133 _ACEOF
20134 chmod +x $CONFIG_STATUS
20135 ac_clean_files=$ac_clean_files_save
20136
20137
20138 # configure is writing to config.log, and then calls config.status.
20139 # config.status does its own redirection, appending to config.log.
20140 # Unfortunately, on DOS this fails, as config.log is still kept open
20141 # by configure, so config.status won't be able to write to it; its
20142 # output is simply discarded.  So we exec the FD to /dev/null,
20143 # effectively closing config.log, so it can be properly (re)opened and
20144 # appended to by config.status.  When coming back to configure, we
20145 # need to make the FD available again.
20146 if test "$no_create" != yes; then
20147   ac_cs_success=:
20148   ac_config_status_args=
20149   test "$silent" = yes &&
20150     ac_config_status_args="$ac_config_status_args --quiet"
20151   exec 5>/dev/null
20152   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20153   exec 5>>config.log
20154   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20155   # would make configure fail if this is the last instruction.
20156   $ac_cs_success || { (exit 1); exit 1; }
20157 fi
20158
20159
20160 cd scripts
20161 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20162 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20163 cd ..
20164
20165 c=src/cats
20166
20167 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20168 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20169
20170 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20171 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20172
20173 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20174 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20175
20176 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20177 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20178
20179 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20180 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20181
20182 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20183 chmod 755 $c/sqlite
20184 chmod 755 $c/mysql
20185
20186 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20187    largefile_support="yes"
20188 fi
20189
20190 #
20191 # A whole lot of hand springs to get the compiler version.
20192 #  This is because gcc changed the output in version 3.0
20193 #
20194 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20195 if test "x${CCVERSION}" = "x" ; then
20196   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20197 fi
20198 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20199 if test x"${CXXVERSION}" = x ; then
20200   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20201 fi
20202
20203 if test "x${subsysdir}" = "x${sbindir}" ; then
20204    echo " "
20205    echo " "
20206    echo "You have set --sbindir and --with-subsys-dir"
20207    echo "  both equal to: ${subsysdir} "
20208    echo "  This is not permitted. Please reconfigure."
20209    echo " "
20210    echo "Aborting configuration ..."
20211    echo " "
20212    echo " "
20213    exit 1
20214 fi
20215
20216 if test "x${db_name}" = "xInternal" ; then
20217    echo " "
20218    echo " "
20219    echo "You have not specified either --enable-client-only or one of the"
20220    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20221    echo "  This is not permitted. Please reconfigure."
20222    echo " "
20223    echo "Aborting the configuration ..."
20224    echo " "
20225    echo " "
20226    exit 1
20227 fi
20228
20229 echo "
20230 Configuration on `date`:
20231
20232   Host:                       $host -- ${DISTNAME} ${DISTVER}
20233   Bacula version:             ${VERSION} (${DATE})
20234   Source code location:       ${srcdir}
20235   Install binaries:           ${sbindir}
20236   Install config files:       ${sysconfdir}
20237   Scripts directory:          ${scriptdir}
20238   Working directory:          ${working_dir}
20239   PID directory:              ${piddir}
20240   Subsys directory:           ${subsysdir}
20241   C Compiler:                 ${CC} ${CCVERSION}
20242   C++ Compiler:               ${CXX} ${CXXVERSION}
20243   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20244   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20245   Libraries:                  ${LIBS}
20246   Statically Linked Tools:    ${support_static_tools}
20247   Statically Linked FD:       ${support_static_fd}
20248   Statically Linked SD:       ${support_static_sd}
20249   Statically Linked DIR:      ${support_static_dir}
20250   Statically Linked CONS:     ${support_static_cons}
20251   Database type:              ${db_name}
20252   Database lib:               ${DB_LIBS}
20253
20254   Job Output Email:           ${job_email}
20255   Traceback Email:            ${dump_email}
20256   SMTP Host Address:          ${smtp_host}
20257
20258   Director Port:              ${dir_port}
20259   File daemon Port:           ${fd_port}
20260   Storage daemon Port:        ${sd_port}
20261
20262   Director User:              ${dir_user}
20263   Director Group:             ${dir_group}
20264   Storage Daemon User:        ${sd_user}
20265   Storage DaemonGroup:        ${sd_group}
20266   File Daemon User:           ${fd_user}
20267   File Daemon Group:          ${fd_group}
20268
20269   SQL binaries Directory      ${SQL_BINDIR}
20270
20271   Large file support:         $largefile_support
20272   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20273   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20274   TCP Wrappers support:       ${TCPW_MSG}
20275   ZLIB support:               ${have_zlib}
20276   enable-smartalloc:          ${support_smartalloc}
20277   enable-gnome:               ${support_gnome} ${gnome_version}
20278   enable-wx-console:          ${support_wx_console}
20279   client-only:                ${build_client_only}
20280   ACL support:                ${have_acl}
20281
20282   " > config.out
20283
20284 cat config.out
20285
20286 # old stuff
20287 # cweb support:               ${got_cweb} ${CWEB_SRC}
20288   # gmp support:                      ${got_gmp} ${GMP_SRC}