]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Update configure
[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 TRAY_MONITOR_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-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-dir-user=USER           specify user for Director daemon
894   --with-dir-group=GROUP                 specify group for Director daemon
895   --with-sd-user=USER            specify user for Storage daemon
896   --with-sd-group=GROUP          specify group for Storage daemon
897   --with-fd-user=USER            specify user for File daemon
898   --with-fd-group=GROUP          specify group for File daemon
899   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
900   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
901                           base install directory, defaults to /usr/local/pgsql
902
903   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
904                           install directory, default is to search through
905                           a number of common places for the MySQL files.
906
907   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
908                           install directory, default is to search through
909                           a number of common places for the MySQL files.
910
911   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
912                           install directory, default is to search through
913                           a number of common places for the SQLite files.
914   --with-x                use the X Window System
915
916 Some influential environment variables:
917   CC          C compiler command
918   CFLAGS      C compiler flags
919   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
920               nonstandard directory <lib dir>
921   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
922               headers in a nonstandard directory <include dir>
923   CXX         C++ compiler command
924   CXXFLAGS    C++ compiler flags
925   CPP         C preprocessor
926
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
929
930 _ACEOF
931 fi
932
933 if test "$ac_init_help" = "recursive"; then
934   # If there are subdirs, report their specific --help.
935   ac_popdir=`pwd`
936   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937     test -d $ac_dir || continue
938     ac_builddir=.
939
940 if test "$ac_dir" != .; then
941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942   # A "../" for each directory in $ac_dir_suffix.
943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945   ac_dir_suffix= ac_top_builddir=
946 fi
947
948 case $srcdir in
949   .)  # No --srcdir option.  We are building in place.
950     ac_srcdir=.
951     if test -z "$ac_top_builddir"; then
952        ac_top_srcdir=.
953     else
954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955     fi ;;
956   [\\/]* | ?:[\\/]* )  # Absolute path.
957     ac_srcdir=$srcdir$ac_dir_suffix;
958     ac_top_srcdir=$srcdir ;;
959   *) # Relative path.
960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 # absolute.
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969
970     cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973       echo
974       $SHELL $ac_srcdir/configure.gnu  --help=recursive
975     elif test -f $ac_srcdir/configure; then
976       echo
977       $SHELL $ac_srcdir/configure  --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979            test -f $ac_srcdir/configure.in; then
980       echo
981       $ac_configure --help
982     else
983       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986   done
987 fi
988
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
991   cat <<\_ACEOF
992
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core core.* *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 BUILD_DIR=`pwd`
1334 cd ..
1335 TOP_DIR=`pwd`
1336 cd ${BUILD_DIR}
1337
1338 ac_aux_dir=
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1364
1365
1366
1367
1368
1369 for ac_prog in true
1370 do
1371   # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376   echo $ECHO_N "(cached) $ECHO_C" >&6
1377 else
1378   case $TRUEPRG in
1379   [\\/]* | ?:[\\/]*)
1380   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381   ;;
1382   *)
1383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1385 do
1386   IFS=$as_save_IFS
1387   test -z "$as_dir" && as_dir=.
1388   for ac_exec_ext in '' $ac_executable_extensions; do
1389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392     break 2
1393   fi
1394 done
1395 done
1396
1397   ;;
1398 esac
1399 fi
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1401
1402 if test -n "$TRUEPRG"; then
1403   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1405 else
1406   echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410   test -n "$TRUEPRG" && break
1411 done
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1413
1414 for ac_prog in false
1415 do
1416   # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   case $FALSEPRG in
1424   [\\/]* | ?:[\\/]*)
1425   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426   ;;
1427   *)
1428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   for ac_exec_ext in '' $ac_executable_extensions; do
1434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437     break 2
1438   fi
1439 done
1440 done
1441
1442   ;;
1443 esac
1444 fi
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1446
1447 if test -n "$FALSEPRG"; then
1448   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455   test -n "$FALSEPRG" && break
1456 done
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1458
1459
1460 #AC_CANONICAL_HOST
1461
1462 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1465 echo "configuring for bacula $VERSION ($DATE)"
1466
1467
1468
1469 ac_ext=c
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 if test -n "$ac_tool_prefix"; then
1475   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   if test -n "$CC"; then
1483   ac_cv_prog_CC="$CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   for ac_exec_ext in '' $ac_executable_extensions; do
1491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 CC=$ac_cv_prog_CC
1502 if test -n "$CC"; then
1503   echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510 fi
1511 if test -z "$ac_cv_prog_CC"; then
1512   ac_ct_CC=$CC
1513   # Extract the first word of "gcc", so it can be a program name with args.
1514 set dummy gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$ac_ct_CC"; then
1521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   for ac_exec_ext in '' $ac_executable_extensions; do
1529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530     ac_cv_prog_ac_ct_CC="gcc"
1531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532     break 2
1533   fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1543 else
1544   echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548   CC=$ac_ct_CC
1549 else
1550   CC="$ac_cv_prog_CC"
1551 fi
1552
1553 if test -z "$CC"; then
1554   if test -n "$ac_tool_prefix"; then
1555   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1556 set dummy ${ac_tool_prefix}cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$CC"; then
1563   ac_cv_prog_CC="$CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_CC="${ac_tool_prefix}cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 CC=$ac_cv_prog_CC
1582 if test -n "$CC"; then
1583   echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590 fi
1591 if test -z "$ac_cv_prog_CC"; then
1592   ac_ct_CC=$CC
1593   # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$ac_ct_CC"; then
1601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   for ac_exec_ext in '' $ac_executable_extensions; do
1609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610     ac_cv_prog_ac_ct_CC="cc"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1620 if test -n "$ac_ct_CC"; then
1621   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1622 echo "${ECHO_T}$ac_ct_CC" >&6
1623 else
1624   echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628   CC=$ac_ct_CC
1629 else
1630   CC="$ac_cv_prog_CC"
1631 fi
1632
1633 fi
1634 if test -z "$CC"; then
1635   # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645   ac_prog_rejected=no
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1654        ac_prog_rejected=yes
1655        continue
1656      fi
1657     ac_cv_prog_CC="cc"
1658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659     break 2
1660   fi
1661 done
1662 done
1663
1664 if test $ac_prog_rejected = yes; then
1665   # We found a bogon in the path, so make sure we never use it.
1666   set dummy $ac_cv_prog_CC
1667   shift
1668   if test $# != 0; then
1669     # We chose a different compiler from the bogus one.
1670     # However, it has the same basename, so the bogon will be chosen
1671     # first if we set CC to just the basename; use the full file name.
1672     shift
1673     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1674   fi
1675 fi
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   if test -n "$ac_tool_prefix"; then
1690   for ac_prog in cl
1691   do
1692     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   if test -n "$CC"; then
1700   ac_cv_prog_CC="$CC" # Let the user override the test.
1701 else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1704 do
1705   IFS=$as_save_IFS
1706   test -z "$as_dir" && as_dir=.
1707   for ac_exec_ext in '' $ac_executable_extensions; do
1708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712   fi
1713 done
1714 done
1715
1716 fi
1717 fi
1718 CC=$ac_cv_prog_CC
1719 if test -n "$CC"; then
1720   echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1722 else
1723   echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1725 fi
1726
1727     test -n "$CC" && break
1728   done
1729 fi
1730 if test -z "$CC"; then
1731   ac_ct_CC=$CC
1732   for ac_prog in cl
1733 do
1734   # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$ac_ct_CC"; then
1742   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_ac_ct_CC="$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769   test -n "$ac_ct_CC" && break
1770 done
1771
1772   CC=$ac_ct_CC
1773 fi
1774
1775 fi
1776
1777
1778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&2;}
1782    { (exit 1); exit 1; }; }
1783
1784 # Provide some information about the compiler.
1785 echo "$as_me:$LINENO:" \
1786      "checking for C compiler version" >&5
1787 ac_compiler=`set X $ac_compile; echo $2`
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1789   (eval $ac_compiler --version </dev/null >&5) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1794   (eval $ac_compiler -v </dev/null >&5) 2>&5
1795   ac_status=$?
1796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797   (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1799   (eval $ac_compiler -V </dev/null >&5) 2>&5
1800   ac_status=$?
1801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802   (exit $ac_status); }
1803
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line $LINENO "configure"
1806 /* confdefs.h.  */
1807 _ACEOF
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h.  */
1811
1812 int
1813 main ()
1814 {
1815
1816   ;
1817   return 0;
1818 }
1819 _ACEOF
1820 ac_clean_files_save=$ac_clean_files
1821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1822 # Try to create an executable without -o first, disregard a.out.
1823 # It will help us diagnose broken compilers, and finding out an intuition
1824 # of exeext.
1825 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1826 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1828 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1829   (eval $ac_link_default) 2>&5
1830   ac_status=$?
1831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832   (exit $ac_status); }; then
1833   # Find the output, starting from the most likely.  This scheme is
1834 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1835 # resort.
1836
1837 # Be careful to initialize this variable, since it used to be cached.
1838 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 ac_cv_exeext=
1840 # b.out is created by i960 compilers.
1841 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1842 do
1843   test -f "$ac_file" || continue
1844   case $ac_file in
1845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1846         ;;
1847     conftest.$ac_ext )
1848         # This is the source file.
1849         ;;
1850     [ab].out )
1851         # We found the default executable, but exeext='' is most
1852         # certainly right.
1853         break;;
1854     *.* )
1855         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856         # FIXME: I believe we export ac_cv_exeext for Libtool,
1857         # but it would be cool to find out if it's true.  Does anybody
1858         # maintain Libtool? --akim.
1859         export ac_cv_exeext
1860         break;;
1861     * )
1862         break;;
1863   esac
1864 done
1865 else
1866   echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&2;}
1873    { (exit 77); exit 77; }; }
1874 fi
1875
1876 ac_exeext=$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_file" >&5
1878 echo "${ECHO_T}$ac_file" >&6
1879
1880 # Check the compiler produces executables we can run.  If not, either
1881 # the compiler is broken, or we cross compile.
1882 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1883 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1884 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1885 # If not cross compiling, check that we can run a simple program.
1886 if test "$cross_compiling" != yes; then
1887   if { ac_try='./$ac_file'
1888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889   (eval $ac_try) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); }; }; then
1893     cross_compiling=no
1894   else
1895     if test "$cross_compiling" = maybe; then
1896         cross_compiling=yes
1897     else
1898         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&2;}
1904    { (exit 1); exit 1; }; }
1905     fi
1906   fi
1907 fi
1908 echo "$as_me:$LINENO: result: yes" >&5
1909 echo "${ECHO_T}yes" >&6
1910
1911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1912 ac_clean_files=$ac_clean_files_save
1913 # Check the compiler produces executables we can run.  If not, either
1914 # the compiler is broken, or we cross compile.
1915 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1917 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1918 echo "${ECHO_T}$cross_compiling" >&6
1919
1920 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1923   (eval $ac_link) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }; then
1927   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1928 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1929 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 # `rm'.
1931 for ac_file in conftest.exe conftest conftest.*; do
1932   test -f "$ac_file" || continue
1933   case $ac_file in
1934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1935     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1936           export ac_cv_exeext
1937           break;;
1938     * ) break;;
1939   esac
1940 done
1941 else
1942   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948
1949 rm -f conftest$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1951 echo "${ECHO_T}$ac_cv_exeext" >&6
1952
1953 rm -f conftest.$ac_ext
1954 EXEEXT=$ac_cv_exeext
1955 ac_exeext=$EXEEXT
1956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1958 if test "${ac_cv_objext+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1963 /* confdefs.h.  */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h.  */
1968
1969 int
1970 main ()
1971 {
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 rm -f conftest.o conftest.obj
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979   (eval $ac_compile) 2>&5
1980   ac_status=$?
1981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982   (exit $ac_status); }; then
1983   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984   case $ac_file in
1985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1987        break;;
1988   esac
1989 done
1990 else
1991   echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&2;}
1998    { (exit 1); exit 1; }; }
1999 fi
2000
2001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2002 fi
2003 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2004 echo "${ECHO_T}$ac_cv_objext" >&6
2005 OBJEXT=$ac_cv_objext
2006 ac_objext=$OBJEXT
2007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023 #ifndef __GNUC__
2024        choke me
2025 #endif
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033   (eval $ac_compile) 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); } &&
2037          { ac_try='test -s conftest.$ac_objext'
2038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039   (eval $ac_try) 2>&5
2040   ac_status=$?
2041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042   (exit $ac_status); }; }; then
2043   ac_compiler_gnu=yes
2044 else
2045   echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 ac_compiler_gnu=no
2049 fi
2050 rm -f conftest.$ac_objext conftest.$ac_ext
2051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2052
2053 fi
2054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2056 GCC=`test $ac_compiler_gnu = yes && echo yes`
2057 ac_test_CFLAGS=${CFLAGS+set}
2058 ac_save_CFLAGS=$CFLAGS
2059 CFLAGS="-g"
2060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2062 if test "${ac_cv_prog_cc_g+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 /* confdefs.h.  */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h.  */
2072
2073 int
2074 main ()
2075 {
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_cv_prog_cc_g=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_cv_prog_cc_g=no
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2104 if test "$ac_test_CFLAGS" = set; then
2105   CFLAGS=$ac_save_CFLAGS
2106 elif test $ac_cv_prog_cc_g = yes; then
2107   if test "$GCC" = yes; then
2108     CFLAGS="-g -O2"
2109   else
2110     CFLAGS="-g"
2111   fi
2112 else
2113   if test "$GCC" = yes; then
2114     CFLAGS="-O2"
2115   else
2116     CFLAGS=
2117   fi
2118 fi
2119 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2120 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   ac_cv_prog_cc_stdc=no
2125 ac_save_CC=$CC
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 /* confdefs.h.  */
2129 _ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h.  */
2133 #include <stdarg.h>
2134 #include <stdio.h>
2135 #include <sys/types.h>
2136 #include <sys/stat.h>
2137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2138 struct buf { int x; };
2139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140 static char *e (p, i)
2141      char **p;
2142      int i;
2143 {
2144   return p[i];
2145 }
2146 static char *f (char * (*g) (char **, int), char **p, ...)
2147 {
2148   char *s;
2149   va_list v;
2150   va_start (v,p);
2151   s = g (p, va_arg (v,int));
2152   va_end (v);
2153   return s;
2154 }
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2159 int argc;
2160 char **argv;
2161 int
2162 main ()
2163 {
2164 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX                   -qlanglvl=ansi
2172 # Ultrix and OSF/1      -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2175 # SVR4                  -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177 do
2178   CC="$ac_save_CC $ac_arg"
2179   rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181   (eval $ac_compile) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); } &&
2185          { ac_try='test -s conftest.$ac_objext'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; }; then
2191   ac_cv_prog_cc_stdc=$ac_arg
2192 break
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 fi
2198 rm -f conftest.$ac_objext
2199 done
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2201 CC=$ac_save_CC
2202
2203 fi
2204
2205 case "x$ac_cv_prog_cc_stdc" in
2206   x|xno)
2207     echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2209   *)
2210     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212     CC="$CC $ac_cv_prog_cc_stdc" ;;
2213 esac
2214
2215 # Some people use a C++ compiler to compile C.  Since we use `exit',
2216 # in C++ we need to declare it.  In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #ifndef __cplusplus
2221   choke me
2222 #endif
2223 _ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226   (eval $ac_compile) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   for ac_declaration in \
2237    ''\
2238    '#include <stdlib.h>' \
2239    'extern "C" void std::exit (int) throw (); using std::exit;' \
2240    'extern "C" void std::exit (int); using std::exit;' \
2241    'extern "C" void exit (int) throw ();' \
2242    'extern "C" void exit (int);' \
2243    'void exit (int);'
2244 do
2245   cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252 #include <stdlib.h>
2253 $ac_declaration
2254 int
2255 main ()
2256 {
2257 exit (42);
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264   (eval $ac_compile) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); } &&
2268          { ac_try='test -s conftest.$ac_objext'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; }; then
2274   :
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 continue
2280 fi
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282   cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 /* confdefs.h.  */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h.  */
2289 $ac_declaration
2290 int
2291 main ()
2292 {
2293 exit (42);
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300   (eval $ac_compile) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); } &&
2304          { ac_try='test -s conftest.$ac_objext'
2305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306   (eval $ac_try) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; }; then
2310   break
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 fi
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2317 done
2318 rm -f conftest*
2319 if test -n "$ac_declaration"; then
2320   echo '#ifdef __cplusplus' >>confdefs.h
2321   echo $ac_declaration      >>confdefs.h
2322   echo '#endif'             >>confdefs.h
2323 fi
2324
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 fi
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337 ac_ext=cc
2338 ac_cpp='$CXXCPP $CPPFLAGS'
2339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2342 if test -n "$ac_tool_prefix"; then
2343   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2344   do
2345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CXX+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$CXX"; then
2353   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368
2369 fi
2370 fi
2371 CXX=$ac_cv_prog_CXX
2372 if test -n "$CXX"; then
2373   echo "$as_me:$LINENO: result: $CXX" >&5
2374 echo "${ECHO_T}$CXX" >&6
2375 else
2376   echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2378 fi
2379
2380     test -n "$CXX" && break
2381   done
2382 fi
2383 if test -z "$CXX"; then
2384   ac_ct_CXX=$CXX
2385   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2386 do
2387   # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$ac_ct_CXX"; then
2395   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404     ac_cv_prog_ac_ct_CXX="$ac_prog"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410
2411 fi
2412 fi
2413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2414 if test -n "$ac_ct_CXX"; then
2415   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2416 echo "${ECHO_T}$ac_ct_CXX" >&6
2417 else
2418   echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2420 fi
2421
2422   test -n "$ac_ct_CXX" && break
2423 done
2424 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2425
2426   CXX=$ac_ct_CXX
2427 fi
2428
2429
2430 # Provide some information about the compiler.
2431 echo "$as_me:$LINENO:" \
2432      "checking for C++ compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2435   (eval $ac_compiler --version </dev/null >&5) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }
2439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2440   (eval $ac_compiler -v </dev/null >&5) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2445   (eval $ac_compiler -V </dev/null >&5) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }
2449
2450 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462
2463 int
2464 main ()
2465 {
2466 #ifndef __GNUC__
2467        choke me
2468 #endif
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   ac_compiler_gnu=yes
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 ac_compiler_gnu=no
2492 fi
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2495
2496 fi
2497 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2499 GXX=`test $ac_compiler_gnu = yes && echo yes`
2500 ac_test_CXXFLAGS=${CXXFLAGS+set}
2501 ac_save_CXXFLAGS=$CXXFLAGS
2502 CXXFLAGS="-g"
2503 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2505 if test "${ac_cv_prog_cxx_g+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_cv_prog_cxx_g=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_cv_prog_cxx_g=no
2542 fi
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2546 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2547 if test "$ac_test_CXXFLAGS" = set; then
2548   CXXFLAGS=$ac_save_CXXFLAGS
2549 elif test $ac_cv_prog_cxx_g = yes; then
2550   if test "$GXX" = yes; then
2551     CXXFLAGS="-g -O2"
2552   else
2553     CXXFLAGS="-g"
2554   fi
2555 else
2556   if test "$GXX" = yes; then
2557     CXXFLAGS="-O2"
2558   else
2559     CXXFLAGS=
2560   fi
2561 fi
2562 for ac_declaration in \
2563    ''\
2564    '#include <stdlib.h>' \
2565    'extern "C" void std::exit (int) throw (); using std::exit;' \
2566    'extern "C" void std::exit (int); using std::exit;' \
2567    'extern "C" void exit (int) throw ();' \
2568    'extern "C" void exit (int);' \
2569    'void exit (int);'
2570 do
2571   cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578 #include <stdlib.h>
2579 $ac_declaration
2580 int
2581 main ()
2582 {
2583 exit (42);
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590   (eval $ac_compile) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 continue
2606 fi
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608   cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615 $ac_declaration
2616 int
2617 main ()
2618 {
2619 exit (42);
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   break
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641 fi
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2643 done
2644 rm -f conftest*
2645 if test -n "$ac_declaration"; then
2646   echo '#ifdef __cplusplus' >>confdefs.h
2647   echo $ac_declaration      >>confdefs.h
2648   echo '#endif'             >>confdefs.h
2649 fi
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657 if test "x$CC" != xcc; then
2658   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2659 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2660 else
2661   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2662 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2663 fi
2664 set dummy $CC; ac_cc=`echo $2 |
2665                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2666 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676
2677 int
2678 main ()
2679 {
2680
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 # Make sure it works both with $CC and with simple cc.
2686 # We do the test twice because some compilers refuse to overwrite an
2687 # existing .o file with -o, though they will create one.
2688 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2689 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } &&
2694    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); };
2699 then
2700   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2701   if test "x$CC" != xcc; then
2702     # Test first that cc exists at all.
2703     if { ac_try='cc -c conftest.$ac_ext >&5'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; }; then
2709       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2710       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); };
2720       then
2721         # cc works too.
2722         :
2723       else
2724         # cc exists but doesn't like -o.
2725         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2726       fi
2727     fi
2728   fi
2729 else
2730   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2731 fi
2732 rm -f conftest*
2733
2734 fi
2735 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2736   echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738 else
2739   echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741
2742 cat >>confdefs.h <<\_ACEOF
2743 #define NO_MINUS_C_MINUS_O 1
2744 _ACEOF
2745
2746 fi
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2755 # On Suns, sometimes $CPP names a directory.
2756 if test -n "$CPP" && test -d "$CPP"; then
2757   CPP=
2758 fi
2759 if test -z "$CPP"; then
2760   if test "${ac_cv_prog_CPP+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763       # Double quotes because CPP needs to be expanded
2764     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2765     do
2766       ac_preproc_ok=false
2767 for ac_c_preproc_warn_flag in '' yes
2768 do
2769   # Use a header file that comes with gcc, so configuring glibc
2770   # with a fresh cross-compiler works.
2771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2772   # <limits.h> exists even on freestanding compilers.
2773   # On the NeXT, cc -E runs the code through the compiler's parser,
2774   # not just through cpp. "Syntax error" is here to catch this case.
2775   cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782 #ifdef __STDC__
2783 # include <limits.h>
2784 #else
2785 # include <assert.h>
2786 #endif
2787                      Syntax error
2788 _ACEOF
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } >/dev/null; then
2797   if test -s conftest.err; then
2798     ac_cpp_err=$ac_c_preproc_warn_flag
2799   else
2800     ac_cpp_err=
2801   fi
2802 else
2803   ac_cpp_err=yes
2804 fi
2805 if test -z "$ac_cpp_err"; then
2806   :
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811   # Broken: fails on valid input.
2812 continue
2813 fi
2814 rm -f conftest.err conftest.$ac_ext
2815
2816   # OK, works on sane cases.  Now check whether non-existent headers
2817   # can be detected and how.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #include <ac_nonexistent.h>
2826 _ACEOF
2827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } >/dev/null; then
2835   if test -s conftest.err; then
2836     ac_cpp_err=$ac_c_preproc_warn_flag
2837   else
2838     ac_cpp_err=
2839   fi
2840 else
2841   ac_cpp_err=yes
2842 fi
2843 if test -z "$ac_cpp_err"; then
2844   # Broken: success on invalid input.
2845 continue
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850   # Passes both tests.
2851 ac_preproc_ok=:
2852 break
2853 fi
2854 rm -f conftest.err conftest.$ac_ext
2855
2856 done
2857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2858 rm -f conftest.err conftest.$ac_ext
2859 if $ac_preproc_ok; then
2860   break
2861 fi
2862
2863     done
2864     ac_cv_prog_CPP=$CPP
2865
2866 fi
2867   CPP=$ac_cv_prog_CPP
2868 else
2869   ac_cv_prog_CPP=$CPP
2870 fi
2871 echo "$as_me:$LINENO: result: $CPP" >&5
2872 echo "${ECHO_T}$CPP" >&6
2873 ac_preproc_ok=false
2874 for ac_c_preproc_warn_flag in '' yes
2875 do
2876   # Use a header file that comes with gcc, so configuring glibc
2877   # with a fresh cross-compiler works.
2878   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879   # <limits.h> exists even on freestanding compilers.
2880   # On the NeXT, cc -E runs the code through the compiler's parser,
2881   # not just through cpp. "Syntax error" is here to catch this case.
2882   cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889 #ifdef __STDC__
2890 # include <limits.h>
2891 #else
2892 # include <assert.h>
2893 #endif
2894                      Syntax error
2895 _ACEOF
2896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } >/dev/null; then
2904   if test -s conftest.err; then
2905     ac_cpp_err=$ac_c_preproc_warn_flag
2906   else
2907     ac_cpp_err=
2908   fi
2909 else
2910   ac_cpp_err=yes
2911 fi
2912 if test -z "$ac_cpp_err"; then
2913   :
2914 else
2915   echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918   # Broken: fails on valid input.
2919 continue
2920 fi
2921 rm -f conftest.err conftest.$ac_ext
2922
2923   # OK, works on sane cases.  Now check whether non-existent headers
2924   # can be detected and how.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #include <ac_nonexistent.h>
2933 _ACEOF
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } >/dev/null; then
2942   if test -s conftest.err; then
2943     ac_cpp_err=$ac_c_preproc_warn_flag
2944   else
2945     ac_cpp_err=
2946   fi
2947 else
2948   ac_cpp_err=yes
2949 fi
2950 if test -z "$ac_cpp_err"; then
2951   # Broken: success on invalid input.
2952 continue
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957   # Passes both tests.
2958 ac_preproc_ok=:
2959 break
2960 fi
2961 rm -f conftest.err conftest.$ac_ext
2962
2963 done
2964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2965 rm -f conftest.err conftest.$ac_ext
2966 if $ac_preproc_ok; then
2967   :
2968 else
2969   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&2;}
2973    { (exit 1); exit 1; }; }
2974 fi
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982
2983 echo "$as_me:$LINENO: checking for egrep" >&5
2984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2985 if test "${ac_cv_prog_egrep+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2989     then ac_cv_prog_egrep='grep -E'
2990     else ac_cv_prog_egrep='egrep'
2991     fi
2992 fi
2993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2995  EGREP=$ac_cv_prog_egrep
2996
2997
2998 if test $ac_cv_c_compiler_gnu = yes; then
2999     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3000 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3001 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004     ac_pattern="Autoconf.*'x'"
3005   cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 #include <sgtty.h>
3013 Autoconf TIOCGETP
3014 _ACEOF
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3017   ac_cv_prog_gcc_traditional=yes
3018 else
3019   ac_cv_prog_gcc_traditional=no
3020 fi
3021 rm -f conftest*
3022
3023
3024   if test $ac_cv_prog_gcc_traditional = no; then
3025     cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032 #include <termio.h>
3033 Autoconf TCGETA
3034 _ACEOF
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037   ac_cv_prog_gcc_traditional=yes
3038 fi
3039 rm -f conftest*
3040
3041   fi
3042 fi
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3044 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3045   if test $ac_cv_prog_gcc_traditional = yes; then
3046     CC="$CC -traditional"
3047   fi
3048 fi
3049
3050 if test x$CC = xgcc
3051 then
3052    cat >>confdefs.h <<\_ACEOF
3053 #define HAVE_GCC 1
3054 _ACEOF
3055
3056 fi
3057
3058 # Find a good install program.  We prefer a C program (faster),
3059 # so one script is as good as another.  But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3064 # AIX /bin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3072 if test -z "$INSTALL"; then
3073 if test "${ac_cv_path_install+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   # Account for people who put trailing slashes in PATH elements.
3082 case $as_dir/ in
3083   ./ | .// | /cC/* | \
3084   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3085   /usr/ucb/* ) ;;
3086   *)
3087     # OSF1 and SCO ODT 3.0 have their own names for install.
3088     # Don't use installbsd from OSF since it installs stuff as root
3089     # by default.
3090     for ac_prog in ginstall scoinst install; do
3091       for ac_exec_ext in '' $ac_executable_extensions; do
3092         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3093           if test $ac_prog = install &&
3094             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095             # AIX install.  It has an incompatible calling convention.
3096             :
3097           elif test $ac_prog = install &&
3098             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099             # program-specific install script used by HP pwplus--don't use.
3100             :
3101           else
3102             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3103             break 3
3104           fi
3105         fi
3106       done
3107     done
3108     ;;
3109 esac
3110 done
3111
3112
3113 fi
3114   if test "${ac_cv_path_install+set}" = set; then
3115     INSTALL=$ac_cv_path_install
3116   else
3117     # As a last resort, use the slow shell script.  We don't cache a
3118     # path for INSTALL within a source directory, because that will
3119     # break other packages using the cache if that directory is
3120     # removed, or if the path is relative.
3121     INSTALL=$ac_install_sh
3122   fi
3123 fi
3124 echo "$as_me:$LINENO: result: $INSTALL" >&5
3125 echo "${ECHO_T}$INSTALL" >&6
3126
3127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3128 # It thinks the first close brace ends the variable substitution.
3129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130
3131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132
3133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134
3135 if test -n "$ac_tool_prefix"; then
3136   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138 echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140 if test "${ac_cv_prog_RANLIB+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   if test -n "$RANLIB"; then
3144   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158 done
3159
3160 fi
3161 fi
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164   echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3166 else
3167   echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3169 fi
3170
3171 fi
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173   ac_ct_RANLIB=$RANLIB
3174   # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   if test -n "$ac_ct_RANLIB"; then
3182   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191     ac_cv_prog_ac_ct_RANLIB="ranlib"
3192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197
3198   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3199 fi
3200 fi
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 else
3206   echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208 fi
3209
3210   RANLIB=$ac_ct_RANLIB
3211 else
3212   RANLIB="$ac_cv_prog_RANLIB"
3213 fi
3214
3215 # Extract the first word of "mv", so it can be a program name with args.
3216 set dummy mv; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_MV+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   case $MV in
3223   [\\/]* | ?:[\\/]*)
3224   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3225   ;;
3226   *)
3227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3242   ;;
3243 esac
3244 fi
3245 MV=$ac_cv_path_MV
3246
3247 if test -n "$MV"; then
3248   echo "$as_me:$LINENO: result: $MV" >&5
3249 echo "${ECHO_T}$MV" >&6
3250 else
3251   echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253 fi
3254
3255 # Extract the first word of "rm", so it can be a program name with args.
3256 set dummy rm; ac_word=$2
3257 echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_path_RM+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   case $RM in
3263   [\\/]* | ?:[\\/]*)
3264   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3265   ;;
3266   *)
3267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272   for ac_exec_ext in '' $ac_executable_extensions; do
3273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276     break 2
3277   fi
3278 done
3279 done
3280
3281   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3282   ;;
3283 esac
3284 fi
3285 RM=$ac_cv_path_RM
3286
3287 if test -n "$RM"; then
3288   echo "$as_me:$LINENO: result: $RM" >&5
3289 echo "${ECHO_T}$RM" >&6
3290 else
3291   echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295 # Extract the first word of "cp", so it can be a program name with args.
3296 set dummy cp; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_path_CP+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   case $CP in
3303   [\\/]* | ?:[\\/]*)
3304   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3305   ;;
3306   *)
3307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312   for ac_exec_ext in '' $ac_executable_extensions; do
3313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319 done
3320
3321   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3322   ;;
3323 esac
3324 fi
3325 CP=$ac_cv_path_CP
3326
3327 if test -n "$CP"; then
3328   echo "$as_me:$LINENO: result: $CP" >&5
3329 echo "${ECHO_T}$CP" >&6
3330 else
3331   echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3333 fi
3334
3335 # Extract the first word of "sed", so it can be a program name with args.
3336 set dummy sed; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_path_SED+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   case $SED in
3343   [\\/]* | ?:[\\/]*)
3344   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3345   ;;
3346   *)
3347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3362   ;;
3363 esac
3364 fi
3365 SED=$ac_cv_path_SED
3366
3367 if test -n "$SED"; then
3368   echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375 # Extract the first word of "awk", so it can be a program name with args.
3376 set dummy awk; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_path_AWK+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   case $AWK in
3383   [\\/]* | ?:[\\/]*)
3384   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3385   ;;
3386   *)
3387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392   for ac_exec_ext in '' $ac_executable_extensions; do
3393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399 done
3400
3401   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3402   ;;
3403 esac
3404 fi
3405 AWK=$ac_cv_path_AWK
3406
3407 if test -n "$AWK"; then
3408   echo "$as_me:$LINENO: result: $AWK" >&5
3409 echo "${ECHO_T}$AWK" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
3414
3415 # Extract the first word of "echo", so it can be a program name with args.
3416 set dummy echo; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_path_ECHO+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   case $ECHO in
3423   [\\/]* | ?:[\\/]*)
3424   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3425   ;;
3426   *)
3427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440
3441   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3442   ;;
3443 esac
3444 fi
3445 ECHO=$ac_cv_path_ECHO
3446
3447 if test -n "$ECHO"; then
3448   echo "$as_me:$LINENO: result: $ECHO" >&5
3449 echo "${ECHO_T}$ECHO" >&6
3450 else
3451   echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3453 fi
3454
3455 # Extract the first word of "cmp", so it can be a program name with args.
3456 set dummy cmp; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_path_CMP+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   case $CMP in
3463   [\\/]* | ?:[\\/]*)
3464   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3465   ;;
3466   *)
3467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470   IFS=$as_save_IFS
3471   test -z "$as_dir" && as_dir=.
3472   for ac_exec_ext in '' $ac_executable_extensions; do
3473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476     break 2
3477   fi
3478 done
3479 done
3480
3481   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3482   ;;
3483 esac
3484 fi
3485 CMP=$ac_cv_path_CMP
3486
3487 if test -n "$CMP"; then
3488   echo "$as_me:$LINENO: result: $CMP" >&5
3489 echo "${ECHO_T}$CMP" >&6
3490 else
3491   echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494
3495 # Extract the first word of "tbl", so it can be a program name with args.
3496 set dummy tbl; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_path_TBL+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   case $TBL in
3503   [\\/]* | ?:[\\/]*)
3504   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3505   ;;
3506   *)
3507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510   IFS=$as_save_IFS
3511   test -z "$as_dir" && as_dir=.
3512   for ac_exec_ext in '' $ac_executable_extensions; do
3513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516     break 2
3517   fi
3518 done
3519 done
3520
3521   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3522   ;;
3523 esac
3524 fi
3525 TBL=$ac_cv_path_TBL
3526
3527 if test -n "$TBL"; then
3528   echo "$as_me:$LINENO: result: $TBL" >&5
3529 echo "${ECHO_T}$TBL" >&6
3530 else
3531   echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3533 fi
3534
3535 # Extract the first word of "ar", so it can be a program name with args.
3536 set dummy ar; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_path_AR+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   case $AR in
3543   [\\/]* | ?:[\\/]*)
3544   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3545   ;;
3546   *)
3547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   for ac_exec_ext in '' $ac_executable_extensions; do
3553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559 done
3560
3561   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3562   ;;
3563 esac
3564 fi
3565 AR=$ac_cv_path_AR
3566
3567 if test -n "$AR"; then
3568   echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3570 else
3571   echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 fi
3574
3575 # Extract the first word of "openssl", so it can be a program name with args.
3576 set dummy openssl; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_path_OPENSSL+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   case $OPENSSL in
3583   [\\/]* | ?:[\\/]*)
3584   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3585   ;;
3586   *)
3587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600
3601   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3602   ;;
3603 esac
3604 fi
3605 OPENSSL=$ac_cv_path_OPENSSL
3606
3607 if test -n "$OPENSSL"; then
3608   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3609 echo "${ECHO_T}$OPENSSL" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613 fi
3614
3615 # Extract the first word of "mtx", so it can be a program name with args.
3616 set dummy mtx; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_MTX+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   case $MTX in
3623   [\\/]* | ?:[\\/]*)
3624   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3625   ;;
3626   *)
3627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_exec_ext in '' $ac_executable_extensions; do
3633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636     break 2
3637   fi
3638 done
3639 done
3640
3641   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3642   ;;
3643 esac
3644 fi
3645 MTX=$ac_cv_path_MTX
3646
3647 if test -n "$MTX"; then
3648   echo "$as_me:$LINENO: result: $MTX" >&5
3649 echo "${ECHO_T}$MTX" >&6
3650 else
3651   echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3653 fi
3654
3655 # Extract the first word of "pkg-config", so it can be a program name with args.
3656 set dummy pkg-config; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   case $PKGCONFIG in
3663   [\\/]* | ?:[\\/]*)
3664   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3665   ;;
3666   *)
3667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672   for ac_exec_ext in '' $ac_executable_extensions; do
3673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679 done
3680
3681   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3682   ;;
3683 esac
3684 fi
3685 PKGCONFIG=$ac_cv_path_PKGCONFIG
3686
3687 if test -n "$PKGCONFIG"; then
3688   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3689 echo "${ECHO_T}$PKGCONFIG" >&6
3690 else
3691   echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3693 fi
3694
3695 # Extract the first word of "wx-config", so it can be a program name with args.
3696 set dummy wx-config; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   case $WXCONFIG in
3703   [\\/]* | ?:[\\/]*)
3704   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3705   ;;
3706   *)
3707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_exec_ext in '' $ac_executable_extensions; do
3713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719 done
3720
3721   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3722   ;;
3723 esac
3724 fi
3725 WXCONFIG=$ac_cv_path_WXCONFIG
3726
3727 if test -n "$WXCONFIG"; then
3728   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3729 echo "${ECHO_T}$WXCONFIG" >&6
3730 else
3731   echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 fi
3734
3735
3736 test -n "$ARFLAG" || ARFLAGS="cr"
3737
3738
3739 MAKE_SHELL=/bin/sh
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 # Make sure we can run config.sub.
3750 $ac_config_sub sun4 >/dev/null 2>&1 ||
3751   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3752 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3753    { (exit 1); exit 1; }; }
3754
3755 echo "$as_me:$LINENO: checking build system type" >&5
3756 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3757 if test "${ac_cv_build+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   ac_cv_build_alias=$build_alias
3761 test -z "$ac_cv_build_alias" &&
3762   ac_cv_build_alias=`$ac_config_guess`
3763 test -z "$ac_cv_build_alias" &&
3764   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3766    { (exit 1); exit 1; }; }
3767 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3768   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3769 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3770    { (exit 1); exit 1; }; }
3771
3772 fi
3773 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3774 echo "${ECHO_T}$ac_cv_build" >&6
3775 build=$ac_cv_build
3776 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3777 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3778 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3779
3780
3781
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789   ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793    { (exit 1); exit 1; }; }
3794
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3798 host=$ac_cv_host
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3802
3803
3804 case $host_os in
3805   *cygwin* ) CYGWIN=yes;;
3806          * ) CYGWIN=no;;
3807 esac
3808
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3810 then
3811
3812
3813 if $TRUEPRG; then
3814   HAVE_SUN_OS_TRUE=
3815   HAVE_SUN_OS_FALSE='#'
3816 else
3817   HAVE_SUN_OS_TRUE='#'
3818   HAVE_SUN_OS_FALSE=
3819 fi
3820         cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3822 _ACEOF
3823
3824 else
3825
3826
3827 if $FALSEPRG; then
3828   HAVE_SUN_OS_TRUE=
3829   HAVE_SUN_OS_FALSE='#'
3830 else
3831   HAVE_SUN_OS_TRUE='#'
3832   HAVE_SUN_OS_FALSE=
3833 fi
3834 fi
3835
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3837 then
3838
3839
3840 if $TRUEPRG; then
3841   HAVE_OSF1_OS_TRUE=
3842   HAVE_OSF1_OS_FALSE='#'
3843 else
3844   HAVE_OSF1_OS_TRUE='#'
3845   HAVE_OSF1_OS_FALSE=
3846 fi
3847         cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3849 _ACEOF
3850
3851 else
3852
3853
3854 if $FALSEPRG; then
3855   HAVE_OSF1_OS_TRUE=
3856   HAVE_OSF1_OS_FALSE='#'
3857 else
3858   HAVE_OSF1_OS_TRUE='#'
3859   HAVE_OSF1_OS_FALSE=
3860 fi
3861 fi
3862
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3864 then
3865
3866
3867 if $TRUEPRG; then
3868   HAVE_AIX_OS_TRUE=
3869   HAVE_AIX_OS_FALSE='#'
3870 else
3871   HAVE_AIX_OS_TRUE='#'
3872   HAVE_AIX_OS_FALSE=
3873 fi
3874         cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3876 _ACEOF
3877
3878 else
3879
3880
3881 if $FALSEPRG; then
3882   HAVE_AIX_OS_TRUE=
3883   HAVE_AIX_OS_FALSE='#'
3884 else
3885   HAVE_AIX_OS_TRUE='#'
3886   HAVE_AIX_OS_FALSE=
3887 fi
3888 fi
3889
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3891 then
3892
3893
3894 if $TRUEPRG; then
3895   HAVE_HPUX_OS_TRUE=
3896   HAVE_HPUX_OS_FALSE='#'
3897 else
3898   HAVE_HPUX_OS_TRUE='#'
3899   HAVE_HPUX_OS_FALSE=
3900 fi
3901         cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3903 _ACEOF
3904
3905 else
3906
3907
3908 if $FALSEPRG; then
3909   HAVE_HPUX_OS_TRUE=
3910   HAVE_HPUX_OS_FALSE='#'
3911 else
3912   HAVE_HPUX_OS_TRUE='#'
3913   HAVE_HPUX_OS_FALSE=
3914 fi
3915 fi
3916
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3918 then
3919
3920
3921 if $TRUEPRG; then
3922   HAVE_LINUX_OS_TRUE=
3923   HAVE_LINUX_OS_FALSE='#'
3924 else
3925   HAVE_LINUX_OS_TRUE='#'
3926   HAVE_LINUX_OS_FALSE=
3927 fi
3928         cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3930 _ACEOF
3931
3932 else
3933
3934
3935 if $FALSEPRG; then
3936   HAVE_LINUX_OS_TRUE=
3937   HAVE_LINUX_OS_FALSE='#'
3938 else
3939   HAVE_LINUX_OS_TRUE='#'
3940   HAVE_LINUX_OS_FALSE=
3941 fi
3942 fi
3943
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3945 then
3946
3947
3948 if $TRUEPRG; then
3949   HAVE_FREEBSD_OS_TRUE=
3950   HAVE_FREEBSD_OS_FALSE='#'
3951 else
3952   HAVE_FREEBSD_OS_TRUE='#'
3953   HAVE_FREEBSD_OS_FALSE=
3954 fi
3955         cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3957 _ACEOF
3958
3959 else
3960
3961
3962 if $FALSEPRG; then
3963   HAVE_FREEBSD_OS_TRUE=
3964   HAVE_FREEBSD_OS_FALSE='#'
3965 else
3966   HAVE_FREEBSD_OS_TRUE='#'
3967   HAVE_FREEBSD_OS_FALSE=
3968 fi
3969 fi
3970
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3972 then
3973
3974
3975 if $TRUEPRG; then
3976   HAVE_NETBSD_OS_TRUE=
3977   HAVE_NETBSD_OS_FALSE='#'
3978 else
3979   HAVE_NETBSD_OS_TRUE='#'
3980   HAVE_NETBSD_OS_FALSE=
3981 fi
3982         cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3984 _ACEOF
3985
3986 else
3987
3988
3989 if $FALSEPRG; then
3990   HAVE_NETBSD_OS_TRUE=
3991   HAVE_NETBSD_OS_FALSE='#'
3992 else
3993   HAVE_NETBSD_OS_TRUE='#'
3994   HAVE_NETBSD_OS_FALSE=
3995 fi
3996 fi
3997
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3999 then
4000
4001
4002 if $TRUEPRG; then
4003   HAVE_OPENBSD_OS_TRUE=
4004   HAVE_OPENBSD_OS_FALSE='#'
4005 else
4006   HAVE_OPENBSD_OS_TRUE='#'
4007   HAVE_OPENBSD_OS_FALSE=
4008 fi
4009         cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4011 _ACEOF
4012
4013 else
4014
4015
4016 if $FALSEPRG; then
4017   HAVE_OPENBSD_OS_TRUE=
4018   HAVE_OPENBSD_OS_FALSE='#'
4019 else
4020   HAVE_OPENBSD_OS_TRUE='#'
4021   HAVE_OPENBSD_OS_FALSE=
4022 fi
4023 fi
4024
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4026 then
4027
4028
4029 if $TRUEPRG; then
4030   HAVE_BSDI_OS_TRUE=
4031   HAVE_BSDI_OS_FALSE='#'
4032 else
4033   HAVE_BSDI_OS_TRUE='#'
4034   HAVE_BSDI_OS_FALSE=
4035 fi
4036         cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4038 _ACEOF
4039
4040 else
4041
4042
4043 if $FALSEPRG; then
4044   HAVE_BSDI_OS_TRUE=
4045   HAVE_BSDI_OS_FALSE='#'
4046 else
4047   HAVE_BSDI_OS_TRUE='#'
4048   HAVE_BSDI_OS_FALSE=
4049 fi
4050 fi
4051
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4053 then
4054
4055
4056 if $TRUEPRG; then
4057   HAVE_SGI_OS_TRUE=
4058   HAVE_SGI_OS_FALSE='#'
4059 else
4060   HAVE_SGI_OS_TRUE='#'
4061   HAVE_SGI_OS_FALSE=
4062 fi
4063         cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4065 _ACEOF
4066
4067 else
4068
4069
4070 if $FALSEPRG; then
4071   HAVE_SGI_OS_TRUE=
4072   HAVE_SGI_OS_FALSE='#'
4073 else
4074   HAVE_SGI_OS_TRUE='#'
4075   HAVE_SGI_OS_FALSE=
4076 fi
4077 fi
4078
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4080 then
4081
4082
4083 if $TRUEPRG; then
4084   HAVE_IRIX_OS_TRUE=
4085   HAVE_IRIX_OS_FALSE='#'
4086 else
4087   HAVE_IRIX_OS_TRUE='#'
4088   HAVE_IRIX_OS_FALSE=
4089 fi
4090         cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4092 _ACEOF
4093
4094 else
4095
4096
4097 if $FALSEPRG; then
4098   HAVE_IRIX_OS_TRUE=
4099   HAVE_IRIX_OS_FALSE='#'
4100 else
4101   HAVE_IRIX_OS_TRUE='#'
4102   HAVE_IRIX_OS_FALSE=
4103 fi
4104 fi
4105
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4107 then
4108
4109
4110 if $TRUEPRG; then
4111   HAVE_DARWIN_OS_TRUE=
4112   HAVE_DARWIN_OS_FALSE='#'
4113 else
4114   HAVE_DARWIN_OS_TRUE='#'
4115   HAVE_DARWIN_OS_FALSE=
4116 fi
4117     cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4119 _ACEOF
4120
4121 else
4122
4123
4124 if $FALSEPRG; then
4125   HAVE_DARWIN_OS_TRUE=
4126   HAVE_DARWIN_OS_FALSE='#'
4127 else
4128   HAVE_DARWIN_OS_TRUE='#'
4129   HAVE_DARWIN_OS_FALSE=
4130 fi
4131 fi
4132
4133
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4139 then
4140         echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4142 then
4143         DISTNAME=alpha
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4145 then
4146         DISTNAME=aix
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4148 then
4149         DISTNAME=hpux
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4151 then
4152         DISTNAME=solaris
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4154 then
4155         DISTNAME=freebsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4157 then
4158         DISTNAME=netbsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4160 then
4161         DISTNAME=openbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4163 then
4164         DISTNAME=irix
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4166 then
4167         DISTNAME=bsdi
4168 elif test -f /etc/SuSE-release
4169 then
4170         DISTNAME=suse
4171 elif test -d /etc/SuSEconfig
4172 then
4173         DISTNAME=suse5
4174 elif test -f /etc/mandrake-release
4175 then
4176         DISTNAME=mandrake
4177 elif test -f /etc/whitebox-release
4178 then
4179        DISTNAME=redhat
4180 elif test -f /etc/redhat-release
4181 then
4182         DISTNAME=redhat
4183 elif test -f /etc/gentoo-release
4184 then
4185         DISTNAME=gentoo
4186 elif test -f /etc/debian_version
4187 then
4188         DISTNAME=debian
4189 elif test -f /etc/slackware-version
4190 then
4191         DISTNAME=slackware
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4193 then
4194     DISTNAME=darwin
4195 elif test -f /etc/engarde-version
4196 then
4197         DISTNAME=engarde
4198 elif test "$CYGWIN" = yes
4199 then
4200         DISTNAME=cygwin
4201         cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4203 _ACEOF
4204
4205 else
4206         DISTNAME=unknown
4207 fi
4208 echo "$as_me:$LINENO: result: done" >&5
4209 echo "${ECHO_T}done" >&6
4210
4211
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4214
4215
4216
4217 if false; then
4218   INSIDE_GNOME_COMMON_TRUE=
4219   INSIDE_GNOME_COMMON_FALSE='#'
4220 else
4221   INSIDE_GNOME_COMMON_TRUE='#'
4222   INSIDE_GNOME_COMMON_FALSE=
4223 fi
4224
4225         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226
4227         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4228
4229
4230 # ------------------------------------------------------------------
4231 #  If the user has not set --prefix, we set our default to nothing.
4232 #  In this case, if the user has not set --sysconfdir, we set it
4233 #  to the package default of /etc/bacula.  If either --prefix or
4234 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238         sysconfdir=/etc/bacula
4239     fi
4240     prefix=
4241 fi
4242 sysconfdir=`eval echo ${sysconfdir}`
4243
4244 # -------------------------------------------------------------------------
4245 #  If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248     exec_prefix=${prefix}
4249 fi
4250
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255     sbindir=${exec_prefix}/sbin
4256 fi
4257 sbindir=`eval echo ${sbindir}`
4258
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 #  language is separated by a space.
4262 # ------------------------------------------------------------------
4263 ALL_LINGUAS=""
4264
4265 for ac_prog in msgfmt
4266 do
4267   # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   case $MSGFMT in
4275   [\\/]* | ?:[\\/]*)
4276   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4277   ;;
4278   *)
4279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293   ;;
4294 esac
4295 fi
4296 MSGFMT=$ac_cv_path_MSGFMT
4297
4298 if test -n "$MSGFMT"; then
4299   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   test -n "$MSGFMT" && break
4307 done
4308 test -n "$MSGFMT" || MSGFMT="no"
4309
4310 if test "$MSGFMT" = "no"
4311 then
4312    echo 'msgfmt program not found, disabling NLS !'
4313    USE_NLS=no
4314    USE_INCLUDED_LIBINTL=no
4315 #else
4316 #   AM_GNU_GETTEXT
4317 fi
4318
4319
4320 support_mysql=no
4321 support_sqlite=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4325 support_conio=yes
4326 support_gnome=no
4327 support_wx_console=no
4328 gnome_version=
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4335 cats=
4336 db_name=Internal
4337 DB_NAME=bdb
4338
4339
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345   enableval="$enable_gnome"
4346   if test x$enableval = xyes; then
4347     support_gnome=yes
4348   fi
4349 fi;
4350
4351 GNOME_DIR=
4352 if test x$support_gnome = xyes; then
4353   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354   pkg=$?
4355   if test $pkg = 0; then
4356      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4360
4361
4362
4363
4364      GNOME_DIR=src/gnome2-console
4365      gnome_version="Version 2.x"
4366   else
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380   withval="$with_gnome_includes"
4381
4382         CFLAGS="$CFLAGS -I$withval"
4383
4384 fi;
4385
4386
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389   withval="$with_gnome_libs"
4390
4391         LDFLAGS="$LDFLAGS -L$withval"
4392         gnome_prefix=$withval
4393
4394 fi;
4395
4396
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399   withval="$with_gnome"
4400   if test x$withval = xyes; then
4401                         want_gnome=yes
4402                                                                         :
4403                 else
4404                         if test "x$withval" = xno; then
4405                                 want_gnome=no
4406                         else
4407                                 want_gnome=yes
4408                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4409                                 CFLAGS="$CFLAGS -I$withval/include"
4410                                 gnome_prefix=$withval/lib
4411                         fi
4412                 fi
4413 else
4414   want_gnome=yes
4415 fi;
4416
4417         if test "x$want_gnome" = xyes; then
4418
4419             # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $GNOME_CONFIG in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446   ;;
4447 esac
4448 fi
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450
4451 if test -n "$GNOME_CONFIG"; then
4452   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459             if test "$GNOME_CONFIG" = "no"; then
4460               no_gnome_config="yes"
4461             else
4462               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465                 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467
4468
4469         # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ORBIT_CONFIG in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496   ;;
4497 esac
4498 fi
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500
4501 if test -n "$ORBIT_CONFIG"; then
4502   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509         # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_IDL in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540
4541 if test -n "$ORBIT_IDL"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554
4555                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556                         gnome_cv_orbit_found=no
4557                 else
4558                         gnome_cv_orbit_found=yes
4559                 fi
4560
4561 fi
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564
4565
4566 if test x$gnome_cv_orbit_found = xyes; then
4567   HAVE_ORBIT_TRUE=
4568   HAVE_ORBIT_FALSE='#'
4569 else
4570   HAVE_ORBIT_TRUE='#'
4571   HAVE_ORBIT_FALSE=
4572 fi
4573         if test x$gnome_cv_orbit_found = xyes; then
4574
4575                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577
4578
4579         else
4580                 if test xfail = xfailure; then
4581                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583    { (exit 1); exit 1; }; }
4584                 fi
4585         fi
4586
4587         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592
4593                 gnome_cv_gnorba_found=no
4594                 if test x$gnome_cv_orbit_found = xyes; then
4595                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597                         if test -n "$GNORBA_LIBS"; then
4598                                 gnome_cv_gnorba_found=yes
4599                         fi
4600                 fi
4601
4602 fi
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605
4606
4607 if test x$gnome_cv_gnorba_found = xyes; then
4608   HAVE_GNORBA_TRUE=
4609   HAVE_GNORBA_FALSE='#'
4610 else
4611   HAVE_GNORBA_TRUE='#'
4612   HAVE_GNORBA_FALSE=
4613 fi
4614         if test x$gnome_cv_orbit_found = xyes; then
4615
4616                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618
4619
4620         else
4621                 if test xfail = xfailure; then
4622                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624    { (exit 1); exit 1; }; }
4625                 fi
4626         fi
4627
4628                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635
4636               else
4637                 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639                 no_gnome_config="yes"
4640               fi
4641             fi
4642
4643             if test x$exec_prefix = xNONE; then
4644                 if test x$prefix = xNONE; then
4645                     gnome_prefix=$ac_default_prefix/lib
4646                 else
4647                     gnome_prefix=$prefix/lib
4648                 fi
4649             else
4650                 gnome_prefix=`eval echo \`echo $libdir\``
4651             fi
4652
4653             if test "$no_gnome_config" = "yes"; then
4654               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656               if test -f $gnome_prefix/gnomeConf.sh; then
4657                 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659                 echo "loading gnome configuration from" \
4660                      "$gnome_prefix/gnomeConf.sh"
4661                 . $gnome_prefix/gnomeConf.sh
4662
4663               else
4664                 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666                 if test xfail = xfail; then
4667                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669    { (exit 1); exit 1; }; }
4670                 fi
4671               fi
4672             fi
4673         fi
4674
4675         if test -n ""; then
4676           n=""
4677           for i in $n; do
4678             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680             case $i in
4681               applets)
4682
4683                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686               docklets)
4687
4688                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691               capplet)
4692
4693                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696               *)
4697                 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4699             esac
4700             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4702           done
4703         fi
4704
4705
4706      GNOME_DIR=src/gnome-console
4707      gnome_version="Version 1.4"
4708   fi
4709 fi
4710
4711
4712
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718   enableval="$enable_wx_console"
4719   if test x$enableval = xyes; then
4720     support_wx_console=yes
4721   fi
4722 fi;
4723
4724 WX_DIR=
4725 if test x$support_wx_console = xyes; then
4726   abc=`$WXCONFIG --cppflags`
4727   pkg=$?
4728   if test $pkg = 0; then
4729      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4731
4732
4733      WX_DIR=src/wx-console
4734   else
4735      echo " "
4736      echo "wx-config program not found. wx-console disabled."
4737      echo " "
4738      support_wx_console=no
4739   fi
4740 fi
4741
4742
4743
4744 # -------------------------------------------
4745 # tray-monitor (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4748 if test "${enable_tray_monitor+set}" = set; then
4749   enableval="$enable_tray_monitor"
4750   if test x$enableval = xyes; then
4751     support_tray_monitor=yes
4752   fi
4753 fi;
4754
4755 TRAY_MONITOR_DIR=
4756 if test x$support_tray_monitor = xyes; then
4757 # TODO: Check for GTK+ presence
4758   TRAY_MONITOR_DIR=src/tray-monitor
4759 fi
4760
4761
4762 # -------------------------------------------
4763 # smartalloc (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4766 if test "${enable_smartalloc+set}" = set; then
4767   enableval="$enable_smartalloc"
4768   if test x$enableval = xno; then
4769     support_smartalloc=no
4770   fi
4771 fi;
4772
4773 if test x$support_smartalloc = xyes; then
4774    cat >>confdefs.h <<\_ACEOF
4775 #define SMARTALLOC 1
4776 _ACEOF
4777
4778 fi
4779
4780 # -------------------------------------------
4781 # static-tools (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-tools or --disable-static-tools was given.
4784 if test "${enable_static_tools+set}" = set; then
4785   enableval="$enable_static_tools"
4786   if test x$enableval = xyes; then
4787      support_static_tools=yes
4788    fi
4789 fi;
4790
4791 TTOOL_LDFLAGS=
4792 if test x$support_static_tools = xyes; then
4793    TTOOL_LDFLAGS="-static"
4794 fi
4795
4796
4797 # -------------------------------------------
4798 # static-fd    (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-fd or --disable-static-fd was given.
4801 if test "${enable_static_fd+set}" = set; then
4802   enableval="$enable_static_fd"
4803   if test x$enableval = xyes; then
4804      support_static_fd=yes
4805    fi
4806 fi;
4807
4808 STATIC_FD=
4809 if test x$support_static_fd = xyes; then
4810    STATIC_FD="static-bacula-fd"
4811 fi
4812
4813
4814 # -------------------------------------------
4815 # static-sd    (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-static-sd or --disable-static-sd was given.
4818 if test "${enable_static_sd+set}" = set; then
4819   enableval="$enable_static_sd"
4820   if test x$enableval = xyes; then
4821      support_static_sd=yes
4822    fi
4823 fi;
4824
4825 STATIC_SD=
4826 if test x$support_static_sd = xyes; then
4827    STATIC_SD="static-bacula-sd"
4828 fi
4829
4830
4831 # -------------------------------------------
4832 # static-dir   (default off)
4833 # -------------------------------------------
4834 # Check whether --enable-static-dir or --disable-static-dir was given.
4835 if test "${enable_static_dir+set}" = set; then
4836   enableval="$enable_static_dir"
4837   if test x$enableval = xyes; then
4838      support_static_dir=yes
4839    fi
4840 fi;
4841
4842 STATIC_DIR=
4843 if test x$support_static_dir = xyes; then
4844    STATIC_DIR="static-bacula-dir"
4845 fi
4846
4847
4848 # -------------------------------------------
4849 # static-cons  (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-static-cons or --disable-static-cons was given.
4852 if test "${enable_static_cons+set}" = set; then
4853   enableval="$enable_static_cons"
4854   if test x$enableval = xyes; then
4855      support_static_cons=yes
4856    fi
4857 fi;
4858
4859 STATIC_CONS=
4860 STATIC_GNOME_CONS=
4861 STATIC_WX_CONS=
4862 if test x$support_static_cons = xyes; then
4863    STATIC_CONS="static-bconsole"
4864    STATIC_GNOME_CONS="static-gnome-console"
4865    STATIC_WX_CONS="static-wx-console"
4866 fi
4867
4868
4869
4870
4871 # -------------------------------------------
4872 # client_only  (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-client-only or --disable-client-only was given.
4875 if test "${enable_client_only+set}" = set; then
4876   enableval="$enable_client_only"
4877   if test x$enableval = xyes; then
4878      build_client_only=yes
4879     db_name=None
4880     DB_NAME=none
4881    fi
4882 fi;
4883 if test x$build_client_only = xno; then
4884    ALL_DIRS="subdirs"
4885 else
4886    ALL_DIRS=""
4887 fi
4888
4889
4890 # ---------------------------------------------------
4891 # Check for conio (Bacula readline substitute)(
4892 # ---------------------------------------------------
4893 # this allows you to turn it completely off
4894 # Check whether --enable-conio or --disable-conio was given.
4895 if test "${enable_conio+set}" = set; then
4896   enableval="$enable_conio"
4897   if test x$enableval = xno; then
4898     support_conio=no
4899   fi
4900 fi;
4901
4902 got_conio="no"
4903 if test x$support_conio = xyes; then
4904    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4906 if test "${ac_cv_header_stdc+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916 #include <stdlib.h>
4917 #include <stdarg.h>
4918 #include <string.h>
4919 #include <float.h>
4920
4921 int
4922 main ()
4923 {
4924
4925   ;
4926   return 0;
4927 }
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931   (eval $ac_compile) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); } &&
4935          { ac_try='test -s conftest.$ac_objext'
4936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937   (eval $ac_try) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; }; then
4941   ac_cv_header_stdc=yes
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 ac_cv_header_stdc=no
4947 fi
4948 rm -f conftest.$ac_objext conftest.$ac_ext
4949
4950 if test $ac_cv_header_stdc = yes; then
4951   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4952   cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 #include <string.h>
4960
4961 _ACEOF
4962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4963   $EGREP "memchr" >/dev/null 2>&1; then
4964   :
4965 else
4966   ac_cv_header_stdc=no
4967 fi
4968 rm -f conftest*
4969
4970 fi
4971
4972 if test $ac_cv_header_stdc = yes; then
4973   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974   cat >conftest.$ac_ext <<_ACEOF
4975 #line $LINENO "configure"
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 #include <stdlib.h>
4982
4983 _ACEOF
4984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985   $EGREP "free" >/dev/null 2>&1; then
4986   :
4987 else
4988   ac_cv_header_stdc=no
4989 fi
4990 rm -f conftest*
4991
4992 fi
4993
4994 if test $ac_cv_header_stdc = yes; then
4995   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4996   if test "$cross_compiling" = yes; then
4997   :
4998 else
4999   cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 #include <ctype.h>
5007 #if ((' ' & 0x0FF) == 0x020)
5008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5010 #else
5011 # define ISLOWER(c) \
5012                    (('a' <= (c) && (c) <= 'i') \
5013                      || ('j' <= (c) && (c) <= 'r') \
5014                      || ('s' <= (c) && (c) <= 'z'))
5015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5016 #endif
5017
5018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5019 int
5020 main ()
5021 {
5022   int i;
5023   for (i = 0; i < 256; i++)
5024     if (XOR (islower (i), ISLOWER (i))
5025         || toupper (i) != TOUPPER (i))
5026       exit(2);
5027   exit (0);
5028 }
5029 _ACEOF
5030 rm -f conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032   (eval $ac_link) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   :
5042 else
5043   echo "$as_me: program exited with status $ac_status" >&5
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ( exit $ac_status )
5048 ac_cv_header_stdc=no
5049 fi
5050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5051 fi
5052 fi
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5056 if test $ac_cv_header_stdc = yes; then
5057
5058 cat >>confdefs.h <<\_ACEOF
5059 #define STDC_HEADERS 1
5060 _ACEOF
5061
5062 fi
5063
5064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5075                   inttypes.h stdint.h unistd.h
5076 do
5077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5078 echo "$as_me:$LINENO: checking for $ac_header" >&5
5079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091
5092 #include <$ac_header>
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096   (eval $ac_compile) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); } &&
5100          { ac_try='test -s conftest.$ac_objext'
5101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102   (eval $ac_try) 2>&5
5103   ac_status=$?
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); }; }; then
5106   eval "$as_ac_Header=yes"
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 eval "$as_ac_Header=no"
5112 fi
5113 rm -f conftest.$ac_objext conftest.$ac_ext
5114 fi
5115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5118   cat >>confdefs.h <<_ACEOF
5119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5120 _ACEOF
5121
5122 fi
5123
5124 done
5125
5126
5127 if test "${ac_cv_header_termcap_h+set}" = set; then
5128   echo "$as_me:$LINENO: checking for termcap.h" >&5
5129 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5130 if test "${ac_cv_header_termcap_h+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 fi
5133 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5134 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5135 else
5136   # Is the header compilable?
5137 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5138 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 $ac_includes_default
5147 #include <termcap.h>
5148 _ACEOF
5149 rm -f conftest.$ac_objext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151   (eval $ac_compile) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); } &&
5155          { ac_try='test -s conftest.$ac_objext'
5156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157   (eval $ac_try) 2>&5
5158   ac_status=$?
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); }; }; then
5161   ac_header_compiler=yes
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166 ac_header_compiler=no
5167 fi
5168 rm -f conftest.$ac_objext conftest.$ac_ext
5169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5170 echo "${ECHO_T}$ac_header_compiler" >&6
5171
5172 # Is the header present?
5173 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5174 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5175 cat >conftest.$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 #include <termcap.h>
5183 _ACEOF
5184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5186   ac_status=$?
5187   grep -v '^ *+' conftest.er1 >conftest.err
5188   rm -f conftest.er1
5189   cat conftest.err >&5
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } >/dev/null; then
5192   if test -s conftest.err; then
5193     ac_cpp_err=$ac_c_preproc_warn_flag
5194   else
5195     ac_cpp_err=
5196   fi
5197 else
5198   ac_cpp_err=yes
5199 fi
5200 if test -z "$ac_cpp_err"; then
5201   ac_header_preproc=yes
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206   ac_header_preproc=no
5207 fi
5208 rm -f conftest.err conftest.$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5210 echo "${ECHO_T}$ac_header_preproc" >&6
5211
5212 # So?  What about this header?
5213 case $ac_header_compiler:$ac_header_preproc in
5214   yes:no )
5215     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5216 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5217     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5218 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5219     (
5220       cat <<\_ASBOX
5221 ## ------------------------------------ ##
5222 ## Report this to bug-autoconf@gnu.org. ##
5223 ## ------------------------------------ ##
5224 _ASBOX
5225     ) |
5226       sed "s/^/$as_me: WARNING:     /" >&2
5227     ;;
5228   no:yes )
5229     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5230 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5231     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5232 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5233     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5234 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5235     (
5236       cat <<\_ASBOX
5237 ## ------------------------------------ ##
5238 ## Report this to bug-autoconf@gnu.org. ##
5239 ## ------------------------------------ ##
5240 _ASBOX
5241     ) |
5242       sed "s/^/$as_me: WARNING:     /" >&2
5243     ;;
5244 esac
5245 echo "$as_me:$LINENO: checking for termcap.h" >&5
5246 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5247 if test "${ac_cv_header_termcap_h+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   ac_cv_header_termcap_h=$ac_header_preproc
5251 fi
5252 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5253 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5254
5255 fi
5256 if test $ac_cv_header_termcap_h = yes; then
5257    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5258 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5259 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   ac_check_lib_save_LIBS=$LIBS
5263 LIBS="-ltermcap  $LIBS"
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271
5272 /* Override any gcc2 internal prototype to avoid an error.  */
5273 #ifdef __cplusplus
5274 extern "C"
5275 #endif
5276 /* We use char because int might match the return type of a gcc2
5277    builtin and then its argument prototype would still apply.  */
5278 char tgetent ();
5279 int
5280 main ()
5281 {
5282 tgetent ();
5283   ;
5284   return 0;
5285 }
5286 _ACEOF
5287 rm -f conftest.$ac_objext conftest$ac_exeext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289   (eval $ac_link) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } &&
5293          { ac_try='test -s conftest$ac_exeext'
5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295   (eval $ac_try) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }; }; then
5299   ac_cv_lib_termcap_tgetent=yes
5300 else
5301   echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304 ac_cv_lib_termcap_tgetent=no
5305 fi
5306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5307 LIBS=$ac_check_lib_save_LIBS
5308 fi
5309 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5310 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5311 if test $ac_cv_lib_termcap_tgetent = yes; then
5312    CONS_LIBS="-ltermcap"
5313          CONS_OBJ="conio.o"
5314          CONS_SRC="conio.c"
5315          got_conio="yes"
5316          support_readline=no
5317
5318 cat >>confdefs.h <<\_ACEOF
5319 #define HAVE_CONIO 1
5320 _ACEOF
5321
5322
5323 else
5324    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5325 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5326 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   ac_check_lib_save_LIBS=$LIBS
5330 LIBS="-lncurses  $LIBS"
5331 cat >conftest.$ac_ext <<_ACEOF
5332 #line $LINENO "configure"
5333 /* confdefs.h.  */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h.  */
5338
5339 /* Override any gcc2 internal prototype to avoid an error.  */
5340 #ifdef __cplusplus
5341 extern "C"
5342 #endif
5343 /* We use char because int might match the return type of a gcc2
5344    builtin and then its argument prototype would still apply.  */
5345 char tgetent ();
5346 int
5347 main ()
5348 {
5349 tgetent ();
5350   ;
5351   return 0;
5352 }
5353 _ACEOF
5354 rm -f conftest.$ac_objext conftest$ac_exeext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356   (eval $ac_link) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } &&
5360          { ac_try='test -s conftest$ac_exeext'
5361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362   (eval $ac_try) 2>&5
5363   ac_status=$?
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); }; }; then
5366   ac_cv_lib_ncurses_tgetent=yes
5367 else
5368   echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371 ac_cv_lib_ncurses_tgetent=no
5372 fi
5373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5374 LIBS=$ac_check_lib_save_LIBS
5375 fi
5376 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5377 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5378 if test $ac_cv_lib_ncurses_tgetent = yes; then
5379    CONS_LIBS="-lncurses"
5380            CONS_OBJ="conio.o"
5381            CONS_SRC="conio.c"
5382            got_conio="yes"
5383            support_readline=no
5384
5385 cat >>confdefs.h <<\_ACEOF
5386 #define HAVE_CONIO 1
5387 _ACEOF
5388
5389
5390 else
5391    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5392 fi
5393
5394
5395 fi
5396
5397
5398 else
5399   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5400 fi
5401
5402
5403 fi
5404
5405
5406 # ---------------------------------------------------
5407 # Check for readline support/directory (default off)
5408 # ---------------------------------------------------
5409 # this allows you to turn it completely off
5410 # Check whether --enable-readline or --disable-readline was given.
5411 if test "${enable_readline+set}" = set; then
5412   enableval="$enable_readline"
5413   if test x$enableval = xno; then
5414     support_readline=no
5415   fi
5416 fi;
5417
5418 got_readline="no"
5419 READLINE_SRC=
5420 if test x$support_readline = xyes; then
5421
5422 # Check whether --with-readline or --without-readline was given.
5423 if test "${with_readline+set}" = set; then
5424   withval="$with_readline"
5425
5426         case "$with_readline" in
5427         no) : ;;
5428         yes|*)
5429           if test "$with_readline" != "yes"; then
5430             CONS_INC="-I${with_readline}"
5431             CONS_LDFLAGS="-L$with_readline"
5432           else
5433              with_readline="/usr/include/readline"
5434           fi
5435           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5438 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 fi
5442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 else
5445   # Is the header compilable?
5446 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5447 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5448 cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 /* confdefs.h.  */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h.  */
5455 $ac_includes_default
5456 #include <${with_readline}/readline.h>
5457 _ACEOF
5458 rm -f conftest.$ac_objext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460   (eval $ac_compile) 2>&5
5461   ac_status=$?
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); } &&
5464          { ac_try='test -s conftest.$ac_objext'
5465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466   (eval $ac_try) 2>&5
5467   ac_status=$?
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); }; }; then
5470   ac_header_compiler=yes
5471 else
5472   echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5474
5475 ac_header_compiler=no
5476 fi
5477 rm -f conftest.$ac_objext conftest.$ac_ext
5478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5479 echo "${ECHO_T}$ac_header_compiler" >&6
5480
5481 # Is the header present?
5482 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5483 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5484 cat >conftest.$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491 #include <${with_readline}/readline.h>
5492 _ACEOF
5493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5495   ac_status=$?
5496   grep -v '^ *+' conftest.er1 >conftest.err
5497   rm -f conftest.er1
5498   cat conftest.err >&5
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); } >/dev/null; then
5501   if test -s conftest.err; then
5502     ac_cpp_err=$ac_c_preproc_warn_flag
5503   else
5504     ac_cpp_err=
5505   fi
5506 else
5507   ac_cpp_err=yes
5508 fi
5509 if test -z "$ac_cpp_err"; then
5510   ac_header_preproc=yes
5511 else
5512   echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515   ac_header_preproc=no
5516 fi
5517 rm -f conftest.err conftest.$ac_ext
5518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5519 echo "${ECHO_T}$ac_header_preproc" >&6
5520
5521 # So?  What about this header?
5522 case $ac_header_compiler:$ac_header_preproc in
5523   yes:no )
5524     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5526     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5527 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5528     (
5529       cat <<\_ASBOX
5530 ## ------------------------------------ ##
5531 ## Report this to bug-autoconf@gnu.org. ##
5532 ## ------------------------------------ ##
5533 _ASBOX
5534     ) |
5535       sed "s/^/$as_me: WARNING:     /" >&2
5536     ;;
5537   no:yes )
5538     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5539 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5540     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5541 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5542     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5543 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5544     (
5545       cat <<\_ASBOX
5546 ## ------------------------------------ ##
5547 ## Report this to bug-autoconf@gnu.org. ##
5548 ## ------------------------------------ ##
5549 _ASBOX
5550     ) |
5551       sed "s/^/$as_me: WARNING:     /" >&2
5552     ;;
5553 esac
5554 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5555 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559   eval "$as_ac_Header=$ac_header_preproc"
5560 fi
5561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5563
5564 fi
5565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5566    cat >>confdefs.h <<\_ACEOF
5567 #define HAVE_READLINE 1
5568 _ACEOF
5569
5570                CONS_LIBS="-lreadline -ltermcap"
5571                got_readline="yes"
5572
5573 else
5574    echo " "
5575                echo "readline.h not found. readline turned off ..."
5576                echo " "
5577
5578
5579 fi
5580
5581
5582           ;;
5583         esac
5584
5585 else
5586
5587        # check for standard readline library
5588        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5589   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5590 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5591 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 fi
5594 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5595 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5596 else
5597   # Is the header compilable?
5598 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5599 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5600 cat >conftest.$ac_ext <<_ACEOF
5601 #line $LINENO "configure"
5602 /* confdefs.h.  */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h.  */
5607 $ac_includes_default
5608 #include </usr/include/readline/readline.h>
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612   (eval $ac_compile) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); } &&
5616          { ac_try='test -s conftest.$ac_objext'
5617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618   (eval $ac_try) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; }; then
5622   ac_header_compiler=yes
5623 else
5624   echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_header_compiler=no
5628 fi
5629 rm -f conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5631 echo "${ECHO_T}$ac_header_compiler" >&6
5632
5633 # Is the header present?
5634 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5635 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643 #include </usr/include/readline/readline.h>
5644 _ACEOF
5645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } >/dev/null; then
5653   if test -s conftest.err; then
5654     ac_cpp_err=$ac_c_preproc_warn_flag
5655   else
5656     ac_cpp_err=
5657   fi
5658 else
5659   ac_cpp_err=yes
5660 fi
5661 if test -z "$ac_cpp_err"; then
5662   ac_header_preproc=yes
5663 else
5664   echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5666
5667   ac_header_preproc=no
5668 fi
5669 rm -f conftest.err conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5671 echo "${ECHO_T}$ac_header_preproc" >&6
5672
5673 # So?  What about this header?
5674 case $ac_header_compiler:$ac_header_preproc in
5675   yes:no )
5676     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5678     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5679 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5680     (
5681       cat <<\_ASBOX
5682 ## ------------------------------------ ##
5683 ## Report this to bug-autoconf@gnu.org. ##
5684 ## ------------------------------------ ##
5685 _ASBOX
5686     ) |
5687       sed "s/^/$as_me: WARNING:     /" >&2
5688     ;;
5689   no:yes )
5690     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5691 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5692     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5693 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5694     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5696     (
5697       cat <<\_ASBOX
5698 ## ------------------------------------ ##
5699 ## Report this to bug-autoconf@gnu.org. ##
5700 ## ------------------------------------ ##
5701 _ASBOX
5702     ) |
5703       sed "s/^/$as_me: WARNING:     /" >&2
5704     ;;
5705 esac
5706 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5707 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5708 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5712 fi
5713 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5714 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5715
5716 fi
5717 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5718    cat >>confdefs.h <<\_ACEOF
5719 #define HAVE_READLINE 1
5720 _ACEOF
5721
5722            got_readline="yes"
5723            CONS_INC="-I/usr/include/readline"
5724            CONS_LIBS="-lreadline -ltermcap"
5725
5726 else
5727
5728            # Did not find standard library, so try Bacula's default
5729             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5731   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5732 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 fi
5736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5738 else
5739   # Is the header compilable?
5740 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5741 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5742 cat >conftest.$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749 $ac_includes_default
5750 #include <${TOP_DIR}/depkgs/readline/readline.h>
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754   (eval $ac_compile) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -s conftest.$ac_objext'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; }; then
5764   ac_header_compiler=yes
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_header_compiler=no
5770 fi
5771 rm -f conftest.$ac_objext conftest.$ac_ext
5772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5773 echo "${ECHO_T}$ac_header_compiler" >&6
5774
5775 # Is the header present?
5776 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5777 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5779 #line $LINENO "configure"
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785 #include <${TOP_DIR}/depkgs/readline/readline.h>
5786 _ACEOF
5787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5789   ac_status=$?
5790   grep -v '^ *+' conftest.er1 >conftest.err
5791   rm -f conftest.er1
5792   cat conftest.err >&5
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } >/dev/null; then
5795   if test -s conftest.err; then
5796     ac_cpp_err=$ac_c_preproc_warn_flag
5797   else
5798     ac_cpp_err=
5799   fi
5800 else
5801   ac_cpp_err=yes
5802 fi
5803 if test -z "$ac_cpp_err"; then
5804   ac_header_preproc=yes
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809   ac_header_preproc=no
5810 fi
5811 rm -f conftest.err conftest.$ac_ext
5812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5813 echo "${ECHO_T}$ac_header_preproc" >&6
5814
5815 # So?  What about this header?
5816 case $ac_header_compiler:$ac_header_preproc in
5817   yes:no )
5818     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5820     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5821 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5822     (
5823       cat <<\_ASBOX
5824 ## ------------------------------------ ##
5825 ## Report this to bug-autoconf@gnu.org. ##
5826 ## ------------------------------------ ##
5827 _ASBOX
5828     ) |
5829       sed "s/^/$as_me: WARNING:     /" >&2
5830     ;;
5831   no:yes )
5832     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5833 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5834     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5835 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5836     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5837 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5838     (
5839       cat <<\_ASBOX
5840 ## ------------------------------------ ##
5841 ## Report this to bug-autoconf@gnu.org. ##
5842 ## ------------------------------------ ##
5843 _ASBOX
5844     ) |
5845       sed "s/^/$as_me: WARNING:     /" >&2
5846     ;;
5847 esac
5848 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5849 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   eval "$as_ac_Header=$ac_header_preproc"
5854 fi
5855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5857
5858 fi
5859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5860    cat >>confdefs.h <<\_ACEOF
5861 #define HAVE_READLINE 1
5862 _ACEOF
5863
5864                  got_readline="yes"
5865                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5866                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5867                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5868                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5869
5870 else
5871    echo " "
5872                 echo "readline.h not found. readline turned off ..."
5873                 echo " "
5874
5875
5876 fi
5877
5878
5879
5880
5881 fi
5882
5883
5884
5885
5886 fi;
5887 fi
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898 # Minimal stuff for readline Makefile configuration
5899 MAKE_SHELL=/bin/sh
5900
5901 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5902 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5903 if test "${ac_cv_header_stat_broken+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5908 /* confdefs.h.  */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h.  */
5913 #include <sys/types.h>
5914 #include <sys/stat.h>
5915
5916 #if defined(S_ISBLK) && defined(S_IFDIR)
5917 # if S_ISBLK (S_IFDIR)
5918 You lose.
5919 # endif
5920 #endif
5921
5922 #if defined(S_ISBLK) && defined(S_IFCHR)
5923 # if S_ISBLK (S_IFCHR)
5924 You lose.
5925 # endif
5926 #endif
5927
5928 #if defined(S_ISLNK) && defined(S_IFREG)
5929 # if S_ISLNK (S_IFREG)
5930 You lose.
5931 # endif
5932 #endif
5933
5934 #if defined(S_ISSOCK) && defined(S_IFREG)
5935 # if S_ISSOCK (S_IFREG)
5936 You lose.
5937 # endif
5938 #endif
5939
5940 _ACEOF
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942   $EGREP "You lose" >/dev/null 2>&1; then
5943   ac_cv_header_stat_broken=yes
5944 else
5945   ac_cv_header_stat_broken=no
5946 fi
5947 rm -f conftest*
5948
5949 fi
5950 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5952 if test $ac_cv_header_stat_broken = yes; then
5953
5954 cat >>confdefs.h <<\_ACEOF
5955 #define STAT_MACROS_BROKEN 1
5956 _ACEOF
5957
5958 fi
5959
5960
5961
5962
5963
5964
5965 ac_header_dirent=no
5966 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5967   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5969 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 #include <sys/types.h>
5981 #include <$ac_hdr>
5982
5983 int
5984 main ()
5985 {
5986 if ((DIR *) 0)
5987 return 0;
5988   ;
5989   return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994   (eval $ac_compile) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); } &&
5998          { ac_try='test -s conftest.$ac_objext'
5999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000   (eval $ac_try) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   eval "$as_ac_Header=yes"
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 eval "$as_ac_Header=no"
6010 fi
6011 rm -f conftest.$ac_objext conftest.$ac_ext
6012 fi
6013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6016   cat >>confdefs.h <<_ACEOF
6017 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6018 _ACEOF
6019
6020 ac_header_dirent=$ac_hdr; break
6021 fi
6022
6023 done
6024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6025 if test $ac_header_dirent = dirent.h; then
6026   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6027 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6028 if test "${ac_cv_search_opendir+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   ac_func_search_save_LIBS=$LIBS
6032 ac_cv_search_opendir=no
6033 cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040
6041 /* Override any gcc2 internal prototype to avoid an error.  */
6042 #ifdef __cplusplus
6043 extern "C"
6044 #endif
6045 /* We use char because int might match the return type of a gcc2
6046    builtin and then its argument prototype would still apply.  */
6047 char opendir ();
6048 int
6049 main ()
6050 {
6051 opendir ();
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058   (eval $ac_link) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } &&
6062          { ac_try='test -s conftest$ac_exeext'
6063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064   (eval $ac_try) 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; }; then
6068   ac_cv_search_opendir="none required"
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 fi
6074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6075 if test "$ac_cv_search_opendir" = no; then
6076   for ac_lib in dir; do
6077     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6078     cat >conftest.$ac_ext <<_ACEOF
6079 #line $LINENO "configure"
6080 /* confdefs.h.  */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h.  */
6085
6086 /* Override any gcc2 internal prototype to avoid an error.  */
6087 #ifdef __cplusplus
6088 extern "C"
6089 #endif
6090 /* We use char because int might match the return type of a gcc2
6091    builtin and then its argument prototype would still apply.  */
6092 char opendir ();
6093 int
6094 main ()
6095 {
6096 opendir ();
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103   (eval $ac_link) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); } &&
6107          { ac_try='test -s conftest$ac_exeext'
6108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109   (eval $ac_try) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; }; then
6113   ac_cv_search_opendir="-l$ac_lib"
6114 break
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 fi
6120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6121   done
6122 fi
6123 LIBS=$ac_func_search_save_LIBS
6124 fi
6125 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6126 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6127 if test "$ac_cv_search_opendir" != no; then
6128   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6129
6130 fi
6131
6132 else
6133   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6134 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6135 if test "${ac_cv_search_opendir+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   ac_func_search_save_LIBS=$LIBS
6139 ac_cv_search_opendir=no
6140 cat >conftest.$ac_ext <<_ACEOF
6141 #line $LINENO "configure"
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147
6148 /* Override any gcc2 internal prototype to avoid an error.  */
6149 #ifdef __cplusplus
6150 extern "C"
6151 #endif
6152 /* We use char because int might match the return type of a gcc2
6153    builtin and then its argument prototype would still apply.  */
6154 char opendir ();
6155 int
6156 main ()
6157 {
6158 opendir ();
6159   ;
6160   return 0;
6161 }
6162 _ACEOF
6163 rm -f conftest.$ac_objext conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165   (eval $ac_link) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } &&
6169          { ac_try='test -s conftest$ac_exeext'
6170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171   (eval $ac_try) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; }; then
6175   ac_cv_search_opendir="none required"
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 fi
6181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6182 if test "$ac_cv_search_opendir" = no; then
6183   for ac_lib in x; do
6184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6185     cat >conftest.$ac_ext <<_ACEOF
6186 #line $LINENO "configure"
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192
6193 /* Override any gcc2 internal prototype to avoid an error.  */
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 /* We use char because int might match the return type of a gcc2
6198    builtin and then its argument prototype would still apply.  */
6199 char opendir ();
6200 int
6201 main ()
6202 {
6203 opendir ();
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext conftest$ac_exeext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6210   (eval $ac_link) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } &&
6214          { ac_try='test -s conftest$ac_exeext'
6215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216   (eval $ac_try) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; }; then
6220   ac_cv_search_opendir="-l$ac_lib"
6221 break
6222 else
6223   echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226 fi
6227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6228   done
6229 fi
6230 LIBS=$ac_func_search_save_LIBS
6231 fi
6232 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6233 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6234 if test "$ac_cv_search_opendir" != no; then
6235   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6236
6237 fi
6238
6239 fi
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6250 do
6251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6252 echo "$as_me:$LINENO: checking for $ac_func" >&5
6253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6254 if eval "test \"\${$as_ac_var+set}\" = set"; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   cat >conftest.$ac_ext <<_ACEOF
6258 #line $LINENO "configure"
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264 /* System header to define __stub macros and hopefully few prototypes,
6265     which can conflict with char $ac_func (); below.
6266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267     <limits.h> exists even on freestanding compilers.  */
6268 #ifdef __STDC__
6269 # include <limits.h>
6270 #else
6271 # include <assert.h>
6272 #endif
6273 /* Override any gcc2 internal prototype to avoid an error.  */
6274 #ifdef __cplusplus
6275 extern "C"
6276 {
6277 #endif
6278 /* We use char because int might match the return type of a gcc2
6279    builtin and then its argument prototype would still apply.  */
6280 char $ac_func ();
6281 /* The GNU C library defines this for functions which it implements
6282     to always fail with ENOSYS.  Some functions are actually named
6283     something starting with __ and the normal name is an alias.  */
6284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6285 choke me
6286 #else
6287 char (*f) () = $ac_func;
6288 #endif
6289 #ifdef __cplusplus
6290 }
6291 #endif
6292
6293 int
6294 main ()
6295 {
6296 return f != $ac_func;
6297   ;
6298   return 0;
6299 }
6300 _ACEOF
6301 rm -f conftest.$ac_objext conftest$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303   (eval $ac_link) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } &&
6307          { ac_try='test -s conftest$ac_exeext'
6308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309   (eval $ac_try) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }; }; then
6313   eval "$as_ac_var=yes"
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318 eval "$as_ac_var=no"
6319 fi
6320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6321 fi
6322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6324 if test `eval echo '${'$as_ac_var'}'` = yes; then
6325   cat >>confdefs.h <<_ACEOF
6326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6327 _ACEOF
6328
6329 fi
6330 done
6331
6332
6333
6334 for ac_func in nanosleep nl_langinfo
6335 do
6336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6337 echo "$as_me:$LINENO: checking for $ac_func" >&5
6338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6339 if eval "test \"\${$as_ac_var+set}\" = set"; then
6340   echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342   cat >conftest.$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6344 /* confdefs.h.  */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h.  */
6349 /* System header to define __stub macros and hopefully few prototypes,
6350     which can conflict with char $ac_func (); below.
6351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352     <limits.h> exists even on freestanding compilers.  */
6353 #ifdef __STDC__
6354 # include <limits.h>
6355 #else
6356 # include <assert.h>
6357 #endif
6358 /* Override any gcc2 internal prototype to avoid an error.  */
6359 #ifdef __cplusplus
6360 extern "C"
6361 {
6362 #endif
6363 /* We use char because int might match the return type of a gcc2
6364    builtin and then its argument prototype would still apply.  */
6365 char $ac_func ();
6366 /* The GNU C library defines this for functions which it implements
6367     to always fail with ENOSYS.  Some functions are actually named
6368     something starting with __ and the normal name is an alias.  */
6369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6370 choke me
6371 #else
6372 char (*f) () = $ac_func;
6373 #endif
6374 #ifdef __cplusplus
6375 }
6376 #endif
6377
6378 int
6379 main ()
6380 {
6381 return f != $ac_func;
6382   ;
6383   return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext conftest$ac_exeext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388   (eval $ac_link) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } &&
6392          { ac_try='test -s conftest$ac_exeext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   eval "$as_ac_var=yes"
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 eval "$as_ac_var=no"
6404 fi
6405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6406 fi
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6409 if test `eval echo '${'$as_ac_var'}'` = yes; then
6410   cat >>confdefs.h <<_ACEOF
6411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6412 _ACEOF
6413
6414 fi
6415 done
6416
6417
6418 for ac_header in varargs.h
6419 do
6420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6422   echo "$as_me:$LINENO: checking for $ac_header" >&5
6423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 fi
6427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6429 else
6430   # Is the header compilable?
6431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440 $ac_includes_default
6441 #include <$ac_header>
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445   (eval $ac_compile) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -s conftest.$ac_objext'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; }; then
6455   ac_header_compiler=yes
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 ac_header_compiler=no
6461 fi
6462 rm -f conftest.$ac_objext conftest.$ac_ext
6463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6464 echo "${ECHO_T}$ac_header_compiler" >&6
6465
6466 # Is the header present?
6467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6469 cat >conftest.$ac_ext <<_ACEOF
6470 #line $LINENO "configure"
6471 /* confdefs.h.  */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h.  */
6476 #include <$ac_header>
6477 _ACEOF
6478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6480   ac_status=$?
6481   grep -v '^ *+' conftest.er1 >conftest.err
6482   rm -f conftest.er1
6483   cat conftest.err >&5
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } >/dev/null; then
6486   if test -s conftest.err; then
6487     ac_cpp_err=$ac_c_preproc_warn_flag
6488   else
6489     ac_cpp_err=
6490   fi
6491 else
6492   ac_cpp_err=yes
6493 fi
6494 if test -z "$ac_cpp_err"; then
6495   ac_header_preproc=yes
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500   ac_header_preproc=no
6501 fi
6502 rm -f conftest.err conftest.$ac_ext
6503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6504 echo "${ECHO_T}$ac_header_preproc" >&6
6505
6506 # So?  What about this header?
6507 case $ac_header_compiler:$ac_header_preproc in
6508   yes:no )
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513     (
6514       cat <<\_ASBOX
6515 ## ------------------------------------ ##
6516 ## Report this to bug-autoconf@gnu.org. ##
6517 ## ------------------------------------ ##
6518 _ASBOX
6519     ) |
6520       sed "s/^/$as_me: WARNING:     /" >&2
6521     ;;
6522   no:yes )
6523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6525     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6529     (
6530       cat <<\_ASBOX
6531 ## ------------------------------------ ##
6532 ## Report this to bug-autoconf@gnu.org. ##
6533 ## ------------------------------------ ##
6534 _ASBOX
6535     ) |
6536       sed "s/^/$as_me: WARNING:     /" >&2
6537     ;;
6538 esac
6539 echo "$as_me:$LINENO: checking for $ac_header" >&5
6540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   eval "$as_ac_Header=$ac_header_preproc"
6545 fi
6546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6548
6549 fi
6550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6551   cat >>confdefs.h <<_ACEOF
6552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 _ACEOF
6554
6555 fi
6556
6557 done
6558
6559
6560 # End of readline/conio stuff
6561 # -----------------------------------------------------------------------
6562
6563
6564 # ---------------------------------------------------
6565 # Check for GMP support/directory
6566 # ---------------------------------------------------
6567 #GMP_SRC=
6568 #local_gmp="no"
6569 #AC_ARG_WITH(gmp,
6570 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6571 #  [
6572 #     case "$with_gmp" in
6573 #     no) : ;;
6574 #     yes|*)
6575 #       if test "$with_gmp" != "yes"; then
6576 #         GMP_INC="-I$with_gmp"
6577 #         GMP_LIBS="-lgmp"
6578 #         GMP_LDFLAGS="-L$with_gmp"
6579 #       else
6580 #          with_gmp="/usr/include"
6581 #       fi
6582 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6583 #          [ AC_MSG_RESULT(yes)
6584 #            AC_DEFINE(HAVE_GMP)
6585 #            GMP_LIBS="-lgmp"
6586 #            got_gmp="yes"
6587 #          ],
6588 #          [ AC_MSG_ERROR([*** gmp library missing])
6589 #          ]
6590 #       )
6591 #       ;;
6592 #     esac
6593 #  ],[
6594 #    # check for standard gmp library
6595 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6596 #    [ AC_MSG_RESULT(yes)
6597 #      AC_DEFINE(HAVE_GMP)
6598 #      got_gmp="yes"
6599 #      GMP_INC=
6600 #      GMP_LIBS="-lgmp"
6601 #    ], [
6602 #      # Did not find standard library, so use our own
6603 #      AC_MSG_RESULT(yes)
6604 #      AC_DEFINE(HAVE_GMP)
6605 #      got_gmp="yes"
6606 #      local_gmp="yes"
6607 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6608 #      GMP_LIBS="-lgmp"
6609 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6610 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6611 #    ])
6612 #  ]
6613 #)
6614 #AC_SUBST(GMP_INC)
6615 #AC_SUBST(GMP_LIBS)
6616 #AC_SUBST(GMP_LDFLAGS)
6617 #AC_SUBST(GMP_SRC)
6618
6619 # End of GMP stuff
6620 # -----------------------------------------------------------------------
6621
6622
6623 # ---------------------------------------------------
6624 # Check for CWEB support/directory
6625 # ---------------------------------------------------
6626 #CWEB_SRC=
6627 #CWEB=/bin
6628 #local_cweb="no"
6629 #AC_ARG_WITH(cweb,
6630 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6631 #  [
6632 #     case "$with_cweb" in
6633 #     no) : ;;
6634 #     yes|*)
6635 #       if test "$with_cweb" != "yes"; then
6636 #         CWEB_INC="-I$with_cweb"
6637 #         CWEB_LIBS="-lcweb"
6638 #         CWEB_LDFLAGS="-L$with_cweb"
6639 #       else
6640 #          with_cweb="/usr/include"
6641 #       fi
6642 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6643 #          [ AC_MSG_RESULT(yes)
6644 #            AC_DEFINE(HAVE_CWEB)
6645 #            CWEB_LIBS="-lcweb"
6646 #            got_cweb="yes"
6647 #          ],
6648 #          [ AC_MSG_ERROR([*** cweb library missing])
6649 #          ]
6650 #       )
6651 #       ;;
6652 #     esac
6653 #  ],[
6654 #    # check for standard cweb library
6655 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6656 #    [ AC_MSG_RESULT(yes)
6657 #      AC_DEFINE(HAVE_CWEB)
6658 #      got_cweb="yes"
6659 #      CWEB_INC=
6660 #      CWEB_LIBS="-lcweb"
6661 #    ], [
6662 #      # Did not find starndard library, so use our own
6663 #      AC_MSG_RESULT(yes)
6664 #      AC_DEFINE(HAVE_CWEB)
6665 #      got_cweb="yes"
6666 #      local_cweb="yes"
6667 #      CWEB=${TOP_DIR}/depkgs/cweb
6668 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6669 #      CWEB_LIBS="-lcweb"
6670 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6671 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6672 #    ])
6673 #  ]
6674 #)
6675 #AC_SUBST(CWEB)
6676 #AC_SUBST(CWEB_INC)
6677 #AC_SUBST(CWEB_LIBS)
6678 #AC_SUBST(CWEB_LDFLAGS)
6679 #AC_SUBST(CWEB_SRC)
6680
6681 # End of CWEB stuff
6682 # -----------------------------------------------------------------------
6683
6684
6685
6686 # -----------------------------------------------------------
6687 # Check whether user wants TCP wrappers support (default off)
6688 # -----------------------------------------------------------
6689 TCPW_MSG="no"
6690
6691 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6692 if test "${with_tcp_wrappers+set}" = set; then
6693   withval="$with_tcp_wrappers"
6694
6695     if test "x$withval" != "xno" ; then
6696        saved_LIBS="$LIBS"
6697        LIBS="$saved_LIBS -lwrap"
6698        echo "$as_me:$LINENO: checking for libwrap" >&5
6699 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6700        cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707  #include <tcpd.h>
6708              int deny_severity = 0;
6709              int allow_severity = 0;
6710              struct request_info *req;
6711 int
6712 main ()
6713 {
6714  hosts_access(req);
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721   (eval $ac_link) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } &&
6725          { ac_try='test -s conftest$ac_exeext'
6726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727   (eval $ac_try) 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); }; }; then
6731
6732             echo "$as_me:$LINENO: result: yes" >&5
6733 echo "${ECHO_T}yes" >&6
6734             cat >>confdefs.h <<\_ACEOF
6735 #define HAVE_LIBWRAP 1
6736 _ACEOF
6737
6738             TCPW_MSG="yes"
6739
6740 else
6741   echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6743
6744
6745             LIBS="$saved_LIBS -lwrap -lnsl"
6746             cat >conftest.$ac_ext <<_ACEOF
6747 #line $LINENO "configure"
6748 /* confdefs.h.  */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h.  */
6753  #include <tcpd.h>
6754                  int deny_severity = 0;
6755                  int allow_severity = 0;
6756                  struct request_info *req;
6757 int
6758 main ()
6759 {
6760  hosts_access(req);
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767   (eval $ac_link) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); } &&
6771          { ac_try='test -s conftest$ac_exeext'
6772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773   (eval $ac_try) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777
6778                  echo "$as_me:$LINENO: result: yes" >&5
6779 echo "${ECHO_T}yes" >&6
6780                  cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_LIBWRAP 1
6782 _ACEOF
6783
6784                  TCPW_MSG="yes"
6785
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6791 echo "$as_me: error: *** libwrap missing" >&2;}
6792    { (exit 1); exit 1; }; }
6793
6794 fi
6795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6796
6797 fi
6798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6799     fi
6800
6801
6802 fi;
6803
6804 # ------------------------------------------
6805 # Where to place working dir
6806 # ------------------------------------------
6807 working_dir=`eval echo ${prefix}/var/bacula/working`
6808
6809 # Check whether --with-working-dir or --without-working-dir was given.
6810 if test "${with_working_dir+set}" = set; then
6811   withval="$with_working_dir"
6812
6813        if test "x$withval" != "xno" ; then
6814               working_dir=$withval
6815        fi
6816
6817
6818 fi;
6819
6820
6821
6822
6823 # ------------------------------------------
6824 # Where to place scriptdir (script files)
6825 # ------------------------------------------
6826 scriptdir=`eval echo ${sysconfdir}`
6827
6828 # Check whether --with-scriptdir or --without-scriptdir was given.
6829 if test "${with_scriptdir+set}" = set; then
6830   withval="$with_scriptdir"
6831
6832        if test "x$withval" != "xno" ; then
6833               scriptdir=$withval
6834        fi
6835
6836
6837 fi;
6838
6839
6840
6841
6842 # ------------------------------------------
6843 # Where to send dump email
6844 # ------------------------------------------
6845 dump_email=root@localhost
6846
6847 # Check whether --with-dump-email or --without-dump-email was given.
6848 if test "${with_dump_email+set}" = set; then
6849   withval="$with_dump_email"
6850
6851        if test "x$withval" != "xno" ; then
6852               dump_email=$withval
6853        fi
6854
6855
6856 fi;
6857
6858
6859
6860 # ------------------------------------------
6861 # Where to send job email
6862 # ------------------------------------------
6863 job_email=root@localhost
6864
6865 # Check whether --with-job-email or --without-job-email was given.
6866 if test "${with_job_email+set}" = set; then
6867   withval="$with_job_email"
6868
6869        if test "x$withval" != "xno" ; then
6870               job_email=$withval
6871        fi
6872
6873
6874 fi;
6875
6876
6877
6878 # ------------------------------------------
6879 # Where to find smtp host
6880 # ------------------------------------------
6881 smtp_host=localhost
6882
6883 # Check whether --with-smtp_host or --without-smtp_host was given.
6884 if test "${with_smtp_host+set}" = set; then
6885   withval="$with_smtp_host"
6886
6887        if test "x$withval" != "xno" ; then
6888               smtp_host=$withval
6889        fi
6890
6891
6892 fi;
6893
6894
6895
6896
6897 # ------------------------------------
6898 # Where to place pid files
6899 # ------------------------------------
6900 piddir=/var/run
6901
6902 # Check whether --with-pid-dir or --without-pid-dir was given.
6903 if test "${with_pid_dir+set}" = set; then
6904   withval="$with_pid_dir"
6905
6906         if test "x$withval" != "xno" ; then
6907             piddir=$withval
6908         fi
6909
6910
6911 fi;
6912
6913 cat >>confdefs.h <<_ACEOF
6914 #define _PATH_BACULA_PIDDIR "$piddir"
6915 _ACEOF
6916
6917
6918
6919
6920 # ------------------------------------
6921 # Where to place subsys "lock file"
6922 # ------------------------------------
6923 subsysdir=/var/run/subsys
6924
6925 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6926 if test "${with_subsys_dir+set}" = set; then
6927   withval="$with_subsys_dir"
6928
6929         if test "x$withval" != "xno" ; then
6930             subsysdir=$withval
6931         fi
6932
6933
6934 fi;
6935
6936
6937
6938
6939
6940 # ------------------------------------
6941 # Where to start assigning ports
6942 # ------------------------------------
6943 baseport=9101
6944
6945 # Check whether --with-baseport or --without-baseport was given.
6946 if test "${with_baseport+set}" = set; then
6947   withval="$with_baseport"
6948
6949         if test "x$withval" != "xno" ; then
6950              baseport=$withval
6951         fi
6952
6953
6954 fi;
6955
6956
6957 dir_port=`expr $baseport`
6958 fd_port=`expr $baseport + 1`
6959 sd_port=`expr $fd_port + 1`
6960
6961
6962
6963
6964
6965
6966 # ------------------------------------------
6967 # Generate passwords
6968 # ------------------------------------------
6969 dir_password=
6970
6971 # Check whether --with-dir-password or --without-dir-password was given.
6972 if test "${with_dir_password+set}" = set; then
6973   withval="$with_dir_password"
6974
6975        if test "x$withval" != "xno" ; then
6976            dir_password=$withval
6977        fi
6978
6979
6980 fi;
6981
6982 if test "x$dir_password" = "x" ; then
6983    if test "x$OPENSSL" = "xnone" ; then
6984 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6985       key=`autoconf/randpass 33`
6986    else
6987       key=`openssl rand -base64 33`
6988    fi
6989    dir_password=$key
6990 fi
6991
6992 fd_password=
6993
6994 # Check whether --with-fd-password or --without-fd-password was given.
6995 if test "${with_fd_password+set}" = set; then
6996   withval="$with_fd_password"
6997
6998        if test "x$withval" != "xno" ; then
6999            fd_password=$withval
7000        fi
7001
7002
7003 fi;
7004
7005 if test "x$fd_password" = "x" ; then
7006    if test "x$OPENSSL" = "xnone" ; then
7007 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7008       key=`autoconf/randpass 37`
7009    else
7010       key=`openssl rand -base64 33`
7011    fi
7012    fd_password=$key
7013 fi
7014
7015 sd_password=
7016
7017 # Check whether --with-sd-password or --without-sd-password was given.
7018 if test "${with_sd_password+set}" = set; then
7019   withval="$with_sd_password"
7020
7021        if test "x$withval" != "xno" ; then
7022            sd_password=$withval
7023        fi
7024
7025
7026 fi;
7027
7028 if test "x$sd_password" = "x" ; then
7029    if test "x$OPENSSL" = "xnone" ; then
7030 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7031       key=`autoconf/randpass 41`
7032    else
7033       key=`openssl rand -base64 33`
7034    fi
7035    sd_password=$key
7036 fi
7037
7038
7039
7040
7041
7042
7043
7044 #
7045 # Handle users and groups for each daemon
7046 #
7047 dir_user=
7048
7049 # Check whether --with-dir_user or --without-dir_user was given.
7050 if test "${with_dir_user+set}" = set; then
7051   withval="$with_dir_user"
7052
7053         if test "x$withval" != "x" ; then
7054              dir_user=$withval
7055         fi
7056
7057
7058 fi;
7059
7060 dir_group=
7061
7062 # Check whether --with-dir_group or --without-dir_group was given.
7063 if test "${with_dir_group+set}" = set; then
7064   withval="$with_dir_group"
7065
7066         if test "x$withval" != "x" ; then
7067              dir_group=$withval
7068         fi
7069
7070
7071 fi;
7072
7073 sd_user=
7074
7075 # Check whether --with-sd_user or --without-sd_user was given.
7076 if test "${with_sd_user+set}" = set; then
7077   withval="$with_sd_user"
7078
7079         if test "x$withval" != "x" ; then
7080              sd_user=$withval
7081         fi
7082
7083
7084 fi;
7085
7086 sd_group=
7087
7088 # Check whether --with-sd_group or --without-sd_group was given.
7089 if test "${with_sd_group+set}" = set; then
7090   withval="$with_sd_group"
7091
7092         if test "x$withval" != "x" ; then
7093              sd_group=$withval
7094         fi
7095
7096
7097 fi;
7098
7099 fd_user=
7100
7101 # Check whether --with-fd_user or --without-fd_user was given.
7102 if test "${with_fd_user+set}" = set; then
7103   withval="$with_fd_user"
7104
7105         if test "x$withval" != "x" ; then
7106              fd_user=$withval
7107         fi
7108
7109
7110 fi;
7111
7112 fd_group=
7113
7114 # Check whether --with-fd_group or --without-fd_group was given.
7115 if test "${with_fd_group+set}" = set; then
7116   withval="$with_fd_group"
7117
7118         if test "x$withval" != "x" ; then
7119              fd_group=$withval
7120         fi
7121
7122
7123 fi;
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135 #
7136 # allow setting default executable permissions
7137 #
7138 SBINPERM=0754
7139
7140 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7141 if test "${with_sbin_perm+set}" = set; then
7142   withval="$with_sbin_perm"
7143
7144         if test "x$withval" != "x" ; then
7145             SBINPERM=$withval
7146         fi
7147
7148
7149 fi;
7150
7151
7152
7153 # ------------------------------------------------
7154 # Bacula check for various SQL database engines
7155 # ------------------------------------------------
7156
7157 db_found=no
7158 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7159 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7160
7161 # Check whether --with-postgresql or --without-postgresql was given.
7162 if test "${with_postgresql+set}" = set; then
7163   withval="$with_postgresql"
7164
7165   if test "$withval" != "no"; then
7166       if test "$db_found" = "yes"; then
7167           echo "$as_me:$LINENO: result: error" >&5
7168 echo "${ECHO_T}error" >&6
7169           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7170 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7171    { (exit 1); exit 1; }; };
7172       fi
7173       if test "$withval" = "yes"; then
7174           if test -f /usr/local/include/libpq-fe.h; then
7175               POSTGRESQL_INCDIR=/usr/local/include
7176               POSTGRESQL_LIBDIR=/usr/local/lib
7177               POSTGRESQL_BINDIR=/usr/local/bin
7178           elif test -f /usr/include/libpq-fe.h; then
7179               POSTGRESQL_INCDIR=/usr/include
7180               POSTGRESQL_LIBDIR=/usr/lib
7181               POSTGRESQL_BINDIR=/usr/bin
7182           elif test -f /usr/include/pgsql/libpq-fe.h; then
7183               POSTGRESQL_INCDIR=/usr/include/pgsql
7184               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7185               POSTGRESQL_BINDIR=/usr/bin
7186           elif test -f /usr/include/postgresql/libpq-fe.h; then
7187               POSTGRESQL_INCDIR=/usr/include/postgresql
7188               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7189               POSTGRESQL_BINDIR=/usr/bin
7190           else
7191               echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7194 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7195    { (exit 1); exit 1; }; }
7196           fi
7197       elif test -f $withval/include/libpq-fe.h; then
7198           POSTGRESQL_INCDIR=$withval/include
7199           POSTGRESQL_LIBDIR=$withval/lib
7200           POSTGRESQL_BINDIR=$withval/bin
7201       else
7202           echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7205 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7206    { (exit 1); exit 1; }; }
7207       fi
7208       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7209       echo "$as_me:$LINENO: checking for crypt" >&5
7210 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7211 if test "${ac_cv_func_crypt+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221 /* System header to define __stub macros and hopefully few prototypes,
7222     which can conflict with char crypt (); below.
7223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224     <limits.h> exists even on freestanding compilers.  */
7225 #ifdef __STDC__
7226 # include <limits.h>
7227 #else
7228 # include <assert.h>
7229 #endif
7230 /* Override any gcc2 internal prototype to avoid an error.  */
7231 #ifdef __cplusplus
7232 extern "C"
7233 {
7234 #endif
7235 /* We use char because int might match the return type of a gcc2
7236    builtin and then its argument prototype would still apply.  */
7237 char crypt ();
7238 /* The GNU C library defines this for functions which it implements
7239     to always fail with ENOSYS.  Some functions are actually named
7240     something starting with __ and the normal name is an alias.  */
7241 #if defined (__stub_crypt) || defined (__stub___crypt)
7242 choke me
7243 #else
7244 char (*f) () = crypt;
7245 #endif
7246 #ifdef __cplusplus
7247 }
7248 #endif
7249
7250 int
7251 main ()
7252 {
7253 return f != crypt;
7254   ;
7255   return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260   (eval $ac_link) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -s conftest$ac_exeext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_cv_func_crypt=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_cv_func_crypt=no
7276 fi
7277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7278 fi
7279 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7280 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7281 if test $ac_cv_func_crypt = yes; then
7282   :
7283 else
7284   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7285 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7286 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-lcrypt  $LIBS"
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298
7299 /* Override any gcc2 internal prototype to avoid an error.  */
7300 #ifdef __cplusplus
7301 extern "C"
7302 #endif
7303 /* We use char because int might match the return type of a gcc2
7304    builtin and then its argument prototype would still apply.  */
7305 char crypt ();
7306 int
7307 main ()
7308 {
7309 crypt ();
7310   ;
7311   return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316   (eval $ac_link) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); } &&
7320          { ac_try='test -s conftest$ac_exeext'
7321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322   (eval $ac_try) 2>&5
7323   ac_status=$?
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); }; }; then
7326   ac_cv_lib_crypt_crypt=yes
7327 else
7328   echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 ac_cv_lib_crypt_crypt=no
7332 fi
7333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7335 fi
7336 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7337 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7338 if test $ac_cv_lib_crypt_crypt = yes; then
7339   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7340 fi
7341
7342 fi
7343
7344       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7345       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7346       SQL_BINDIR=$POSTGRESQL_BINDIR
7347       cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_POSTGRESQL 1
7349 _ACEOF
7350
7351       echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7353       db_found=yes
7354       support_postgresql=yes
7355       db_name=PostgreSQL
7356       DB_NAME=postgresql
7357   else
7358       echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6
7360   fi
7361
7362 else
7363
7364   echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366
7367 fi;
7368
7369
7370
7371
7372
7373
7374
7375 db_found=no
7376 echo "$as_me:$LINENO: checking for MySQL support" >&5
7377 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7378
7379 # Check whether --with-mysql or --without-mysql was given.
7380 if test "${with_mysql+set}" = set; then
7381   withval="$with_mysql"
7382
7383   if test "$withval" != "no"; then
7384         if test "$withval" = "yes"; then
7385                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7386                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7387                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7388                         MYSQL_BINDIR=/usr/local/mysql/bin
7389                 elif test -f /usr/include/mysql/mysql.h; then
7390                         MYSQL_INCDIR=/usr/include/mysql
7391                         MYSQL_LIBDIR=/usr/lib/mysql
7392                         MYSQL_BINDIR=/usr/bin
7393                 elif test -f /usr/include/mysql.h; then
7394                         MYSQL_INCDIR=/usr/include
7395                         MYSQL_LIBDIR=/usr/lib
7396                         MYSQL_BINDIR=/usr/bin
7397                 elif test -f /usr/local/include/mysql/mysql.h; then
7398                         MYSQL_INCDIR=/usr/local/include/mysql
7399                         MYSQL_LIBDIR=/usr/local/lib/mysql
7400                         MYSQL_BINDIR=/usr/local/bin
7401                 elif test -f /usr/local/include/mysql.h; then
7402                         MYSQL_INCDIR=/usr/local/include
7403                         MYSQL_LIBDIR=/usr/local/lib
7404                         MYSQL_BINDIR=/usr/local/bin
7405                 else
7406                    echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7408                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7409 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7410    { (exit 1); exit 1; }; }
7411                 fi
7412         else
7413                 if test -f $withval/include/mysql/mysql.h; then
7414                         MYSQL_INCDIR=$withval/include/mysql
7415                         MYSQL_LIBDIR=$withval/lib/mysql
7416                         MYSQL_BINDIR=$withval/bin
7417                 elif test -f $withval/include/mysql.h; then
7418                         MYSQL_INCDIR=$withval/include
7419                         MYSQL_LIBDIR=$withval/lib
7420                         MYSQL_BINDIR=$withval/bin
7421                 else
7422                    echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7424                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7425 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7426    { (exit 1); exit 1; }; }
7427                 fi
7428         fi
7429     SQL_INCLUDE=-I$MYSQL_INCDIR
7430     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7431        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7432        cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_THREAD_SAFE_MYSQL 1
7434 _ACEOF
7435
7436     else
7437        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7438     fi
7439     SQL_BINDIR=$MYSQL_BINDIR
7440
7441     cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_MYSQL 1
7443 _ACEOF
7444
7445     echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7447     db_found=yes
7448     support_mysql=yes
7449     db_name=MySQL
7450     DB_NAME=mysql
7451
7452   else
7453         echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7455   fi
7456
7457
7458 fi;
7459
7460
7461 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7462 if test "${with_embedded_mysql+set}" = set; then
7463   withval="$with_embedded_mysql"
7464
7465   if test "$withval" != "no"; then
7466         if test "$withval" = "yes"; then
7467                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7468                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7469                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7470                         MYSQL_BINDIR=/usr/local/mysql/bin
7471                 elif test -f /usr/include/mysql/mysql.h; then
7472                         MYSQL_INCDIR=/usr/include/mysql
7473                         MYSQL_LIBDIR=/usr/lib/mysql
7474                         MYSQL_BINDIR=/usr/bin
7475                 elif test -f /usr/include/mysql.h; then
7476                         MYSQL_INCDIR=/usr/include
7477                         MYSQL_LIBDIR=/usr/lib
7478                         MYSQL_BINDIR=/usr/bin
7479                 elif test -f /usr/local/include/mysql/mysql.h; then
7480                         MYSQL_INCDIR=/usr/local/include/mysql
7481                         MYSQL_LIBDIR=/usr/local/lib/mysql
7482                         MYSQL_BINDIR=/usr/local/bin
7483                 elif test -f /usr/local/include/mysql.h; then
7484                         MYSQL_INCDIR=/usr/local/include
7485                         MYSQL_LIBDIR=/usr/local/lib
7486                         MYSQL_BINDIR=/usr/local/bin
7487                 else
7488                    echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6
7490                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7491 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7492    { (exit 1); exit 1; }; }
7493                 fi
7494         else
7495                 if test -f $withval/include/mysql/mysql.h; then
7496                         MYSQL_INCDIR=$withval/include/mysql
7497                         MYSQL_LIBDIR=$withval/lib/mysql
7498                         MYSQL_BINDIR=$withval/bin
7499                 elif test -f $withval/include/mysql.h; then
7500                         MYSQL_INCDIR=$withval/include
7501                         MYSQL_LIBDIR=$withval/lib
7502                         MYSQL_BINDIR=$withval/bin
7503                 else
7504                    echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7507 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7508    { (exit 1); exit 1; }; }
7509                 fi
7510         fi
7511     SQL_INCLUDE=-I$MYSQL_INCDIR
7512     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7513     SQL_BINDIR=$MYSQL_BINDIR
7514
7515     cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_MYSQL 1
7517 _ACEOF
7518
7519     cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_EMBEDDED_MYSQL 1
7521 _ACEOF
7522
7523     echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7525     db_found=yes
7526     support_mysql=yes
7527     db_name=MySQL
7528     DB_NAME=mysql
7529
7530   else
7531         echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533   fi
7534
7535
7536 fi;
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 db_found=no
7547 echo "$as_me:$LINENO: checking for SQLite support" >&5
7548 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7549
7550 # Check whether --with-sqlite or --without-sqlite was given.
7551 if test "${with_sqlite+set}" = set; then
7552   withval="$with_sqlite"
7553
7554   if test "$withval" != "no"; then
7555      if test "$withval" = "yes"; then
7556         if test -f /usr/local/include/sqlite.h; then
7557            SQLITE_INCDIR=/usr/local/include
7558            SQLITE_LIBDIR=/usr/local/lib
7559            SQLITE_BINDIR=/usr/local/bin
7560         elif test -f /usr/include/sqlite.h; then
7561            SQLITE_INCDIR=/usr/include
7562            SQLITE_LIBDIR=/usr/lib
7563            SQLITE_BINDIR=/usr/bin
7564         else
7565            echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7567            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7568 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7569    { (exit 1); exit 1; }; }
7570         fi
7571      else
7572         if test -f $withval/sqlite.h; then
7573            SQLITE_INCDIR=$withval
7574            SQLITE_LIBDIR=$withval
7575            SQLITE_BINDIR=$withval
7576         else
7577            echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7579            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7580 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7581    { (exit 1); exit 1; }; }
7582         fi
7583      fi
7584      SQL_INCLUDE=-I$SQLITE_INCDIR
7585      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7586      SQL_BINDIR=$SQLITE_BINDIR
7587
7588      cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_SQLITE 1
7590 _ACEOF
7591
7592      echo "$as_me:$LINENO: result: yes" >&5
7593 echo "${ECHO_T}yes" >&6
7594      db_found=yes
7595      support_sqlite=yes
7596      db_name=SQLite
7597      DB_NAME=sqlite
7598
7599   else
7600      echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6
7602   fi
7603
7604 else
7605
7606   echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7608
7609 fi;
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619 cat >>confdefs.h <<\_ACEOF
7620 #define PROTOTYPES 1
7621 _ACEOF
7622
7623
7624 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7625     if test -z "$CCOPTS"; then
7626         CCOPTS='-g -O2 -Wall'
7627     fi
7628     CFLAGS="$CCOPTS"
7629 fi
7630
7631
7632
7633
7634 largefile_support="no"
7635
7636    # Check whether --enable-largefile or --disable-largefile was given.
7637 if test "${enable_largefile+set}" = set; then
7638   enableval="$enable_largefile"
7639
7640 fi;
7641    if test "$enable_largefile" != no; then
7642      if test -n "$ac_tool_prefix"; then
7643   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7645 echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647 if test "${ac_cv_prog_GETCONF+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   if test -n "$GETCONF"; then
7651   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666
7667 fi
7668 fi
7669 GETCONF=$ac_cv_prog_GETCONF
7670 if test -n "$GETCONF"; then
7671   echo "$as_me:$LINENO: result: $GETCONF" >&5
7672 echo "${ECHO_T}$GETCONF" >&6
7673 else
7674   echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7676 fi
7677
7678 fi
7679 if test -z "$ac_cv_prog_GETCONF"; then
7680   ac_ct_GETCONF=$GETCONF
7681   # Extract the first word of "getconf", so it can be a program name with args.
7682 set dummy getconf; ac_word=$2
7683 echo "$as_me:$LINENO: checking for $ac_word" >&5
7684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7685 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   if test -n "$ac_ct_GETCONF"; then
7689   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7690 else
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 for as_dir in $PATH
7693 do
7694   IFS=$as_save_IFS
7695   test -z "$as_dir" && as_dir=.
7696   for ac_exec_ext in '' $ac_executable_extensions; do
7697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7698     ac_cv_prog_ac_ct_GETCONF="getconf"
7699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700     break 2
7701   fi
7702 done
7703 done
7704
7705 fi
7706 fi
7707 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7708 if test -n "$ac_ct_GETCONF"; then
7709   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7710 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7711 else
7712   echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7714 fi
7715
7716   GETCONF=$ac_ct_GETCONF
7717 else
7718   GETCONF="$ac_cv_prog_GETCONF"
7719 fi
7720
7721      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7722 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7723 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7727         ac_cv_sys_largefile_CFLAGS=no
7728         case "$host_os" in
7729            # IRIX 6.2 and later require cc -n32.
7730            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7731              if test "$GCC" != yes; then
7732                ac_cv_sys_largefile_CFLAGS=-n32
7733              fi
7734              ac_save_CC="$CC"
7735              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7736              cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 /* confdefs.h.  */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h.  */
7743
7744 int
7745 main ()
7746 {
7747
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754   (eval $ac_link) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); } &&
7758          { ac_try='test -s conftest$ac_exeext'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; }; then
7764   :
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769 ac_cv_sys_largefile_CFLAGS=no
7770 fi
7771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7772              CC="$ac_save_CC"
7773            esac
7774       }
7775 fi
7776 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7777 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7778      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7779 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7780 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7784         ac_cv_sys_largefile_LDFLAGS=no
7785
7786       }
7787 fi
7788 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7789 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7790      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7791 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7792 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7796         ac_cv_sys_largefile_LIBS=no
7797
7798       }
7799 fi
7800 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7801 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7802
7803      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7804        case "$ac_flag" in
7805        no) ;;
7806        -D_FILE_OFFSET_BITS=*) ;;
7807        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7808        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7809        -D?* | -I?*)
7810          case "$ac_flag" in
7811    no) ;;
7812    ?*)
7813      case "$CPPFLAGS" in
7814      '') CPPFLAGS="$ac_flag" ;;
7815      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7816      esac ;;
7817    esac ;;
7818        *)
7819          case "$ac_flag" in
7820    no) ;;
7821    ?*)
7822      case "$CFLAGS" in
7823      '') CFLAGS="$ac_flag" ;;
7824      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7825      esac ;;
7826    esac ;;
7827        esac
7828      done
7829      case "$ac_cv_sys_largefile_LDFLAGS" in
7830    no) ;;
7831    ?*)
7832      case "$LDFLAGS" in
7833      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7834      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7835      esac ;;
7836    esac
7837      case "$ac_cv_sys_largefile_LIBS" in
7838    no) ;;
7839    ?*)
7840      case "$LIBS" in
7841      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7842      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7843      esac ;;
7844    esac
7845      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7846 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7847 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   ac_cv_sys_file_offset_bits=no
7851       case "$host_os" in
7852         # HP-UX 10.20 and later
7853         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7854           ac_cv_sys_file_offset_bits=64 ;;
7855         esac
7856       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7857         case "$ac_flag" in
7858         -D_FILE_OFFSET_BITS)
7859           ac_cv_sys_file_offset_bits=1 ;;
7860         -D_FILE_OFFSET_BITS=*)
7861           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7862         esac
7863       done
7864
7865 fi
7866 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7867 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7868    if test "$ac_cv_sys_file_offset_bits" != no; then
7869
7870 cat >>confdefs.h <<_ACEOF
7871 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7872 _ACEOF
7873
7874    fi
7875      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7876 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7877 if test "${ac_cv_sys_largefile_source+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   ac_cv_sys_largefile_source=no
7881       case "$host_os" in
7882         # HP-UX 10.20 and later
7883         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7884           ac_cv_sys_largefile_source=1 ;;
7885         esac
7886       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7887         case "$ac_flag" in
7888         -D_LARGEFILE_SOURCE)
7889           ac_cv_sys_largefile_source=1 ;;
7890         -D_LARGEFILE_SOURCE=*)
7891           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7892         esac
7893       done
7894
7895 fi
7896 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7897 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7898    if test "$ac_cv_sys_largefile_source" != no; then
7899
7900 cat >>confdefs.h <<_ACEOF
7901 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7902 _ACEOF
7903
7904    fi
7905      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7906 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7907 if test "${ac_cv_sys_large_files+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   ac_cv_sys_large_files=no
7911       case "$host_os" in
7912         # AIX 4.2 and later
7913         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7914           ac_cv_sys_large_files=1 ;;
7915         esac
7916       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7917         case "$ac_flag" in
7918         -D_LARGE_FILES)
7919           ac_cv_sys_large_files=1 ;;
7920         -D_LARGE_FILES=*)
7921           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7922         esac
7923       done
7924
7925 fi
7926 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7927 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7928    if test "$ac_cv_sys_large_files" != no; then
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define _LARGE_FILES $ac_cv_sys_large_files
7932 _ACEOF
7933
7934    fi
7935    fi
7936
7937
7938
7939 echo "$as_me:$LINENO: checking for X" >&5
7940 echo $ECHO_N "checking for X... $ECHO_C" >&6
7941
7942
7943 # Check whether --with-x or --without-x was given.
7944 if test "${with_x+set}" = set; then
7945   withval="$with_x"
7946
7947 fi;
7948 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7949 if test "x$with_x" = xno; then
7950   # The user explicitly disabled X.
7951   have_x=disabled
7952 else
7953   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7954     # Both variables are already set.
7955     have_x=yes
7956   else
7957     if test "${ac_cv_have_x+set}" = set; then
7958   echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960   # One or both of the vars are not set, and there is no cached value.
7961 ac_x_includes=no ac_x_libraries=no
7962 rm -fr conftest.dir
7963 if mkdir conftest.dir; then
7964   cd conftest.dir
7965   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7966   cat >Imakefile <<'_ACEOF'
7967 acfindx:
7968         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7969 _ACEOF
7970   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7971     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7972     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7973     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7974     for ac_extension in a so sl; do
7975       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7976          test -f $ac_im_libdir/libX11.$ac_extension; then
7977         ac_im_usrlibdir=$ac_im_libdir; break
7978       fi
7979     done
7980     # Screen out bogus values from the imake configuration.  They are
7981     # bogus both because they are the default anyway, and because
7982     # using them would break gcc on systems where it needs fixed includes.
7983     case $ac_im_incroot in
7984         /usr/include) ;;
7985         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7986     esac
7987     case $ac_im_usrlibdir in
7988         /usr/lib | /lib) ;;
7989         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7990     esac
7991   fi
7992   cd ..
7993   rm -fr conftest.dir
7994 fi
7995
7996 # Standard set of common directories for X headers.
7997 # Check X11 before X11Rn because it is often a symlink to the current release.
7998 ac_x_header_dirs='
7999 /usr/X11/include
8000 /usr/X11R6/include
8001 /usr/X11R5/include
8002 /usr/X11R4/include
8003
8004 /usr/include/X11
8005 /usr/include/X11R6
8006 /usr/include/X11R5
8007 /usr/include/X11R4
8008
8009 /usr/local/X11/include
8010 /usr/local/X11R6/include
8011 /usr/local/X11R5/include
8012 /usr/local/X11R4/include
8013
8014 /usr/local/include/X11
8015 /usr/local/include/X11R6
8016 /usr/local/include/X11R5
8017 /usr/local/include/X11R4
8018
8019 /usr/X386/include
8020 /usr/x386/include
8021 /usr/XFree86/include/X11
8022
8023 /usr/include
8024 /usr/local/include
8025 /usr/unsupported/include
8026 /usr/athena/include
8027 /usr/local/x11r5/include
8028 /usr/lpp/Xamples/include
8029
8030 /usr/openwin/include
8031 /usr/openwin/share/include'
8032
8033 if test "$ac_x_includes" = no; then
8034   # Guess where to find include files, by looking for Intrinsic.h.
8035   # First, try using that file with no special directory specified.
8036   cat >conftest.$ac_ext <<_ACEOF
8037 #line $LINENO "configure"
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043 #include <X11/Intrinsic.h>
8044 _ACEOF
8045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } >/dev/null; then
8053   if test -s conftest.err; then
8054     ac_cpp_err=$ac_c_preproc_warn_flag
8055   else
8056     ac_cpp_err=
8057   fi
8058 else
8059   ac_cpp_err=yes
8060 fi
8061 if test -z "$ac_cpp_err"; then
8062   # We can compile using X headers with no special include directory.
8063 ac_x_includes=
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068   for ac_dir in $ac_x_header_dirs; do
8069   if test -r "$ac_dir/X11/Intrinsic.h"; then
8070     ac_x_includes=$ac_dir
8071     break
8072   fi
8073 done
8074 fi
8075 rm -f conftest.err conftest.$ac_ext
8076 fi # $ac_x_includes = no
8077
8078 if test "$ac_x_libraries" = no; then
8079   # Check for the libraries.
8080   # See if we find them without any special options.
8081   # Don't add to $LIBS permanently.
8082   ac_save_LIBS=$LIBS
8083   LIBS="-lXt $LIBS"
8084   cat >conftest.$ac_ext <<_ACEOF
8085 #line $LINENO "configure"
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <X11/Intrinsic.h>
8092 int
8093 main ()
8094 {
8095 XtMalloc (0)
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102   (eval $ac_link) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } &&
8106          { ac_try='test -s conftest$ac_exeext'
8107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108   (eval $ac_try) 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; }; then
8112   LIBS=$ac_save_LIBS
8113 # We can link X programs with no special library path.
8114 ac_x_libraries=
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 LIBS=$ac_save_LIBS
8120 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8121 do
8122   # Don't even attempt the hair of trying to link an X program!
8123   for ac_extension in a so sl; do
8124     if test -r $ac_dir/libXt.$ac_extension; then
8125       ac_x_libraries=$ac_dir
8126       break 2
8127     fi
8128   done
8129 done
8130 fi
8131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8132 fi # $ac_x_libraries = no
8133
8134 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8135   # Didn't find X anywhere.  Cache the known absence of X.
8136   ac_cv_have_x="have_x=no"
8137 else
8138   # Record where we found X for the cache.
8139   ac_cv_have_x="have_x=yes \
8140                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8141 fi
8142 fi
8143
8144   fi
8145   eval "$ac_cv_have_x"
8146 fi # $with_x != no
8147
8148 if test "$have_x" != yes; then
8149   echo "$as_me:$LINENO: result: $have_x" >&5
8150 echo "${ECHO_T}$have_x" >&6
8151   no_x=yes
8152 else
8153   # If each of the values was on the command line, it overrides each guess.
8154   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8155   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8156   # Update the cache value to reflect the command line values.
8157   ac_cv_have_x="have_x=yes \
8158                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8159   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8160 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8161 fi
8162
8163 if test "$no_x" = yes; then
8164   # Not all programs may use this symbol, but it does not hurt to define it.
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define X_DISPLAY_MISSING 1
8168 _ACEOF
8169
8170   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8171 else
8172   if test -n "$x_includes"; then
8173     X_CFLAGS="$X_CFLAGS -I$x_includes"
8174   fi
8175
8176   # It would also be nice to do this for all -L options, not just this one.
8177   if test -n "$x_libraries"; then
8178     X_LIBS="$X_LIBS -L$x_libraries"
8179     # For Solaris; some versions of Sun CC require a space after -R and
8180     # others require no space.  Words are not sufficient . . . .
8181     case `(uname -sr) 2>/dev/null` in
8182     "SunOS 5"*)
8183       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8184 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8185       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8186       cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193
8194 int
8195 main ()
8196 {
8197
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204   (eval $ac_link) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -s conftest$ac_exeext'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   ac_R_nospace=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219 ac_R_nospace=no
8220 fi
8221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8222       if test $ac_R_nospace = yes; then
8223         echo "$as_me:$LINENO: result: no" >&5
8224 echo "${ECHO_T}no" >&6
8225         X_LIBS="$X_LIBS -R$x_libraries"
8226       else
8227         LIBS="$ac_xsave_LIBS -R $x_libraries"
8228         cat >conftest.$ac_ext <<_ACEOF
8229 #line $LINENO "configure"
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235
8236 int
8237 main ()
8238 {
8239
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 rm -f conftest.$ac_objext conftest$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246   (eval $ac_link) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); } &&
8250          { ac_try='test -s conftest$ac_exeext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_R_space=yes
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_R_space=no
8262 fi
8263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8264         if test $ac_R_space = yes; then
8265           echo "$as_me:$LINENO: result: yes" >&5
8266 echo "${ECHO_T}yes" >&6
8267           X_LIBS="$X_LIBS -R $x_libraries"
8268         else
8269           echo "$as_me:$LINENO: result: neither works" >&5
8270 echo "${ECHO_T}neither works" >&6
8271         fi
8272       fi
8273       LIBS=$ac_xsave_LIBS
8274     esac
8275   fi
8276
8277   # Check for system-dependent libraries X programs must link with.
8278   # Do this before checking for the system-independent R6 libraries
8279   # (-lICE), since we may need -lsocket or whatever for X linking.
8280
8281   if test "$ISC" = yes; then
8282     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8283   else
8284     # Martyn Johnson says this is needed for Ultrix, if the X
8285     # libraries were built with DECnet support.  And Karl Berry says
8286     # the Alpha needs dnet_stub (dnet does not exist).
8287     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8288     cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295
8296 /* Override any gcc2 internal prototype to avoid an error.  */
8297 #ifdef __cplusplus
8298 extern "C"
8299 #endif
8300 /* We use char because int might match the return type of a gcc2
8301    builtin and then its argument prototype would still apply.  */
8302 char XOpenDisplay ();
8303 int
8304 main ()
8305 {
8306 XOpenDisplay ();
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313   (eval $ac_link) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   :
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8329 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8330 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   ac_check_lib_save_LIBS=$LIBS
8334 LIBS="-ldnet  $LIBS"
8335 cat >conftest.$ac_ext <<_ACEOF
8336 #line $LINENO "configure"
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342
8343 /* Override any gcc2 internal prototype to avoid an error.  */
8344 #ifdef __cplusplus
8345 extern "C"
8346 #endif
8347 /* We use char because int might match the return type of a gcc2
8348    builtin and then its argument prototype would still apply.  */
8349 char dnet_ntoa ();
8350 int
8351 main ()
8352 {
8353 dnet_ntoa ();
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360   (eval $ac_link) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -s conftest$ac_exeext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_cv_lib_dnet_dnet_ntoa=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 ac_cv_lib_dnet_dnet_ntoa=no
8376 fi
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8378 LIBS=$ac_check_lib_save_LIBS
8379 fi
8380 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8381 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8382 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8383   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8384 fi
8385
8386     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8387       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8388 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8389 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8390   echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392   ac_check_lib_save_LIBS=$LIBS
8393 LIBS="-ldnet_stub  $LIBS"
8394 cat >conftest.$ac_ext <<_ACEOF
8395 #line $LINENO "configure"
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401
8402 /* Override any gcc2 internal prototype to avoid an error.  */
8403 #ifdef __cplusplus
8404 extern "C"
8405 #endif
8406 /* We use char because int might match the return type of a gcc2
8407    builtin and then its argument prototype would still apply.  */
8408 char dnet_ntoa ();
8409 int
8410 main ()
8411 {
8412 dnet_ntoa ();
8413   ;
8414   return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419   (eval $ac_link) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -s conftest$ac_exeext'
8424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425   (eval $ac_try) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }; }; then
8429   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8430 else
8431   echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 ac_cv_lib_dnet_stub_dnet_ntoa=no
8435 fi
8436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8440 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8441 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8442   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8443 fi
8444
8445     fi
8446 fi
8447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8448     LIBS="$ac_xsave_LIBS"
8449
8450     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8451     # to get the SysV transport functions.
8452     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8453     # needs -lnsl.
8454     # The nsl library prevents programs from opening the X display
8455     # on Irix 5.2, according to T.E. Dickey.
8456     # The functions gethostbyname, getservbyname, and inet_addr are
8457     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8458     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8459 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8460 if test "${ac_cv_func_gethostbyname+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470 /* System header to define __stub macros and hopefully few prototypes,
8471     which can conflict with char gethostbyname (); below.
8472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8473     <limits.h> exists even on freestanding compilers.  */
8474 #ifdef __STDC__
8475 # include <limits.h>
8476 #else
8477 # include <assert.h>
8478 #endif
8479 /* Override any gcc2 internal prototype to avoid an error.  */
8480 #ifdef __cplusplus
8481 extern "C"
8482 {
8483 #endif
8484 /* We use char because int might match the return type of a gcc2
8485    builtin and then its argument prototype would still apply.  */
8486 char gethostbyname ();
8487 /* The GNU C library defines this for functions which it implements
8488     to always fail with ENOSYS.  Some functions are actually named
8489     something starting with __ and the normal name is an alias.  */
8490 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8491 choke me
8492 #else
8493 char (*f) () = gethostbyname;
8494 #endif
8495 #ifdef __cplusplus
8496 }
8497 #endif
8498
8499 int
8500 main ()
8501 {
8502 return f != gethostbyname;
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509   (eval $ac_link) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); } &&
8513          { ac_try='test -s conftest$ac_exeext'
8514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515   (eval $ac_try) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_cv_func_gethostbyname=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 ac_cv_func_gethostbyname=no
8525 fi
8526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8527 fi
8528 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8529 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8530
8531     if test $ac_cv_func_gethostbyname = no; then
8532       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8533 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8534 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   ac_check_lib_save_LIBS=$LIBS
8538 LIBS="-lnsl  $LIBS"
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line $LINENO "configure"
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546
8547 /* Override any gcc2 internal prototype to avoid an error.  */
8548 #ifdef __cplusplus
8549 extern "C"
8550 #endif
8551 /* We use char because int might match the return type of a gcc2
8552    builtin and then its argument prototype would still apply.  */
8553 char gethostbyname ();
8554 int
8555 main ()
8556 {
8557 gethostbyname ();
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564   (eval $ac_link) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } &&
8568          { ac_try='test -s conftest$ac_exeext'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   ac_cv_lib_nsl_gethostbyname=yes
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579 ac_cv_lib_nsl_gethostbyname=no
8580 fi
8581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8582 LIBS=$ac_check_lib_save_LIBS
8583 fi
8584 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8585 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8586 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8587   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8588 fi
8589
8590       if test $ac_cv_lib_nsl_gethostbyname = no; then
8591         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8592 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8593 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   ac_check_lib_save_LIBS=$LIBS
8597 LIBS="-lbsd  $LIBS"
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 /* Override any gcc2 internal prototype to avoid an error.  */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 /* We use char because int might match the return type of a gcc2
8611    builtin and then its argument prototype would still apply.  */
8612 char gethostbyname ();
8613 int
8614 main ()
8615 {
8616 gethostbyname ();
8617   ;
8618   return 0;
8619 }
8620 _ACEOF
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623   (eval $ac_link) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -s conftest$ac_exeext'
8628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633   ac_cv_lib_bsd_gethostbyname=yes
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_cv_lib_bsd_gethostbyname=no
8639 fi
8640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8644 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8645 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8646   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8647 fi
8648
8649       fi
8650     fi
8651
8652     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8653     # socket/setsockopt and other routines are undefined under SCO ODT
8654     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8655     # on later versions), says Simon Leinen: it contains gethostby*
8656     # variants that don't use the name server (or something).  -lsocket
8657     # must be given before -lnsl if both are needed.  We assume that
8658     # if connect needs -lnsl, so does gethostbyname.
8659     echo "$as_me:$LINENO: checking for connect" >&5
8660 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8661 if test "${ac_cv_func_connect+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   cat >conftest.$ac_ext <<_ACEOF
8665 #line $LINENO "configure"
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 /* System header to define __stub macros and hopefully few prototypes,
8672     which can conflict with char connect (); below.
8673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674     <limits.h> exists even on freestanding compilers.  */
8675 #ifdef __STDC__
8676 # include <limits.h>
8677 #else
8678 # include <assert.h>
8679 #endif
8680 /* Override any gcc2 internal prototype to avoid an error.  */
8681 #ifdef __cplusplus
8682 extern "C"
8683 {
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686    builtin and then its argument prototype would still apply.  */
8687 char connect ();
8688 /* The GNU C library defines this for functions which it implements
8689     to always fail with ENOSYS.  Some functions are actually named
8690     something starting with __ and the normal name is an alias.  */
8691 #if defined (__stub_connect) || defined (__stub___connect)
8692 choke me
8693 #else
8694 char (*f) () = connect;
8695 #endif
8696 #ifdef __cplusplus
8697 }
8698 #endif
8699
8700 int
8701 main ()
8702 {
8703 return f != connect;
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710   (eval $ac_link) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } &&
8714          { ac_try='test -s conftest$ac_exeext'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; }; then
8720   ac_cv_func_connect=yes
8721 else
8722   echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_cv_func_connect=no
8726 fi
8727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8728 fi
8729 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8730 echo "${ECHO_T}$ac_cv_func_connect" >&6
8731
8732     if test $ac_cv_func_connect = no; then
8733       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8734 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8735 if test "${ac_cv_lib_socket_connect+set}" = set; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   ac_check_lib_save_LIBS=$LIBS
8739 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747
8748 /* Override any gcc2 internal prototype to avoid an error.  */
8749 #ifdef __cplusplus
8750 extern "C"
8751 #endif
8752 /* We use char because int might match the return type of a gcc2
8753    builtin and then its argument prototype would still apply.  */
8754 char connect ();
8755 int
8756 main ()
8757 {
8758 connect ();
8759   ;
8760   return 0;
8761 }
8762 _ACEOF
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765   (eval $ac_link) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } &&
8769          { ac_try='test -s conftest$ac_exeext'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; }; then
8775   ac_cv_lib_socket_connect=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_cv_lib_socket_connect=no
8781 fi
8782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8783 LIBS=$ac_check_lib_save_LIBS
8784 fi
8785 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8786 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8787 if test $ac_cv_lib_socket_connect = yes; then
8788   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8789 fi
8790
8791     fi
8792
8793     # Guillermo Gomez says -lposix is necessary on A/UX.
8794     echo "$as_me:$LINENO: checking for remove" >&5
8795 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8796 if test "${ac_cv_func_remove+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 #line $LINENO "configure"
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806 /* System header to define __stub macros and hopefully few prototypes,
8807     which can conflict with char remove (); below.
8808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8809     <limits.h> exists even on freestanding compilers.  */
8810 #ifdef __STDC__
8811 # include <limits.h>
8812 #else
8813 # include <assert.h>
8814 #endif
8815 /* Override any gcc2 internal prototype to avoid an error.  */
8816 #ifdef __cplusplus
8817 extern "C"
8818 {
8819 #endif
8820 /* We use char because int might match the return type of a gcc2
8821    builtin and then its argument prototype would still apply.  */
8822 char remove ();
8823 /* The GNU C library defines this for functions which it implements
8824     to always fail with ENOSYS.  Some functions are actually named
8825     something starting with __ and the normal name is an alias.  */
8826 #if defined (__stub_remove) || defined (__stub___remove)
8827 choke me
8828 #else
8829 char (*f) () = remove;
8830 #endif
8831 #ifdef __cplusplus
8832 }
8833 #endif
8834
8835 int
8836 main ()
8837 {
8838 return f != remove;
8839   ;
8840   return 0;
8841 }
8842 _ACEOF
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845   (eval $ac_link) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } &&
8849          { ac_try='test -s conftest$ac_exeext'
8850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851   (eval $ac_try) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   ac_cv_func_remove=yes
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 ac_cv_func_remove=no
8861 fi
8862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8863 fi
8864 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8865 echo "${ECHO_T}$ac_cv_func_remove" >&6
8866
8867     if test $ac_cv_func_remove = no; then
8868       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8869 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8870 if test "${ac_cv_lib_posix_remove+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   ac_check_lib_save_LIBS=$LIBS
8874 LIBS="-lposix  $LIBS"
8875 cat >conftest.$ac_ext <<_ACEOF
8876 #line $LINENO "configure"
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882
8883 /* Override any gcc2 internal prototype to avoid an error.  */
8884 #ifdef __cplusplus
8885 extern "C"
8886 #endif
8887 /* We use char because int might match the return type of a gcc2
8888    builtin and then its argument prototype would still apply.  */
8889 char remove ();
8890 int
8891 main ()
8892 {
8893 remove ();
8894   ;
8895   return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900   (eval $ac_link) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } &&
8904          { ac_try='test -s conftest$ac_exeext'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; }; then
8910   ac_cv_lib_posix_remove=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ac_cv_lib_posix_remove=no
8916 fi
8917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8918 LIBS=$ac_check_lib_save_LIBS
8919 fi
8920 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8921 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8922 if test $ac_cv_lib_posix_remove = yes; then
8923   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8924 fi
8925
8926     fi
8927
8928     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8929     echo "$as_me:$LINENO: checking for shmat" >&5
8930 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8931 if test "${ac_cv_func_shmat+set}" = set; then
8932   echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934   cat >conftest.$ac_ext <<_ACEOF
8935 #line $LINENO "configure"
8936 /* confdefs.h.  */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h.  */
8941 /* System header to define __stub macros and hopefully few prototypes,
8942     which can conflict with char shmat (); below.
8943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8944     <limits.h> exists even on freestanding compilers.  */
8945 #ifdef __STDC__
8946 # include <limits.h>
8947 #else
8948 # include <assert.h>
8949 #endif
8950 /* Override any gcc2 internal prototype to avoid an error.  */
8951 #ifdef __cplusplus
8952 extern "C"
8953 {
8954 #endif
8955 /* We use char because int might match the return type of a gcc2
8956    builtin and then its argument prototype would still apply.  */
8957 char shmat ();
8958 /* The GNU C library defines this for functions which it implements
8959     to always fail with ENOSYS.  Some functions are actually named
8960     something starting with __ and the normal name is an alias.  */
8961 #if defined (__stub_shmat) || defined (__stub___shmat)
8962 choke me
8963 #else
8964 char (*f) () = shmat;
8965 #endif
8966 #ifdef __cplusplus
8967 }
8968 #endif
8969
8970 int
8971 main ()
8972 {
8973 return f != shmat;
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980   (eval $ac_link) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } &&
8984          { ac_try='test -s conftest$ac_exeext'
8985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986   (eval $ac_try) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); }; }; then
8990   ac_cv_func_shmat=yes
8991 else
8992   echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995 ac_cv_func_shmat=no
8996 fi
8997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8998 fi
8999 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9000 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9001
9002     if test $ac_cv_func_shmat = no; then
9003       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9004 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9005 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   ac_check_lib_save_LIBS=$LIBS
9009 LIBS="-lipc  $LIBS"
9010 cat >conftest.$ac_ext <<_ACEOF
9011 #line $LINENO "configure"
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017
9018 /* Override any gcc2 internal prototype to avoid an error.  */
9019 #ifdef __cplusplus
9020 extern "C"
9021 #endif
9022 /* We use char because int might match the return type of a gcc2
9023    builtin and then its argument prototype would still apply.  */
9024 char shmat ();
9025 int
9026 main ()
9027 {
9028 shmat ();
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035   (eval $ac_link) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } &&
9039          { ac_try='test -s conftest$ac_exeext'
9040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041   (eval $ac_try) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   ac_cv_lib_ipc_shmat=yes
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 ac_cv_lib_ipc_shmat=no
9051 fi
9052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9054 fi
9055 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9056 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9057 if test $ac_cv_lib_ipc_shmat = yes; then
9058   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9059 fi
9060
9061     fi
9062   fi
9063
9064   # Check for libraries that X11R6 Xt/Xaw programs need.
9065   ac_save_LDFLAGS=$LDFLAGS
9066   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9067   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9068   # check for ICE first), but we must link in the order -lSM -lICE or
9069   # we get undefined symbols.  So assume we have SM if we have ICE.
9070   # These have to be linked with before -lX11, unlike the other
9071   # libraries we check for below, so use a different variable.
9072   # John Interrante, Karl Berry
9073   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9074 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9075 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9076   echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078   ac_check_lib_save_LIBS=$LIBS
9079 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9080 cat >conftest.$ac_ext <<_ACEOF
9081 #line $LINENO "configure"
9082 /* confdefs.h.  */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h.  */
9087
9088 /* Override any gcc2 internal prototype to avoid an error.  */
9089 #ifdef __cplusplus
9090 extern "C"
9091 #endif
9092 /* We use char because int might match the return type of a gcc2
9093    builtin and then its argument prototype would still apply.  */
9094 char IceConnectionNumber ();
9095 int
9096 main ()
9097 {
9098 IceConnectionNumber ();
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105   (eval $ac_link) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } &&
9109          { ac_try='test -s conftest$ac_exeext'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; }; then
9115   ac_cv_lib_ICE_IceConnectionNumber=yes
9116 else
9117   echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 ac_cv_lib_ICE_IceConnectionNumber=no
9121 fi
9122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9124 fi
9125 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9126 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9127 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9128   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9129 fi
9130
9131   LDFLAGS=$ac_save_LDFLAGS
9132
9133 fi
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161 for ac_header in \
9162         assert.h \
9163         fcntl.h \
9164         grp.h \
9165         pwd.h \
9166         libc.h \
9167         limits.h \
9168         stdarg.h \
9169         stdlib.h \
9170         stdint.h \
9171         string.h \
9172         termios.h \
9173         unistd.h \
9174         sys/bitypes.h \
9175         sys/byteorder.h \
9176         sys/ioctl.h \
9177         sys/select.h \
9178         sys/sockio.h \
9179         sys/time.h \
9180         sys/socket.h \
9181         arpa/nameser.h \
9182         resolv.h \
9183         mtio.h \
9184         sys/mtio.h \
9185         sys/tape.h \
9186         regex.h \
9187
9188 do
9189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191   echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 fi
9196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9198 else
9199   # Is the header compilable?
9200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 $ac_includes_default
9210 #include <$ac_header>
9211 _ACEOF
9212 rm -f conftest.$ac_objext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9214   (eval $ac_compile) 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } &&
9218          { ac_try='test -s conftest.$ac_objext'
9219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220   (eval $ac_try) 2>&5
9221   ac_status=$?
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); }; }; then
9224   ac_header_compiler=yes
9225 else
9226   echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 ac_header_compiler=no
9230 fi
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233 echo "${ECHO_T}$ac_header_compiler" >&6
9234
9235 # Is the header present?
9236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245 #include <$ac_header>
9246 _ACEOF
9247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9249   ac_status=$?
9250   grep -v '^ *+' conftest.er1 >conftest.err
9251   rm -f conftest.er1
9252   cat conftest.err >&5
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } >/dev/null; then
9255   if test -s conftest.err; then
9256     ac_cpp_err=$ac_c_preproc_warn_flag
9257   else
9258     ac_cpp_err=
9259   fi
9260 else
9261   ac_cpp_err=yes
9262 fi
9263 if test -z "$ac_cpp_err"; then
9264   ac_header_preproc=yes
9265 else
9266   echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9268
9269   ac_header_preproc=no
9270 fi
9271 rm -f conftest.err conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9273 echo "${ECHO_T}$ac_header_preproc" >&6
9274
9275 # So?  What about this header?
9276 case $ac_header_compiler:$ac_header_preproc in
9277   yes:no )
9278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9282     (
9283       cat <<\_ASBOX
9284 ## ------------------------------------ ##
9285 ## Report this to bug-autoconf@gnu.org. ##
9286 ## ------------------------------------ ##
9287 _ASBOX
9288     ) |
9289       sed "s/^/$as_me: WARNING:     /" >&2
9290     ;;
9291   no:yes )
9292     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9294     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9298     (
9299       cat <<\_ASBOX
9300 ## ------------------------------------ ##
9301 ## Report this to bug-autoconf@gnu.org. ##
9302 ## ------------------------------------ ##
9303 _ASBOX
9304     ) |
9305       sed "s/^/$as_me: WARNING:     /" >&2
9306     ;;
9307 esac
9308 echo "$as_me:$LINENO: checking for $ac_header" >&5
9309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   eval "$as_ac_Header=$ac_header_preproc"
9314 fi
9315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9317
9318 fi
9319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9320   cat >>confdefs.h <<_ACEOF
9321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9322 _ACEOF
9323
9324 fi
9325
9326 done
9327
9328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9330 if test "${ac_cv_header_stdc+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333   cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9335 /* confdefs.h.  */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h.  */
9340 #include <stdlib.h>
9341 #include <stdarg.h>
9342 #include <string.h>
9343 #include <float.h>
9344
9345 int
9346 main ()
9347 {
9348
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355   (eval $ac_compile) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -s conftest.$ac_objext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   ac_cv_header_stdc=yes
9366 else
9367   echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370 ac_cv_header_stdc=no
9371 fi
9372 rm -f conftest.$ac_objext conftest.$ac_ext
9373
9374 if test $ac_cv_header_stdc = yes; then
9375   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9376   cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <string.h>
9384
9385 _ACEOF
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387   $EGREP "memchr" >/dev/null 2>&1; then
9388   :
9389 else
9390   ac_cv_header_stdc=no
9391 fi
9392 rm -f conftest*
9393
9394 fi
9395
9396 if test $ac_cv_header_stdc = yes; then
9397   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9398   cat >conftest.$ac_ext <<_ACEOF
9399 #line $LINENO "configure"
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405 #include <stdlib.h>
9406
9407 _ACEOF
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409   $EGREP "free" >/dev/null 2>&1; then
9410   :
9411 else
9412   ac_cv_header_stdc=no
9413 fi
9414 rm -f conftest*
9415
9416 fi
9417
9418 if test $ac_cv_header_stdc = yes; then
9419   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9420   if test "$cross_compiling" = yes; then
9421   :
9422 else
9423   cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430 #include <ctype.h>
9431 #if ((' ' & 0x0FF) == 0x020)
9432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9434 #else
9435 # define ISLOWER(c) \
9436                    (('a' <= (c) && (c) <= 'i') \
9437                      || ('j' <= (c) && (c) <= 'r') \
9438                      || ('s' <= (c) && (c) <= 'z'))
9439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9440 #endif
9441
9442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9443 int
9444 main ()
9445 {
9446   int i;
9447   for (i = 0; i < 256; i++)
9448     if (XOR (islower (i), ISLOWER (i))
9449         || toupper (i) != TOUPPER (i))
9450       exit(2);
9451   exit (0);
9452 }
9453 _ACEOF
9454 rm -f conftest$ac_exeext
9455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456   (eval $ac_link) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461   (eval $ac_try) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); }; }; then
9465   :
9466 else
9467   echo "$as_me: program exited with status $ac_status" >&5
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ( exit $ac_status )
9472 ac_cv_header_stdc=no
9473 fi
9474 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9475 fi
9476 fi
9477 fi
9478 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9479 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9480 if test $ac_cv_header_stdc = yes; then
9481
9482 cat >>confdefs.h <<\_ACEOF
9483 #define STDC_HEADERS 1
9484 _ACEOF
9485
9486 fi
9487
9488 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9489 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9490 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9495 /* confdefs.h.  */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h.  */
9500 #include <sys/types.h>
9501 int
9502 main ()
9503 {
9504 return makedev(0, 0);
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511   (eval $ac_link) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } &&
9515          { ac_try='test -s conftest$ac_exeext'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; }; then
9521   ac_cv_header_sys_types_h_makedev=yes
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_cv_header_sys_types_h_makedev=no
9527 fi
9528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9529
9530 fi
9531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9532 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9533
9534 if test $ac_cv_header_sys_types_h_makedev = no; then
9535 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9536   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9537 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9538 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 fi
9541 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9542 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9543 else
9544   # Is the header compilable?
9545 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9546 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9547 cat >conftest.$ac_ext <<_ACEOF
9548 #line $LINENO "configure"
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 $ac_includes_default
9555 #include <sys/mkdev.h>
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559   (eval $ac_compile) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -s conftest.$ac_objext'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   ac_header_compiler=yes
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 ac_header_compiler=no
9575 fi
9576 rm -f conftest.$ac_objext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9578 echo "${ECHO_T}$ac_header_compiler" >&6
9579
9580 # Is the header present?
9581 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9582 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590 #include <sys/mkdev.h>
9591 _ACEOF
9592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9594   ac_status=$?
9595   grep -v '^ *+' conftest.er1 >conftest.err
9596   rm -f conftest.er1
9597   cat conftest.err >&5
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } >/dev/null; then
9600   if test -s conftest.err; then
9601     ac_cpp_err=$ac_c_preproc_warn_flag
9602   else
9603     ac_cpp_err=
9604   fi
9605 else
9606   ac_cpp_err=yes
9607 fi
9608 if test -z "$ac_cpp_err"; then
9609   ac_header_preproc=yes
9610 else
9611   echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614   ac_header_preproc=no
9615 fi
9616 rm -f conftest.err conftest.$ac_ext
9617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9618 echo "${ECHO_T}$ac_header_preproc" >&6
9619
9620 # So?  What about this header?
9621 case $ac_header_compiler:$ac_header_preproc in
9622   yes:no )
9623     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9624 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9625     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9627     (
9628       cat <<\_ASBOX
9629 ## ------------------------------------ ##
9630 ## Report this to bug-autoconf@gnu.org. ##
9631 ## ------------------------------------ ##
9632 _ASBOX
9633     ) |
9634       sed "s/^/$as_me: WARNING:     /" >&2
9635     ;;
9636   no:yes )
9637     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9638 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9639     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9640 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9641     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9642 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9643     (
9644       cat <<\_ASBOX
9645 ## ------------------------------------ ##
9646 ## Report this to bug-autoconf@gnu.org. ##
9647 ## ------------------------------------ ##
9648 _ASBOX
9649     ) |
9650       sed "s/^/$as_me: WARNING:     /" >&2
9651     ;;
9652 esac
9653 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9654 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9655 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9659 fi
9660 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9661 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9662
9663 fi
9664 if test $ac_cv_header_sys_mkdev_h = yes; then
9665
9666 cat >>confdefs.h <<\_ACEOF
9667 #define MAJOR_IN_MKDEV 1
9668 _ACEOF
9669
9670 fi
9671
9672
9673
9674   if test $ac_cv_header_sys_mkdev_h = no; then
9675     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9676   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9677 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9678 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9679   echo $ECHO_N "(cached) $ECHO_C" >&6
9680 fi
9681 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9682 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9683 else
9684   # Is the header compilable?
9685 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9686 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9688 #line $LINENO "configure"
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694 $ac_includes_default
9695 #include <sys/sysmacros.h>
9696 _ACEOF
9697 rm -f conftest.$ac_objext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9699   (eval $ac_compile) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); } &&
9703          { ac_try='test -s conftest.$ac_objext'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   ac_header_compiler=yes
9710 else
9711   echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_header_compiler=no
9715 fi
9716 rm -f conftest.$ac_objext conftest.$ac_ext
9717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9718 echo "${ECHO_T}$ac_header_compiler" >&6
9719
9720 # Is the header present?
9721 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9722 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 #include <sys/sysmacros.h>
9731 _ACEOF
9732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } >/dev/null; then
9740   if test -s conftest.err; then
9741     ac_cpp_err=$ac_c_preproc_warn_flag
9742   else
9743     ac_cpp_err=
9744   fi
9745 else
9746   ac_cpp_err=yes
9747 fi
9748 if test -z "$ac_cpp_err"; then
9749   ac_header_preproc=yes
9750 else
9751   echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9753
9754   ac_header_preproc=no
9755 fi
9756 rm -f conftest.err conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9758 echo "${ECHO_T}$ac_header_preproc" >&6
9759
9760 # So?  What about this header?
9761 case $ac_header_compiler:$ac_header_preproc in
9762   yes:no )
9763     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9764 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9765     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9767     (
9768       cat <<\_ASBOX
9769 ## ------------------------------------ ##
9770 ## Report this to bug-autoconf@gnu.org. ##
9771 ## ------------------------------------ ##
9772 _ASBOX
9773     ) |
9774       sed "s/^/$as_me: WARNING:     /" >&2
9775     ;;
9776   no:yes )
9777     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9778 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9779     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9780 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9781     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9783     (
9784       cat <<\_ASBOX
9785 ## ------------------------------------ ##
9786 ## Report this to bug-autoconf@gnu.org. ##
9787 ## ------------------------------------ ##
9788 _ASBOX
9789     ) |
9790       sed "s/^/$as_me: WARNING:     /" >&2
9791     ;;
9792 esac
9793 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9794 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9795 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9799 fi
9800 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9801 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9802
9803 fi
9804 if test $ac_cv_header_sys_sysmacros_h = yes; then
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define MAJOR_IN_SYSMACROS 1
9808 _ACEOF
9809
9810 fi
9811
9812
9813   fi
9814 fi
9815
9816
9817
9818
9819
9820
9821 ac_header_dirent=no
9822 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9823   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9824 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9825 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836 #include <sys/types.h>
9837 #include <$ac_hdr>
9838
9839 int
9840 main ()
9841 {
9842 if ((DIR *) 0)
9843 return 0;
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850   (eval $ac_compile) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } &&
9854          { ac_try='test -s conftest.$ac_objext'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860   eval "$as_ac_Header=yes"
9861 else
9862   echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 eval "$as_ac_Header=no"
9866 fi
9867 rm -f conftest.$ac_objext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9872   cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9874 _ACEOF
9875
9876 ac_header_dirent=$ac_hdr; break
9877 fi
9878
9879 done
9880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9881 if test $ac_header_dirent = dirent.h; then
9882   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9884 if test "${ac_cv_search_opendir+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   ac_func_search_save_LIBS=$LIBS
9888 ac_cv_search_opendir=no
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896
9897 /* Override any gcc2 internal prototype to avoid an error.  */
9898 #ifdef __cplusplus
9899 extern "C"
9900 #endif
9901 /* We use char because int might match the return type of a gcc2
9902    builtin and then its argument prototype would still apply.  */
9903 char opendir ();
9904 int
9905 main ()
9906 {
9907 opendir ();
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914   (eval $ac_link) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } &&
9918          { ac_try='test -s conftest$ac_exeext'
9919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920   (eval $ac_try) 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; }; then
9924   ac_cv_search_opendir="none required"
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 fi
9930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9931 if test "$ac_cv_search_opendir" = no; then
9932   for ac_lib in dir; do
9933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9934     cat >conftest.$ac_ext <<_ACEOF
9935 #line $LINENO "configure"
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941
9942 /* Override any gcc2 internal prototype to avoid an error.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 /* We use char because int might match the return type of a gcc2
9947    builtin and then its argument prototype would still apply.  */
9948 char opendir ();
9949 int
9950 main ()
9951 {
9952 opendir ();
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959   (eval $ac_link) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -s conftest$ac_exeext'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969   ac_cv_search_opendir="-l$ac_lib"
9970 break
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 fi
9976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9977   done
9978 fi
9979 LIBS=$ac_func_search_save_LIBS
9980 fi
9981 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9982 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9983 if test "$ac_cv_search_opendir" != no; then
9984   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9985
9986 fi
9987
9988 else
9989   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9990 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9991 if test "${ac_cv_search_opendir+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   ac_func_search_save_LIBS=$LIBS
9995 ac_cv_search_opendir=no
9996 cat >conftest.$ac_ext <<_ACEOF
9997 #line $LINENO "configure"
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003
10004 /* Override any gcc2 internal prototype to avoid an error.  */
10005 #ifdef __cplusplus
10006 extern "C"
10007 #endif
10008 /* We use char because int might match the return type of a gcc2
10009    builtin and then its argument prototype would still apply.  */
10010 char opendir ();
10011 int
10012 main ()
10013 {
10014 opendir ();
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021   (eval $ac_link) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -s conftest$ac_exeext'
10026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   ac_cv_search_opendir="none required"
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 fi
10037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10038 if test "$ac_cv_search_opendir" = no; then
10039   for ac_lib in x; do
10040     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10041     cat >conftest.$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048
10049 /* Override any gcc2 internal prototype to avoid an error.  */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 /* We use char because int might match the return type of a gcc2
10054    builtin and then its argument prototype would still apply.  */
10055 char opendir ();
10056 int
10057 main ()
10058 {
10059 opendir ();
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066   (eval $ac_link) 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -s conftest$ac_exeext'
10071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072   (eval $ac_try) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; }; then
10076   ac_cv_search_opendir="-l$ac_lib"
10077 break
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 fi
10083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084   done
10085 fi
10086 LIBS=$ac_func_search_save_LIBS
10087 fi
10088 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10089 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10090 if test "$ac_cv_search_opendir" != no; then
10091   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10092
10093 fi
10094
10095 fi
10096
10097 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10098 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10099 if test "${ac_cv_header_stat_broken+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   cat >conftest.$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10104 /* confdefs.h.  */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h.  */
10109 #include <sys/types.h>
10110 #include <sys/stat.h>
10111
10112 #if defined(S_ISBLK) && defined(S_IFDIR)
10113 # if S_ISBLK (S_IFDIR)
10114 You lose.
10115 # endif
10116 #endif
10117
10118 #if defined(S_ISBLK) && defined(S_IFCHR)
10119 # if S_ISBLK (S_IFCHR)
10120 You lose.
10121 # endif
10122 #endif
10123
10124 #if defined(S_ISLNK) && defined(S_IFREG)
10125 # if S_ISLNK (S_IFREG)
10126 You lose.
10127 # endif
10128 #endif
10129
10130 #if defined(S_ISSOCK) && defined(S_IFREG)
10131 # if S_ISSOCK (S_IFREG)
10132 You lose.
10133 # endif
10134 #endif
10135
10136 _ACEOF
10137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10138   $EGREP "You lose" >/dev/null 2>&1; then
10139   ac_cv_header_stat_broken=yes
10140 else
10141   ac_cv_header_stat_broken=no
10142 fi
10143 rm -f conftest*
10144
10145 fi
10146 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10147 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10148 if test $ac_cv_header_stat_broken = yes; then
10149
10150 cat >>confdefs.h <<\_ACEOF
10151 #define STAT_MACROS_BROKEN 1
10152 _ACEOF
10153
10154 fi
10155
10156 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10157 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10158 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10159   echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161   cat >conftest.$ac_ext <<_ACEOF
10162 #line $LINENO "configure"
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168 #include <sys/types.h>
10169 #include <sys/wait.h>
10170 #ifndef WEXITSTATUS
10171 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10172 #endif
10173 #ifndef WIFEXITED
10174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10175 #endif
10176
10177 int
10178 main ()
10179 {
10180   int s;
10181   wait (&s);
10182   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189   (eval $ac_compile) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -s conftest.$ac_objext'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; }; then
10199   ac_cv_header_sys_wait_h=yes
10200 else
10201   echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10203
10204 ac_cv_header_sys_wait_h=no
10205 fi
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10207 fi
10208 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10209 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10210 if test $ac_cv_header_sys_wait_h = yes; then
10211
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_SYS_WAIT_H 1
10214 _ACEOF
10215
10216 fi
10217
10218 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10219 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10220 if test "${ac_cv_header_time+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230 #include <sys/types.h>
10231 #include <sys/time.h>
10232 #include <time.h>
10233
10234 int
10235 main ()
10236 {
10237 if ((struct tm *) 0)
10238 return 0;
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245   (eval $ac_compile) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -s conftest.$ac_objext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_cv_header_time=yes
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_cv_header_time=no
10261 fi
10262 rm -f conftest.$ac_objext conftest.$ac_ext
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10265 echo "${ECHO_T}$ac_cv_header_time" >&6
10266 if test $ac_cv_header_time = yes; then
10267
10268 cat >>confdefs.h <<\_ACEOF
10269 #define TIME_WITH_SYS_TIME 1
10270 _ACEOF
10271
10272 fi
10273
10274
10275 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10276 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10277 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10278   echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280   cat >conftest.$ac_ext <<_ACEOF
10281 #line $LINENO "configure"
10282 /* confdefs.h.  */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h.  */
10287 $ac_includes_default
10288 int
10289 main ()
10290 {
10291 static struct stat ac_aggr;
10292 if (ac_aggr.st_blksize)
10293 return 0;
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300   (eval $ac_compile) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } &&
10304          { ac_try='test -s conftest.$ac_objext'
10305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306   (eval $ac_try) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); }; }; then
10310   ac_cv_member_struct_stat_st_blksize=yes
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 cat >conftest.$ac_ext <<_ACEOF
10316 #line $LINENO "configure"
10317 /* confdefs.h.  */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h.  */
10322 $ac_includes_default
10323 int
10324 main ()
10325 {
10326 static struct stat ac_aggr;
10327 if (sizeof ac_aggr.st_blksize)
10328 return 0;
10329   ;
10330   return 0;
10331 }
10332 _ACEOF
10333 rm -f conftest.$ac_objext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10335   (eval $ac_compile) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } &&
10339          { ac_try='test -s conftest.$ac_objext'
10340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341   (eval $ac_try) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; }; then
10345   ac_cv_member_struct_stat_st_blksize=yes
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 ac_cv_member_struct_stat_st_blksize=no
10351 fi
10352 rm -f conftest.$ac_objext conftest.$ac_ext
10353 fi
10354 rm -f conftest.$ac_objext conftest.$ac_ext
10355 fi
10356 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10357 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10358 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10359
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10362 _ACEOF
10363
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_ST_BLKSIZE 1
10367 _ACEOF
10368
10369 fi
10370
10371
10372 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10373 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10374 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384 $ac_includes_default
10385 int
10386 main ()
10387 {
10388 static struct stat ac_aggr;
10389 if (ac_aggr.st_blocks)
10390 return 0;
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397   (eval $ac_compile) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } &&
10401          { ac_try='test -s conftest.$ac_objext'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; }; then
10407   ac_cv_member_struct_stat_st_blocks=yes
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 cat >conftest.$ac_ext <<_ACEOF
10413 #line $LINENO "configure"
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419 $ac_includes_default
10420 int
10421 main ()
10422 {
10423 static struct stat ac_aggr;
10424 if (sizeof ac_aggr.st_blocks)
10425 return 0;
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432   (eval $ac_compile) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } &&
10436          { ac_try='test -s conftest.$ac_objext'
10437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438   (eval $ac_try) 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); }; }; then
10442   ac_cv_member_struct_stat_st_blocks=yes
10443 else
10444   echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 ac_cv_member_struct_stat_st_blocks=no
10448 fi
10449 rm -f conftest.$ac_objext conftest.$ac_ext
10450 fi
10451 rm -f conftest.$ac_objext conftest.$ac_ext
10452 fi
10453 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10454 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10455 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10456
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10459 _ACEOF
10460
10461
10462 cat >>confdefs.h <<\_ACEOF
10463 #define HAVE_ST_BLOCKS 1
10464 _ACEOF
10465
10466 else
10467   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10468 fi
10469
10470
10471 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10473 if test "${ac_cv_struct_tm+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   cat >conftest.$ac_ext <<_ACEOF
10477 #line $LINENO "configure"
10478 /* confdefs.h.  */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h.  */
10483 #include <sys/types.h>
10484 #include <time.h>
10485
10486 int
10487 main ()
10488 {
10489 struct tm *tp; tp->tm_sec;
10490   ;
10491   return 0;
10492 }
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496   (eval $ac_compile) 2>&5
10497   ac_status=$?
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } &&
10500          { ac_try='test -s conftest.$ac_objext'
10501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502   (eval $ac_try) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); }; }; then
10506   ac_cv_struct_tm=time.h
10507 else
10508   echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10510
10511 ac_cv_struct_tm=sys/time.h
10512 fi
10513 rm -f conftest.$ac_objext conftest.$ac_ext
10514 fi
10515 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10516 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10517 if test $ac_cv_struct_tm = sys/time.h; then
10518
10519 cat >>confdefs.h <<\_ACEOF
10520 #define TM_IN_SYS_TIME 1
10521 _ACEOF
10522
10523 fi
10524
10525 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10526 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10527 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537 #include <sys/types.h>
10538 #include <$ac_cv_struct_tm>
10539
10540
10541 int
10542 main ()
10543 {
10544 static struct tm ac_aggr;
10545 if (ac_aggr.tm_zone)
10546 return 0;
10547   ;
10548   return 0;
10549 }
10550 _ACEOF
10551 rm -f conftest.$ac_objext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10553   (eval $ac_compile) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } &&
10557          { ac_try='test -s conftest.$ac_objext'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   ac_cv_member_struct_tm_tm_zone=yes
10564 else
10565   echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 cat >conftest.$ac_ext <<_ACEOF
10569 #line $LINENO "configure"
10570 /* confdefs.h.  */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h.  */
10575 #include <sys/types.h>
10576 #include <$ac_cv_struct_tm>
10577
10578
10579 int
10580 main ()
10581 {
10582 static struct tm ac_aggr;
10583 if (sizeof ac_aggr.tm_zone)
10584 return 0;
10585   ;
10586   return 0;
10587 }
10588 _ACEOF
10589 rm -f conftest.$ac_objext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591   (eval $ac_compile) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } &&
10595          { ac_try='test -s conftest.$ac_objext'
10596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597   (eval $ac_try) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; }; then
10601   ac_cv_member_struct_tm_tm_zone=yes
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 ac_cv_member_struct_tm_tm_zone=no
10607 fi
10608 rm -f conftest.$ac_objext conftest.$ac_ext
10609 fi
10610 rm -f conftest.$ac_objext conftest.$ac_ext
10611 fi
10612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10613 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10614 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10615
10616 cat >>confdefs.h <<_ACEOF
10617 #define HAVE_STRUCT_TM_TM_ZONE 1
10618 _ACEOF
10619
10620
10621 fi
10622
10623 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10624
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_TM_ZONE 1
10627 _ACEOF
10628
10629 else
10630   echo "$as_me:$LINENO: checking for tzname" >&5
10631 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10632 if test "${ac_cv_var_tzname+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642 #include <time.h>
10643 #ifndef tzname /* For SGI.  */
10644 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10645 #endif
10646
10647 int
10648 main ()
10649 {
10650 atoi(*tzname);
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657   (eval $ac_link) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } &&
10661          { ac_try='test -s conftest$ac_exeext'
10662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663   (eval $ac_try) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; }; then
10667   ac_cv_var_tzname=yes
10668 else
10669   echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_cv_var_tzname=no
10673 fi
10674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10675 fi
10676 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10677 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10678   if test $ac_cv_var_tzname = yes; then
10679
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_TZNAME 1
10682 _ACEOF
10683
10684   fi
10685 fi
10686
10687
10688 echo "$as_me:$LINENO: checking for utime.h" >&5
10689 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10690 if test "${ba_cv_header_utime_h+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700
10701 #include <sys/types.h>
10702 #include <utime.h>
10703 int
10704 main ()
10705 {
10706 struct utimbuf foo
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713   (eval $ac_compile) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } &&
10717          { ac_try='test -s conftest.$ac_objext'
10718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719   (eval $ac_try) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }; }; then
10723   ba_cv_header_utime_h=yes
10724 else
10725   echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 ba_cv_header_utime_h=no
10729 fi
10730 rm -f conftest.$ac_objext conftest.$ac_ext
10731 fi
10732 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10733 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10734 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_UTIME_H 1
10736 _ACEOF
10737
10738
10739 echo "$as_me:$LINENO: checking for socklen_t" >&5
10740 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10741 if test "${ba_cv_header_socklen_t+set}" = set; then
10742   echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744   cat >conftest.$ac_ext <<_ACEOF
10745 #line $LINENO "configure"
10746 /* confdefs.h.  */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h.  */
10751
10752 #include <sys/types.h>
10753 #include <sys/socket.h>
10754 int
10755 main ()
10756 {
10757 socklen_t x
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764   (eval $ac_compile) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); } &&
10768          { ac_try='test -s conftest.$ac_objext'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   ba_cv_header_socklen_t=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ba_cv_header_socklen_t=no
10780 fi
10781 rm -f conftest.$ac_objext conftest.$ac_ext
10782 fi
10783 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10784 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10785 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_SOCKLEN_T 1
10787 _ACEOF
10788
10789
10790 echo "$as_me:$LINENO: checking for bigendian" >&5
10791 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10792 if test "${ba_cv_bigendian+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   if test "$cross_compiling" = yes; then
10796   ba_cv_bigendian=no
10797 else
10798   cat >conftest.$ac_ext <<_ACEOF
10799 #line $LINENO "configure"
10800 /* confdefs.h.  */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h.  */
10805 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10806 _ACEOF
10807 rm -f conftest$ac_exeext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809   (eval $ac_link) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814   (eval $ac_try) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ba_cv_bigendian=yes
10819 else
10820   echo "$as_me: program exited with status $ac_status" >&5
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 ( exit $ac_status )
10825 ba_cv_bigendian=no
10826 fi
10827 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10828 fi
10829 fi
10830 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10831 echo "${ECHO_T}$ba_cv_bigendian" >&6
10832 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_BIGENDIAN 1
10834 _ACEOF
10835
10836
10837
10838 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10840 if test "${ac_cv_c_const+set}" = set; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 /* confdefs.h.  */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h.  */
10850
10851 int
10852 main ()
10853 {
10854 /* FIXME: Include the comments suggested by Paul. */
10855 #ifndef __cplusplus
10856   /* Ultrix mips cc rejects this.  */
10857   typedef int charset[2];
10858   const charset x;
10859   /* SunOS 4.1.1 cc rejects this.  */
10860   char const *const *ccp;
10861   char **p;
10862   /* NEC SVR4.0.2 mips cc rejects this.  */
10863   struct point {int x, y;};
10864   static struct point const zero = {0,0};
10865   /* AIX XL C 1.02.0.0 rejects this.
10866      It does not let you subtract one const X* pointer from another in
10867      an arm of an if-expression whose if-part is not a constant
10868      expression */
10869   const char *g = "string";
10870   ccp = &g + (g ? g-g : 0);
10871   /* HPUX 7.0 cc rejects these. */
10872   ++ccp;
10873   p = (char**) ccp;
10874   ccp = (char const *const *) p;
10875   { /* SCO 3.2v4 cc rejects this.  */
10876     char *t;
10877     char const *s = 0 ? (char *) 0 : (char const *) 0;
10878
10879     *t++ = 0;
10880   }
10881   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10882     int x[] = {25, 17};
10883     const int *foo = &x[0];
10884     ++foo;
10885   }
10886   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10887     typedef const int *iptr;
10888     iptr p = 0;
10889     ++p;
10890   }
10891   { /* AIX XL C 1.02.0.0 rejects this saying
10892        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10893     struct s { int j; const int *ap[3]; };
10894     struct s *b; b->j = 5;
10895   }
10896   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10897     const int foo = 10;
10898   }
10899 #endif
10900
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 rm -f conftest.$ac_objext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907   (eval $ac_compile) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -s conftest.$ac_objext'
10912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913   (eval $ac_try) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; }; then
10917   ac_cv_c_const=yes
10918 else
10919   echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922 ac_cv_c_const=no
10923 fi
10924 rm -f conftest.$ac_objext conftest.$ac_ext
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10927 echo "${ECHO_T}$ac_cv_c_const" >&6
10928 if test $ac_cv_c_const = no; then
10929
10930 cat >>confdefs.h <<\_ACEOF
10931 #define const
10932 _ACEOF
10933
10934 fi
10935
10936
10937
10938 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10939 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10940 fstype=no
10941 # The order of these tests is important.
10942 cat >conftest.$ac_ext <<_ACEOF
10943 #line $LINENO "configure"
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949 #include <sys/statvfs.h>
10950 #include <sys/fstyp.h>
10951 _ACEOF
10952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
10957   cat conftest.err >&5
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } >/dev/null; then
10960   if test -s conftest.err; then
10961     ac_cpp_err=$ac_c_preproc_warn_flag
10962   else
10963     ac_cpp_err=
10964   fi
10965 else
10966   ac_cpp_err=yes
10967 fi
10968 if test -z "$ac_cpp_err"; then
10969   cat >>confdefs.h <<\_ACEOF
10970 #define FSTYPE_STATVFS 1
10971 _ACEOF
10972  fstype=SVR4
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977
10978 fi
10979 rm -f conftest.err conftest.$ac_ext
10980 if test $fstype = no; then
10981 cat >conftest.$ac_ext <<_ACEOF
10982 #line $LINENO "configure"
10983 /* confdefs.h.  */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h.  */
10988 #include <sys/statfs.h>
10989 #include <sys/fstyp.h>
10990 _ACEOF
10991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } >/dev/null; then
10999   if test -s conftest.err; then
11000     ac_cpp_err=$ac_c_preproc_warn_flag
11001   else
11002     ac_cpp_err=
11003   fi
11004 else
11005   ac_cpp_err=yes
11006 fi
11007 if test -z "$ac_cpp_err"; then
11008   cat >>confdefs.h <<\_ACEOF
11009 #define FSTYPE_USG_STATFS 1
11010 _ACEOF
11011  fstype=SVR3
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016
11017 fi
11018 rm -f conftest.err conftest.$ac_ext
11019 fi
11020 if test $fstype = no; then
11021 cat >conftest.$ac_ext <<_ACEOF
11022 #line $LINENO "configure"
11023 /* confdefs.h.  */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h.  */
11028 #include <sys/statfs.h>
11029 #include <sys/vmount.h>
11030 _ACEOF
11031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } >/dev/null; then
11039   if test -s conftest.err; then
11040     ac_cpp_err=$ac_c_preproc_warn_flag
11041   else
11042     ac_cpp_err=
11043   fi
11044 else
11045   ac_cpp_err=yes
11046 fi
11047 if test -z "$ac_cpp_err"; then
11048   cat >>confdefs.h <<\_ACEOF
11049 #define FSTYPE_AIX_STATFS 1
11050 _ACEOF
11051  fstype=AIX
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056
11057 fi
11058 rm -f conftest.err conftest.$ac_ext
11059 fi
11060 if test $fstype = no; then
11061 cat >conftest.$ac_ext <<_ACEOF
11062 #line $LINENO "configure"
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 #include <mntent.h>
11069 _ACEOF
11070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11072   ac_status=$?
11073   grep -v '^ *+' conftest.er1 >conftest.err
11074   rm -f conftest.er1
11075   cat conftest.err >&5
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } >/dev/null; then
11078   if test -s conftest.err; then
11079     ac_cpp_err=$ac_c_preproc_warn_flag
11080   else
11081     ac_cpp_err=
11082   fi
11083 else
11084   ac_cpp_err=yes
11085 fi
11086 if test -z "$ac_cpp_err"; then
11087   cat >>confdefs.h <<\_ACEOF
11088 #define FSTYPE_MNTENT 1
11089 _ACEOF
11090  fstype=4.3BSD
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095
11096 fi
11097 rm -f conftest.err conftest.$ac_ext
11098 fi
11099 if test $fstype = no; then
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 #include <sys/mount.h>
11108
11109 _ACEOF
11110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11111   $EGREP "f_type;" >/dev/null 2>&1; then
11112   cat >>confdefs.h <<\_ACEOF
11113 #define FSTYPE_STATFS 1
11114 _ACEOF
11115  fstype=4.4BSD/OSF1
11116 fi
11117 rm -f conftest*
11118
11119 fi
11120 if test $fstype = no; then
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11123 /* confdefs.h.  */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h.  */
11128 #include <sys/mount.h>
11129 #include <sys/fs_types.h>
11130 _ACEOF
11131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } >/dev/null; then
11139   if test -s conftest.err; then
11140     ac_cpp_err=$ac_c_preproc_warn_flag
11141   else
11142     ac_cpp_err=
11143   fi
11144 else
11145   ac_cpp_err=yes
11146 fi
11147 if test -z "$ac_cpp_err"; then
11148   cat >>confdefs.h <<\_ACEOF
11149 #define FSTYPE_GETMNT 1
11150 _ACEOF
11151  fstype=Ultrix
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156
11157 fi
11158 rm -f conftest.err conftest.$ac_ext
11159 fi
11160 echo "$as_me:$LINENO: result: $fstype" >&5
11161 echo "${ECHO_T}$fstype" >&6
11162
11163 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11164 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11165 if test "${ac_cv_type_signal+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11170 /* confdefs.h.  */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h.  */
11175 #include <sys/types.h>
11176 #include <signal.h>
11177 #ifdef signal
11178 # undef signal
11179 #endif
11180 #ifdef __cplusplus
11181 extern "C" void (*signal (int, void (*)(int)))(int);
11182 #else
11183 void (*signal ()) ();
11184 #endif
11185
11186 int
11187 main ()
11188 {
11189 int i;
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196   (eval $ac_compile) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } &&
11200          { ac_try='test -s conftest.$ac_objext'
11201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202   (eval $ac_try) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   ac_cv_type_signal=void
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 ac_cv_type_signal=int
11212 fi
11213 rm -f conftest.$ac_objext conftest.$ac_ext
11214 fi
11215 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11216 echo "${ECHO_T}$ac_cv_type_signal" >&6
11217
11218 cat >>confdefs.h <<_ACEOF
11219 #define RETSIGTYPE $ac_cv_type_signal
11220 _ACEOF
11221
11222
11223
11224 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11225 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11226 if test "${bash_cv_signal_vintage+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229
11230   cat >conftest.$ac_ext <<_ACEOF
11231 #line $LINENO "configure"
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 #include <signal.h>
11238 int
11239 main ()
11240 {
11241
11242     sigset_t ss;
11243     struct sigaction sa;
11244     sigemptyset(&ss); sigsuspend(&ss);
11245     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11246     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11247
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254   (eval $ac_link) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -s conftest$ac_exeext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   bash_cv_signal_vintage=posix
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269
11270     cat >conftest.$ac_ext <<_ACEOF
11271 #line $LINENO "configure"
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 #include <signal.h>
11278 int
11279 main ()
11280 {
11281
11282         int mask = sigmask(SIGINT);
11283         sigsetmask(mask); sigblock(mask); sigpause(mask);
11284
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291   (eval $ac_link) 2>&5
11292   ac_status=$?
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); } &&
11295          { ac_try='test -s conftest$ac_exeext'
11296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297   (eval $ac_try) 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; }; then
11301   bash_cv_signal_vintage=4.2bsd
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306
11307       cat >conftest.$ac_ext <<_ACEOF
11308 #line $LINENO "configure"
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314
11315         #include <signal.h>
11316         RETSIGTYPE foo() { }
11317 int
11318 main ()
11319 {
11320
11321                 int mask = sigmask(SIGINT);
11322                 sigset(SIGINT, foo); sigrelse(SIGINT);
11323                 sighold(SIGINT); sigpause(SIGINT);
11324
11325   ;
11326   return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331   (eval $ac_link) 2>&5
11332   ac_status=$?
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); } &&
11335          { ac_try='test -s conftest$ac_exeext'
11336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337   (eval $ac_try) 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); }; }; then
11341   bash_cv_signal_vintage=svr3
11342 else
11343   echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 bash_cv_signal_vintage=v7
11347
11348 fi
11349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11350
11351 fi
11352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11353
11354 fi
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356
11357 fi
11358
11359 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11360 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11361 if test "$bash_cv_signal_vintage" = posix; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_POSIX_SIGNALS 1
11364 _ACEOF
11365
11366 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11367 cat >>confdefs.h <<\_ACEOF
11368 #define HAVE_BSD_SIGNALS 1
11369 _ACEOF
11370
11371 elif test "$bash_cv_signal_vintage" = svr3; then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_USG_SIGHOLD 1
11374 _ACEOF
11375
11376 fi
11377
11378 echo "$as_me:$LINENO: checking for mode_t" >&5
11379 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11380 if test "${ac_cv_type_mode_t+set}" = set; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 $ac_includes_default
11391 int
11392 main ()
11393 {
11394 if ((mode_t *) 0)
11395   return 0;
11396 if (sizeof (mode_t))
11397   return 0;
11398   ;
11399   return 0;
11400 }
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404   (eval $ac_compile) 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } &&
11408          { ac_try='test -s conftest.$ac_objext'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; }; then
11414   ac_cv_type_mode_t=yes
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419 ac_cv_type_mode_t=no
11420 fi
11421 rm -f conftest.$ac_objext conftest.$ac_ext
11422 fi
11423 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11424 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11425 if test $ac_cv_type_mode_t = yes; then
11426   :
11427 else
11428
11429 cat >>confdefs.h <<_ACEOF
11430 #define mode_t int
11431 _ACEOF
11432
11433 fi
11434
11435 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11436 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11437 if test "${ac_cv_type_uid_t+set}" = set; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 #include <sys/types.h>
11448
11449 _ACEOF
11450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11451   $EGREP "uid_t" >/dev/null 2>&1; then
11452   ac_cv_type_uid_t=yes
11453 else
11454   ac_cv_type_uid_t=no
11455 fi
11456 rm -f conftest*
11457
11458 fi
11459 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11460 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11461 if test $ac_cv_type_uid_t = no; then
11462
11463 cat >>confdefs.h <<\_ACEOF
11464 #define uid_t int
11465 _ACEOF
11466
11467
11468 cat >>confdefs.h <<\_ACEOF
11469 #define gid_t int
11470 _ACEOF
11471
11472 fi
11473
11474 echo "$as_me:$LINENO: checking for size_t" >&5
11475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11476 if test "${ac_cv_type_size_t+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11481 /* confdefs.h.  */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h.  */
11486 $ac_includes_default
11487 int
11488 main ()
11489 {
11490 if ((size_t *) 0)
11491   return 0;
11492 if (sizeof (size_t))
11493   return 0;
11494   ;
11495   return 0;
11496 }
11497 _ACEOF
11498 rm -f conftest.$ac_objext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500   (eval $ac_compile) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } &&
11504          { ac_try='test -s conftest.$ac_objext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   ac_cv_type_size_t=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_cv_type_size_t=no
11516 fi
11517 rm -f conftest.$ac_objext conftest.$ac_ext
11518 fi
11519 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11520 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11521 if test $ac_cv_type_size_t = yes; then
11522   :
11523 else
11524
11525 cat >>confdefs.h <<_ACEOF
11526 #define size_t unsigned
11527 _ACEOF
11528
11529 fi
11530
11531 echo "$as_me:$LINENO: checking for pid_t" >&5
11532 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11533 if test "${ac_cv_type_pid_t+set}" = set; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 $ac_includes_default
11544 int
11545 main ()
11546 {
11547 if ((pid_t *) 0)
11548   return 0;
11549 if (sizeof (pid_t))
11550   return 0;
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557   (eval $ac_compile) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } &&
11561          { ac_try='test -s conftest.$ac_objext'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; }; then
11567   ac_cv_type_pid_t=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_cv_type_pid_t=no
11573 fi
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11575 fi
11576 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11578 if test $ac_cv_type_pid_t = yes; then
11579   :
11580 else
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define pid_t int
11584 _ACEOF
11585
11586 fi
11587
11588 echo "$as_me:$LINENO: checking for off_t" >&5
11589 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11590 if test "${ac_cv_type_off_t+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600 $ac_includes_default
11601 int
11602 main ()
11603 {
11604 if ((off_t *) 0)
11605   return 0;
11606 if (sizeof (off_t))
11607   return 0;
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 rm -f conftest.$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614   (eval $ac_compile) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); } &&
11618          { ac_try='test -s conftest.$ac_objext'
11619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620   (eval $ac_try) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); }; }; then
11624   ac_cv_type_off_t=yes
11625 else
11626   echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_cv_type_off_t=no
11630 fi
11631 rm -f conftest.$ac_objext conftest.$ac_ext
11632 fi
11633 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11634 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11635 if test $ac_cv_type_off_t = yes; then
11636   :
11637 else
11638
11639 cat >>confdefs.h <<_ACEOF
11640 #define off_t long
11641 _ACEOF
11642
11643 fi
11644
11645 echo "$as_me:$LINENO: checking for ino_t" >&5
11646 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11647 if test "${ac_cv_type_ino_t+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 $ac_includes_default
11658 int
11659 main ()
11660 {
11661 if ((ino_t *) 0)
11662   return 0;
11663 if (sizeof (ino_t))
11664   return 0;
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671   (eval $ac_compile) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -s conftest.$ac_objext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   ac_cv_type_ino_t=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 ac_cv_type_ino_t=no
11687 fi
11688 rm -f conftest.$ac_objext conftest.$ac_ext
11689 fi
11690 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11691 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11692 if test $ac_cv_type_ino_t = yes; then
11693   :
11694 else
11695
11696 cat >>confdefs.h <<_ACEOF
11697 #define ino_t unsigned long
11698 _ACEOF
11699
11700 fi
11701
11702 echo "$as_me:$LINENO: checking for dev_t" >&5
11703 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11704 if test "${ac_cv_type_dev_t+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   cat >conftest.$ac_ext <<_ACEOF
11708 #line $LINENO "configure"
11709 /* confdefs.h.  */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h.  */
11714 $ac_includes_default
11715 int
11716 main ()
11717 {
11718 if ((dev_t *) 0)
11719   return 0;
11720 if (sizeof (dev_t))
11721   return 0;
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728   (eval $ac_compile) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); } &&
11732          { ac_try='test -s conftest.$ac_objext'
11733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734   (eval $ac_try) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   ac_cv_type_dev_t=yes
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743 ac_cv_type_dev_t=no
11744 fi
11745 rm -f conftest.$ac_objext conftest.$ac_ext
11746 fi
11747 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11748 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11749 if test $ac_cv_type_dev_t = yes; then
11750   :
11751 else
11752
11753 cat >>confdefs.h <<_ACEOF
11754 #define dev_t unsigned long
11755 _ACEOF
11756
11757 fi
11758
11759 echo "$as_me:$LINENO: checking for daddr_t" >&5
11760 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11761 if test "${ac_cv_type_daddr_t+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 $ac_includes_default
11772 int
11773 main ()
11774 {
11775 if ((daddr_t *) 0)
11776   return 0;
11777 if (sizeof (daddr_t))
11778   return 0;
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785   (eval $ac_compile) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); } &&
11789          { ac_try='test -s conftest.$ac_objext'
11790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791   (eval $ac_try) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   ac_cv_type_daddr_t=yes
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 ac_cv_type_daddr_t=no
11801 fi
11802 rm -f conftest.$ac_objext conftest.$ac_ext
11803 fi
11804 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11805 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11806 if test $ac_cv_type_daddr_t = yes; then
11807   :
11808 else
11809
11810 cat >>confdefs.h <<_ACEOF
11811 #define daddr_t long
11812 _ACEOF
11813
11814 fi
11815
11816 echo "$as_me:$LINENO: checking for major_t" >&5
11817 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11818 if test "${ac_cv_type_major_t+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828 $ac_includes_default
11829 int
11830 main ()
11831 {
11832 if ((major_t *) 0)
11833   return 0;
11834 if (sizeof (major_t))
11835   return 0;
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11842   (eval $ac_compile) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -s conftest.$ac_objext'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   ac_cv_type_major_t=yes
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ac_cv_type_major_t=no
11858 fi
11859 rm -f conftest.$ac_objext conftest.$ac_ext
11860 fi
11861 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11862 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11863 if test $ac_cv_type_major_t = yes; then
11864   :
11865 else
11866
11867 cat >>confdefs.h <<_ACEOF
11868 #define major_t int
11869 _ACEOF
11870
11871 fi
11872
11873 echo "$as_me:$LINENO: checking for minor_t" >&5
11874 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11875 if test "${ac_cv_type_minor_t+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   cat >conftest.$ac_ext <<_ACEOF
11879 #line $LINENO "configure"
11880 /* confdefs.h.  */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h.  */
11885 $ac_includes_default
11886 int
11887 main ()
11888 {
11889 if ((minor_t *) 0)
11890   return 0;
11891 if (sizeof (minor_t))
11892   return 0;
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899   (eval $ac_compile) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -s conftest.$ac_objext'
11904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905   (eval $ac_try) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; }; then
11909   ac_cv_type_minor_t=yes
11910 else
11911   echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_cv_type_minor_t=no
11915 fi
11916 rm -f conftest.$ac_objext conftest.$ac_ext
11917 fi
11918 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11919 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11920 if test $ac_cv_type_minor_t = yes; then
11921   :
11922 else
11923
11924 cat >>confdefs.h <<_ACEOF
11925 #define minor_t int
11926 _ACEOF
11927
11928 fi
11929
11930 echo "$as_me:$LINENO: checking for ssize_t" >&5
11931 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11932 if test "${ac_cv_type_ssize_t+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 #line $LINENO "configure"
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942 $ac_includes_default
11943 int
11944 main ()
11945 {
11946 if ((ssize_t *) 0)
11947   return 0;
11948 if (sizeof (ssize_t))
11949   return 0;
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext
11955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11956   (eval $ac_compile) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -s conftest.$ac_objext'
11961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962   (eval $ac_try) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; }; then
11966   ac_cv_type_ssize_t=yes
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 ac_cv_type_ssize_t=no
11972 fi
11973 rm -f conftest.$ac_objext conftest.$ac_ext
11974 fi
11975 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11976 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11977 if test $ac_cv_type_ssize_t = yes; then
11978   :
11979 else
11980
11981 cat >>confdefs.h <<_ACEOF
11982 #define ssize_t int
11983 _ACEOF
11984
11985 fi
11986
11987 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11988 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11989 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992   cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11994 /* confdefs.h.  */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h.  */
11999 $ac_includes_default
12000 int
12001 main ()
12002 {
12003 static struct stat ac_aggr;
12004 if (ac_aggr.st_blocks)
12005 return 0;
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012   (eval $ac_compile) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } &&
12016          { ac_try='test -s conftest.$ac_objext'
12017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018   (eval $ac_try) 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; }; then
12022   ac_cv_member_struct_stat_st_blocks=yes
12023 else
12024   echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 cat >conftest.$ac_ext <<_ACEOF
12028 #line $LINENO "configure"
12029 /* confdefs.h.  */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h.  */
12034 $ac_includes_default
12035 int
12036 main ()
12037 {
12038 static struct stat ac_aggr;
12039 if (sizeof ac_aggr.st_blocks)
12040 return 0;
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12047   (eval $ac_compile) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); } &&
12051          { ac_try='test -s conftest.$ac_objext'
12052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053   (eval $ac_try) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   ac_cv_member_struct_stat_st_blocks=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 ac_cv_member_struct_stat_st_blocks=no
12063 fi
12064 rm -f conftest.$ac_objext conftest.$ac_ext
12065 fi
12066 rm -f conftest.$ac_objext conftest.$ac_ext
12067 fi
12068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12069 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12070 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12071
12072 cat >>confdefs.h <<_ACEOF
12073 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12074 _ACEOF
12075
12076
12077 cat >>confdefs.h <<\_ACEOF
12078 #define HAVE_ST_BLOCKS 1
12079 _ACEOF
12080
12081 else
12082   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12083 fi
12084
12085
12086
12087 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12088 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12089 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12090   echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092   cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099 $ac_includes_default
12100 int
12101 main ()
12102 {
12103 static struct stat ac_aggr;
12104 if (ac_aggr.st_rdev)
12105 return 0;
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112   (eval $ac_compile) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } &&
12116          { ac_try='test -s conftest.$ac_objext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   ac_cv_member_struct_stat_st_rdev=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 cat >conftest.$ac_ext <<_ACEOF
12128 #line $LINENO "configure"
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 $ac_includes_default
12135 int
12136 main ()
12137 {
12138 static struct stat ac_aggr;
12139 if (sizeof ac_aggr.st_rdev)
12140 return 0;
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147   (eval $ac_compile) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } &&
12151          { ac_try='test -s conftest.$ac_objext'
12152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153   (eval $ac_try) 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; }; then
12157   ac_cv_member_struct_stat_st_rdev=yes
12158 else
12159   echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162 ac_cv_member_struct_stat_st_rdev=no
12163 fi
12164 rm -f conftest.$ac_objext conftest.$ac_ext
12165 fi
12166 rm -f conftest.$ac_objext conftest.$ac_ext
12167 fi
12168 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12169 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12170 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12171
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_STRUCT_STAT_ST_RDEV 1
12174 _ACEOF
12175
12176
12177 cat >>confdefs.h <<\_ACEOF
12178 #define HAVE_ST_RDEV 1
12179 _ACEOF
12180
12181 fi
12182
12183
12184 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12185 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12186 if test "${ac_cv_struct_tm+set}" = set; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   cat >conftest.$ac_ext <<_ACEOF
12190 #line $LINENO "configure"
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 #include <sys/types.h>
12197 #include <time.h>
12198
12199 int
12200 main ()
12201 {
12202 struct tm *tp; tp->tm_sec;
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209   (eval $ac_compile) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } &&
12213          { ac_try='test -s conftest.$ac_objext'
12214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215   (eval $ac_try) 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; }; then
12219   ac_cv_struct_tm=time.h
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_cv_struct_tm=sys/time.h
12225 fi
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12227 fi
12228 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12229 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12230 if test $ac_cv_struct_tm = sys/time.h; then
12231
12232 cat >>confdefs.h <<\_ACEOF
12233 #define TM_IN_SYS_TIME 1
12234 _ACEOF
12235
12236 fi
12237
12238 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12240 if test "${ac_cv_c_const+set}" = set; then
12241   echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243   cat >conftest.$ac_ext <<_ACEOF
12244 #line $LINENO "configure"
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250
12251 int
12252 main ()
12253 {
12254 /* FIXME: Include the comments suggested by Paul. */
12255 #ifndef __cplusplus
12256   /* Ultrix mips cc rejects this.  */
12257   typedef int charset[2];
12258   const charset x;
12259   /* SunOS 4.1.1 cc rejects this.  */
12260   char const *const *ccp;
12261   char **p;
12262   /* NEC SVR4.0.2 mips cc rejects this.  */
12263   struct point {int x, y;};
12264   static struct point const zero = {0,0};
12265   /* AIX XL C 1.02.0.0 rejects this.
12266      It does not let you subtract one const X* pointer from another in
12267      an arm of an if-expression whose if-part is not a constant
12268      expression */
12269   const char *g = "string";
12270   ccp = &g + (g ? g-g : 0);
12271   /* HPUX 7.0 cc rejects these. */
12272   ++ccp;
12273   p = (char**) ccp;
12274   ccp = (char const *const *) p;
12275   { /* SCO 3.2v4 cc rejects this.  */
12276     char *t;
12277     char const *s = 0 ? (char *) 0 : (char const *) 0;
12278
12279     *t++ = 0;
12280   }
12281   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12282     int x[] = {25, 17};
12283     const int *foo = &x[0];
12284     ++foo;
12285   }
12286   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12287     typedef const int *iptr;
12288     iptr p = 0;
12289     ++p;
12290   }
12291   { /* AIX XL C 1.02.0.0 rejects this saying
12292        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12293     struct s { int j; const int *ap[3]; };
12294     struct s *b; b->j = 5;
12295   }
12296   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12297     const int foo = 10;
12298   }
12299 #endif
12300
12301   ;
12302   return 0;
12303 }
12304 _ACEOF
12305 rm -f conftest.$ac_objext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12307   (eval $ac_compile) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } &&
12311          { ac_try='test -s conftest.$ac_objext'
12312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313   (eval $ac_try) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   ac_cv_c_const=yes
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_cv_c_const=no
12323 fi
12324 rm -f conftest.$ac_objext conftest.$ac_ext
12325 fi
12326 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12327 echo "${ECHO_T}$ac_cv_c_const" >&6
12328 if test $ac_cv_c_const = no; then
12329
12330 cat >>confdefs.h <<\_ACEOF
12331 #define const
12332 _ACEOF
12333
12334 fi
12335
12336
12337
12338 echo "$as_me:$LINENO: checking for char" >&5
12339 echo $ECHO_N "checking for char... $ECHO_C" >&6
12340 if test "${ac_cv_type_char+set}" = set; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   cat >conftest.$ac_ext <<_ACEOF
12344 #line $LINENO "configure"
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350 $ac_includes_default
12351 int
12352 main ()
12353 {
12354 if ((char *) 0)
12355   return 0;
12356 if (sizeof (char))
12357   return 0;
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364   (eval $ac_compile) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } &&
12368          { ac_try='test -s conftest.$ac_objext'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; }; then
12374   ac_cv_type_char=yes
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_type_char=no
12380 fi
12381 rm -f conftest.$ac_objext conftest.$ac_ext
12382 fi
12383 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12384 echo "${ECHO_T}$ac_cv_type_char" >&6
12385
12386 echo "$as_me:$LINENO: checking size of char" >&5
12387 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12388 if test "${ac_cv_sizeof_char+set}" = set; then
12389   echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391   if test "$ac_cv_type_char" = yes; then
12392   # The cast to unsigned long works around a bug in the HP C Compiler
12393   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12394   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12395   # This bug is HP SR number 8606223364.
12396   if test "$cross_compiling" = yes; then
12397   # Depending upon the size, compute the lo and hi bounds.
12398 cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 $ac_includes_default
12406 int
12407 main ()
12408 {
12409 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12410 test_array [0] = 0
12411
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418   (eval $ac_compile) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -s conftest.$ac_objext'
12423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424   (eval $ac_try) 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; }; then
12428   ac_lo=0 ac_mid=0
12429   while :; do
12430     cat >conftest.$ac_ext <<_ACEOF
12431 #line $LINENO "configure"
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437 $ac_includes_default
12438 int
12439 main ()
12440 {
12441 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12442 test_array [0] = 0
12443
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12450   (eval $ac_compile) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } &&
12454          { ac_try='test -s conftest.$ac_objext'
12455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456   (eval $ac_try) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; }; then
12460   ac_hi=$ac_mid; break
12461 else
12462   echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 ac_lo=`expr $ac_mid + 1`
12466                     if test $ac_lo -le $ac_mid; then
12467                       ac_lo= ac_hi=
12468                       break
12469                     fi
12470                     ac_mid=`expr 2 '*' $ac_mid + 1`
12471 fi
12472 rm -f conftest.$ac_objext conftest.$ac_ext
12473   done
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 $ac_includes_default
12486 int
12487 main ()
12488 {
12489 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12490 test_array [0] = 0
12491
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498   (eval $ac_compile) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } &&
12502          { ac_try='test -s conftest.$ac_objext'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; }; then
12508   ac_hi=-1 ac_mid=-1
12509   while :; do
12510     cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 $ac_includes_default
12518 int
12519 main ()
12520 {
12521 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12522 test_array [0] = 0
12523
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530   (eval $ac_compile) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } &&
12534          { ac_try='test -s conftest.$ac_objext'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540   ac_lo=$ac_mid; break
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 ac_hi=`expr '(' $ac_mid ')' - 1`
12546                        if test $ac_mid -le $ac_hi; then
12547                          ac_lo= ac_hi=
12548                          break
12549                        fi
12550                        ac_mid=`expr 2 '*' $ac_mid`
12551 fi
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12553   done
12554 else
12555   echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12557
12558 ac_lo= ac_hi=
12559 fi
12560 rm -f conftest.$ac_objext conftest.$ac_ext
12561 fi
12562 rm -f conftest.$ac_objext conftest.$ac_ext
12563 # Binary search between lo and hi bounds.
12564 while test "x$ac_lo" != "x$ac_hi"; do
12565   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12566   cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573 $ac_includes_default
12574 int
12575 main ()
12576 {
12577 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12578 test_array [0] = 0
12579
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586   (eval $ac_compile) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -s conftest.$ac_objext'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   ac_hi=$ac_mid
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 ac_lo=`expr '(' $ac_mid ')' + 1`
12602 fi
12603 rm -f conftest.$ac_objext conftest.$ac_ext
12604 done
12605 case $ac_lo in
12606 ?*) ac_cv_sizeof_char=$ac_lo;;
12607 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12608 See \`config.log' for more details." >&5
12609 echo "$as_me: error: cannot compute sizeof (char), 77
12610 See \`config.log' for more details." >&2;}
12611    { (exit 1); exit 1; }; } ;;
12612 esac
12613 else
12614   if test "$cross_compiling" = yes; then
12615   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12616 See \`config.log' for more details." >&5
12617 echo "$as_me: error: cannot run test program while cross compiling
12618 See \`config.log' for more details." >&2;}
12619    { (exit 1); exit 1; }; }
12620 else
12621   cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628 $ac_includes_default
12629 long longval () { return (long) (sizeof (char)); }
12630 unsigned long ulongval () { return (long) (sizeof (char)); }
12631 #include <stdio.h>
12632 #include <stdlib.h>
12633 int
12634 main ()
12635 {
12636
12637   FILE *f = fopen ("conftest.val", "w");
12638   if (! f)
12639     exit (1);
12640   if (((long) (sizeof (char))) < 0)
12641     {
12642       long i = longval ();
12643       if (i != ((long) (sizeof (char))))
12644         exit (1);
12645       fprintf (f, "%ld\n", i);
12646     }
12647   else
12648     {
12649       unsigned long i = ulongval ();
12650       if (i != ((long) (sizeof (char))))
12651         exit (1);
12652       fprintf (f, "%lu\n", i);
12653     }
12654   exit (ferror (f) || fclose (f) != 0);
12655
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 rm -f conftest$ac_exeext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12662   (eval $ac_link) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667   (eval $ac_try) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; }; then
12671   ac_cv_sizeof_char=`cat conftest.val`
12672 else
12673   echo "$as_me: program exited with status $ac_status" >&5
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ( exit $ac_status )
12678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12679 See \`config.log' for more details." >&5
12680 echo "$as_me: error: cannot compute sizeof (char), 77
12681 See \`config.log' for more details." >&2;}
12682    { (exit 1); exit 1; }; }
12683 fi
12684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12685 fi
12686 fi
12687 rm -f conftest.val
12688 else
12689   ac_cv_sizeof_char=0
12690 fi
12691 fi
12692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12693 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12694 cat >>confdefs.h <<_ACEOF
12695 #define SIZEOF_CHAR $ac_cv_sizeof_char
12696 _ACEOF
12697
12698
12699 echo "$as_me:$LINENO: checking for short int" >&5
12700 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12701 if test "${ac_cv_type_short_int+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   cat >conftest.$ac_ext <<_ACEOF
12705 #line $LINENO "configure"
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711 $ac_includes_default
12712 int
12713 main ()
12714 {
12715 if ((short int *) 0)
12716   return 0;
12717 if (sizeof (short int))
12718   return 0;
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725   (eval $ac_compile) 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } &&
12729          { ac_try='test -s conftest.$ac_objext'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; }; then
12735   ac_cv_type_short_int=yes
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740 ac_cv_type_short_int=no
12741 fi
12742 rm -f conftest.$ac_objext conftest.$ac_ext
12743 fi
12744 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12745 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12746
12747 echo "$as_me:$LINENO: checking size of short int" >&5
12748 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12749 if test "${ac_cv_sizeof_short_int+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   if test "$ac_cv_type_short_int" = yes; then
12753   # The cast to unsigned long works around a bug in the HP C Compiler
12754   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12755   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12756   # This bug is HP SR number 8606223364.
12757   if test "$cross_compiling" = yes; then
12758   # Depending upon the size, compute the lo and hi bounds.
12759 cat >conftest.$ac_ext <<_ACEOF
12760 #line $LINENO "configure"
12761 /* confdefs.h.  */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h.  */
12766 $ac_includes_default
12767 int
12768 main ()
12769 {
12770 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12771 test_array [0] = 0
12772
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 rm -f conftest.$ac_objext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779   (eval $ac_compile) 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } &&
12783          { ac_try='test -s conftest.$ac_objext'
12784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785   (eval $ac_try) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; }; then
12789   ac_lo=0 ac_mid=0
12790   while :; do
12791     cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798 $ac_includes_default
12799 int
12800 main ()
12801 {
12802 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12803 test_array [0] = 0
12804
12805   ;
12806   return 0;
12807 }
12808 _ACEOF
12809 rm -f conftest.$ac_objext
12810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12811   (eval $ac_compile) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } &&
12815          { ac_try='test -s conftest.$ac_objext'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; }; then
12821   ac_hi=$ac_mid; break
12822 else
12823   echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_lo=`expr $ac_mid + 1`
12827                     if test $ac_lo -le $ac_mid; then
12828                       ac_lo= ac_hi=
12829                       break
12830                     fi
12831                     ac_mid=`expr 2 '*' $ac_mid + 1`
12832 fi
12833 rm -f conftest.$ac_objext conftest.$ac_ext
12834   done
12835 else
12836   echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12838
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 $ac_includes_default
12847 int
12848 main ()
12849 {
12850 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12851 test_array [0] = 0
12852
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859   (eval $ac_compile) 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); } &&
12863          { ac_try='test -s conftest.$ac_objext'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   ac_hi=-1 ac_mid=-1
12870   while :; do
12871     cat >conftest.$ac_ext <<_ACEOF
12872 #line $LINENO "configure"
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 $ac_includes_default
12879 int
12880 main ()
12881 {
12882 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12883 test_array [0] = 0
12884
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891   (eval $ac_compile) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } &&
12895          { ac_try='test -s conftest.$ac_objext'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   ac_lo=$ac_mid; break
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 ac_hi=`expr '(' $ac_mid ')' - 1`
12907                        if test $ac_mid -le $ac_hi; then
12908                          ac_lo= ac_hi=
12909                          break
12910                        fi
12911                        ac_mid=`expr 2 '*' $ac_mid`
12912 fi
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914   done
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 ac_lo= ac_hi=
12920 fi
12921 rm -f conftest.$ac_objext conftest.$ac_ext
12922 fi
12923 rm -f conftest.$ac_objext conftest.$ac_ext
12924 # Binary search between lo and hi bounds.
12925 while test "x$ac_lo" != "x$ac_hi"; do
12926   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12927   cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 /* confdefs.h.  */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h.  */
12934 $ac_includes_default
12935 int
12936 main ()
12937 {
12938 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12939 test_array [0] = 0
12940
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947   (eval $ac_compile) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); } &&
12951          { ac_try='test -s conftest.$ac_objext'
12952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   ac_hi=$ac_mid
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12961
12962 ac_lo=`expr '(' $ac_mid ')' + 1`
12963 fi
12964 rm -f conftest.$ac_objext conftest.$ac_ext
12965 done
12966 case $ac_lo in
12967 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12969 See \`config.log' for more details." >&5
12970 echo "$as_me: error: cannot compute sizeof (short int), 77
12971 See \`config.log' for more details." >&2;}
12972    { (exit 1); exit 1; }; } ;;
12973 esac
12974 else
12975   if test "$cross_compiling" = yes; then
12976   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12977 See \`config.log' for more details." >&5
12978 echo "$as_me: error: cannot run test program while cross compiling
12979 See \`config.log' for more details." >&2;}
12980    { (exit 1); exit 1; }; }
12981 else
12982   cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12984 /* confdefs.h.  */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h.  */
12989 $ac_includes_default
12990 long longval () { return (long) (sizeof (short int)); }
12991 unsigned long ulongval () { return (long) (sizeof (short int)); }
12992 #include <stdio.h>
12993 #include <stdlib.h>
12994 int
12995 main ()
12996 {
12997
12998   FILE *f = fopen ("conftest.val", "w");
12999   if (! f)
13000     exit (1);
13001   if (((long) (sizeof (short int))) < 0)
13002     {
13003       long i = longval ();
13004       if (i != ((long) (sizeof (short int))))
13005         exit (1);
13006       fprintf (f, "%ld\n", i);
13007     }
13008   else
13009     {
13010       unsigned long i = ulongval ();
13011       if (i != ((long) (sizeof (short int))))
13012         exit (1);
13013       fprintf (f, "%lu\n", i);
13014     }
13015   exit (ferror (f) || fclose (f) != 0);
13016
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023   (eval $ac_link) 2>&5
13024   ac_status=$?
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028   (eval $ac_try) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; }; then
13032   ac_cv_sizeof_short_int=`cat conftest.val`
13033 else
13034   echo "$as_me: program exited with status $ac_status" >&5
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038 ( exit $ac_status )
13039 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13040 See \`config.log' for more details." >&5
13041 echo "$as_me: error: cannot compute sizeof (short int), 77
13042 See \`config.log' for more details." >&2;}
13043    { (exit 1); exit 1; }; }
13044 fi
13045 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13046 fi
13047 fi
13048 rm -f conftest.val
13049 else
13050   ac_cv_sizeof_short_int=0
13051 fi
13052 fi
13053 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13054 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13055 cat >>confdefs.h <<_ACEOF
13056 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13057 _ACEOF
13058
13059
13060 echo "$as_me:$LINENO: checking for int" >&5
13061 echo $ECHO_N "checking for int... $ECHO_C" >&6
13062 if test "${ac_cv_type_int+set}" = set; then
13063   echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065   cat >conftest.$ac_ext <<_ACEOF
13066 #line $LINENO "configure"
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 $ac_includes_default
13073 int
13074 main ()
13075 {
13076 if ((int *) 0)
13077   return 0;
13078 if (sizeof (int))
13079   return 0;
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086   (eval $ac_compile) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } &&
13090          { ac_try='test -s conftest.$ac_objext'
13091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092   (eval $ac_try) 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_cv_type_int=yes
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 ac_cv_type_int=no
13102 fi
13103 rm -f conftest.$ac_objext conftest.$ac_ext
13104 fi
13105 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13106 echo "${ECHO_T}$ac_cv_type_int" >&6
13107
13108 echo "$as_me:$LINENO: checking size of int" >&5
13109 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13110 if test "${ac_cv_sizeof_int+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   if test "$ac_cv_type_int" = yes; then
13114   # The cast to unsigned long works around a bug in the HP C Compiler
13115   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13116   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13117   # This bug is HP SR number 8606223364.
13118   if test "$cross_compiling" = yes; then
13119   # Depending upon the size, compute the lo and hi bounds.
13120 cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 $ac_includes_default
13128 int
13129 main ()
13130 {
13131 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13132 test_array [0] = 0
13133
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140   (eval $ac_compile) 2>&5
13141   ac_status=$?
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } &&
13144          { ac_try='test -s conftest.$ac_objext'
13145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146   (eval $ac_try) 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }; }; then
13150   ac_lo=0 ac_mid=0
13151   while :; do
13152     cat >conftest.$ac_ext <<_ACEOF
13153 #line $LINENO "configure"
13154 /* confdefs.h.  */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h.  */
13159 $ac_includes_default
13160 int
13161 main ()
13162 {
13163 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13164 test_array [0] = 0
13165
13166   ;
13167   return 0;
13168 }
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172   (eval $ac_compile) 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); } &&
13176          { ac_try='test -s conftest.$ac_objext'
13177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178   (eval $ac_try) 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }; }; then
13182   ac_hi=$ac_mid; break
13183 else
13184   echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13186
13187 ac_lo=`expr $ac_mid + 1`
13188                     if test $ac_lo -le $ac_mid; then
13189                       ac_lo= ac_hi=
13190                       break
13191                     fi
13192                     ac_mid=`expr 2 '*' $ac_mid + 1`
13193 fi
13194 rm -f conftest.$ac_objext conftest.$ac_ext
13195   done
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200 cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207 $ac_includes_default
13208 int
13209 main ()
13210 {
13211 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13212 test_array [0] = 0
13213
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 rm -f conftest.$ac_objext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13220   (eval $ac_compile) 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } &&
13224          { ac_try='test -s conftest.$ac_objext'
13225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226   (eval $ac_try) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   ac_hi=-1 ac_mid=-1
13231   while :; do
13232     cat >conftest.$ac_ext <<_ACEOF
13233 #line $LINENO "configure"
13234 /* confdefs.h.  */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h.  */
13239 $ac_includes_default
13240 int
13241 main ()
13242 {
13243 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13244 test_array [0] = 0
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252   (eval $ac_compile) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -s conftest.$ac_objext'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   ac_lo=$ac_mid; break
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 ac_hi=`expr '(' $ac_mid ')' - 1`
13268                        if test $ac_mid -le $ac_hi; then
13269                          ac_lo= ac_hi=
13270                          break
13271                        fi
13272                        ac_mid=`expr 2 '*' $ac_mid`
13273 fi
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275   done
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_lo= ac_hi=
13281 fi
13282 rm -f conftest.$ac_objext conftest.$ac_ext
13283 fi
13284 rm -f conftest.$ac_objext conftest.$ac_ext
13285 # Binary search between lo and hi bounds.
13286 while test "x$ac_lo" != "x$ac_hi"; do
13287   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13288   cat >conftest.$ac_ext <<_ACEOF
13289 #line $LINENO "configure"
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 $ac_includes_default
13296 int
13297 main ()
13298 {
13299 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13300 test_array [0] = 0
13301
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308   (eval $ac_compile) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } &&
13312          { ac_try='test -s conftest.$ac_objext'
13313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314   (eval $ac_try) 2>&5
13315   ac_status=$?
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); }; }; then
13318   ac_hi=$ac_mid
13319 else
13320   echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13322
13323 ac_lo=`expr '(' $ac_mid ')' + 1`
13324 fi
13325 rm -f conftest.$ac_objext conftest.$ac_ext
13326 done
13327 case $ac_lo in
13328 ?*) ac_cv_sizeof_int=$ac_lo;;
13329 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13330 See \`config.log' for more details." >&5
13331 echo "$as_me: error: cannot compute sizeof (int), 77
13332 See \`config.log' for more details." >&2;}
13333    { (exit 1); exit 1; }; } ;;
13334 esac
13335 else
13336   if test "$cross_compiling" = yes; then
13337   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13338 See \`config.log' for more details." >&5
13339 echo "$as_me: error: cannot run test program while cross compiling
13340 See \`config.log' for more details." >&2;}
13341    { (exit 1); exit 1; }; }
13342 else
13343   cat >conftest.$ac_ext <<_ACEOF
13344 #line $LINENO "configure"
13345 /* confdefs.h.  */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h.  */
13350 $ac_includes_default
13351 long longval () { return (long) (sizeof (int)); }
13352 unsigned long ulongval () { return (long) (sizeof (int)); }
13353 #include <stdio.h>
13354 #include <stdlib.h>
13355 int
13356 main ()
13357 {
13358
13359   FILE *f = fopen ("conftest.val", "w");
13360   if (! f)
13361     exit (1);
13362   if (((long) (sizeof (int))) < 0)
13363     {
13364       long i = longval ();
13365       if (i != ((long) (sizeof (int))))
13366         exit (1);
13367       fprintf (f, "%ld\n", i);
13368     }
13369   else
13370     {
13371       unsigned long i = ulongval ();
13372       if (i != ((long) (sizeof (int))))
13373         exit (1);
13374       fprintf (f, "%lu\n", i);
13375     }
13376   exit (ferror (f) || fclose (f) != 0);
13377
13378   ;
13379   return 0;
13380 }
13381 _ACEOF
13382 rm -f conftest$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384   (eval $ac_link) 2>&5
13385   ac_status=$?
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; }; then
13393   ac_cv_sizeof_int=`cat conftest.val`
13394 else
13395   echo "$as_me: program exited with status $ac_status" >&5
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 ( exit $ac_status )
13400 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13401 See \`config.log' for more details." >&5
13402 echo "$as_me: error: cannot compute sizeof (int), 77
13403 See \`config.log' for more details." >&2;}
13404    { (exit 1); exit 1; }; }
13405 fi
13406 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13407 fi
13408 fi
13409 rm -f conftest.val
13410 else
13411   ac_cv_sizeof_int=0
13412 fi
13413 fi
13414 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13415 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13416 cat >>confdefs.h <<_ACEOF
13417 #define SIZEOF_INT $ac_cv_sizeof_int
13418 _ACEOF
13419
13420
13421 echo "$as_me:$LINENO: checking for long int" >&5
13422 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13423 if test "${ac_cv_type_long_int+set}" = set; then
13424   echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426   cat >conftest.$ac_ext <<_ACEOF
13427 #line $LINENO "configure"
13428 /* confdefs.h.  */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h.  */
13433 $ac_includes_default
13434 int
13435 main ()
13436 {
13437 if ((long int *) 0)
13438   return 0;
13439 if (sizeof (long int))
13440   return 0;
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447   (eval $ac_compile) 2>&5
13448   ac_status=$?
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -s conftest.$ac_objext'
13452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453   (eval $ac_try) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; }; then
13457   ac_cv_type_long_int=yes
13458 else
13459   echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 ac_cv_type_long_int=no
13463 fi
13464 rm -f conftest.$ac_objext conftest.$ac_ext
13465 fi
13466 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13467 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13468
13469 echo "$as_me:$LINENO: checking size of long int" >&5
13470 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13471 if test "${ac_cv_sizeof_long_int+set}" = set; then
13472   echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474   if test "$ac_cv_type_long_int" = yes; then
13475   # The cast to unsigned long works around a bug in the HP C Compiler
13476   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13477   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13478   # This bug is HP SR number 8606223364.
13479   if test "$cross_compiling" = yes; then
13480   # Depending upon the size, compute the lo and hi bounds.
13481 cat >conftest.$ac_ext <<_ACEOF
13482 #line $LINENO "configure"
13483 /* confdefs.h.  */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h.  */
13488 $ac_includes_default
13489 int
13490 main ()
13491 {
13492 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13493 test_array [0] = 0
13494
13495   ;
13496   return 0;
13497 }
13498 _ACEOF
13499 rm -f conftest.$ac_objext
13500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13501   (eval $ac_compile) 2>&5
13502   ac_status=$?
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } &&
13505          { ac_try='test -s conftest.$ac_objext'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; }; then
13511   ac_lo=0 ac_mid=0
13512   while :; do
13513     cat >conftest.$ac_ext <<_ACEOF
13514 #line $LINENO "configure"
13515 /* confdefs.h.  */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h.  */
13520 $ac_includes_default
13521 int
13522 main ()
13523 {
13524 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13525 test_array [0] = 0
13526
13527   ;
13528   return 0;
13529 }
13530 _ACEOF
13531 rm -f conftest.$ac_objext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533   (eval $ac_compile) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -s conftest.$ac_objext'
13538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539   (eval $ac_try) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; }; then
13543   ac_hi=$ac_mid; break
13544 else
13545   echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548 ac_lo=`expr $ac_mid + 1`
13549                     if test $ac_lo -le $ac_mid; then
13550                       ac_lo= ac_hi=
13551                       break
13552                     fi
13553                     ac_mid=`expr 2 '*' $ac_mid + 1`
13554 fi
13555 rm -f conftest.$ac_objext conftest.$ac_ext
13556   done
13557 else
13558   echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568 $ac_includes_default
13569 int
13570 main ()
13571 {
13572 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13573 test_array [0] = 0
13574
13575   ;
13576   return 0;
13577 }
13578 _ACEOF
13579 rm -f conftest.$ac_objext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13581   (eval $ac_compile) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -s conftest.$ac_objext'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_hi=-1 ac_mid=-1
13592   while :; do
13593     cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600 $ac_includes_default
13601 int
13602 main ()
13603 {
13604 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13605 test_array [0] = 0
13606
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613   (eval $ac_compile) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -s conftest.$ac_objext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_lo=$ac_mid; break
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_hi=`expr '(' $ac_mid ')' - 1`
13629                        if test $ac_mid -le $ac_hi; then
13630                          ac_lo= ac_hi=
13631                          break
13632                        fi
13633                        ac_mid=`expr 2 '*' $ac_mid`
13634 fi
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13636   done
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 ac_lo= ac_hi=
13642 fi
13643 rm -f conftest.$ac_objext conftest.$ac_ext
13644 fi
13645 rm -f conftest.$ac_objext conftest.$ac_ext
13646 # Binary search between lo and hi bounds.
13647 while test "x$ac_lo" != "x$ac_hi"; do
13648   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13649   cat >conftest.$ac_ext <<_ACEOF
13650 #line $LINENO "configure"
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 $ac_includes_default
13657 int
13658 main ()
13659 {
13660 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13661 test_array [0] = 0
13662
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669   (eval $ac_compile) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -s conftest.$ac_objext'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; }; then
13679   ac_hi=$ac_mid
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684 ac_lo=`expr '(' $ac_mid ')' + 1`
13685 fi
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13687 done
13688 case $ac_lo in
13689 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13691 See \`config.log' for more details." >&5
13692 echo "$as_me: error: cannot compute sizeof (long int), 77
13693 See \`config.log' for more details." >&2;}
13694    { (exit 1); exit 1; }; } ;;
13695 esac
13696 else
13697   if test "$cross_compiling" = yes; then
13698   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13699 See \`config.log' for more details." >&5
13700 echo "$as_me: error: cannot run test program while cross compiling
13701 See \`config.log' for more details." >&2;}
13702    { (exit 1); exit 1; }; }
13703 else
13704   cat >conftest.$ac_ext <<_ACEOF
13705 #line $LINENO "configure"
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711 $ac_includes_default
13712 long longval () { return (long) (sizeof (long int)); }
13713 unsigned long ulongval () { return (long) (sizeof (long int)); }
13714 #include <stdio.h>
13715 #include <stdlib.h>
13716 int
13717 main ()
13718 {
13719
13720   FILE *f = fopen ("conftest.val", "w");
13721   if (! f)
13722     exit (1);
13723   if (((long) (sizeof (long int))) < 0)
13724     {
13725       long i = longval ();
13726       if (i != ((long) (sizeof (long int))))
13727         exit (1);
13728       fprintf (f, "%ld\n", i);
13729     }
13730   else
13731     {
13732       unsigned long i = ulongval ();
13733       if (i != ((long) (sizeof (long int))))
13734         exit (1);
13735       fprintf (f, "%lu\n", i);
13736     }
13737   exit (ferror (f) || fclose (f) != 0);
13738
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745   (eval $ac_link) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750   (eval $ac_try) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; }; then
13754   ac_cv_sizeof_long_int=`cat conftest.val`
13755 else
13756   echo "$as_me: program exited with status $ac_status" >&5
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 ( exit $ac_status )
13761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13762 See \`config.log' for more details." >&5
13763 echo "$as_me: error: cannot compute sizeof (long int), 77
13764 See \`config.log' for more details." >&2;}
13765    { (exit 1); exit 1; }; }
13766 fi
13767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13768 fi
13769 fi
13770 rm -f conftest.val
13771 else
13772   ac_cv_sizeof_long_int=0
13773 fi
13774 fi
13775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13776 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13777 cat >>confdefs.h <<_ACEOF
13778 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13779 _ACEOF
13780
13781
13782 echo "$as_me:$LINENO: checking for long long int" >&5
13783 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13784 if test "${ac_cv_type_long_long_int+set}" = set; then
13785   echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787   cat >conftest.$ac_ext <<_ACEOF
13788 #line $LINENO "configure"
13789 /* confdefs.h.  */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h.  */
13794 $ac_includes_default
13795 int
13796 main ()
13797 {
13798 if ((long long int *) 0)
13799   return 0;
13800 if (sizeof (long long int))
13801   return 0;
13802   ;
13803   return 0;
13804 }
13805 _ACEOF
13806 rm -f conftest.$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808   (eval $ac_compile) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); } &&
13812          { ac_try='test -s conftest.$ac_objext'
13813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814   (eval $ac_try) 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; }; then
13818   ac_cv_type_long_long_int=yes
13819 else
13820   echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ac_cv_type_long_long_int=no
13824 fi
13825 rm -f conftest.$ac_objext conftest.$ac_ext
13826 fi
13827 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13828 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13829
13830 echo "$as_me:$LINENO: checking size of long long int" >&5
13831 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13832 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   if test "$ac_cv_type_long_long_int" = yes; then
13836   # The cast to unsigned long works around a bug in the HP C Compiler
13837   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13838   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13839   # This bug is HP SR number 8606223364.
13840   if test "$cross_compiling" = yes; then
13841   # Depending upon the size, compute the lo and hi bounds.
13842 cat >conftest.$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849 $ac_includes_default
13850 int
13851 main ()
13852 {
13853 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13854 test_array [0] = 0
13855
13856   ;
13857   return 0;
13858 }
13859 _ACEOF
13860 rm -f conftest.$ac_objext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13862   (eval $ac_compile) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); } &&
13866          { ac_try='test -s conftest.$ac_objext'
13867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868   (eval $ac_try) 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; }; then
13872   ac_lo=0 ac_mid=0
13873   while :; do
13874     cat >conftest.$ac_ext <<_ACEOF
13875 #line $LINENO "configure"
13876 /* confdefs.h.  */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h.  */
13881 $ac_includes_default
13882 int
13883 main ()
13884 {
13885 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13886 test_array [0] = 0
13887
13888   ;
13889   return 0;
13890 }
13891 _ACEOF
13892 rm -f conftest.$ac_objext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894   (eval $ac_compile) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } &&
13898          { ac_try='test -s conftest.$ac_objext'
13899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900   (eval $ac_try) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; }; then
13904   ac_hi=$ac_mid; break
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 ac_lo=`expr $ac_mid + 1`
13910                     if test $ac_lo -le $ac_mid; then
13911                       ac_lo= ac_hi=
13912                       break
13913                     fi
13914                     ac_mid=`expr 2 '*' $ac_mid + 1`
13915 fi
13916 rm -f conftest.$ac_objext conftest.$ac_ext
13917   done
13918 else
13919   echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922 cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 $ac_includes_default
13930 int
13931 main ()
13932 {
13933 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13934 test_array [0] = 0
13935
13936   ;
13937   return 0;
13938 }
13939 _ACEOF
13940 rm -f conftest.$ac_objext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942   (eval $ac_compile) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -s conftest.$ac_objext'
13947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948   (eval $ac_try) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_hi=-1 ac_mid=-1
13953   while :; do
13954     cat >conftest.$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
13956 /* confdefs.h.  */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h.  */
13961 $ac_includes_default
13962 int
13963 main ()
13964 {
13965 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13966 test_array [0] = 0
13967
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974   (eval $ac_compile) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_lo=$ac_mid; break
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_hi=`expr '(' $ac_mid ')' - 1`
13990                        if test $ac_mid -le $ac_hi; then
13991                          ac_lo= ac_hi=
13992                          break
13993                        fi
13994                        ac_mid=`expr 2 '*' $ac_mid`
13995 fi
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13997   done
13998 else
13999   echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14001
14002 ac_lo= ac_hi=
14003 fi
14004 rm -f conftest.$ac_objext conftest.$ac_ext
14005 fi
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14007 # Binary search between lo and hi bounds.
14008 while test "x$ac_lo" != "x$ac_hi"; do
14009   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14010   cat >conftest.$ac_ext <<_ACEOF
14011 #line $LINENO "configure"
14012 /* confdefs.h.  */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h.  */
14017 $ac_includes_default
14018 int
14019 main ()
14020 {
14021 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14022 test_array [0] = 0
14023
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030   (eval $ac_compile) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -s conftest.$ac_objext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_hi=$ac_mid
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 ac_lo=`expr '(' $ac_mid ')' + 1`
14046 fi
14047 rm -f conftest.$ac_objext conftest.$ac_ext
14048 done
14049 case $ac_lo in
14050 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14051 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14052 See \`config.log' for more details." >&5
14053 echo "$as_me: error: cannot compute sizeof (long long int), 77
14054 See \`config.log' for more details." >&2;}
14055    { (exit 1); exit 1; }; } ;;
14056 esac
14057 else
14058   if test "$cross_compiling" = yes; then
14059   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14060 See \`config.log' for more details." >&5
14061 echo "$as_me: error: cannot run test program while cross compiling
14062 See \`config.log' for more details." >&2;}
14063    { (exit 1); exit 1; }; }
14064 else
14065   cat >conftest.$ac_ext <<_ACEOF
14066 #line $LINENO "configure"
14067 /* confdefs.h.  */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h.  */
14072 $ac_includes_default
14073 long longval () { return (long) (sizeof (long long int)); }
14074 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14075 #include <stdio.h>
14076 #include <stdlib.h>
14077 int
14078 main ()
14079 {
14080
14081   FILE *f = fopen ("conftest.val", "w");
14082   if (! f)
14083     exit (1);
14084   if (((long) (sizeof (long long int))) < 0)
14085     {
14086       long i = longval ();
14087       if (i != ((long) (sizeof (long long int))))
14088         exit (1);
14089       fprintf (f, "%ld\n", i);
14090     }
14091   else
14092     {
14093       unsigned long i = ulongval ();
14094       if (i != ((long) (sizeof (long long int))))
14095         exit (1);
14096       fprintf (f, "%lu\n", i);
14097     }
14098   exit (ferror (f) || fclose (f) != 0);
14099
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest$ac_exeext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106   (eval $ac_link) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; }; then
14115   ac_cv_sizeof_long_long_int=`cat conftest.val`
14116 else
14117   echo "$as_me: program exited with status $ac_status" >&5
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14120
14121 ( exit $ac_status )
14122 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14123 See \`config.log' for more details." >&5
14124 echo "$as_me: error: cannot compute sizeof (long long int), 77
14125 See \`config.log' for more details." >&2;}
14126    { (exit 1); exit 1; }; }
14127 fi
14128 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14129 fi
14130 fi
14131 rm -f conftest.val
14132 else
14133   ac_cv_sizeof_long_long_int=0
14134 fi
14135 fi
14136 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14137 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14138 cat >>confdefs.h <<_ACEOF
14139 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14140 _ACEOF
14141
14142
14143 echo "$as_me:$LINENO: checking for int *" >&5
14144 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14145 if test "${ac_cv_type_int_p+set}" = set; then
14146   echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148   cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155 $ac_includes_default
14156 int
14157 main ()
14158 {
14159 if ((int * *) 0)
14160   return 0;
14161 if (sizeof (int *))
14162   return 0;
14163   ;
14164   return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169   (eval $ac_compile) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); } &&
14173          { ac_try='test -s conftest.$ac_objext'
14174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175   (eval $ac_try) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; }; then
14179   ac_cv_type_int_p=yes
14180 else
14181   echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184 ac_cv_type_int_p=no
14185 fi
14186 rm -f conftest.$ac_objext conftest.$ac_ext
14187 fi
14188 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14189 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14190
14191 echo "$as_me:$LINENO: checking size of int *" >&5
14192 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14193 if test "${ac_cv_sizeof_int_p+set}" = set; then
14194   echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196   if test "$ac_cv_type_int_p" = yes; then
14197   # The cast to unsigned long works around a bug in the HP C Compiler
14198   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14199   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14200   # This bug is HP SR number 8606223364.
14201   if test "$cross_compiling" = yes; then
14202   # Depending upon the size, compute the lo and hi bounds.
14203 cat >conftest.$ac_ext <<_ACEOF
14204 #line $LINENO "configure"
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210 $ac_includes_default
14211 int
14212 main ()
14213 {
14214 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14215 test_array [0] = 0
14216
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 rm -f conftest.$ac_objext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223   (eval $ac_compile) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } &&
14227          { ac_try='test -s conftest.$ac_objext'
14228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229   (eval $ac_try) 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); }; }; then
14233   ac_lo=0 ac_mid=0
14234   while :; do
14235     cat >conftest.$ac_ext <<_ACEOF
14236 #line $LINENO "configure"
14237 /* confdefs.h.  */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h.  */
14242 $ac_includes_default
14243 int
14244 main ()
14245 {
14246 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14247 test_array [0] = 0
14248
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255   (eval $ac_compile) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } &&
14259          { ac_try='test -s conftest.$ac_objext'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; }; then
14265   ac_hi=$ac_mid; break
14266 else
14267   echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270 ac_lo=`expr $ac_mid + 1`
14271                     if test $ac_lo -le $ac_mid; then
14272                       ac_lo= ac_hi=
14273                       break
14274                     fi
14275                     ac_mid=`expr 2 '*' $ac_mid + 1`
14276 fi
14277 rm -f conftest.$ac_objext conftest.$ac_ext
14278   done
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 cat >conftest.$ac_ext <<_ACEOF
14284 #line $LINENO "configure"
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290 $ac_includes_default
14291 int
14292 main ()
14293 {
14294 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14295 test_array [0] = 0
14296
14297   ;
14298   return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303   (eval $ac_compile) 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } &&
14307          { ac_try='test -s conftest.$ac_objext'
14308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309   (eval $ac_try) 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; }; then
14313   ac_hi=-1 ac_mid=-1
14314   while :; do
14315     cat >conftest.$ac_ext <<_ACEOF
14316 #line $LINENO "configure"
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322 $ac_includes_default
14323 int
14324 main ()
14325 {
14326 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14327 test_array [0] = 0
14328
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335   (eval $ac_compile) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } &&
14339          { ac_try='test -s conftest.$ac_objext'
14340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341   (eval $ac_try) 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; }; then
14345   ac_lo=$ac_mid; break
14346 else
14347   echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14349
14350 ac_hi=`expr '(' $ac_mid ')' - 1`
14351                        if test $ac_mid -le $ac_hi; then
14352                          ac_lo= ac_hi=
14353                          break
14354                        fi
14355                        ac_mid=`expr 2 '*' $ac_mid`
14356 fi
14357 rm -f conftest.$ac_objext conftest.$ac_ext
14358   done
14359 else
14360   echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14362
14363 ac_lo= ac_hi=
14364 fi
14365 rm -f conftest.$ac_objext conftest.$ac_ext
14366 fi
14367 rm -f conftest.$ac_objext conftest.$ac_ext
14368 # Binary search between lo and hi bounds.
14369 while test "x$ac_lo" != "x$ac_hi"; do
14370   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14371   cat >conftest.$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378 $ac_includes_default
14379 int
14380 main ()
14381 {
14382 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14383 test_array [0] = 0
14384
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest.$ac_objext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14391   (eval $ac_compile) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -s conftest.$ac_objext'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; }; then
14401   ac_hi=$ac_mid
14402 else
14403   echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 ac_lo=`expr '(' $ac_mid ')' + 1`
14407 fi
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14409 done
14410 case $ac_lo in
14411 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14412 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14413 See \`config.log' for more details." >&5
14414 echo "$as_me: error: cannot compute sizeof (int *), 77
14415 See \`config.log' for more details." >&2;}
14416    { (exit 1); exit 1; }; } ;;
14417 esac
14418 else
14419   if test "$cross_compiling" = yes; then
14420   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14421 See \`config.log' for more details." >&5
14422 echo "$as_me: error: cannot run test program while cross compiling
14423 See \`config.log' for more details." >&2;}
14424    { (exit 1); exit 1; }; }
14425 else
14426   cat >conftest.$ac_ext <<_ACEOF
14427 #line $LINENO "configure"
14428 /* confdefs.h.  */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h.  */
14433 $ac_includes_default
14434 long longval () { return (long) (sizeof (int *)); }
14435 unsigned long ulongval () { return (long) (sizeof (int *)); }
14436 #include <stdio.h>
14437 #include <stdlib.h>
14438 int
14439 main ()
14440 {
14441
14442   FILE *f = fopen ("conftest.val", "w");
14443   if (! f)
14444     exit (1);
14445   if (((long) (sizeof (int *))) < 0)
14446     {
14447       long i = longval ();
14448       if (i != ((long) (sizeof (int *))))
14449         exit (1);
14450       fprintf (f, "%ld\n", i);
14451     }
14452   else
14453     {
14454       unsigned long i = ulongval ();
14455       if (i != ((long) (sizeof (int *))))
14456         exit (1);
14457       fprintf (f, "%lu\n", i);
14458     }
14459   exit (ferror (f) || fclose (f) != 0);
14460
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467   (eval $ac_link) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472   (eval $ac_try) 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }; }; then
14476   ac_cv_sizeof_int_p=`cat conftest.val`
14477 else
14478   echo "$as_me: program exited with status $ac_status" >&5
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482 ( exit $ac_status )
14483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14484 See \`config.log' for more details." >&5
14485 echo "$as_me: error: cannot compute sizeof (int *), 77
14486 See \`config.log' for more details." >&2;}
14487    { (exit 1); exit 1; }; }
14488 fi
14489 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14490 fi
14491 fi
14492 rm -f conftest.val
14493 else
14494   ac_cv_sizeof_int_p=0
14495 fi
14496 fi
14497 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14498 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14499 cat >>confdefs.h <<_ACEOF
14500 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14501 _ACEOF
14502
14503
14504
14505 # Check for sys/types.h types
14506 echo "$as_me:$LINENO: checking for u_int type" >&5
14507 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14508 if test "${ac_cv_have_u_int+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511
14512     cat >conftest.$ac_ext <<_ACEOF
14513 #line $LINENO "configure"
14514 /* confdefs.h.  */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h.  */
14519  #include <sys/types.h>
14520 int
14521 main ()
14522 {
14523  u_int a; a = 1;
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14530   (eval $ac_compile) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } &&
14534          { ac_try='test -s conftest.$ac_objext'
14535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536   (eval $ac_try) 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }; }; then
14540    ac_cv_have_u_int="yes"
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545  ac_cv_have_u_int="no"
14546
14547 fi
14548 rm -f conftest.$ac_objext conftest.$ac_ext
14549
14550 fi
14551 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14552 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14553 if test "x$ac_cv_have_u_int" = "xyes" ; then
14554    cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_U_INT 1
14556 _ACEOF
14557
14558    have_u_int=1
14559 fi
14560
14561 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14562 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14563 if test "${ac_cv_have_intmax_t+set}" = set; then
14564   echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566
14567    cat >conftest.$ac_ext <<_ACEOF
14568 #line $LINENO "configure"
14569 /* confdefs.h.  */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h.  */
14574  #include <sys/types.h>
14575 int
14576 main ()
14577 {
14578  intmax_t a; a = 1;
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 rm -f conftest.$ac_objext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585   (eval $ac_compile) 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); } &&
14589          { ac_try='test -s conftest.$ac_objext'
14590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591   (eval $ac_try) 2>&5
14592   ac_status=$?
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); }; }; then
14595    ac_cv_have_intmax_t="yes"
14596 else
14597   echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600
14601          cat >conftest.$ac_ext <<_ACEOF
14602 #line $LINENO "configure"
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608  #include <stdint.h>
14609 int
14610 main ()
14611 {
14612  intmax_t a; a = 1;
14613   ;
14614   return 0;
14615 }
14616 _ACEOF
14617 rm -f conftest.$ac_objext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619   (eval $ac_compile) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } &&
14623          { ac_try='test -s conftest.$ac_objext'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629    ac_cv_have_intmax_t="yes"
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634  ac_cv_have_intmax_t="no"
14635
14636 fi
14637 rm -f conftest.$ac_objext conftest.$ac_ext
14638
14639
14640 fi
14641 rm -f conftest.$ac_objext conftest.$ac_ext
14642
14643
14644 fi
14645 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14646 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14647 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14648    cat >>confdefs.h <<\_ACEOF
14649 #define HAVE_INTMAX_T 1
14650 _ACEOF
14651
14652    have_intmax_t=1
14653 fi
14654
14655
14656 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14657 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14658 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661
14662    cat >conftest.$ac_ext <<_ACEOF
14663 #line $LINENO "configure"
14664 /* confdefs.h.  */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h.  */
14669  #include <sys/types.h>
14670 int
14671 main ()
14672 {
14673  u_intmax_t a; a = 1;
14674   ;
14675   return 0;
14676 }
14677 _ACEOF
14678 rm -f conftest.$ac_objext
14679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14680   (eval $ac_compile) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); } &&
14684          { ac_try='test -s conftest.$ac_objext'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; }; then
14690    ac_cv_have_u_intmax_t="yes"
14691 else
14692   echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14694
14695
14696          cat >conftest.$ac_ext <<_ACEOF
14697 #line $LINENO "configure"
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703  #include <stdint.h>
14704 int
14705 main ()
14706 {
14707  u_intmax_t a; a = 1;
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714   (eval $ac_compile) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } &&
14718          { ac_try='test -s conftest.$ac_objext'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; }; then
14724    ac_cv_have_u_intmax_t="yes"
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729  ac_cv_have_u_intmax_t="no"
14730
14731 fi
14732 rm -f conftest.$ac_objext conftest.$ac_ext
14733
14734
14735 fi
14736 rm -f conftest.$ac_objext conftest.$ac_ext
14737
14738 fi
14739 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14740 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14741 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14742    cat >>confdefs.h <<\_ACEOF
14743 #define HAVE_U_INTMAX_T 1
14744 _ACEOF
14745
14746    have_u_intmax_t=1
14747 fi
14748
14749
14750 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14751 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14752 if test "${ac_cv_have_intxx_t+set}" = set; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755
14756    cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763  #include <sys/types.h>
14764 int
14765 main ()
14766 {
14767  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774   (eval $ac_compile) 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -s conftest.$ac_objext'
14779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780   (eval $ac_try) 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; }; then
14784    ac_cv_have_intxx_t="yes"
14785 else
14786   echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14788
14789  ac_cv_have_intxx_t="no"
14790
14791 fi
14792 rm -f conftest.$ac_objext conftest.$ac_ext
14793
14794 fi
14795 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14796 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14797 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14798    cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_INTXX_T 1
14800 _ACEOF
14801
14802    have_intxx_t=1
14803 fi
14804
14805 echo "$as_me:$LINENO: checking for int64_t type" >&5
14806 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14807 if test "${ac_cv_have_int64_t+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810
14811    cat >conftest.$ac_ext <<_ACEOF
14812 #line $LINENO "configure"
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818  #include <sys/types.h>
14819 int
14820 main ()
14821 {
14822  int64_t a; a = 1;
14823   ;
14824   return 0;
14825 }
14826 _ACEOF
14827 rm -f conftest.$ac_objext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14829   (eval $ac_compile) 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } &&
14833          { ac_try='test -s conftest.$ac_objext'
14834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835   (eval $ac_try) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); }; }; then
14839    ac_cv_have_int64_t="yes"
14840 else
14841   echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844  ac_cv_have_int64_t="no"
14845
14846 fi
14847 rm -f conftest.$ac_objext conftest.$ac_ext
14848
14849 fi
14850 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14851 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14852 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14853    cat >>confdefs.h <<\_ACEOF
14854 #define HAVE_INT64_T 1
14855 _ACEOF
14856
14857    have_int64_t=1
14858 fi
14859
14860 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14861 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14862 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14863   echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865
14866    cat >conftest.$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14868 /* confdefs.h.  */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h.  */
14873  #include <sys/types.h>
14874 int
14875 main ()
14876 {
14877  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14878   ;
14879   return 0;
14880 }
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14884   (eval $ac_compile) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); } &&
14888          { ac_try='test -s conftest.$ac_objext'
14889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890   (eval $ac_try) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894    ac_cv_have_u_intxx_t="yes"
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899  ac_cv_have_u_intxx_t="no"
14900
14901 fi
14902 rm -f conftest.$ac_objext conftest.$ac_ext
14903
14904 fi
14905 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14906 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14907 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14908    cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_U_INTXX_T 1
14910 _ACEOF
14911
14912    have_u_intxx_t=1
14913 fi
14914
14915 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14916 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14917 if test "${ac_cv_have_u_int64_t+set}" = set; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920
14921    cat >conftest.$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928  #include <sys/types.h>
14929 int
14930 main ()
14931 {
14932  u_int64_t a; a = 1;
14933   ;
14934   return 0;
14935 }
14936 _ACEOF
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939   (eval $ac_compile) 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } &&
14943          { ac_try='test -s conftest.$ac_objext'
14944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945   (eval $ac_try) 2>&5
14946   ac_status=$?
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); }; }; then
14949    ac_cv_have_u_int64_t="yes"
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954  ac_cv_have_u_int64_t="no"
14955
14956 fi
14957 rm -f conftest.$ac_objext conftest.$ac_ext
14958
14959 fi
14960 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14961 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14962 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14963    cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_U_INT64_T 1
14965 _ACEOF
14966
14967    have_u_int64_t=1
14968 fi
14969
14970 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14971            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14972 then
14973    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14974 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14975    cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14977 /* confdefs.h.  */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h.  */
14982  #include <sys/bitypes.h>
14983 int
14984 main ()
14985 {
14986  int8_t a; int16_t b; int32_t c;
14987         u_int8_t e; u_int16_t f; u_int32_t g;
14988         a = b = c = e = f = g = 1;
14989   ;
14990   return 0;
14991 }
14992 _ACEOF
14993 rm -f conftest.$ac_objext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995   (eval $ac_compile) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -s conftest.$ac_objext'
15000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001   (eval $ac_try) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005    cat >>confdefs.h <<\_ACEOF
15006 #define HAVE_U_INTXX_T 1
15007 _ACEOF
15008
15009         cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_INTXX_T 1
15011 _ACEOF
15012
15013         cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_SYS_BITYPES_H 1
15015 _ACEOF
15016
15017         echo "$as_me:$LINENO: result: yes" >&5
15018 echo "${ECHO_T}yes" >&6
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023  echo "$as_me:$LINENO: result: no" >&5
15024 echo "${ECHO_T}no" >&6
15025
15026 fi
15027 rm -f conftest.$ac_objext conftest.$ac_ext
15028 fi
15029
15030 if test -z "$have_u_intxx_t" ; then
15031    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15032 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15033 if test "${ac_cv_have_uintxx_t+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036
15037       cat >conftest.$ac_ext <<_ACEOF
15038 #line $LINENO "configure"
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044  #include <sys/types.h>
15045 int
15046 main ()
15047 {
15048  uint8_t a; uint16_t b;
15049            uint32_t c; a = b = c = 1;
15050   ;
15051   return 0;
15052 }
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15056   (eval $ac_compile) 2>&5
15057   ac_status=$?
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); } &&
15060          { ac_try='test -s conftest.$ac_objext'
15061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062   (eval $ac_try) 2>&5
15063   ac_status=$?
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); }; }; then
15066    ac_cv_have_uintxx_t="yes"
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071  ac_cv_have_uintxx_t="no"
15072
15073 fi
15074 rm -f conftest.$ac_objext conftest.$ac_ext
15075
15076 fi
15077 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15078 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15079    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15080       cat >>confdefs.h <<\_ACEOF
15081 #define HAVE_UINTXX_T 1
15082 _ACEOF
15083
15084    fi
15085 fi
15086
15087 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15088           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15089 then
15090    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15091 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15092    cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099  #include <sys/bitypes.h>
15100 int
15101 main ()
15102 {
15103  int64_t a; u_int64_t b;
15104        a = b = 1;
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111   (eval $ac_compile) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -s conftest.$ac_objext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121    cat >>confdefs.h <<\_ACEOF
15122 #define HAVE_U_INT64_T 1
15123 _ACEOF
15124
15125        cat >>confdefs.h <<\_ACEOF
15126 #define HAVE_INT64_T 1
15127 _ACEOF
15128
15129        echo "$as_me:$LINENO: result: yes" >&5
15130 echo "${ECHO_T}yes" >&6
15131 else
15132   echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135  echo "$as_me:$LINENO: result: no" >&5
15136 echo "${ECHO_T}no" >&6
15137
15138 fi
15139 rm -f conftest.$ac_objext conftest.$ac_ext
15140 fi
15141
15142 if (test -z "$have_uintxx_t" && \
15143           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15144 then
15145    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15146 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15147    cat >conftest.$ac_ext <<_ACEOF
15148 #line $LINENO "configure"
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154  #include <sys/bitypes.h>
15155 int
15156 main ()
15157 {
15158  uint8_t a; uint16_t b;
15159           uint32_t c; a = b = c = 1;
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 rm -f conftest.$ac_objext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15166   (eval $ac_compile) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } &&
15170          { ac_try='test -s conftest.$ac_objext'
15171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172   (eval $ac_try) 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; }; then
15176    cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_UINTXX_T 1
15178 _ACEOF
15179
15180        echo "$as_me:$LINENO: result: yes" >&5
15181 echo "${ECHO_T}yes" >&6
15182 else
15183   echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186  echo "$as_me:$LINENO: result: no" >&5
15187 echo "${ECHO_T}no" >&6
15188
15189 fi
15190 rm -f conftest.$ac_objext conftest.$ac_ext
15191
15192 fi
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210 for ac_func in \
15211         fork \
15212         getcwd \
15213         gethostname \
15214         getpid \
15215         gettimeofday \
15216         setpgid \
15217         setpgrp \
15218         setsid \
15219         signal \
15220         strerror \
15221         strncmp \
15222         strncpy \
15223         vfprintf \
15224
15225 do
15226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15227 echo "$as_me:$LINENO: checking for $ac_func" >&5
15228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_var+set}\" = set"; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232   cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 /* System header to define __stub macros and hopefully few prototypes,
15240     which can conflict with char $ac_func (); below.
15241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15242     <limits.h> exists even on freestanding compilers.  */
15243 #ifdef __STDC__
15244 # include <limits.h>
15245 #else
15246 # include <assert.h>
15247 #endif
15248 /* Override any gcc2 internal prototype to avoid an error.  */
15249 #ifdef __cplusplus
15250 extern "C"
15251 {
15252 #endif
15253 /* We use char because int might match the return type of a gcc2
15254    builtin and then its argument prototype would still apply.  */
15255 char $ac_func ();
15256 /* The GNU C library defines this for functions which it implements
15257     to always fail with ENOSYS.  Some functions are actually named
15258     something starting with __ and the normal name is an alias.  */
15259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15260 choke me
15261 #else
15262 char (*f) () = $ac_func;
15263 #endif
15264 #ifdef __cplusplus
15265 }
15266 #endif
15267
15268 int
15269 main ()
15270 {
15271 return f != $ac_func;
15272   ;
15273   return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278   (eval $ac_link) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); } &&
15282          { ac_try='test -s conftest$ac_exeext'
15283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284   (eval $ac_try) 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; }; then
15288   eval "$as_ac_var=yes"
15289 else
15290   echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 eval "$as_ac_var=no"
15294 fi
15295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15296 fi
15297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15299 if test `eval echo '${'$as_ac_var'}'` = yes; then
15300   cat >>confdefs.h <<_ACEOF
15301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15302 _ACEOF
15303
15304 else
15305   echo 'configure: cannot find needed function.'; exit 1
15306
15307 fi
15308 done
15309
15310
15311
15312 for ac_func in fchdir
15313 do
15314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15315 echo "$as_me:$LINENO: checking for $ac_func" >&5
15316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_var+set}\" = set"; then
15318   echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320   cat >conftest.$ac_ext <<_ACEOF
15321 #line $LINENO "configure"
15322 /* confdefs.h.  */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h.  */
15327 /* System header to define __stub macros and hopefully few prototypes,
15328     which can conflict with char $ac_func (); below.
15329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330     <limits.h> exists even on freestanding compilers.  */
15331 #ifdef __STDC__
15332 # include <limits.h>
15333 #else
15334 # include <assert.h>
15335 #endif
15336 /* Override any gcc2 internal prototype to avoid an error.  */
15337 #ifdef __cplusplus
15338 extern "C"
15339 {
15340 #endif
15341 /* We use char because int might match the return type of a gcc2
15342    builtin and then its argument prototype would still apply.  */
15343 char $ac_func ();
15344 /* The GNU C library defines this for functions which it implements
15345     to always fail with ENOSYS.  Some functions are actually named
15346     something starting with __ and the normal name is an alias.  */
15347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15348 choke me
15349 #else
15350 char (*f) () = $ac_func;
15351 #endif
15352 #ifdef __cplusplus
15353 }
15354 #endif
15355
15356 int
15357 main ()
15358 {
15359 return f != $ac_func;
15360   ;
15361   return 0;
15362 }
15363 _ACEOF
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366   (eval $ac_link) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } &&
15370          { ac_try='test -s conftest$ac_exeext'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; }; then
15376   eval "$as_ac_var=yes"
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381 eval "$as_ac_var=no"
15382 fi
15383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15384 fi
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388   cat >>confdefs.h <<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15390 _ACEOF
15391  cat >>confdefs.h <<\_ACEOF
15392 #define HAVE_FCHDIR 1
15393 _ACEOF
15394
15395 fi
15396 done
15397
15398
15399 for ac_func in strtoll
15400 do
15401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15402 echo "$as_me:$LINENO: checking for $ac_func" >&5
15403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_var+set}\" = set"; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   cat >conftest.$ac_ext <<_ACEOF
15408 #line $LINENO "configure"
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414 /* System header to define __stub macros and hopefully few prototypes,
15415     which can conflict with char $ac_func (); below.
15416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15417     <limits.h> exists even on freestanding compilers.  */
15418 #ifdef __STDC__
15419 # include <limits.h>
15420 #else
15421 # include <assert.h>
15422 #endif
15423 /* Override any gcc2 internal prototype to avoid an error.  */
15424 #ifdef __cplusplus
15425 extern "C"
15426 {
15427 #endif
15428 /* We use char because int might match the return type of a gcc2
15429    builtin and then its argument prototype would still apply.  */
15430 char $ac_func ();
15431 /* The GNU C library defines this for functions which it implements
15432     to always fail with ENOSYS.  Some functions are actually named
15433     something starting with __ and the normal name is an alias.  */
15434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15435 choke me
15436 #else
15437 char (*f) () = $ac_func;
15438 #endif
15439 #ifdef __cplusplus
15440 }
15441 #endif
15442
15443 int
15444 main ()
15445 {
15446 return f != $ac_func;
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 rm -f conftest.$ac_objext conftest$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453   (eval $ac_link) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } &&
15457          { ac_try='test -s conftest$ac_exeext'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; }; then
15463   eval "$as_ac_var=yes"
15464 else
15465   echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 eval "$as_ac_var=no"
15469 fi
15470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15471 fi
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15474 if test `eval echo '${'$as_ac_var'}'` = yes; then
15475   cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15477 _ACEOF
15478  cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_STRTOLL 1
15480 _ACEOF
15481
15482 fi
15483 done
15484
15485
15486
15487 for ac_func in chflags
15488 do
15489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15490 echo "$as_me:$LINENO: checking for $ac_func" >&5
15491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15492 if eval "test \"\${$as_ac_var+set}\" = set"; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   cat >conftest.$ac_ext <<_ACEOF
15496 #line $LINENO "configure"
15497 /* confdefs.h.  */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h.  */
15502 /* System header to define __stub macros and hopefully few prototypes,
15503     which can conflict with char $ac_func (); below.
15504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15505     <limits.h> exists even on freestanding compilers.  */
15506 #ifdef __STDC__
15507 # include <limits.h>
15508 #else
15509 # include <assert.h>
15510 #endif
15511 /* Override any gcc2 internal prototype to avoid an error.  */
15512 #ifdef __cplusplus
15513 extern "C"
15514 {
15515 #endif
15516 /* We use char because int might match the return type of a gcc2
15517    builtin and then its argument prototype would still apply.  */
15518 char $ac_func ();
15519 /* The GNU C library defines this for functions which it implements
15520     to always fail with ENOSYS.  Some functions are actually named
15521     something starting with __ and the normal name is an alias.  */
15522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15523 choke me
15524 #else
15525 char (*f) () = $ac_func;
15526 #endif
15527 #ifdef __cplusplus
15528 }
15529 #endif
15530
15531 int
15532 main ()
15533 {
15534 return f != $ac_func;
15535   ;
15536   return 0;
15537 }
15538 _ACEOF
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541   (eval $ac_link) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } &&
15545          { ac_try='test -s conftest$ac_exeext'
15546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547   (eval $ac_try) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }; then
15551   eval "$as_ac_var=yes"
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 eval "$as_ac_var=no"
15557 fi
15558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15559 fi
15560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15562 if test `eval echo '${'$as_ac_var'}'` = yes; then
15563   cat >>confdefs.h <<_ACEOF
15564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15565 _ACEOF
15566
15567 fi
15568 done
15569
15570
15571
15572
15573
15574
15575 for ac_func in snprintf vsnprintf gethostid getdomainname
15576 do
15577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15578 echo "$as_me:$LINENO: checking for $ac_func" >&5
15579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15580 if eval "test \"\${$as_ac_var+set}\" = set"; then
15581   echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583   cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15585 /* confdefs.h.  */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h.  */
15590 /* System header to define __stub macros and hopefully few prototypes,
15591     which can conflict with char $ac_func (); below.
15592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15593     <limits.h> exists even on freestanding compilers.  */
15594 #ifdef __STDC__
15595 # include <limits.h>
15596 #else
15597 # include <assert.h>
15598 #endif
15599 /* Override any gcc2 internal prototype to avoid an error.  */
15600 #ifdef __cplusplus
15601 extern "C"
15602 {
15603 #endif
15604 /* We use char because int might match the return type of a gcc2
15605    builtin and then its argument prototype would still apply.  */
15606 char $ac_func ();
15607 /* The GNU C library defines this for functions which it implements
15608     to always fail with ENOSYS.  Some functions are actually named
15609     something starting with __ and the normal name is an alias.  */
15610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15611 choke me
15612 #else
15613 char (*f) () = $ac_func;
15614 #endif
15615 #ifdef __cplusplus
15616 }
15617 #endif
15618
15619 int
15620 main ()
15621 {
15622 return f != $ac_func;
15623   ;
15624   return 0;
15625 }
15626 _ACEOF
15627 rm -f conftest.$ac_objext conftest$ac_exeext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15629   (eval $ac_link) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); } &&
15633          { ac_try='test -s conftest$ac_exeext'
15634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635   (eval $ac_try) 2>&5
15636   ac_status=$?
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); }; }; then
15639   eval "$as_ac_var=yes"
15640 else
15641   echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 eval "$as_ac_var=no"
15645 fi
15646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15647 fi
15648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15650 if test `eval echo '${'$as_ac_var'}'` = yes; then
15651   cat >>confdefs.h <<_ACEOF
15652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15653 _ACEOF
15654
15655 fi
15656 done
15657
15658
15659
15660
15661
15662
15663 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15664 do
15665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15666 echo "$as_me:$LINENO: checking for $ac_func" >&5
15667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15668 if eval "test \"\${$as_ac_var+set}\" = set"; then
15669   echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671   cat >conftest.$ac_ext <<_ACEOF
15672 #line $LINENO "configure"
15673 /* confdefs.h.  */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h.  */
15678 /* System header to define __stub macros and hopefully few prototypes,
15679     which can conflict with char $ac_func (); below.
15680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15681     <limits.h> exists even on freestanding compilers.  */
15682 #ifdef __STDC__
15683 # include <limits.h>
15684 #else
15685 # include <assert.h>
15686 #endif
15687 /* Override any gcc2 internal prototype to avoid an error.  */
15688 #ifdef __cplusplus
15689 extern "C"
15690 {
15691 #endif
15692 /* We use char because int might match the return type of a gcc2
15693    builtin and then its argument prototype would still apply.  */
15694 char $ac_func ();
15695 /* The GNU C library defines this for functions which it implements
15696     to always fail with ENOSYS.  Some functions are actually named
15697     something starting with __ and the normal name is an alias.  */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 choke me
15700 #else
15701 char (*f) () = $ac_func;
15702 #endif
15703 #ifdef __cplusplus
15704 }
15705 #endif
15706
15707 int
15708 main ()
15709 {
15710 return f != $ac_func;
15711   ;
15712   return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717   (eval $ac_link) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } &&
15721          { ac_try='test -s conftest$ac_exeext'
15722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723   (eval $ac_try) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); }; }; then
15727   eval "$as_ac_var=yes"
15728 else
15729   echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732 eval "$as_ac_var=no"
15733 fi
15734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15735 fi
15736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15738 if test `eval echo '${'$as_ac_var'}'` = yes; then
15739   cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15741 _ACEOF
15742
15743 fi
15744 done
15745
15746
15747 # If resolver functions are not in libc check for -lnsl or -lresolv.
15748 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15749 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15750 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15751   echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753   cat >conftest.$ac_ext <<_ACEOF
15754 #line $LINENO "configure"
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 /* System header to define __stub macros and hopefully few prototypes,
15761     which can conflict with char gethostbyname_r (); below.
15762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15763     <limits.h> exists even on freestanding compilers.  */
15764 #ifdef __STDC__
15765 # include <limits.h>
15766 #else
15767 # include <assert.h>
15768 #endif
15769 /* Override any gcc2 internal prototype to avoid an error.  */
15770 #ifdef __cplusplus
15771 extern "C"
15772 {
15773 #endif
15774 /* We use char because int might match the return type of a gcc2
15775    builtin and then its argument prototype would still apply.  */
15776 char gethostbyname_r ();
15777 /* The GNU C library defines this for functions which it implements
15778     to always fail with ENOSYS.  Some functions are actually named
15779     something starting with __ and the normal name is an alias.  */
15780 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15781 choke me
15782 #else
15783 char (*f) () = gethostbyname_r;
15784 #endif
15785 #ifdef __cplusplus
15786 }
15787 #endif
15788
15789 int
15790 main ()
15791 {
15792 return f != gethostbyname_r;
15793   ;
15794   return 0;
15795 }
15796 _ACEOF
15797 rm -f conftest.$ac_objext conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799   (eval $ac_link) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); } &&
15803          { ac_try='test -s conftest$ac_exeext'
15804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805   (eval $ac_try) 2>&5
15806   ac_status=$?
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); }; }; then
15809   ac_cv_func_gethostbyname_r=yes
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ac_cv_func_gethostbyname_r=no
15815 fi
15816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15817 fi
15818 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15819 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15820 if test $ac_cv_func_gethostbyname_r = yes; then
15821   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15822 echo "${ECHO_T}using libc's resolver" >&6
15823 else
15824
15825 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15826 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15827 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15828   echo $ECHO_N "(cached) $ECHO_C" >&6
15829 else
15830   ac_check_lib_save_LIBS=$LIBS
15831 LIBS="-lnsl  $LIBS"
15832 cat >conftest.$ac_ext <<_ACEOF
15833 #line $LINENO "configure"
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839
15840 /* Override any gcc2 internal prototype to avoid an error.  */
15841 #ifdef __cplusplus
15842 extern "C"
15843 #endif
15844 /* We use char because int might match the return type of a gcc2
15845    builtin and then its argument prototype would still apply.  */
15846 char gethostbyname_r ();
15847 int
15848 main ()
15849 {
15850 gethostbyname_r ();
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857   (eval $ac_link) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } &&
15861          { ac_try='test -s conftest$ac_exeext'
15862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863   (eval $ac_try) 2>&5
15864   ac_status=$?
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); }; }; then
15867   ac_cv_lib_nsl_gethostbyname_r=yes
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 ac_cv_lib_nsl_gethostbyname_r=no
15873 fi
15874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15876 fi
15877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15878 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15879 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15880   cat >>confdefs.h <<_ACEOF
15881 #define HAVE_LIBNSL 1
15882 _ACEOF
15883
15884   LIBS="-lnsl $LIBS"
15885
15886 fi
15887
15888
15889 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15890 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15891 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894   ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lresolv  $LIBS"
15896 cat >conftest.$ac_ext <<_ACEOF
15897 #line $LINENO "configure"
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903
15904 /* Override any gcc2 internal prototype to avoid an error.  */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 /* We use char because int might match the return type of a gcc2
15909    builtin and then its argument prototype would still apply.  */
15910 char gethostbyname_r ();
15911 int
15912 main ()
15913 {
15914 gethostbyname_r ();
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15921   (eval $ac_link) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } &&
15925          { ac_try='test -s conftest$ac_exeext'
15926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927   (eval $ac_try) 2>&5
15928   ac_status=$?
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); }; }; then
15931   ac_cv_lib_resolv_gethostbyname_r=yes
15932 else
15933   echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 ac_cv_lib_resolv_gethostbyname_r=no
15937 fi
15938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15939 LIBS=$ac_check_lib_save_LIBS
15940 fi
15941 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15942 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15943 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15944   cat >>confdefs.h <<_ACEOF
15945 #define HAVE_LIBRESOLV 1
15946 _ACEOF
15947
15948   LIBS="-lresolv $LIBS"
15949
15950 fi
15951
15952 fi
15953
15954
15955
15956 # Find where sockets are (especially for Solaris)
15957 echo "$as_me:$LINENO: checking for socket" >&5
15958 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15959 if test "${ac_cv_func_socket+set}" = set; then
15960   echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962   cat >conftest.$ac_ext <<_ACEOF
15963 #line $LINENO "configure"
15964 /* confdefs.h.  */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h.  */
15969 /* System header to define __stub macros and hopefully few prototypes,
15970     which can conflict with char socket (); below.
15971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15972     <limits.h> exists even on freestanding compilers.  */
15973 #ifdef __STDC__
15974 # include <limits.h>
15975 #else
15976 # include <assert.h>
15977 #endif
15978 /* Override any gcc2 internal prototype to avoid an error.  */
15979 #ifdef __cplusplus
15980 extern "C"
15981 {
15982 #endif
15983 /* We use char because int might match the return type of a gcc2
15984    builtin and then its argument prototype would still apply.  */
15985 char socket ();
15986 /* The GNU C library defines this for functions which it implements
15987     to always fail with ENOSYS.  Some functions are actually named
15988     something starting with __ and the normal name is an alias.  */
15989 #if defined (__stub_socket) || defined (__stub___socket)
15990 choke me
15991 #else
15992 char (*f) () = socket;
15993 #endif
15994 #ifdef __cplusplus
15995 }
15996 #endif
15997
15998 int
15999 main ()
16000 {
16001 return f != socket;
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16008   (eval $ac_link) 2>&5
16009   ac_status=$?
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); } &&
16012          { ac_try='test -s conftest$ac_exeext'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   ac_cv_func_socket=yes
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 ac_cv_func_socket=no
16024 fi
16025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16026 fi
16027 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16028 echo "${ECHO_T}$ac_cv_func_socket" >&6
16029 if test $ac_cv_func_socket = yes; then
16030   echo "$as_me:$LINENO: result: using libc's socket" >&5
16031 echo "${ECHO_T}using libc's socket" >&6
16032 else
16033
16034 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16035 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16036 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16037   echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039   ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lxnet  $LIBS"
16041 cat >conftest.$ac_ext <<_ACEOF
16042 #line $LINENO "configure"
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048
16049 /* Override any gcc2 internal prototype to avoid an error.  */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 /* We use char because int might match the return type of a gcc2
16054    builtin and then its argument prototype would still apply.  */
16055 char socket ();
16056 int
16057 main ()
16058 {
16059 socket ();
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066   (eval $ac_link) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } &&
16070          { ac_try='test -s conftest$ac_exeext'
16071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072   (eval $ac_try) 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; }; then
16076   ac_cv_lib_xnet_socket=yes
16077 else
16078   echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16080
16081 ac_cv_lib_xnet_socket=no
16082 fi
16083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16084 LIBS=$ac_check_lib_save_LIBS
16085 fi
16086 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16087 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16088 if test $ac_cv_lib_xnet_socket = yes; then
16089   cat >>confdefs.h <<_ACEOF
16090 #define HAVE_LIBXNET 1
16091 _ACEOF
16092
16093   LIBS="-lxnet $LIBS"
16094
16095 fi
16096
16097
16098 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16099 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16100 if test "${ac_cv_lib_socket_socket+set}" = set; then
16101   echo $ECHO_N "(cached) $ECHO_C" >&6
16102 else
16103   ac_check_lib_save_LIBS=$LIBS
16104 LIBS="-lsocket  $LIBS"
16105 cat >conftest.$ac_ext <<_ACEOF
16106 #line $LINENO "configure"
16107 /* confdefs.h.  */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h.  */
16112
16113 /* Override any gcc2 internal prototype to avoid an error.  */
16114 #ifdef __cplusplus
16115 extern "C"
16116 #endif
16117 /* We use char because int might match the return type of a gcc2
16118    builtin and then its argument prototype would still apply.  */
16119 char socket ();
16120 int
16121 main ()
16122 {
16123 socket ();
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest.$ac_objext conftest$ac_exeext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16130   (eval $ac_link) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } &&
16134          { ac_try='test -s conftest$ac_exeext'
16135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136   (eval $ac_try) 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; }; then
16140   ac_cv_lib_socket_socket=yes
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 ac_cv_lib_socket_socket=no
16146 fi
16147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16148 LIBS=$ac_check_lib_save_LIBS
16149 fi
16150 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16151 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16152 if test $ac_cv_lib_socket_socket = yes; then
16153   cat >>confdefs.h <<_ACEOF
16154 #define HAVE_LIBSOCKET 1
16155 _ACEOF
16156
16157   LIBS="-lsocket $LIBS"
16158
16159 fi
16160
16161
16162 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16163 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16164 if test "${ac_cv_lib_inet_socket+set}" = set; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   ac_check_lib_save_LIBS=$LIBS
16168 LIBS="-linet  $LIBS"
16169 cat >conftest.$ac_ext <<_ACEOF
16170 #line $LINENO "configure"
16171 /* confdefs.h.  */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h.  */
16176
16177 /* Override any gcc2 internal prototype to avoid an error.  */
16178 #ifdef __cplusplus
16179 extern "C"
16180 #endif
16181 /* We use char because int might match the return type of a gcc2
16182    builtin and then its argument prototype would still apply.  */
16183 char socket ();
16184 int
16185 main ()
16186 {
16187 socket ();
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194   (eval $ac_link) 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); } &&
16198          { ac_try='test -s conftest$ac_exeext'
16199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200   (eval $ac_try) 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); }; }; then
16204   ac_cv_lib_inet_socket=yes
16205 else
16206   echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209 ac_cv_lib_inet_socket=no
16210 fi
16211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16212 LIBS=$ac_check_lib_save_LIBS
16213 fi
16214 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16215 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16216 if test $ac_cv_lib_inet_socket = yes; then
16217   cat >>confdefs.h <<_ACEOF
16218 #define HAVE_LIBINET 1
16219 _ACEOF
16220
16221   LIBS="-linet $LIBS"
16222
16223 fi
16224
16225 fi
16226
16227
16228
16229 for ac_func in inet_pton
16230 do
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16234 if eval "test \"\${$as_ac_var+set}\" = set"; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   cat >conftest.$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16239 /* confdefs.h.  */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h.  */
16244 /* System header to define __stub macros and hopefully few prototypes,
16245     which can conflict with char $ac_func (); below.
16246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16247     <limits.h> exists even on freestanding compilers.  */
16248 #ifdef __STDC__
16249 # include <limits.h>
16250 #else
16251 # include <assert.h>
16252 #endif
16253 /* Override any gcc2 internal prototype to avoid an error.  */
16254 #ifdef __cplusplus
16255 extern "C"
16256 {
16257 #endif
16258 /* We use char because int might match the return type of a gcc2
16259    builtin and then its argument prototype would still apply.  */
16260 char $ac_func ();
16261 /* The GNU C library defines this for functions which it implements
16262     to always fail with ENOSYS.  Some functions are actually named
16263     something starting with __ and the normal name is an alias.  */
16264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16265 choke me
16266 #else
16267 char (*f) () = $ac_func;
16268 #endif
16269 #ifdef __cplusplus
16270 }
16271 #endif
16272
16273 int
16274 main ()
16275 {
16276 return f != $ac_func;
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283   (eval $ac_link) 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } &&
16287          { ac_try='test -s conftest$ac_exeext'
16288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289   (eval $ac_try) 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; }; then
16293   eval "$as_ac_var=yes"
16294 else
16295   echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298 eval "$as_ac_var=no"
16299 fi
16300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16301 fi
16302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16304 if test `eval echo '${'$as_ac_var'}'` = yes; then
16305   cat >>confdefs.h <<_ACEOF
16306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16307 _ACEOF
16308  cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_INET_PTON 1
16310 _ACEOF
16311
16312 fi
16313 done
16314
16315
16316 for ac_func in inet_ntop
16317 do
16318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16319 echo "$as_me:$LINENO: checking for $ac_func" >&5
16320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16321 if eval "test \"\${$as_ac_var+set}\" = set"; then
16322   echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324   cat >conftest.$ac_ext <<_ACEOF
16325 #line $LINENO "configure"
16326 /* confdefs.h.  */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h.  */
16331 /* System header to define __stub macros and hopefully few prototypes,
16332     which can conflict with char $ac_func (); below.
16333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16334     <limits.h> exists even on freestanding compilers.  */
16335 #ifdef __STDC__
16336 # include <limits.h>
16337 #else
16338 # include <assert.h>
16339 #endif
16340 /* Override any gcc2 internal prototype to avoid an error.  */
16341 #ifdef __cplusplus
16342 extern "C"
16343 {
16344 #endif
16345 /* We use char because int might match the return type of a gcc2
16346    builtin and then its argument prototype would still apply.  */
16347 char $ac_func ();
16348 /* The GNU C library defines this for functions which it implements
16349     to always fail with ENOSYS.  Some functions are actually named
16350     something starting with __ and the normal name is an alias.  */
16351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16352 choke me
16353 #else
16354 char (*f) () = $ac_func;
16355 #endif
16356 #ifdef __cplusplus
16357 }
16358 #endif
16359
16360 int
16361 main ()
16362 {
16363 return f != $ac_func;
16364   ;
16365   return 0;
16366 }
16367 _ACEOF
16368 rm -f conftest.$ac_objext conftest$ac_exeext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16370   (eval $ac_link) 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } &&
16374          { ac_try='test -s conftest$ac_exeext'
16375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376   (eval $ac_try) 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; }; then
16380   eval "$as_ac_var=yes"
16381 else
16382   echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 eval "$as_ac_var=no"
16386 fi
16387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16388 fi
16389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16391 if test `eval echo '${'$as_ac_var'}'` = yes; then
16392   cat >>confdefs.h <<_ACEOF
16393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16394 _ACEOF
16395  cat >>confdefs.h <<\_ACEOF
16396 #define HAVE_INET_NTOP 1
16397 _ACEOF
16398
16399 fi
16400 done
16401
16402
16403 for ac_func in gethostbyname2
16404 do
16405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16406 echo "$as_me:$LINENO: checking for $ac_func" >&5
16407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16408 if eval "test \"\${$as_ac_var+set}\" = set"; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411   cat >conftest.$ac_ext <<_ACEOF
16412 #line $LINENO "configure"
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 /* System header to define __stub macros and hopefully few prototypes,
16419     which can conflict with char $ac_func (); below.
16420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16421     <limits.h> exists even on freestanding compilers.  */
16422 #ifdef __STDC__
16423 # include <limits.h>
16424 #else
16425 # include <assert.h>
16426 #endif
16427 /* Override any gcc2 internal prototype to avoid an error.  */
16428 #ifdef __cplusplus
16429 extern "C"
16430 {
16431 #endif
16432 /* We use char because int might match the return type of a gcc2
16433    builtin and then its argument prototype would still apply.  */
16434 char $ac_func ();
16435 /* The GNU C library defines this for functions which it implements
16436     to always fail with ENOSYS.  Some functions are actually named
16437     something starting with __ and the normal name is an alias.  */
16438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16439 choke me
16440 #else
16441 char (*f) () = $ac_func;
16442 #endif
16443 #ifdef __cplusplus
16444 }
16445 #endif
16446
16447 int
16448 main ()
16449 {
16450 return f != $ac_func;
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 rm -f conftest.$ac_objext conftest$ac_exeext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16457   (eval $ac_link) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } &&
16461          { ac_try='test -s conftest$ac_exeext'
16462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463   (eval $ac_try) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; }; then
16467   eval "$as_ac_var=yes"
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472 eval "$as_ac_var=no"
16473 fi
16474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16475 fi
16476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16478 if test `eval echo '${'$as_ac_var'}'` = yes; then
16479   cat >>confdefs.h <<_ACEOF
16480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16481 _ACEOF
16482  cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_GETHOSTBYNAME2 1
16484 _ACEOF
16485
16486 fi
16487 done
16488
16489
16490 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16491 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16492 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   cat >conftest.$ac_ext <<_ACEOF
16496 #line $LINENO "configure"
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502 #include <sys/socket.h>
16503 int
16504 main ()
16505 {
16506 struct sockaddr s; s.sa_len;
16507   ;
16508   return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16513   (eval $ac_compile) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -s conftest.$ac_objext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   ac_cv_struct_sockaddr_sa_len=yes
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 ac_cv_struct_sockaddr_sa_len=no
16529 fi
16530 rm -f conftest.$ac_objext conftest.$ac_ext
16531 fi
16532 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16533 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16534
16535  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16536
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_SA_LEN 1
16539 _ACEOF
16540
16541  fi
16542
16543
16544 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16545 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16546 if test "${ac_cv_ipv6_support+set}" = set; then
16547   echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549   cat >conftest.$ac_ext <<_ACEOF
16550 #line $LINENO "configure"
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556  #include <sys/types.h>
16557 #include <sys/socket.h>
16558 #include <netinet/in.h>
16559 int
16560 main ()
16561 {
16562 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16563  0;
16564   ;
16565   return 0;
16566 }
16567 _ACEOF
16568 rm -f conftest.$ac_objext conftest$ac_exeext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16570   (eval $ac_link) 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -s conftest$ac_exeext'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; }; then
16580   ac_cv_ipv6_support=yes
16581 else
16582   echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585 ac_cv_ipv6_support=no
16586 fi
16587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16588 fi
16589 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16590 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16591
16592 if test "$ac_cv_ipv6_support" = yes; then
16593
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_IPV6 1
16596 _ACEOF
16597
16598 fi
16599
16600
16601
16602
16603 for ac_func in strftime
16604 do
16605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16606 echo "$as_me:$LINENO: checking for $ac_func" >&5
16607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16608 if eval "test \"\${$as_ac_var+set}\" = set"; then
16609   echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611   cat >conftest.$ac_ext <<_ACEOF
16612 #line $LINENO "configure"
16613 /* confdefs.h.  */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h.  */
16618 /* System header to define __stub macros and hopefully few prototypes,
16619     which can conflict with char $ac_func (); below.
16620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16621     <limits.h> exists even on freestanding compilers.  */
16622 #ifdef __STDC__
16623 # include <limits.h>
16624 #else
16625 # include <assert.h>
16626 #endif
16627 /* Override any gcc2 internal prototype to avoid an error.  */
16628 #ifdef __cplusplus
16629 extern "C"
16630 {
16631 #endif
16632 /* We use char because int might match the return type of a gcc2
16633    builtin and then its argument prototype would still apply.  */
16634 char $ac_func ();
16635 /* The GNU C library defines this for functions which it implements
16636     to always fail with ENOSYS.  Some functions are actually named
16637     something starting with __ and the normal name is an alias.  */
16638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16639 choke me
16640 #else
16641 char (*f) () = $ac_func;
16642 #endif
16643 #ifdef __cplusplus
16644 }
16645 #endif
16646
16647 int
16648 main ()
16649 {
16650 return f != $ac_func;
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657   (eval $ac_link) 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); } &&
16661          { ac_try='test -s conftest$ac_exeext'
16662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663   (eval $ac_try) 2>&5
16664   ac_status=$?
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); }; }; then
16667   eval "$as_ac_var=yes"
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672 eval "$as_ac_var=no"
16673 fi
16674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16675 fi
16676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16678 if test `eval echo '${'$as_ac_var'}'` = yes; then
16679   cat >>confdefs.h <<_ACEOF
16680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16681 _ACEOF
16682
16683 else
16684   # strftime is in -lintl on SCO UNIX.
16685 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16686 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16687 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   ac_check_lib_save_LIBS=$LIBS
16691 LIBS="-lintl  $LIBS"
16692 cat >conftest.$ac_ext <<_ACEOF
16693 #line $LINENO "configure"
16694 /* confdefs.h.  */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h.  */
16699
16700 /* Override any gcc2 internal prototype to avoid an error.  */
16701 #ifdef __cplusplus
16702 extern "C"
16703 #endif
16704 /* We use char because int might match the return type of a gcc2
16705    builtin and then its argument prototype would still apply.  */
16706 char strftime ();
16707 int
16708 main ()
16709 {
16710 strftime ();
16711   ;
16712   return 0;
16713 }
16714 _ACEOF
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16717   (eval $ac_link) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } &&
16721          { ac_try='test -s conftest$ac_exeext'
16722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723   (eval $ac_try) 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); }; }; then
16727   ac_cv_lib_intl_strftime=yes
16728 else
16729   echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732 ac_cv_lib_intl_strftime=no
16733 fi
16734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16735 LIBS=$ac_check_lib_save_LIBS
16736 fi
16737 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16738 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16739 if test $ac_cv_lib_intl_strftime = yes; then
16740   cat >>confdefs.h <<\_ACEOF
16741 #define HAVE_STRFTIME 1
16742 _ACEOF
16743
16744 LIBS="-lintl $LIBS"
16745 fi
16746
16747 fi
16748 done
16749
16750
16751 for ac_func in vprintf
16752 do
16753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16754 echo "$as_me:$LINENO: checking for $ac_func" >&5
16755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16756 if eval "test \"\${$as_ac_var+set}\" = set"; then
16757   echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759   cat >conftest.$ac_ext <<_ACEOF
16760 #line $LINENO "configure"
16761 /* confdefs.h.  */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h.  */
16766 /* System header to define __stub macros and hopefully few prototypes,
16767     which can conflict with char $ac_func (); below.
16768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769     <limits.h> exists even on freestanding compilers.  */
16770 #ifdef __STDC__
16771 # include <limits.h>
16772 #else
16773 # include <assert.h>
16774 #endif
16775 /* Override any gcc2 internal prototype to avoid an error.  */
16776 #ifdef __cplusplus
16777 extern "C"
16778 {
16779 #endif
16780 /* We use char because int might match the return type of a gcc2
16781    builtin and then its argument prototype would still apply.  */
16782 char $ac_func ();
16783 /* The GNU C library defines this for functions which it implements
16784     to always fail with ENOSYS.  Some functions are actually named
16785     something starting with __ and the normal name is an alias.  */
16786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16787 choke me
16788 #else
16789 char (*f) () = $ac_func;
16790 #endif
16791 #ifdef __cplusplus
16792 }
16793 #endif
16794
16795 int
16796 main ()
16797 {
16798 return f != $ac_func;
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16805   (eval $ac_link) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); } &&
16809          { ac_try='test -s conftest$ac_exeext'
16810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811   (eval $ac_try) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   eval "$as_ac_var=yes"
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 eval "$as_ac_var=no"
16821 fi
16822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16823 fi
16824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16826 if test `eval echo '${'$as_ac_var'}'` = yes; then
16827   cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16829 _ACEOF
16830
16831 echo "$as_me:$LINENO: checking for _doprnt" >&5
16832 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16833 if test "${ac_cv_func__doprnt+set}" = set; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836   cat >conftest.$ac_ext <<_ACEOF
16837 #line $LINENO "configure"
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843 /* System header to define __stub macros and hopefully few prototypes,
16844     which can conflict with char _doprnt (); below.
16845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846     <limits.h> exists even on freestanding compilers.  */
16847 #ifdef __STDC__
16848 # include <limits.h>
16849 #else
16850 # include <assert.h>
16851 #endif
16852 /* Override any gcc2 internal prototype to avoid an error.  */
16853 #ifdef __cplusplus
16854 extern "C"
16855 {
16856 #endif
16857 /* We use char because int might match the return type of a gcc2
16858    builtin and then its argument prototype would still apply.  */
16859 char _doprnt ();
16860 /* The GNU C library defines this for functions which it implements
16861     to always fail with ENOSYS.  Some functions are actually named
16862     something starting with __ and the normal name is an alias.  */
16863 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16864 choke me
16865 #else
16866 char (*f) () = _doprnt;
16867 #endif
16868 #ifdef __cplusplus
16869 }
16870 #endif
16871
16872 int
16873 main ()
16874 {
16875 return f != _doprnt;
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882   (eval $ac_link) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } &&
16886          { ac_try='test -s conftest$ac_exeext'
16887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888   (eval $ac_try) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892   ac_cv_func__doprnt=yes
16893 else
16894   echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ac_cv_func__doprnt=no
16898 fi
16899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16900 fi
16901 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16902 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16903 if test $ac_cv_func__doprnt = yes; then
16904
16905 cat >>confdefs.h <<\_ACEOF
16906 #define HAVE_DOPRNT 1
16907 _ACEOF
16908
16909 fi
16910
16911 fi
16912 done
16913
16914
16915 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16916 # for constant arguments.  Useless!
16917 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16918 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16919 if test "${ac_cv_working_alloca_h+set}" = set; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   cat >conftest.$ac_ext <<_ACEOF
16923 #line $LINENO "configure"
16924 /* confdefs.h.  */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h.  */
16929 #include <alloca.h>
16930 int
16931 main ()
16932 {
16933 char *p = (char *) alloca (2 * sizeof (int));
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940   (eval $ac_link) 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } &&
16944          { ac_try='test -s conftest$ac_exeext'
16945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946   (eval $ac_try) 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); }; }; then
16950   ac_cv_working_alloca_h=yes
16951 else
16952   echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 ac_cv_working_alloca_h=no
16956 fi
16957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16958 fi
16959 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16960 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16961 if test $ac_cv_working_alloca_h = yes; then
16962
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_ALLOCA_H 1
16965 _ACEOF
16966
16967 fi
16968
16969 echo "$as_me:$LINENO: checking for alloca" >&5
16970 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16971 if test "${ac_cv_func_alloca_works+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   cat >conftest.$ac_ext <<_ACEOF
16975 #line $LINENO "configure"
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 #ifdef __GNUC__
16982 # define alloca __builtin_alloca
16983 #else
16984 # ifdef _MSC_VER
16985 #  include <malloc.h>
16986 #  define alloca _alloca
16987 # else
16988 #  if HAVE_ALLOCA_H
16989 #   include <alloca.h>
16990 #  else
16991 #   ifdef _AIX
16992  #pragma alloca
16993 #   else
16994 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16995 char *alloca ();
16996 #    endif
16997 #   endif
16998 #  endif
16999 # endif
17000 #endif
17001
17002 int
17003 main ()
17004 {
17005 char *p = (char *) alloca (1);
17006   ;
17007   return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012   (eval $ac_link) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } &&
17016          { ac_try='test -s conftest$ac_exeext'
17017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018   (eval $ac_try) 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; }; then
17022   ac_cv_func_alloca_works=yes
17023 else
17024   echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027 ac_cv_func_alloca_works=no
17028 fi
17029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17030 fi
17031 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17032 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17033
17034 if test $ac_cv_func_alloca_works = yes; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_ALLOCA 1
17038 _ACEOF
17039
17040 else
17041   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17042 # that cause trouble.  Some versions do not even contain alloca or
17043 # contain a buggy version.  If you still want to use their alloca,
17044 # use ar to extract alloca.o from them instead of compiling alloca.c.
17045
17046 ALLOCA=alloca.$ac_objext
17047
17048 cat >>confdefs.h <<\_ACEOF
17049 #define C_ALLOCA 1
17050 _ACEOF
17051
17052
17053 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17054 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17055 if test "${ac_cv_os_cray+set}" = set; then
17056   echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058   cat >conftest.$ac_ext <<_ACEOF
17059 #line $LINENO "configure"
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065 #if defined(CRAY) && ! defined(CRAY2)
17066 webecray
17067 #else
17068 wenotbecray
17069 #endif
17070
17071 _ACEOF
17072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17073   $EGREP "webecray" >/dev/null 2>&1; then
17074   ac_cv_os_cray=yes
17075 else
17076   ac_cv_os_cray=no
17077 fi
17078 rm -f conftest*
17079
17080 fi
17081 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17082 echo "${ECHO_T}$ac_cv_os_cray" >&6
17083 if test $ac_cv_os_cray = yes; then
17084   for ac_func in _getb67 GETB67 getb67; do
17085     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17086 echo "$as_me:$LINENO: checking for $ac_func" >&5
17087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17088 if eval "test \"\${$as_ac_var+set}\" = set"; then
17089   echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091   cat >conftest.$ac_ext <<_ACEOF
17092 #line $LINENO "configure"
17093 /* confdefs.h.  */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h.  */
17098 /* System header to define __stub macros and hopefully few prototypes,
17099     which can conflict with char $ac_func (); below.
17100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101     <limits.h> exists even on freestanding compilers.  */
17102 #ifdef __STDC__
17103 # include <limits.h>
17104 #else
17105 # include <assert.h>
17106 #endif
17107 /* Override any gcc2 internal prototype to avoid an error.  */
17108 #ifdef __cplusplus
17109 extern "C"
17110 {
17111 #endif
17112 /* We use char because int might match the return type of a gcc2
17113    builtin and then its argument prototype would still apply.  */
17114 char $ac_func ();
17115 /* The GNU C library defines this for functions which it implements
17116     to always fail with ENOSYS.  Some functions are actually named
17117     something starting with __ and the normal name is an alias.  */
17118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17119 choke me
17120 #else
17121 char (*f) () = $ac_func;
17122 #endif
17123 #ifdef __cplusplus
17124 }
17125 #endif
17126
17127 int
17128 main ()
17129 {
17130 return f != $ac_func;
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137   (eval $ac_link) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } &&
17141          { ac_try='test -s conftest$ac_exeext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   eval "$as_ac_var=yes"
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 eval "$as_ac_var=no"
17153 fi
17154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17155 fi
17156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17158 if test `eval echo '${'$as_ac_var'}'` = yes; then
17159
17160 cat >>confdefs.h <<_ACEOF
17161 #define CRAY_STACKSEG_END $ac_func
17162 _ACEOF
17163
17164     break
17165 fi
17166
17167   done
17168 fi
17169
17170 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17171 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17172 if test "${ac_cv_c_stack_direction+set}" = set; then
17173   echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175   if test "$cross_compiling" = yes; then
17176   ac_cv_c_stack_direction=0
17177 else
17178   cat >conftest.$ac_ext <<_ACEOF
17179 #line $LINENO "configure"
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185 int
17186 find_stack_direction ()
17187 {
17188   static char *addr = 0;
17189   auto char dummy;
17190   if (addr == 0)
17191     {
17192       addr = &dummy;
17193       return find_stack_direction ();
17194     }
17195   else
17196     return (&dummy > addr) ? 1 : -1;
17197 }
17198
17199 int
17200 main ()
17201 {
17202   exit (find_stack_direction () < 0);
17203 }
17204 _ACEOF
17205 rm -f conftest$ac_exeext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207   (eval $ac_link) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212   (eval $ac_try) 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); }; }; then
17216   ac_cv_c_stack_direction=1
17217 else
17218   echo "$as_me: program exited with status $ac_status" >&5
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17221
17222 ( exit $ac_status )
17223 ac_cv_c_stack_direction=-1
17224 fi
17225 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17226 fi
17227 fi
17228 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17229 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17230
17231 cat >>confdefs.h <<_ACEOF
17232 #define STACK_DIRECTION $ac_cv_c_stack_direction
17233 _ACEOF
17234
17235
17236 fi
17237
17238 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17239 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17240 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17241 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17242   echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244   ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-lsun  $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253
17254 /* Override any gcc2 internal prototype to avoid an error.  */
17255 #ifdef __cplusplus
17256 extern "C"
17257 #endif
17258 /* We use char because int might match the return type of a gcc2
17259    builtin and then its argument prototype would still apply.  */
17260 char getmntent ();
17261 int
17262 main ()
17263 {
17264 getmntent ();
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271   (eval $ac_link) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277   (eval $ac_try) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; }; then
17281   ac_cv_lib_sun_getmntent=yes
17282 else
17283   echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286 ac_cv_lib_sun_getmntent=no
17287 fi
17288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17290 fi
17291 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17292 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17293 if test $ac_cv_lib_sun_getmntent = yes; then
17294   LIBS="-lsun $LIBS"
17295 else
17296   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17297 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17298 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301   ac_check_lib_save_LIBS=$LIBS
17302 LIBS="-lseq  $LIBS"
17303 cat >conftest.$ac_ext <<_ACEOF
17304 #line $LINENO "configure"
17305 /* confdefs.h.  */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h.  */
17310
17311 /* Override any gcc2 internal prototype to avoid an error.  */
17312 #ifdef __cplusplus
17313 extern "C"
17314 #endif
17315 /* We use char because int might match the return type of a gcc2
17316    builtin and then its argument prototype would still apply.  */
17317 char getmntent ();
17318 int
17319 main ()
17320 {
17321 getmntent ();
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328   (eval $ac_link) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } &&
17332          { ac_try='test -s conftest$ac_exeext'
17333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334   (eval $ac_try) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; }; then
17338   ac_cv_lib_seq_getmntent=yes
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ac_cv_lib_seq_getmntent=no
17344 fi
17345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17347 fi
17348 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17349 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17350 if test $ac_cv_lib_seq_getmntent = yes; then
17351   LIBS="-lseq $LIBS"
17352 else
17353   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17354 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17355 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   ac_check_lib_save_LIBS=$LIBS
17359 LIBS="-lgen  $LIBS"
17360 cat >conftest.$ac_ext <<_ACEOF
17361 #line $LINENO "configure"
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367
17368 /* Override any gcc2 internal prototype to avoid an error.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 /* We use char because int might match the return type of a gcc2
17373    builtin and then its argument prototype would still apply.  */
17374 char getmntent ();
17375 int
17376 main ()
17377 {
17378 getmntent ();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385   (eval $ac_link) 2>&5
17386   ac_status=$?
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); } &&
17389          { ac_try='test -s conftest$ac_exeext'
17390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391   (eval $ac_try) 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; }; then
17395   ac_cv_lib_gen_getmntent=yes
17396 else
17397   echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ac_cv_lib_gen_getmntent=no
17401 fi
17402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17403 LIBS=$ac_check_lib_save_LIBS
17404 fi
17405 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17406 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17407 if test $ac_cv_lib_gen_getmntent = yes; then
17408   LIBS="-lgen $LIBS"
17409 fi
17410
17411 fi
17412
17413 fi
17414
17415
17416 for ac_func in getmntent
17417 do
17418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419 echo "$as_me:$LINENO: checking for $ac_func" >&5
17420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17421 if eval "test \"\${$as_ac_var+set}\" = set"; then
17422   echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424   cat >conftest.$ac_ext <<_ACEOF
17425 #line $LINENO "configure"
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431 /* System header to define __stub macros and hopefully few prototypes,
17432     which can conflict with char $ac_func (); below.
17433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434     <limits.h> exists even on freestanding compilers.  */
17435 #ifdef __STDC__
17436 # include <limits.h>
17437 #else
17438 # include <assert.h>
17439 #endif
17440 /* Override any gcc2 internal prototype to avoid an error.  */
17441 #ifdef __cplusplus
17442 extern "C"
17443 {
17444 #endif
17445 /* We use char because int might match the return type of a gcc2
17446    builtin and then its argument prototype would still apply.  */
17447 char $ac_func ();
17448 /* The GNU C library defines this for functions which it implements
17449     to always fail with ENOSYS.  Some functions are actually named
17450     something starting with __ and the normal name is an alias.  */
17451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17452 choke me
17453 #else
17454 char (*f) () = $ac_func;
17455 #endif
17456 #ifdef __cplusplus
17457 }
17458 #endif
17459
17460 int
17461 main ()
17462 {
17463 return f != $ac_func;
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470   (eval $ac_link) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } &&
17474          { ac_try='test -s conftest$ac_exeext'
17475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476   (eval $ac_try) 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   eval "$as_ac_var=yes"
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 eval "$as_ac_var=no"
17486 fi
17487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17488 fi
17489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17491 if test `eval echo '${'$as_ac_var'}'` = yes; then
17492   cat >>confdefs.h <<_ACEOF
17493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17494 _ACEOF
17495
17496 fi
17497 done
17498
17499
17500 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17501 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17502 if test "${ac_cv_func_closedir_void+set}" = set; then
17503   echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505   if test "$cross_compiling" = yes; then
17506   ac_cv_func_closedir_void=yes
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 #line $LINENO "configure"
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 $ac_includes_default
17516 #include <$ac_header_dirent>
17517 #ifndef __cplusplus
17518 int closedir ();
17519 #endif
17520
17521 int
17522 main ()
17523 {
17524 exit (closedir (opendir (".")) != 0);
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 rm -f conftest$ac_exeext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531   (eval $ac_link) 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; }; then
17540   ac_cv_func_closedir_void=no
17541 else
17542   echo "$as_me: program exited with status $ac_status" >&5
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546 ( exit $ac_status )
17547 ac_cv_func_closedir_void=yes
17548 fi
17549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17550 fi
17551 fi
17552 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17553 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17554 if test $ac_cv_func_closedir_void = yes; then
17555
17556 cat >>confdefs.h <<\_ACEOF
17557 #define CLOSEDIR_VOID 1
17558 _ACEOF
17559
17560 fi
17561
17562 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17563 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17564 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17565   echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567   if test "$cross_compiling" = yes; then
17568   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17569 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17570    { (exit 1); exit 1; }; }
17571 else
17572   cat >conftest.$ac_ext <<_ACEOF
17573 #line $LINENO "configure"
17574 /* confdefs.h.  */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h.  */
17579 #if HAVE_UNISTD_H
17580 # include <unistd.h>
17581 #endif
17582
17583 int
17584 main ()
17585 {
17586 /* If this system has a BSD-style setpgrp which takes arguments,
17587   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17588   exit successfully. */
17589   exit (setpgrp (1,1) == -1 ? 0 : 1);
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596   (eval $ac_link) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605   ac_cv_func_setpgrp_void=no
17606 else
17607   echo "$as_me: program exited with status $ac_status" >&5
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 ( exit $ac_status )
17612 ac_cv_func_setpgrp_void=yes
17613 fi
17614 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17615 fi
17616 fi
17617 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17618 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17619 if test $ac_cv_func_setpgrp_void = yes; then
17620
17621 cat >>confdefs.h <<\_ACEOF
17622 #define SETPGRP_VOID 1
17623 _ACEOF
17624
17625 fi
17626                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17627 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17628 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   # Some versions of Solaris, SCO, and the GNU C Library
17632    # have a broken or incompatible fnmatch.
17633    # So we run a test program.  If we are cross-compiling, take no chance.
17634    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17635    if test "$cross_compiling" = yes; then
17636   ac_cv_func_fnmatch_works=cross
17637 else
17638   cat >conftest.$ac_ext <<_ACEOF
17639 #line $LINENO "configure"
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 #include <fnmatch.h>
17646 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17647 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17648
17649 int
17650 main ()
17651 {
17652 exit
17653            (!(y ("a*", "abc", 0)
17654               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17655               && y ("a\\\\bc", "abc", 0)
17656               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17657               && y ("*x", ".x", 0)
17658               && n ("*x", ".x", FNM_PERIOD)
17659               && 1));
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666   (eval $ac_link) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671   (eval $ac_try) 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675   ac_cv_func_fnmatch_works=yes
17676 else
17677   echo "$as_me: program exited with status $ac_status" >&5
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ( exit $ac_status )
17682 ac_cv_func_fnmatch_works=no
17683 fi
17684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17685 fi
17686 fi
17687 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17688 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17689 if test $ac_cv_func_fnmatch_works = yes; then
17690
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_FNMATCH 1
17693 _ACEOF
17694
17695 fi
17696
17697
17698
17699
17700
17701 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17702 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17703 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17704   echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706   ac_check_lib_save_LIBS=$LIBS
17707 LIBS="-lxpg4  $LIBS"
17708 cat >conftest.$ac_ext <<_ACEOF
17709 #line $LINENO "configure"
17710 /* confdefs.h.  */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h.  */
17715
17716 /* Override any gcc2 internal prototype to avoid an error.  */
17717 #ifdef __cplusplus
17718 extern "C"
17719 #endif
17720 /* We use char because int might match the return type of a gcc2
17721    builtin and then its argument prototype would still apply.  */
17722 char setlocale ();
17723 int
17724 main ()
17725 {
17726 setlocale ();
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17733   (eval $ac_link) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -s conftest$ac_exeext'
17738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739   (eval $ac_try) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; }; then
17743   ac_cv_lib_xpg4_setlocale=yes
17744 else
17745   echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17747
17748 ac_cv_lib_xpg4_setlocale=no
17749 fi
17750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17751 LIBS=$ac_check_lib_save_LIBS
17752 fi
17753 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17754 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17755 if test $ac_cv_lib_xpg4_setlocale = yes; then
17756   LIBS="$LIBS -lxpg4"
17757 fi
17758
17759
17760
17761
17762 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17763 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17764 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17765   echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767   ac_check_lib_save_LIBS=$LIBS
17768 LIBS="-lsun  $LIBS"
17769 cat >conftest.$ac_ext <<_ACEOF
17770 #line $LINENO "configure"
17771 /* confdefs.h.  */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h.  */
17776
17777 /* Override any gcc2 internal prototype to avoid an error.  */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 /* We use char because int might match the return type of a gcc2
17782    builtin and then its argument prototype would still apply.  */
17783 char getpwnam ();
17784 int
17785 main ()
17786 {
17787 getpwnam ();
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794   (eval $ac_link) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } &&
17798          { ac_try='test -s conftest$ac_exeext'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; }; then
17804   ac_cv_lib_sun_getpwnam=yes
17805 else
17806   echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_cv_lib_sun_getpwnam=no
17810 fi
17811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17813 fi
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17815 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17816 if test $ac_cv_lib_sun_getpwnam = yes; then
17817   cat >>confdefs.h <<_ACEOF
17818 #define HAVE_LIBSUN 1
17819 _ACEOF
17820
17821   LIBS="-lsun $LIBS"
17822
17823 fi
17824
17825
17826
17827 for ac_header in zlib.h
17828 do
17829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17831   echo "$as_me:$LINENO: checking for $ac_header" >&5
17832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17834   echo $ECHO_N "(cached) $ECHO_C" >&6
17835 fi
17836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17838 else
17839   # Is the header compilable?
17840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17842 cat >conftest.$ac_ext <<_ACEOF
17843 #line $LINENO "configure"
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849 $ac_includes_default
17850 #include <$ac_header>
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17854   (eval $ac_compile) 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } &&
17858          { ac_try='test -s conftest.$ac_objext'
17859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860   (eval $ac_try) 2>&5
17861   ac_status=$?
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); }; }; then
17864   ac_header_compiler=yes
17865 else
17866   echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17868
17869 ac_header_compiler=no
17870 fi
17871 rm -f conftest.$ac_objext conftest.$ac_ext
17872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17873 echo "${ECHO_T}$ac_header_compiler" >&6
17874
17875 # Is the header present?
17876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17878 cat >conftest.$ac_ext <<_ACEOF
17879 #line $LINENO "configure"
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885 #include <$ac_header>
17886 _ACEOF
17887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17889   ac_status=$?
17890   grep -v '^ *+' conftest.er1 >conftest.err
17891   rm -f conftest.er1
17892   cat conftest.err >&5
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } >/dev/null; then
17895   if test -s conftest.err; then
17896     ac_cpp_err=$ac_c_preproc_warn_flag
17897   else
17898     ac_cpp_err=
17899   fi
17900 else
17901   ac_cpp_err=yes
17902 fi
17903 if test -z "$ac_cpp_err"; then
17904   ac_header_preproc=yes
17905 else
17906   echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17908
17909   ac_header_preproc=no
17910 fi
17911 rm -f conftest.err conftest.$ac_ext
17912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17913 echo "${ECHO_T}$ac_header_preproc" >&6
17914
17915 # So?  What about this header?
17916 case $ac_header_compiler:$ac_header_preproc in
17917   yes:no )
17918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17922     (
17923       cat <<\_ASBOX
17924 ## ------------------------------------ ##
17925 ## Report this to bug-autoconf@gnu.org. ##
17926 ## ------------------------------------ ##
17927 _ASBOX
17928     ) |
17929       sed "s/^/$as_me: WARNING:     /" >&2
17930     ;;
17931   no:yes )
17932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17934     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17938     (
17939       cat <<\_ASBOX
17940 ## ------------------------------------ ##
17941 ## Report this to bug-autoconf@gnu.org. ##
17942 ## ------------------------------------ ##
17943 _ASBOX
17944     ) |
17945       sed "s/^/$as_me: WARNING:     /" >&2
17946     ;;
17947 esac
17948 echo "$as_me:$LINENO: checking for $ac_header" >&5
17949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17951   echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953   eval "$as_ac_Header=$ac_header_preproc"
17954 fi
17955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17957
17958 fi
17959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17960   cat >>confdefs.h <<_ACEOF
17961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17962 _ACEOF
17963
17964 fi
17965
17966 done
17967
17968 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17969 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17970 if test "${ac_cv_lib_z_deflate+set}" = set; then
17971   echo $ECHO_N "(cached) $ECHO_C" >&6
17972 else
17973   ac_check_lib_save_LIBS=$LIBS
17974 LIBS="-lz  $LIBS"
17975 cat >conftest.$ac_ext <<_ACEOF
17976 #line $LINENO "configure"
17977 /* confdefs.h.  */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h.  */
17982
17983 /* Override any gcc2 internal prototype to avoid an error.  */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 /* We use char because int might match the return type of a gcc2
17988    builtin and then its argument prototype would still apply.  */
17989 char deflate ();
17990 int
17991 main ()
17992 {
17993 deflate ();
17994   ;
17995   return 0;
17996 }
17997 _ACEOF
17998 rm -f conftest.$ac_objext conftest$ac_exeext
17999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18000   (eval $ac_link) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); } &&
18004          { ac_try='test -s conftest$ac_exeext'
18005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006   (eval $ac_try) 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; }; then
18010   ac_cv_lib_z_deflate=yes
18011 else
18012   echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 ac_cv_lib_z_deflate=no
18016 fi
18017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18018 LIBS=$ac_check_lib_save_LIBS
18019 fi
18020 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18021 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18022 if test $ac_cv_lib_z_deflate = yes; then
18023   FDLIBS="-lz"
18024 fi
18025
18026 have_zlib=no
18027 if test x$FDLIBS = x-lz; then
18028   cat >>confdefs.h <<\_ACEOF
18029 #define HAVE_LIBZ 1
18030 _ACEOF
18031
18032   have_zlib=yes
18033 fi
18034
18035 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18036   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18037 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18038 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 fi
18041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18042 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18043 else
18044   # Is the header compilable?
18045 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18046 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18047 cat >conftest.$ac_ext <<_ACEOF
18048 #line $LINENO "configure"
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054 $ac_includes_default
18055 #include <sys/acl.h>
18056 _ACEOF
18057 rm -f conftest.$ac_objext
18058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18059   (eval $ac_compile) 2>&5
18060   ac_status=$?
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } &&
18063          { ac_try='test -s conftest.$ac_objext'
18064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065   (eval $ac_try) 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; }; then
18069   ac_header_compiler=yes
18070 else
18071   echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_header_compiler=no
18075 fi
18076 rm -f conftest.$ac_objext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6
18079
18080 # Is the header present?
18081 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18082 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18084 #line $LINENO "configure"
18085 /* confdefs.h.  */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h.  */
18090 #include <sys/acl.h>
18091 _ACEOF
18092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } >/dev/null; then
18100   if test -s conftest.err; then
18101     ac_cpp_err=$ac_c_preproc_warn_flag
18102   else
18103     ac_cpp_err=
18104   fi
18105 else
18106   ac_cpp_err=yes
18107 fi
18108 if test -z "$ac_cpp_err"; then
18109   ac_header_preproc=yes
18110 else
18111   echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114   ac_header_preproc=no
18115 fi
18116 rm -f conftest.err conftest.$ac_ext
18117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118 echo "${ECHO_T}$ac_header_preproc" >&6
18119
18120 # So?  What about this header?
18121 case $ac_header_compiler:$ac_header_preproc in
18122   yes:no )
18123     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18124 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18126 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18127     (
18128       cat <<\_ASBOX
18129 ## ------------------------------------ ##
18130 ## Report this to bug-autoconf@gnu.org. ##
18131 ## ------------------------------------ ##
18132 _ASBOX
18133     ) |
18134       sed "s/^/$as_me: WARNING:     /" >&2
18135     ;;
18136   no:yes )
18137     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18138 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18139     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18140 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18141     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18142 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18143     (
18144       cat <<\_ASBOX
18145 ## ------------------------------------ ##
18146 ## Report this to bug-autoconf@gnu.org. ##
18147 ## ------------------------------------ ##
18148 _ASBOX
18149     ) |
18150       sed "s/^/$as_me: WARNING:     /" >&2
18151     ;;
18152 esac
18153 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18154 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18155 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18156   echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158   ac_cv_header_sys_acl_h=$ac_header_preproc
18159 fi
18160 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18161 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18162
18163 fi
18164
18165
18166 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18167 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18168 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18169   echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171   ac_check_lib_save_LIBS=$LIBS
18172 LIBS="-lacl  $LIBS"
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180
18181 /* Override any gcc2 internal prototype to avoid an error.  */
18182 #ifdef __cplusplus
18183 extern "C"
18184 #endif
18185 /* We use char because int might match the return type of a gcc2
18186    builtin and then its argument prototype would still apply.  */
18187 char acl_get_file ();
18188 int
18189 main ()
18190 {
18191 acl_get_file ();
18192   ;
18193   return 0;
18194 }
18195 _ACEOF
18196 rm -f conftest.$ac_objext conftest$ac_exeext
18197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18198   (eval $ac_link) 2>&5
18199   ac_status=$?
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); } &&
18202          { ac_try='test -s conftest$ac_exeext'
18203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204   (eval $ac_try) 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; }; then
18208   ac_cv_lib_acl_acl_get_file=yes
18209 else
18210   echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 ac_cv_lib_acl_acl_get_file=no
18214 fi
18215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18216 LIBS=$ac_check_lib_save_LIBS
18217 fi
18218 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18219 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18220 if test $ac_cv_lib_acl_acl_get_file = yes; then
18221   FDLIBS="-lacl $FDLIBS"
18222 fi
18223
18224 have_acl=no
18225 if test $ac_cv_lib_acl_acl_get_file = yes; then
18226    cat >>confdefs.h <<\_ACEOF
18227 #define HAVE_ACL 1
18228 _ACEOF
18229
18230    have_acl=yes
18231 fi
18232
18233 PTHREAD_LIB=""
18234 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18235 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18236 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239   ac_check_lib_save_LIBS=$LIBS
18240 LIBS="-lpthread  $LIBS"
18241 cat >conftest.$ac_ext <<_ACEOF
18242 #line $LINENO "configure"
18243 /* confdefs.h.  */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h.  */
18248
18249 /* Override any gcc2 internal prototype to avoid an error.  */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 /* We use char because int might match the return type of a gcc2
18254    builtin and then its argument prototype would still apply.  */
18255 char pthread_create ();
18256 int
18257 main ()
18258 {
18259 pthread_create ();
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266   (eval $ac_link) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } &&
18270          { ac_try='test -s conftest$ac_exeext'
18271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272   (eval $ac_try) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; }; then
18276   ac_cv_lib_pthread_pthread_create=yes
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ac_cv_lib_pthread_pthread_create=no
18282 fi
18283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18284 LIBS=$ac_check_lib_save_LIBS
18285 fi
18286 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18287 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18288 if test $ac_cv_lib_pthread_pthread_create = yes; then
18289   PTHREAD_LIB="-lpthread"
18290 else
18291   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18292 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18293 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18294   echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296   ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lpthreads  $LIBS"
18298 cat >conftest.$ac_ext <<_ACEOF
18299 #line $LINENO "configure"
18300 /* confdefs.h.  */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h.  */
18305
18306 /* Override any gcc2 internal prototype to avoid an error.  */
18307 #ifdef __cplusplus
18308 extern "C"
18309 #endif
18310 /* We use char because int might match the return type of a gcc2
18311    builtin and then its argument prototype would still apply.  */
18312 char pthread_create ();
18313 int
18314 main ()
18315 {
18316 pthread_create ();
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323   (eval $ac_link) 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } &&
18327          { ac_try='test -s conftest$ac_exeext'
18328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329   (eval $ac_try) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; }; then
18333   ac_cv_lib_pthreads_pthread_create=yes
18334 else
18335   echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18337
18338 ac_cv_lib_pthreads_pthread_create=no
18339 fi
18340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18341 LIBS=$ac_check_lib_save_LIBS
18342 fi
18343 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18344 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18345 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18346   PTHREAD_LIB="-lpthreads"
18347 else
18348   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18349 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18350 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   ac_check_lib_save_LIBS=$LIBS
18354 LIBS="-lc_r  $LIBS"
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line $LINENO "configure"
18357 /* confdefs.h.  */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h.  */
18362
18363 /* Override any gcc2 internal prototype to avoid an error.  */
18364 #ifdef __cplusplus
18365 extern "C"
18366 #endif
18367 /* We use char because int might match the return type of a gcc2
18368    builtin and then its argument prototype would still apply.  */
18369 char pthread_create ();
18370 int
18371 main ()
18372 {
18373 pthread_create ();
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380   (eval $ac_link) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_lib_c_r_pthread_create=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_lib_c_r_pthread_create=no
18396 fi
18397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18399 fi
18400 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18401 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18402 if test $ac_cv_lib_c_r_pthread_create = yes; then
18403   PTHREAD_LIB="-lc_r"
18404 else
18405   echo "$as_me:$LINENO: checking for pthread_create" >&5
18406 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18407 if test "${ac_cv_func_pthread_create+set}" = set; then
18408   echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410   cat >conftest.$ac_ext <<_ACEOF
18411 #line $LINENO "configure"
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417 /* System header to define __stub macros and hopefully few prototypes,
18418     which can conflict with char pthread_create (); below.
18419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18420     <limits.h> exists even on freestanding compilers.  */
18421 #ifdef __STDC__
18422 # include <limits.h>
18423 #else
18424 # include <assert.h>
18425 #endif
18426 /* Override any gcc2 internal prototype to avoid an error.  */
18427 #ifdef __cplusplus
18428 extern "C"
18429 {
18430 #endif
18431 /* We use char because int might match the return type of a gcc2
18432    builtin and then its argument prototype would still apply.  */
18433 char pthread_create ();
18434 /* The GNU C library defines this for functions which it implements
18435     to always fail with ENOSYS.  Some functions are actually named
18436     something starting with __ and the normal name is an alias.  */
18437 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18438 choke me
18439 #else
18440 char (*f) () = pthread_create;
18441 #endif
18442 #ifdef __cplusplus
18443 }
18444 #endif
18445
18446 int
18447 main ()
18448 {
18449 return f != pthread_create;
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18456   (eval $ac_link) 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); } &&
18460          { ac_try='test -s conftest$ac_exeext'
18461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462   (eval $ac_try) 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; }; then
18466   ac_cv_func_pthread_create=yes
18467 else
18468   echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471 ac_cv_func_pthread_create=no
18472 fi
18473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18474 fi
18475 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18476 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18477
18478
18479 fi
18480
18481
18482 fi
18483
18484
18485 fi
18486
18487
18488
18489 cat >>confdefs.h <<\_ACEOF
18490 #define FDLIBS 1
18491 _ACEOF
18492
18493
18494
18495 CFLAGS=${CFLAGS--O}
18496 LDFLAGS=${LDFLAGS--O}
18497 DB_LIBS="${SQL_LFLAGS}"
18498
18499 CPPFLAGS="$CPPFLAGS"
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514 OBJLIST=
18515
18516
18517 lld="lld"
18518 llu="llu"
18519
18520 WCFLAGS=
18521 WLDFLAGS=
18522
18523 #
18524 # Finally we set appropriate distribution specific
18525 #  variables and defaults
18526 #
18527 # PFILES are platform specific files
18528 PFILES="platforms/Makefile"
18529 PSCMD="ps -e"
18530 WIN32=
18531 MACOSX=
18532 hostname=`uname -n | cut -d '.' -f 1`
18533 case "$DISTNAME" in
18534 aix)
18535         DISTVER=`uname -r`
18536         PSCMD="ps -e -o pid,comm"
18537         PFILES="${PFILES} \
18538            platforms/aix/Makefile"
18539         TAPEDRIVE="/dev/rmt0.1"
18540   ;;
18541 alpha)
18542         DISTVER=`uname -r`
18543         PTHREAD_LIB="-lpthread -lexc"
18544         if test "${CC}" = "gcc" ; then
18545            lld="lld"
18546            llu="llu"
18547         else
18548            lld="ld"
18549            llu="lu"
18550         fi
18551         TAPEDRIVE="/dev/nrmt0"
18552   ;;
18553 bsdi)
18554         DISTVER=`uname -a |awk '{print $3}'`
18555         TAPEDRIVE="/dev/nrmt0"
18556         PTHREAD_LIB="-pthread"
18557         CFLAGS="${CFLAGS} -pthread"
18558         PSCMD="ps -x -o pid,command"
18559         lld="qd"
18560         llu="qu"
18561         PFILES="${PFILES} \
18562             platforms/bsdi/Makefile \
18563             platforms/bsdi/bacula-fd \
18564             platforms/bsdi/bacula-sd \
18565             platforms/bsdi/bacula-dir"
18566         largefile_support="yes"
18567   ;;
18568 cygwin)
18569         DISTVER=`uname -a |awk '{print $3}'`
18570         TAPEDRIVE="/dev/nrst0"
18571         WIN32=win32
18572         WCFLAGS="-mwindows"
18573         WLDFLAGS="-mwindows"
18574   ;;
18575 darwin)
18576         DISTVER=`uname -r`
18577         TAPEDRIVE="/dev/nst0"
18578         PSCMD="ps -e -o pid,command"
18579         MACOSX=macosx
18580         PFILES="${PFILES} \
18581            platforms/darwin/Makefile"
18582   ;;
18583 debian)
18584         DISTVER=`cat /etc/debian_version`
18585         TAPEDRIVE="/dev/nrst0"
18586         PSCMD="ps -e -o pid,command"
18587   ;;
18588 freebsd)
18589         DISTVER=`uname -a |awk '{print $3}'`
18590         VER=`echo $DISTVER | cut -c 1`
18591         if test x$VER = x4 ; then
18592            PTHREAD_LIB="-pthread"
18593            CFLAGS="${CFLAGS} -pthread"
18594         fi
18595         lld="qd"
18596         llu="qu"
18597         TAPEDRIVE="/dev/nrsa0"
18598         PSCMD="ps -x -o pid,command"
18599         PFILES="${PFILES} \
18600             platforms/freebsd/Makefile \
18601             platforms/freebsd/bacula-fd \
18602             platforms/freebsd/bacula-sd \
18603             platforms/freebsd/bacula-dir"
18604         largefile_support="yes"
18605   ;;
18606 hpux)
18607         PSCMD="UNIX95=1 ps -e -o pid,comm"
18608         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18609         DISTVER=`uname -r`
18610         TAPEDRIVE="/dev/rmt/0hnb"
18611   ;;
18612 irix)
18613         DISTVER=`uname -r`
18614         TAPEDRIVE="/dev/rmt/0cbn"
18615         PSCMD="ps -e -o pid,comm"
18616         PFILES="${PFILES} \
18617             platforms/irix/Makefile \
18618             platforms/irix/bacula-fd \
18619             platforms/irix/bacula-sd \
18620             platforms/irix/bacula-dir"
18621   ;;
18622 netbsd)
18623         DISTVER=`uname -a |awk '{print $3}'`
18624         lld="qd"
18625         llu="qu"
18626         TAPEDRIVE="/dev/nrst0"
18627         PSCMD="ps -a -o pid,command"
18628         PTHREAD_LIB="-pthread"
18629         CFLAGS="${CFLAGS} -pthread"
18630   ;;
18631 openbsd)
18632         DISTVER=`uname -a |awk '{print $3}'`
18633         lld="qd"
18634         llu="qu"
18635         TAPEDRIVE="/dev/nrst0"
18636         PSCMD="ps -a -o pid,command"
18637         PTHREAD_LIB="-pthread"
18638         CFLAGS="${CFLAGS} -pthread"
18639         PFILES="${PFILES} \
18640             platforms/openbsd/Makefile \
18641             platforms/openbsd/bacula-fd \
18642             platforms/openbsd/bacula-sd \
18643             platforms/openbsd/bacula-dir"
18644   ;;
18645 redhat)
18646         if test -f /etc/whitebox-release ; then
18647            f=/etc/whitebox-release
18648         else
18649            f=/etc/redhat-release
18650         fi
18651         if test `cat $f | grep release |\
18652                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18653            DISTVER="Enterprise "`cat $f | grep release |\
18654                     cut -f 6 -d ' '`
18655         else
18656             DISTVER=`cat /etc/redhat-release | grep release |\
18657                      cut -f 5 -d ' '`
18658         fi
18659         TAPEDRIVE="/dev/nst0"
18660         PSCMD="ps -e -o pid,command"
18661         PFILES="${PFILES} \
18662             platforms/redhat/Makefile \
18663             platforms/redhat/bacula-fd \
18664             platforms/redhat/bacula-sd \
18665             platforms/redhat/bacula-dir \
18666             platforms/redhat/bacula.spec \
18667             "
18668         hostname=`hostname -s`
18669   ;;
18670 mandrake)
18671         DISTVER=`cat /etc/mandrake-release | grep release |\
18672            cut -f 5 -d ' '`
18673         TAPEDRIVE="/dev/nst0"
18674         PSCMD="ps -e -o pid,command"
18675         PFILES="${PFILES} \
18676             platforms/mandrake/Makefile \
18677             platforms/mandrake/bacula-fd \
18678             platforms/mandrake/bacula-sd \
18679             platforms/mandrake/bacula-dir \
18680             platforms/mandrake/bacula.spec \
18681             "
18682   ;;
18683 gentoo)
18684         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18685         TAPEDRIVE="/dev/nst0"
18686         PSCMD="ps -e -o pid,command"
18687         PFILES="${PFILES} \
18688             platforms/gentoo/Makefile \
18689             platforms/gentoo/bacula-fd \
18690             platforms/gentoo/bacula-sd \
18691             platforms/gentoo/bacula-dir"
18692   ;;
18693 slackware)
18694         DISTVER=`cat /etc/slackware-version`
18695         TAPEDRIVE="/dev/nst0"
18696         PSCMD="ps -e -o pid,command"
18697         PFILES="${PFILES} \
18698             platforms/slackware/Makefile \
18699             platforms/slackware/rc.bacula-fd \
18700             platforms/slackware/rc.bacula-sd \
18701             platforms/slackware/rc.bacula-dir\
18702             platforms/slackware/functions.bacula"
18703   ;;
18704 solaris)
18705         DISTVER=`uname -r`
18706         TAPEDRIVE="/dev/rmt/0cbn"
18707         PSCMD="ps -e -o pid,comm"
18708         PFILES="${PFILES} \
18709             platforms/solaris/Makefile \
18710             platforms/solaris/bacula-fd \
18711             platforms/solaris/bacula-sd \
18712             platforms/solaris/bacula-dir"
18713         if test x$DISTVER = x5.6 ; then
18714             cat >>confdefs.h <<\_ACEOF
18715 #define HAVE_OLD_SOCKOPT 1
18716 _ACEOF
18717
18718         fi
18719   ;;
18720 suse)
18721         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18722             cut -f 3 -d ' '`
18723         TAPEDRIVE="/dev/nst0"
18724         PSCMD="ps -e -o pid,command"
18725         PFILES="${PFILES} \
18726             platforms/suse/Makefile \
18727             platforms/suse/bacula-fd \
18728             platforms/suse/bacula-sd \
18729             platforms/suse/bacula-dir \
18730             platforms/suse/bacula \
18731             platforms/suse/bacula.spec"
18732   ;;
18733 suse5)
18734         DISTNAME=suse
18735         DISTVER=5.x
18736         TAPEDRIVE="/dev/nst0"
18737         PSCMD="ps -e -o pid,command"
18738         PFILES="${PFILES} \
18739             platforms/suse/Makefile \
18740             platforms/suse/bacula-fd \
18741             platforms/suse/bacula-sd \
18742             platforms/suse/bacula-dir"
18743   ;;
18744 unknown)
18745         DISTVER=unknown
18746         TAPEDRIVE="/dev/nst0"
18747   ;;
18748 *)
18749   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18750   ;;
18751 esac
18752
18753
18754
18755 LIBS="$PTHREAD_LIB $LIBS"
18756
18757 cat >>confdefs.h <<_ACEOF
18758 #define lld "$lld"
18759 _ACEOF
18760
18761 cat >>confdefs.h <<_ACEOF
18762 #define llu "$llu"
18763 _ACEOF
18764
18765
18766
18767
18768
18769
18770
18771
18772 MCOMMON=./autoconf/Make.common
18773
18774
18775 if test "x${subsysdir}" = "x${sbindir}" ; then
18776    echo " "
18777    echo " "
18778    echo "You have set both --sbindir and --with-subsys-dir"
18779    echo "  equal to: ${subsysdir} "
18780    echo "This is not permitted. Please reconfigure."
18781    echo " "
18782    echo "Aborting configuration ..."
18783    echo " "
18784    echo " "
18785    exit 1
18786 fi
18787
18788                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           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/tray-monitor/Makefile src/tray-monitor/tray-monitor.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"
18789           ac_config_commands="$ac_config_commands default"
18790 cat >confcache <<\_ACEOF
18791 # This file is a shell script that caches the results of configure
18792 # tests run on this system so they can be shared between configure
18793 # scripts and configure runs, see configure's option --config-cache.
18794 # It is not useful on other systems.  If it contains results you don't
18795 # want to keep, you may remove or edit it.
18796 #
18797 # config.status only pays attention to the cache file if you give it
18798 # the --recheck option to rerun configure.
18799 #
18800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18802 # following values.
18803
18804 _ACEOF
18805
18806 # The following way of writing the cache mishandles newlines in values,
18807 # but we know of no workaround that is simple, portable, and efficient.
18808 # So, don't put newlines in cache variables' values.
18809 # Ultrix sh set writes to stderr and can't be redirected directly,
18810 # and sets the high bit in the cache file unless we assign to the vars.
18811 {
18812   (set) 2>&1 |
18813     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18814     *ac_space=\ *)
18815       # `set' does not quote correctly, so add quotes (double-quote
18816       # substitution turns \\\\ into \\, and sed turns \\ into \).
18817       sed -n \
18818         "s/'/'\\\\''/g;
18819           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18820       ;;
18821     *)
18822       # `set' quotes correctly as required by POSIX, so do not add quotes.
18823       sed -n \
18824         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18825       ;;
18826     esac;
18827 } |
18828   sed '
18829      t clear
18830      : clear
18831      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18832      t end
18833      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18834      : end' >>confcache
18835 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18836   if test -w $cache_file; then
18837     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18838     cat confcache >$cache_file
18839   else
18840     echo "not updating unwritable cache $cache_file"
18841   fi
18842 fi
18843 rm -f confcache
18844
18845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18846 # Let make expand exec_prefix.
18847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18848
18849 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18850 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18851 # trailing colons and then remove the whole line if VPATH becomes empty
18852 # (actually we leave an empty line to preserve line numbers).
18853 if test "x$srcdir" = x.; then
18854   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18855 s/:*\$(srcdir):*/:/;
18856 s/:*\${srcdir}:*/:/;
18857 s/:*@srcdir@:*/:/;
18858 s/^\([^=]*=[    ]*\):*/\1/;
18859 s/:*$//;
18860 s/^[^=]*=[      ]*$//;
18861 }'
18862 fi
18863
18864 DEFS=-DHAVE_CONFIG_H
18865
18866 ac_libobjs=
18867 ac_ltlibobjs=
18868 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18869   # 1. Remove the extension, and $U if already installed.
18870   ac_i=`echo "$ac_i" |
18871          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18872   # 2. Add them.
18873   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18874   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18875 done
18876 LIBOBJS=$ac_libobjs
18877
18878 LTLIBOBJS=$ac_ltlibobjs
18879
18880
18881
18882 : ${CONFIG_STATUS=./config.status}
18883 ac_clean_files_save=$ac_clean_files
18884 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18885 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18886 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18887 cat >$CONFIG_STATUS <<_ACEOF
18888 #! $SHELL
18889 # Generated by $as_me.
18890 # Run this file to recreate the current configuration.
18891 # Compiler output produced by configure, useful for debugging
18892 # configure, is in config.log if it exists.
18893
18894 debug=false
18895 ac_cs_recheck=false
18896 ac_cs_silent=false
18897 SHELL=\${CONFIG_SHELL-$SHELL}
18898 _ACEOF
18899
18900 cat >>$CONFIG_STATUS <<\_ACEOF
18901 ## --------------------- ##
18902 ## M4sh Initialization.  ##
18903 ## --------------------- ##
18904
18905 # Be Bourne compatible
18906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18907   emulate sh
18908   NULLCMD=:
18909   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18910   # is contrary to our usage.  Disable this feature.
18911   alias -g '${1+"$@"}'='"$@"'
18912 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18913   set -o posix
18914 fi
18915
18916 # Support unset when possible.
18917 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18918   as_unset=unset
18919 else
18920   as_unset=false
18921 fi
18922
18923
18924 # Work around bugs in pre-3.0 UWIN ksh.
18925 $as_unset ENV MAIL MAILPATH
18926 PS1='$ '
18927 PS2='> '
18928 PS4='+ '
18929
18930 # NLS nuisances.
18931 for as_var in \
18932   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18933   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18934   LC_TELEPHONE LC_TIME
18935 do
18936   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18937     eval $as_var=C; export $as_var
18938   else
18939     $as_unset $as_var
18940   fi
18941 done
18942
18943 # Required to use basename.
18944 if expr a : '\(a\)' >/dev/null 2>&1; then
18945   as_expr=expr
18946 else
18947   as_expr=false
18948 fi
18949
18950 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18951   as_basename=basename
18952 else
18953   as_basename=false
18954 fi
18955
18956
18957 # Name of the executable.
18958 as_me=`$as_basename "$0" ||
18959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18960          X"$0" : 'X\(//\)$' \| \
18961          X"$0" : 'X\(/\)$' \| \
18962          .     : '\(.\)' 2>/dev/null ||
18963 echo X/"$0" |
18964     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18965           /^X\/\(\/\/\)$/{ s//\1/; q; }
18966           /^X\/\(\/\).*/{ s//\1/; q; }
18967           s/.*/./; q'`
18968
18969
18970 # PATH needs CR, and LINENO needs CR and PATH.
18971 # Avoid depending upon Character Ranges.
18972 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18973 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18974 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18975 as_cr_digits='0123456789'
18976 as_cr_alnum=$as_cr_Letters$as_cr_digits
18977
18978 # The user is always right.
18979 if test "${PATH_SEPARATOR+set}" != set; then
18980   echo "#! /bin/sh" >conf$$.sh
18981   echo  "exit 0"   >>conf$$.sh
18982   chmod +x conf$$.sh
18983   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18984     PATH_SEPARATOR=';'
18985   else
18986     PATH_SEPARATOR=:
18987   fi
18988   rm -f conf$$.sh
18989 fi
18990
18991
18992   as_lineno_1=$LINENO
18993   as_lineno_2=$LINENO
18994   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18995   test "x$as_lineno_1" != "x$as_lineno_2" &&
18996   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18997   # Find who we are.  Look in the path if we contain no path at all
18998   # relative or not.
18999   case $0 in
19000     *[\\/]* ) as_myself=$0 ;;
19001     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19002 for as_dir in $PATH
19003 do
19004   IFS=$as_save_IFS
19005   test -z "$as_dir" && as_dir=.
19006   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19007 done
19008
19009        ;;
19010   esac
19011   # We did not find ourselves, most probably we were run as `sh COMMAND'
19012   # in which case we are not to be found in the path.
19013   if test "x$as_myself" = x; then
19014     as_myself=$0
19015   fi
19016   if test ! -f "$as_myself"; then
19017     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19018 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19019    { (exit 1); exit 1; }; }
19020   fi
19021   case $CONFIG_SHELL in
19022   '')
19023     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19025 do
19026   IFS=$as_save_IFS
19027   test -z "$as_dir" && as_dir=.
19028   for as_base in sh bash ksh sh5; do
19029          case $as_dir in
19030          /*)
19031            if ("$as_dir/$as_base" -c '
19032   as_lineno_1=$LINENO
19033   as_lineno_2=$LINENO
19034   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19035   test "x$as_lineno_1" != "x$as_lineno_2" &&
19036   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19037              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19038              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19039              CONFIG_SHELL=$as_dir/$as_base
19040              export CONFIG_SHELL
19041              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19042            fi;;
19043          esac
19044        done
19045 done
19046 ;;
19047   esac
19048
19049   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19050   # uniformly replaced by the line number.  The first 'sed' inserts a
19051   # line-number line before each line; the second 'sed' does the real
19052   # work.  The second script uses 'N' to pair each line-number line
19053   # with the numbered line, and appends trailing '-' during
19054   # substitution so that $LINENO is not a special case at line end.
19055   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19056   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19057   sed '=' <$as_myself |
19058     sed '
19059       N
19060       s,$,-,
19061       : loop
19062       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19063       t loop
19064       s,-$,,
19065       s,^['$as_cr_digits']*\n,,
19066     ' >$as_me.lineno &&
19067   chmod +x $as_me.lineno ||
19068     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19069 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19070    { (exit 1); exit 1; }; }
19071
19072   # Don't try to exec as it changes $[0], causing all sort of problems
19073   # (the dirname of $[0] is not the place where we might find the
19074   # original and so on.  Autoconf is especially sensible to this).
19075   . ./$as_me.lineno
19076   # Exit status is that of the last command.
19077   exit
19078 }
19079
19080
19081 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19082   *c*,-n*) ECHO_N= ECHO_C='
19083 ' ECHO_T='      ' ;;
19084   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19085   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19086 esac
19087
19088 if expr a : '\(a\)' >/dev/null 2>&1; then
19089   as_expr=expr
19090 else
19091   as_expr=false
19092 fi
19093
19094 rm -f conf$$ conf$$.exe conf$$.file
19095 echo >conf$$.file
19096 if ln -s conf$$.file conf$$ 2>/dev/null; then
19097   # We could just check for DJGPP; but this test a) works b) is more generic
19098   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19099   if test -f conf$$.exe; then
19100     # Don't use ln at all; we don't have any links
19101     as_ln_s='cp -p'
19102   else
19103     as_ln_s='ln -s'
19104   fi
19105 elif ln conf$$.file conf$$ 2>/dev/null; then
19106   as_ln_s=ln
19107 else
19108   as_ln_s='cp -p'
19109 fi
19110 rm -f conf$$ conf$$.exe conf$$.file
19111
19112 if mkdir -p . 2>/dev/null; then
19113   as_mkdir_p=:
19114 else
19115   as_mkdir_p=false
19116 fi
19117
19118 as_executable_p="test -f"
19119
19120 # Sed expression to map a string onto a valid CPP name.
19121 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19122
19123 # Sed expression to map a string onto a valid variable name.
19124 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19125
19126
19127 # IFS
19128 # We need space, tab and new line, in precisely that order.
19129 as_nl='
19130 '
19131 IFS="   $as_nl"
19132
19133 # CDPATH.
19134 $as_unset CDPATH
19135
19136 exec 6>&1
19137
19138 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19139 # report actual input values of CONFIG_FILES etc. instead of their
19140 # values after options handling.  Logging --version etc. is OK.
19141 exec 5>>config.log
19142 {
19143   echo
19144   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19145 ## Running $as_me. ##
19146 _ASBOX
19147 } >&5
19148 cat >&5 <<_CSEOF
19149
19150 This file was extended by $as_me, which was
19151 generated by GNU Autoconf 2.57.  Invocation command line was
19152
19153   CONFIG_FILES    = $CONFIG_FILES
19154   CONFIG_HEADERS  = $CONFIG_HEADERS
19155   CONFIG_LINKS    = $CONFIG_LINKS
19156   CONFIG_COMMANDS = $CONFIG_COMMANDS
19157   $ $0 $@
19158
19159 _CSEOF
19160 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19161 echo >&5
19162 _ACEOF
19163
19164 # Files that config.status was made for.
19165 if test -n "$ac_config_files"; then
19166   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19167 fi
19168
19169 if test -n "$ac_config_headers"; then
19170   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19171 fi
19172
19173 if test -n "$ac_config_links"; then
19174   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19175 fi
19176
19177 if test -n "$ac_config_commands"; then
19178   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19179 fi
19180
19181 cat >>$CONFIG_STATUS <<\_ACEOF
19182
19183 ac_cs_usage="\
19184 \`$as_me' instantiates files from templates according to the
19185 current configuration.
19186
19187 Usage: $0 [OPTIONS] [FILE]...
19188
19189   -h, --help       print this help, then exit
19190   -V, --version    print version number, then exit
19191   -q, --quiet      do not print progress messages
19192   -d, --debug      don't remove temporary files
19193       --recheck    update $as_me by reconfiguring in the same conditions
19194   --file=FILE[:TEMPLATE]
19195                    instantiate the configuration file FILE
19196   --header=FILE[:TEMPLATE]
19197                    instantiate the configuration header FILE
19198
19199 Configuration files:
19200 $config_files
19201
19202 Configuration headers:
19203 $config_headers
19204
19205 Configuration commands:
19206 $config_commands
19207
19208 Report bugs to <bug-autoconf@gnu.org>."
19209 _ACEOF
19210
19211 cat >>$CONFIG_STATUS <<_ACEOF
19212 ac_cs_version="\\
19213 config.status
19214 configured by $0, generated by GNU Autoconf 2.57,
19215   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19216
19217 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19218 Free Software Foundation, Inc.
19219 This config.status script is free software; the Free Software Foundation
19220 gives unlimited permission to copy, distribute and modify it."
19221 srcdir=$srcdir
19222 INSTALL="$INSTALL"
19223 _ACEOF
19224
19225 cat >>$CONFIG_STATUS <<\_ACEOF
19226 # If no file are specified by the user, then we need to provide default
19227 # value.  By we need to know if files were specified by the user.
19228 ac_need_defaults=:
19229 while test $# != 0
19230 do
19231   case $1 in
19232   --*=*)
19233     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19234     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19235     ac_shift=:
19236     ;;
19237   -*)
19238     ac_option=$1
19239     ac_optarg=$2
19240     ac_shift=shift
19241     ;;
19242   *) # This is not an option, so the user has probably given explicit
19243      # arguments.
19244      ac_option=$1
19245      ac_need_defaults=false;;
19246   esac
19247
19248   case $ac_option in
19249   # Handling of the options.
19250 _ACEOF
19251 cat >>$CONFIG_STATUS <<\_ACEOF
19252   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19253     ac_cs_recheck=: ;;
19254   --version | --vers* | -V )
19255     echo "$ac_cs_version"; exit 0 ;;
19256   --he | --h)
19257     # Conflict between --help and --header
19258     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19259 Try \`$0 --help' for more information." >&5
19260 echo "$as_me: error: ambiguous option: $1
19261 Try \`$0 --help' for more information." >&2;}
19262    { (exit 1); exit 1; }; };;
19263   --help | --hel | -h )
19264     echo "$ac_cs_usage"; exit 0 ;;
19265   --debug | --d* | -d )
19266     debug=: ;;
19267   --file | --fil | --fi | --f )
19268     $ac_shift
19269     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19270     ac_need_defaults=false;;
19271   --header | --heade | --head | --hea )
19272     $ac_shift
19273     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19274     ac_need_defaults=false;;
19275   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19276   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19277     ac_cs_silent=: ;;
19278
19279   # This is an error.
19280   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19281 Try \`$0 --help' for more information." >&5
19282 echo "$as_me: error: unrecognized option: $1
19283 Try \`$0 --help' for more information." >&2;}
19284    { (exit 1); exit 1; }; } ;;
19285
19286   *) ac_config_targets="$ac_config_targets $1" ;;
19287
19288   esac
19289   shift
19290 done
19291
19292 ac_configure_extra_args=
19293
19294 if $ac_cs_silent; then
19295   exec 6>/dev/null
19296   ac_configure_extra_args="$ac_configure_extra_args --silent"
19297 fi
19298
19299 _ACEOF
19300 cat >>$CONFIG_STATUS <<_ACEOF
19301 if \$ac_cs_recheck; then
19302   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19303   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19304 fi
19305
19306 _ACEOF
19307
19308
19309
19310
19311
19312 cat >>$CONFIG_STATUS <<\_ACEOF
19313 for ac_config_target in $ac_config_targets
19314 do
19315   case "$ac_config_target" in
19316   # Handling of arguments.
19317   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19318   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19319   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19320   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19321   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19322   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19323   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19324   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19325   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19326   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19327   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19328   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19329   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19330   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19331   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19332   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19333   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19334   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19335   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19336   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19337   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19338   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19339   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19340   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19341   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19342   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19343   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19344   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19345   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19346   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19347   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19348   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19349   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19350   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19351   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19352   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19353   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19354   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19355   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19356   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19357   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19358   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19359   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19360   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19361   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19362   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19363   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19364   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19365   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19366   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19367   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19368   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19369   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19370   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19371   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19372   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19373   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19374   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19375   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19376   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19377   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19378   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19379   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19380   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19381   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19382   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19383   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19384   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19385   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19386   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19387   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19388   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19389   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19390   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19391   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19392   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19393   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19394   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19395   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19396   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19397   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19398   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19399   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19400   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19401   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19402   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19403   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19404   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19405   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19406   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19407   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19408   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19409 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19410    { (exit 1); exit 1; }; };;
19411   esac
19412 done
19413
19414 # If the user did not use the arguments to specify the items to instantiate,
19415 # then the envvar interface is used.  Set only those that are not.
19416 # We use the long form for the default assignment because of an extremely
19417 # bizarre bug on SunOS 4.1.3.
19418 if $ac_need_defaults; then
19419   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19420   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19421   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19422 fi
19423
19424 # Have a temporary directory for convenience.  Make it in the build tree
19425 # simply because there is no reason to put it here, and in addition,
19426 # creating and moving files from /tmp can sometimes cause problems.
19427 # Create a temporary directory, and hook for its removal unless debugging.
19428 $debug ||
19429 {
19430   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19431   trap '{ (exit 1); exit 1; }' 1 2 13 15
19432 }
19433
19434 # Create a (secure) tmp directory for tmp files.
19435
19436 {
19437   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19438   test -n "$tmp" && test -d "$tmp"
19439 }  ||
19440 {
19441   tmp=./confstat$$-$RANDOM
19442   (umask 077 && mkdir $tmp)
19443 } ||
19444 {
19445    echo "$me: cannot create a temporary directory in ." >&2
19446    { (exit 1); exit 1; }
19447 }
19448
19449 _ACEOF
19450
19451 cat >>$CONFIG_STATUS <<_ACEOF
19452
19453 #
19454 # CONFIG_FILES section.
19455 #
19456
19457 # No need to generate the scripts if there are no CONFIG_FILES.
19458 # This happens for instance when ./config.status config.h
19459 if test -n "\$CONFIG_FILES"; then
19460   # Protect against being on the right side of a sed subst in config.status.
19461   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19462    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19463 s,@SHELL@,$SHELL,;t t
19464 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19465 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19466 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19467 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19468 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19469 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19470 s,@exec_prefix@,$exec_prefix,;t t
19471 s,@prefix@,$prefix,;t t
19472 s,@program_transform_name@,$program_transform_name,;t t
19473 s,@bindir@,$bindir,;t t
19474 s,@sbindir@,$sbindir,;t t
19475 s,@libexecdir@,$libexecdir,;t t
19476 s,@datadir@,$datadir,;t t
19477 s,@sysconfdir@,$sysconfdir,;t t
19478 s,@sharedstatedir@,$sharedstatedir,;t t
19479 s,@localstatedir@,$localstatedir,;t t
19480 s,@libdir@,$libdir,;t t
19481 s,@includedir@,$includedir,;t t
19482 s,@oldincludedir@,$oldincludedir,;t t
19483 s,@infodir@,$infodir,;t t
19484 s,@mandir@,$mandir,;t t
19485 s,@build_alias@,$build_alias,;t t
19486 s,@host_alias@,$host_alias,;t t
19487 s,@target_alias@,$target_alias,;t t
19488 s,@DEFS@,$DEFS,;t t
19489 s,@ECHO_C@,$ECHO_C,;t t
19490 s,@ECHO_N@,$ECHO_N,;t t
19491 s,@ECHO_T@,$ECHO_T,;t t
19492 s,@LIBS@,$LIBS,;t t
19493 s,@BUILD_DIR@,$BUILD_DIR,;t t
19494 s,@TRUEPRG@,$TRUEPRG,;t t
19495 s,@FALSEPRG@,$FALSEPRG,;t t
19496 s,@VERSION@,$VERSION,;t t
19497 s,@DATE@,$DATE,;t t
19498 s,@LSMDATE@,$LSMDATE,;t t
19499 s,@CC@,$CC,;t t
19500 s,@CFLAGS@,$CFLAGS,;t t
19501 s,@LDFLAGS@,$LDFLAGS,;t t
19502 s,@CPPFLAGS@,$CPPFLAGS,;t t
19503 s,@ac_ct_CC@,$ac_ct_CC,;t t
19504 s,@EXEEXT@,$EXEEXT,;t t
19505 s,@OBJEXT@,$OBJEXT,;t t
19506 s,@CXX@,$CXX,;t t
19507 s,@CXXFLAGS@,$CXXFLAGS,;t t
19508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19509 s,@CPP@,$CPP,;t t
19510 s,@EGREP@,$EGREP,;t t
19511 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19512 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19513 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19514 s,@RANLIB@,$RANLIB,;t t
19515 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19516 s,@MV@,$MV,;t t
19517 s,@RM@,$RM,;t t
19518 s,@CP@,$CP,;t t
19519 s,@SED@,$SED,;t t
19520 s,@AWK@,$AWK,;t t
19521 s,@ECHO@,$ECHO,;t t
19522 s,@CMP@,$CMP,;t t
19523 s,@TBL@,$TBL,;t t
19524 s,@AR@,$AR,;t t
19525 s,@OPENSSL@,$OPENSSL,;t t
19526 s,@MTX@,$MTX,;t t
19527 s,@PKGCONFIG@,$PKGCONFIG,;t t
19528 s,@WXCONFIG@,$WXCONFIG,;t t
19529 s,@ARFLAGS@,$ARFLAGS,;t t
19530 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19531 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19532 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19533 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19534 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19535 s,@build@,$build,;t t
19536 s,@build_cpu@,$build_cpu,;t t
19537 s,@build_vendor@,$build_vendor,;t t
19538 s,@build_os@,$build_os,;t t
19539 s,@host@,$host,;t t
19540 s,@host_cpu@,$host_cpu,;t t
19541 s,@host_vendor@,$host_vendor,;t t
19542 s,@host_os@,$host_os,;t t
19543 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19544 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19545 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19546 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19547 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19548 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19549 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19550 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19551 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19552 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19553 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19554 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19555 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19556 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19557 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19558 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19559 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19560 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19561 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19562 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19563 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19564 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19565 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19566 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19567 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19568 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19569 s,@MSGFMT@,$MSGFMT,;t t
19570 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19571 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19572 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19573 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19574 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19575 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19576 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19577 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19578 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19579 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19580 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19581 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19582 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19583 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19584 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19585 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19586 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19587 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19588 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19589 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19590 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19591 s,@GNOME_DIR@,$GNOME_DIR,;t t
19592 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19593 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19594 s,@WX_DIR@,$WX_DIR,;t t
19595 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19596 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19597 s,@STATIC_FD@,$STATIC_FD,;t t
19598 s,@STATIC_SD@,$STATIC_SD,;t t
19599 s,@STATIC_DIR@,$STATIC_DIR,;t t
19600 s,@STATIC_CONS@,$STATIC_CONS,;t t
19601 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19602 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19603 s,@ALL_DIRS@,$ALL_DIRS,;t t
19604 s,@CONS_INC@,$CONS_INC,;t t
19605 s,@CONS_OBJ@,$CONS_OBJ,;t t
19606 s,@CONS_SRC@,$CONS_SRC,;t t
19607 s,@CONS_LIBS@,$CONS_LIBS,;t t
19608 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19609 s,@READLINE_SRC@,$READLINE_SRC,;t t
19610 s,@working_dir@,$working_dir,;t t
19611 s,@scriptdir@,$scriptdir,;t t
19612 s,@dump_email@,$dump_email,;t t
19613 s,@job_email@,$job_email,;t t
19614 s,@smtp_host@,$smtp_host,;t t
19615 s,@piddir@,$piddir,;t t
19616 s,@subsysdir@,$subsysdir,;t t
19617 s,@baseport@,$baseport,;t t
19618 s,@dir_port@,$dir_port,;t t
19619 s,@fd_port@,$fd_port,;t t
19620 s,@sd_port@,$sd_port,;t t
19621 s,@dir_password@,$dir_password,;t t
19622 s,@fd_password@,$fd_password,;t t
19623 s,@sd_password@,$sd_password,;t t
19624 s,@dir_user@,$dir_user,;t t
19625 s,@dir_group@,$dir_group,;t t
19626 s,@sd_user@,$sd_user,;t t
19627 s,@sd_group@,$sd_group,;t t
19628 s,@fd_user@,$fd_user,;t t
19629 s,@fd_group@,$fd_group,;t t
19630 s,@SBINPERM@,$SBINPERM,;t t
19631 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19632 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19633 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19634 s,@cats@,$cats,;t t
19635 s,@DB_NAME@,$DB_NAME,;t t
19636 s,@GETCONF@,$GETCONF,;t t
19637 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19638 s,@X_CFLAGS@,$X_CFLAGS,;t t
19639 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19640 s,@X_LIBS@,$X_LIBS,;t t
19641 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19642 s,@LIBOBJS@,$LIBOBJS,;t t
19643 s,@ALLOCA@,$ALLOCA,;t t
19644 s,@FDLIBS@,$FDLIBS,;t t
19645 s,@DEBUG@,$DEBUG,;t t
19646 s,@DINCLUDE@,$DINCLUDE,;t t
19647 s,@DLIB@,$DLIB,;t t
19648 s,@DB_LIBS@,$DB_LIBS,;t t
19649 s,@WCFLAGS@,$WCFLAGS,;t t
19650 s,@WLDFLAGS@,$WLDFLAGS,;t t
19651 s,@OBJLIST@,$OBJLIST,;t t
19652 s,@hostname@,$hostname,;t t
19653 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19654 s,@PSCMD@,$PSCMD,;t t
19655 s,@WIN32@,$WIN32,;t t
19656 s,@MACOSX@,$MACOSX,;t t
19657 s,@DISTNAME@,$DISTNAME,;t t
19658 s,@DISTVER@,$DISTVER,;t t
19659 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19660 /@MCOMMON@/r $MCOMMON
19661 s,@MCOMMON@,,;t t
19662 CEOF
19663
19664 _ACEOF
19665
19666   cat >>$CONFIG_STATUS <<\_ACEOF
19667   # Split the substitutions into bite-sized pieces for seds with
19668   # small command number limits, like on Digital OSF/1 and HP-UX.
19669   ac_max_sed_lines=48
19670   ac_sed_frag=1 # Number of current file.
19671   ac_beg=1 # First line for current file.
19672   ac_end=$ac_max_sed_lines # Line after last line for current file.
19673   ac_more_lines=:
19674   ac_sed_cmds=
19675   while $ac_more_lines; do
19676     if test $ac_beg -gt 1; then
19677       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19678     else
19679       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19680     fi
19681     if test ! -s $tmp/subs.frag; then
19682       ac_more_lines=false
19683     else
19684       # The purpose of the label and of the branching condition is to
19685       # speed up the sed processing (if there are no `@' at all, there
19686       # is no need to browse any of the substitutions).
19687       # These are the two extra sed commands mentioned above.
19688       (echo ':t
19689   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19690       if test -z "$ac_sed_cmds"; then
19691         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19692       else
19693         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19694       fi
19695       ac_sed_frag=`expr $ac_sed_frag + 1`
19696       ac_beg=$ac_end
19697       ac_end=`expr $ac_end + $ac_max_sed_lines`
19698     fi
19699   done
19700   if test -z "$ac_sed_cmds"; then
19701     ac_sed_cmds=cat
19702   fi
19703 fi # test -n "$CONFIG_FILES"
19704
19705 _ACEOF
19706 cat >>$CONFIG_STATUS <<\_ACEOF
19707 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19708   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19709   case $ac_file in
19710   - | *:- | *:-:* ) # input from stdin
19711         cat >$tmp/stdin
19712         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19713         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19714   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19715         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19716   * )   ac_file_in=$ac_file.in ;;
19717   esac
19718
19719   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19720   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19722          X"$ac_file" : 'X\(//\)[^/]' \| \
19723          X"$ac_file" : 'X\(//\)$' \| \
19724          X"$ac_file" : 'X\(/\)' \| \
19725          .     : '\(.\)' 2>/dev/null ||
19726 echo X"$ac_file" |
19727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19728           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19729           /^X\(\/\/\)$/{ s//\1/; q; }
19730           /^X\(\/\).*/{ s//\1/; q; }
19731           s/.*/./; q'`
19732   { if $as_mkdir_p; then
19733     mkdir -p "$ac_dir"
19734   else
19735     as_dir="$ac_dir"
19736     as_dirs=
19737     while test ! -d "$as_dir"; do
19738       as_dirs="$as_dir $as_dirs"
19739       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19741          X"$as_dir" : 'X\(//\)[^/]' \| \
19742          X"$as_dir" : 'X\(//\)$' \| \
19743          X"$as_dir" : 'X\(/\)' \| \
19744          .     : '\(.\)' 2>/dev/null ||
19745 echo X"$as_dir" |
19746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19747           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19748           /^X\(\/\/\)$/{ s//\1/; q; }
19749           /^X\(\/\).*/{ s//\1/; q; }
19750           s/.*/./; q'`
19751     done
19752     test ! -n "$as_dirs" || mkdir $as_dirs
19753   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19754 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19755    { (exit 1); exit 1; }; }; }
19756
19757   ac_builddir=.
19758
19759 if test "$ac_dir" != .; then
19760   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19761   # A "../" for each directory in $ac_dir_suffix.
19762   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19763 else
19764   ac_dir_suffix= ac_top_builddir=
19765 fi
19766
19767 case $srcdir in
19768   .)  # No --srcdir option.  We are building in place.
19769     ac_srcdir=.
19770     if test -z "$ac_top_builddir"; then
19771        ac_top_srcdir=.
19772     else
19773        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19774     fi ;;
19775   [\\/]* | ?:[\\/]* )  # Absolute path.
19776     ac_srcdir=$srcdir$ac_dir_suffix;
19777     ac_top_srcdir=$srcdir ;;
19778   *) # Relative path.
19779     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19780     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19781 esac
19782 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19783 # absolute.
19784 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19785 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19786 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19787 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19788
19789
19790   case $INSTALL in
19791   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19792   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19793   esac
19794
19795   if test x"$ac_file" != x-; then
19796     { echo "$as_me:$LINENO: creating $ac_file" >&5
19797 echo "$as_me: creating $ac_file" >&6;}
19798     rm -f "$ac_file"
19799   fi
19800   # Let's still pretend it is `configure' which instantiates (i.e., don't
19801   # use $as_me), people would be surprised to read:
19802   #    /* config.h.  Generated by config.status.  */
19803   if test x"$ac_file" = x-; then
19804     configure_input=
19805   else
19806     configure_input="$ac_file.  "
19807   fi
19808   configure_input=$configure_input"Generated from `echo $ac_file_in |
19809                                      sed 's,.*/,,'` by configure."
19810
19811   # First look for the input files in the build tree, otherwise in the
19812   # src tree.
19813   ac_file_inputs=`IFS=:
19814     for f in $ac_file_in; do
19815       case $f in
19816       -) echo $tmp/stdin ;;
19817       [\\/$]*)
19818          # Absolute (can't be DOS-style, as IFS=:)
19819          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19820 echo "$as_me: error: cannot find input file: $f" >&2;}
19821    { (exit 1); exit 1; }; }
19822          echo $f;;
19823       *) # Relative
19824          if test -f "$f"; then
19825            # Build tree
19826            echo $f
19827          elif test -f "$srcdir/$f"; then
19828            # Source tree
19829            echo $srcdir/$f
19830          else
19831            # /dev/null tree
19832            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19833 echo "$as_me: error: cannot find input file: $f" >&2;}
19834    { (exit 1); exit 1; }; }
19835          fi;;
19836       esac
19837     done` || { (exit 1); exit 1; }
19838 _ACEOF
19839 cat >>$CONFIG_STATUS <<_ACEOF
19840   sed "$ac_vpsub
19841 $extrasub
19842 _ACEOF
19843 cat >>$CONFIG_STATUS <<\_ACEOF
19844 :t
19845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19846 s,@configure_input@,$configure_input,;t t
19847 s,@srcdir@,$ac_srcdir,;t t
19848 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19849 s,@top_srcdir@,$ac_top_srcdir,;t t
19850 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19851 s,@builddir@,$ac_builddir,;t t
19852 s,@abs_builddir@,$ac_abs_builddir,;t t
19853 s,@top_builddir@,$ac_top_builddir,;t t
19854 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19855 s,@INSTALL@,$ac_INSTALL,;t t
19856 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19857   rm -f $tmp/stdin
19858   if test x"$ac_file" != x-; then
19859     mv $tmp/out $ac_file
19860   else
19861     cat $tmp/out
19862     rm -f $tmp/out
19863   fi
19864
19865 done
19866 _ACEOF
19867 cat >>$CONFIG_STATUS <<\_ACEOF
19868
19869 #
19870 # CONFIG_HEADER section.
19871 #
19872
19873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19875 #
19876 # ac_d sets the value in "#define NAME VALUE" lines.
19877 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19878 ac_dB='[        ].*$,\1#\2'
19879 ac_dC=' '
19880 ac_dD=',;t'
19881 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19882 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19883 ac_uB='$,\1#\2define\3'
19884 ac_uC=' '
19885 ac_uD=',;t'
19886
19887 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19888   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19889   case $ac_file in
19890   - | *:- | *:-:* ) # input from stdin
19891         cat >$tmp/stdin
19892         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19893         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19894   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19895         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19896   * )   ac_file_in=$ac_file.in ;;
19897   esac
19898
19899   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19900 echo "$as_me: creating $ac_file" >&6;}
19901
19902   # First look for the input files in the build tree, otherwise in the
19903   # src tree.
19904   ac_file_inputs=`IFS=:
19905     for f in $ac_file_in; do
19906       case $f in
19907       -) echo $tmp/stdin ;;
19908       [\\/$]*)
19909          # Absolute (can't be DOS-style, as IFS=:)
19910          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19911 echo "$as_me: error: cannot find input file: $f" >&2;}
19912    { (exit 1); exit 1; }; }
19913          echo $f;;
19914       *) # Relative
19915          if test -f "$f"; then
19916            # Build tree
19917            echo $f
19918          elif test -f "$srcdir/$f"; then
19919            # Source tree
19920            echo $srcdir/$f
19921          else
19922            # /dev/null tree
19923            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19924 echo "$as_me: error: cannot find input file: $f" >&2;}
19925    { (exit 1); exit 1; }; }
19926          fi;;
19927       esac
19928     done` || { (exit 1); exit 1; }
19929   # Remove the trailing spaces.
19930   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19931
19932 _ACEOF
19933
19934 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19935 # `conftest.undefs', that substitutes the proper values into
19936 # config.h.in to produce config.h.  The first handles `#define'
19937 # templates, and the second `#undef' templates.
19938 # And first: Protect against being on the right side of a sed subst in
19939 # config.status.  Protect against being in an unquoted here document
19940 # in config.status.
19941 rm -f conftest.defines conftest.undefs
19942 # Using a here document instead of a string reduces the quoting nightmare.
19943 # Putting comments in sed scripts is not portable.
19944 #
19945 # `end' is used to avoid that the second main sed command (meant for
19946 # 0-ary CPP macros) applies to n-ary macro definitions.
19947 # See the Autoconf documentation for `clear'.
19948 cat >confdef2sed.sed <<\_ACEOF
19949 s/[\\&,]/\\&/g
19950 s,[\\$`],\\&,g
19951 t clear
19952 : clear
19953 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19954 t end
19955 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19956 : end
19957 _ACEOF
19958 # If some macros were called several times there might be several times
19959 # the same #defines, which is useless.  Nevertheless, we may not want to
19960 # sort them, since we want the *last* AC-DEFINE to be honored.
19961 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19962 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19963 rm -f confdef2sed.sed
19964
19965 # This sed command replaces #undef with comments.  This is necessary, for
19966 # example, in the case of _POSIX_SOURCE, which is predefined and required
19967 # on some systems where configure will not decide to define it.
19968 cat >>conftest.undefs <<\_ACEOF
19969 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19970 _ACEOF
19971
19972 # Break up conftest.defines because some shells have a limit on the size
19973 # of here documents, and old seds have small limits too (100 cmds).
19974 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19975 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19976 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19977 echo '  :' >>$CONFIG_STATUS
19978 rm -f conftest.tail
19979 while grep . conftest.defines >/dev/null
19980 do
19981   # Write a limited-size here document to $tmp/defines.sed.
19982   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19983   # Speed up: don't consider the non `#define' lines.
19984   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19985   # Work around the forget-to-reset-the-flag bug.
19986   echo 't clr' >>$CONFIG_STATUS
19987   echo ': clr' >>$CONFIG_STATUS
19988   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19989   echo 'CEOF
19990   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19991   rm -f $tmp/in
19992   mv $tmp/out $tmp/in
19993 ' >>$CONFIG_STATUS
19994   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19995   rm -f conftest.defines
19996   mv conftest.tail conftest.defines
19997 done
19998 rm -f conftest.defines
19999 echo '  fi # grep' >>$CONFIG_STATUS
20000 echo >>$CONFIG_STATUS
20001
20002 # Break up conftest.undefs because some shells have a limit on the size
20003 # of here documents, and old seds have small limits too (100 cmds).
20004 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20005 rm -f conftest.tail
20006 while grep . conftest.undefs >/dev/null
20007 do
20008   # Write a limited-size here document to $tmp/undefs.sed.
20009   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20010   # Speed up: don't consider the non `#undef'
20011   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20012   # Work around the forget-to-reset-the-flag bug.
20013   echo 't clr' >>$CONFIG_STATUS
20014   echo ': clr' >>$CONFIG_STATUS
20015   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20016   echo 'CEOF
20017   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20018   rm -f $tmp/in
20019   mv $tmp/out $tmp/in
20020 ' >>$CONFIG_STATUS
20021   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20022   rm -f conftest.undefs
20023   mv conftest.tail conftest.undefs
20024 done
20025 rm -f conftest.undefs
20026
20027 cat >>$CONFIG_STATUS <<\_ACEOF
20028   # Let's still pretend it is `configure' which instantiates (i.e., don't
20029   # use $as_me), people would be surprised to read:
20030   #    /* config.h.  Generated by config.status.  */
20031   if test x"$ac_file" = x-; then
20032     echo "/* Generated by configure.  */" >$tmp/config.h
20033   else
20034     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20035   fi
20036   cat $tmp/in >>$tmp/config.h
20037   rm -f $tmp/in
20038   if test x"$ac_file" != x-; then
20039     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20040       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20041 echo "$as_me: $ac_file is unchanged" >&6;}
20042     else
20043       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20045          X"$ac_file" : 'X\(//\)[^/]' \| \
20046          X"$ac_file" : 'X\(//\)$' \| \
20047          X"$ac_file" : 'X\(/\)' \| \
20048          .     : '\(.\)' 2>/dev/null ||
20049 echo X"$ac_file" |
20050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20052           /^X\(\/\/\)$/{ s//\1/; q; }
20053           /^X\(\/\).*/{ s//\1/; q; }
20054           s/.*/./; q'`
20055       { if $as_mkdir_p; then
20056     mkdir -p "$ac_dir"
20057   else
20058     as_dir="$ac_dir"
20059     as_dirs=
20060     while test ! -d "$as_dir"; do
20061       as_dirs="$as_dir $as_dirs"
20062       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20064          X"$as_dir" : 'X\(//\)[^/]' \| \
20065          X"$as_dir" : 'X\(//\)$' \| \
20066          X"$as_dir" : 'X\(/\)' \| \
20067          .     : '\(.\)' 2>/dev/null ||
20068 echo X"$as_dir" |
20069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20070           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20071           /^X\(\/\/\)$/{ s//\1/; q; }
20072           /^X\(\/\).*/{ s//\1/; q; }
20073           s/.*/./; q'`
20074     done
20075     test ! -n "$as_dirs" || mkdir $as_dirs
20076   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20078    { (exit 1); exit 1; }; }; }
20079
20080       rm -f $ac_file
20081       mv $tmp/config.h $ac_file
20082     fi
20083   else
20084     cat $tmp/config.h
20085     rm -f $tmp/config.h
20086   fi
20087 done
20088 _ACEOF
20089 cat >>$CONFIG_STATUS <<\_ACEOF
20090
20091 #
20092 # CONFIG_COMMANDS section.
20093 #
20094 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20095   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20096   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20097   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20098 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20099          X"$ac_dest" : 'X\(//\)[^/]' \| \
20100          X"$ac_dest" : 'X\(//\)$' \| \
20101          X"$ac_dest" : 'X\(/\)' \| \
20102          .     : '\(.\)' 2>/dev/null ||
20103 echo X"$ac_dest" |
20104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20106           /^X\(\/\/\)$/{ s//\1/; q; }
20107           /^X\(\/\).*/{ s//\1/; q; }
20108           s/.*/./; q'`
20109   ac_builddir=.
20110
20111 if test "$ac_dir" != .; then
20112   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20113   # A "../" for each directory in $ac_dir_suffix.
20114   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20115 else
20116   ac_dir_suffix= ac_top_builddir=
20117 fi
20118
20119 case $srcdir in
20120   .)  # No --srcdir option.  We are building in place.
20121     ac_srcdir=.
20122     if test -z "$ac_top_builddir"; then
20123        ac_top_srcdir=.
20124     else
20125        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20126     fi ;;
20127   [\\/]* | ?:[\\/]* )  # Absolute path.
20128     ac_srcdir=$srcdir$ac_dir_suffix;
20129     ac_top_srcdir=$srcdir ;;
20130   *) # Relative path.
20131     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20132     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20133 esac
20134 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20135 # absolute.
20136 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20137 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20138 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20139 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20140
20141
20142   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20143 echo "$as_me: executing $ac_dest commands" >&6;}
20144   case $ac_dest in
20145     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20146  ;;
20147   esac
20148 done
20149 _ACEOF
20150
20151 cat >>$CONFIG_STATUS <<\_ACEOF
20152
20153 { (exit 0); exit 0; }
20154 _ACEOF
20155 chmod +x $CONFIG_STATUS
20156 ac_clean_files=$ac_clean_files_save
20157
20158
20159 # configure is writing to config.log, and then calls config.status.
20160 # config.status does its own redirection, appending to config.log.
20161 # Unfortunately, on DOS this fails, as config.log is still kept open
20162 # by configure, so config.status won't be able to write to it; its
20163 # output is simply discarded.  So we exec the FD to /dev/null,
20164 # effectively closing config.log, so it can be properly (re)opened and
20165 # appended to by config.status.  When coming back to configure, we
20166 # need to make the FD available again.
20167 if test "$no_create" != yes; then
20168   ac_cs_success=:
20169   ac_config_status_args=
20170   test "$silent" = yes &&
20171     ac_config_status_args="$ac_config_status_args --quiet"
20172   exec 5>/dev/null
20173   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20174   exec 5>>config.log
20175   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20176   # would make configure fail if this is the last instruction.
20177   $ac_cs_success || { (exit 1); exit 1; }
20178 fi
20179
20180
20181 cd scripts
20182 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20183 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20184 cd ..
20185
20186 c=src/cats
20187
20188 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20189 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20190
20191 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20192 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20193
20194 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20195 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20196
20197 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20198 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20199
20200 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20201 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20202
20203 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20204 chmod 755 $c/sqlite
20205 chmod 755 $c/mysql
20206
20207 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20208    largefile_support="yes"
20209 fi
20210
20211 #
20212 # A whole lot of hand springs to get the compiler version.
20213 #  This is because gcc changed the output in version 3.0
20214 #
20215 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20216 if test "x${CCVERSION}" = "x" ; then
20217   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20218 fi
20219 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20220 if test x"${CXXVERSION}" = x ; then
20221   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20222 fi
20223
20224 if test "x${subsysdir}" = "x${sbindir}" ; then
20225    echo " "
20226    echo " "
20227    echo "You have set --sbindir and --with-subsys-dir"
20228    echo "  both equal to: ${subsysdir} "
20229    echo "  This is not permitted. Please reconfigure."
20230    echo " "
20231    echo "Aborting configuration ..."
20232    echo " "
20233    echo " "
20234    exit 1
20235 fi
20236
20237 if test "x${db_name}" = "xInternal" ; then
20238    echo " "
20239    echo " "
20240    echo "You have not specified either --enable-client-only or one of the"
20241    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20242    echo "  This is not permitted. Please reconfigure."
20243    echo " "
20244    echo "Aborting the configuration ..."
20245    echo " "
20246    echo " "
20247    exit 1
20248 fi
20249
20250 echo "
20251 Configuration on `date`:
20252
20253   Host:                       $host -- ${DISTNAME} ${DISTVER}
20254   Bacula version:             ${VERSION} (${DATE})
20255   Source code location:       ${srcdir}
20256   Install binaries:           ${sbindir}
20257   Install config files:       ${sysconfdir}
20258   Scripts directory:          ${scriptdir}
20259   Working directory:          ${working_dir}
20260   PID directory:              ${piddir}
20261   Subsys directory:           ${subsysdir}
20262   C Compiler:                 ${CC} ${CCVERSION}
20263   C++ Compiler:               ${CXX} ${CXXVERSION}
20264   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20265   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20266   Libraries:                  ${LIBS}
20267   Statically Linked Tools:    ${support_static_tools}
20268   Statically Linked FD:       ${support_static_fd}
20269   Statically Linked SD:       ${support_static_sd}
20270   Statically Linked DIR:      ${support_static_dir}
20271   Statically Linked CONS:     ${support_static_cons}
20272   Database type:              ${db_name}
20273   Database lib:               ${DB_LIBS}
20274
20275   Job Output Email:           ${job_email}
20276   Traceback Email:            ${dump_email}
20277   SMTP Host Address:          ${smtp_host}
20278
20279   Director Port:              ${dir_port}
20280   File daemon Port:           ${fd_port}
20281   Storage daemon Port:        ${sd_port}
20282
20283   Director User:              ${dir_user}
20284   Director Group:             ${dir_group}
20285   Storage Daemon User:        ${sd_user}
20286   Storage DaemonGroup:        ${sd_group}
20287   File Daemon User:           ${fd_user}
20288   File Daemon Group:          ${fd_group}
20289
20290   SQL binaries Directory      ${SQL_BINDIR}
20291
20292   Large file support:         $largefile_support
20293   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20294   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20295   TCP Wrappers support:       ${TCPW_MSG}
20296   ZLIB support:               ${have_zlib}
20297   enable-smartalloc:          ${support_smartalloc}
20298   enable-gnome:               ${support_gnome} ${gnome_version}
20299   enable-wx-console:          ${support_wx_console}
20300   enable-tray-monitor:        ${support_tray_monitor}
20301   client-only:                ${build_client_only}
20302   ACL support:                ${have_acl}
20303
20304   " > config.out
20305
20306 cat config.out
20307
20308 # old stuff
20309 # cweb support:               ${got_cweb} ${CWEB_SRC}
20310   # gmp support:                      ${got_gmp} ${GMP_SRC}