]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add regex to FileSet + fix ACL crash + gnome1 Makefile + 30 second retry for DB
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $OPENSSL in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3601   ;;
3602 esac
3603 fi
3604 OPENSSL=$ac_cv_path_OPENSSL
3605
3606 if test -n "$OPENSSL"; then
3607   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $MTX in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3641   ;;
3642 esac
3643 fi
3644 MTX=$ac_cv_path_MTX
3645
3646 if test -n "$MTX"; then
3647   echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $PKGCONFIG in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3681   ;;
3682 esac
3683 fi
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3685
3686 if test -n "$PKGCONFIG"; then
3687   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $WXCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3721   ;;
3722 esac
3723 fi
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3725
3726 if test -n "$WXCONFIG"; then
3727   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3736
3737
3738 MAKE_SHELL=/bin/sh
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761   ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765    { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769    { (exit 1); exit 1; }; }
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3774 build=$ac_cv_build
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778
3779
3780 echo "$as_me:$LINENO: checking for Operating System" >&5
3781 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
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 echo "$as_me:$LINENO: result: \" \"" >&5
4134 echo "${ECHO_T}\" \"" >&6
4135
4136
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4142 then
4143         echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 then
4146         DISTNAME=alpha
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 then
4149         DISTNAME=aix
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 then
4152         DISTNAME=hpux
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 then
4155         DISTNAME=solaris
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 then
4158         DISTNAME=freebsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 then
4161         DISTNAME=netbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 then
4164         DISTNAME=openbsd
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 then
4167         DISTNAME=irix
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 then
4170         DISTNAME=bsdi
4171 elif test -f /etc/SuSE-release
4172 then
4173         DISTNAME=suse
4174 elif test -d /etc/SuSEconfig
4175 then
4176         DISTNAME=suse5
4177 elif test -f /etc/mandrake-release
4178 then
4179         DISTNAME=mandrake
4180 elif test -f /etc/whitebox-release
4181 then
4182        DISTNAME=redhat
4183 elif test -f /etc/redhat-release
4184 then
4185         DISTNAME=redhat
4186 elif test -f /etc/gentoo-release
4187 then
4188         DISTNAME=gentoo
4189 elif test -f /etc/debian_version
4190 then
4191         DISTNAME=debian
4192 elif test -f /etc/slackware-version
4193 then
4194         DISTNAME=slackware
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4196 then
4197     DISTNAME=darwin
4198 elif test -f /etc/engarde-version
4199 then
4200         DISTNAME=engarde
4201 elif test "$CYGWIN" = yes
4202 then
4203         DISTNAME=cygwin
4204         cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_CYGWIN 1
4206 _ACEOF
4207
4208 else
4209         DISTNAME=unknown
4210 fi
4211 echo "$as_me:$LINENO: result: \" \"" >&5
4212 echo "${ECHO_T}\" \"" >&6
4213
4214
4215 # -----------------------------------------------------------
4216 # ----------------------------------------------------------
4217
4218
4219
4220 if false; then
4221   INSIDE_GNOME_COMMON_TRUE=
4222   INSIDE_GNOME_COMMON_FALSE='#'
4223 else
4224   INSIDE_GNOME_COMMON_TRUE='#'
4225   INSIDE_GNOME_COMMON_FALSE=
4226 fi
4227
4228         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4229
4230         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4231
4232
4233 # ------------------------------------------------------------------
4234 #  If the user has not set --prefix, we set our default to nothing.
4235 #  In this case, if the user has not set --sysconfdir, we set it
4236 #  to the package default of /etc/bacula.  If either --prefix or
4237 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4238 # ------------------------------------------------------------------
4239 if test x${prefix} = xNONE ; then
4240     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4241         sysconfdir=/etc/bacula
4242     fi
4243     prefix=
4244 fi
4245 sysconfdir=`eval echo ${sysconfdir}`
4246
4247 # -------------------------------------------------------------------------
4248 #  If the user has not set --exec-prefix, we default to ${prefix}
4249 # -------------------------------------------------------------------------
4250 if test x${exec_prefix} = xNONE ; then
4251     exec_prefix=${prefix}
4252 fi
4253
4254 # ------------------------------------------------------------------
4255 # If the user has not set --sbindir, we set our default as /sbin
4256 # ------------------------------------------------------------------
4257 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4258     sbindir=${exec_prefix}/sbin
4259 fi
4260 sbindir=`eval echo ${sbindir}`
4261
4262 # ------------------------------------------------------------------
4263 # All list of languages for which a translation exist. Each
4264 #  language is separated by a space.
4265 # ------------------------------------------------------------------
4266 ALL_LINGUAS=""
4267
4268 for ac_prog in msgfmt
4269 do
4270   # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_path_MSGFMT+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   case $MSGFMT in
4278   [\\/]* | ?:[\\/]*)
4279   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4280   ;;
4281   *)
4282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296   ;;
4297 esac
4298 fi
4299 MSGFMT=$ac_cv_path_MSGFMT
4300
4301 if test -n "$MSGFMT"; then
4302   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4303 echo "${ECHO_T}$MSGFMT" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309   test -n "$MSGFMT" && break
4310 done
4311 test -n "$MSGFMT" || MSGFMT="no"
4312
4313 if test "$MSGFMT" = "no"
4314 then
4315    echo 'msgfmt program not found, disabling NLS !'
4316    USE_NLS=no
4317    USE_INCLUDED_LIBINTL=no
4318 #else
4319 #   AM_GNU_GETTEXT
4320 fi
4321
4322
4323 support_mysql=no
4324 support_sqlite=no
4325 support_postgresql=no
4326 support_smartalloc=yes
4327 support_readline=yes
4328 support_conio=yes
4329 support_gnome=no
4330 support_wx_console=no
4331 gnome_version=
4332 support_static_tools=no
4333 support_static_fd=no
4334 support_static_sd=no
4335 support_static_dir=no
4336 support_static_cons=no
4337 build_client_only=no
4338 cats=
4339 db_name=Internal
4340 DB_NAME=bdb
4341
4342
4343 # -------------------------------------------
4344 # gnome (default off)
4345 # -------------------------------------------
4346 # Check whether --enable-gnome or --disable-gnome was given.
4347 if test "${enable_gnome+set}" = set; then
4348   enableval="$enable_gnome"
4349   if test x$enableval = xyes; then
4350     support_gnome=yes
4351   fi
4352 fi;
4353
4354 GNOME_DIR=
4355 if test x$support_gnome = xyes; then
4356   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4357   pkg=$?
4358   if test $pkg = 0; then
4359      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4360      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4361      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4362      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4363
4364
4365
4366
4367      GNOME_DIR=src/gnome2-console
4368      gnome_version="Version 2.x"
4369   else
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4382 if test "${with_gnome_includes+set}" = set; then
4383   withval="$with_gnome_includes"
4384
4385         CFLAGS="$CFLAGS -I$withval"
4386
4387 fi;
4388
4389
4390 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4391 if test "${with_gnome_libs+set}" = set; then
4392   withval="$with_gnome_libs"
4393
4394         LDFLAGS="$LDFLAGS -L$withval"
4395         gnome_prefix=$withval
4396
4397 fi;
4398
4399
4400 # Check whether --with-gnome or --without-gnome was given.
4401 if test "${with_gnome+set}" = set; then
4402   withval="$with_gnome"
4403   if test x$withval = xyes; then
4404                         want_gnome=yes
4405                                                                         :
4406                 else
4407                         if test "x$withval" = xno; then
4408                                 want_gnome=no
4409                         else
4410                                 want_gnome=yes
4411                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4412                                 CFLAGS="$CFLAGS -I$withval/include"
4413                                 gnome_prefix=$withval/lib
4414                         fi
4415                 fi
4416 else
4417   want_gnome=yes
4418 fi;
4419
4420         if test "x$want_gnome" = xyes; then
4421
4422             # Extract the first word of "gnome-config", so it can be a program name with args.
4423 set dummy gnome-config; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   case $GNOME_CONFIG in
4430   [\\/]* | ?:[\\/]*)
4431   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4432   ;;
4433   *)
4434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447
4448   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449   ;;
4450 esac
4451 fi
4452 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4453
4454 if test -n "$GNOME_CONFIG"; then
4455   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4456 echo "${ECHO_T}$GNOME_CONFIG" >&6
4457 else
4458   echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460 fi
4461
4462             if test "$GNOME_CONFIG" = "no"; then
4463               no_gnome_config="yes"
4464             else
4465               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4466 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4467               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4468                 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4470
4471
4472         # Extract the first word of "orbit-config", so it can be a program name with args.
4473 set dummy orbit-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   case $ORBIT_CONFIG in
4480   [\\/]* | ?:[\\/]*)
4481   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4482   ;;
4483   *)
4484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499   ;;
4500 esac
4501 fi
4502 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4503
4504 if test -n "$ORBIT_CONFIG"; then
4505   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4506 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512         # Extract the first word of "orbit-idl", so it can be a program name with args.
4513 set dummy orbit-idl; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   case $ORBIT_IDL in
4520   [\\/]* | ?:[\\/]*)
4521   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4522   ;;
4523   *)
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529   for ac_exec_ext in '' $ac_executable_extensions; do
4530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536 done
4537
4538   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539   ;;
4540 esac
4541 fi
4542 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4543
4544 if test -n "$ORBIT_IDL"; then
4545   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4546 echo "${ECHO_T}$ORBIT_IDL" >&6
4547 else
4548   echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550 fi
4551
4552         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4553 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4554 if test "${gnome_cv_orbit_found+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557
4558                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4559                         gnome_cv_orbit_found=no
4560                 else
4561                         gnome_cv_orbit_found=yes
4562                 fi
4563
4564 fi
4565 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4566 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4567
4568
4569 if test x$gnome_cv_orbit_found = xyes; then
4570   HAVE_ORBIT_TRUE=
4571   HAVE_ORBIT_FALSE='#'
4572 else
4573   HAVE_ORBIT_TRUE='#'
4574   HAVE_ORBIT_FALSE=
4575 fi
4576         if test x$gnome_cv_orbit_found = xyes; then
4577
4578                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4579                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580
4581
4582         else
4583                 if test xfail = xfailure; then
4584                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4585 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4586    { (exit 1); exit 1; }; }
4587                 fi
4588         fi
4589
4590         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4591 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4592 if test "${gnome_cv_gnorba_found+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595
4596                 gnome_cv_gnorba_found=no
4597                 if test x$gnome_cv_orbit_found = xyes; then
4598                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4599                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4600                         if test -n "$GNORBA_LIBS"; then
4601                                 gnome_cv_gnorba_found=yes
4602                         fi
4603                 fi
4604
4605 fi
4606 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4607 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4608
4609
4610 if test x$gnome_cv_gnorba_found = xyes; then
4611   HAVE_GNORBA_TRUE=
4612   HAVE_GNORBA_FALSE='#'
4613 else
4614   HAVE_GNORBA_TRUE='#'
4615   HAVE_GNORBA_FALSE=
4616 fi
4617         if test x$gnome_cv_orbit_found = xyes; then
4618
4619                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4620                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621
4622
4623         else
4624                 if test xfail = xfailure; then
4625                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4626 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4627    { (exit 1); exit 1; }; }
4628                 fi
4629         fi
4630
4631                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4632                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4633                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4634                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4635                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4636                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4637                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4638
4639               else
4640                 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642                 no_gnome_config="yes"
4643               fi
4644             fi
4645
4646             if test x$exec_prefix = xNONE; then
4647                 if test x$prefix = xNONE; then
4648                     gnome_prefix=$ac_default_prefix/lib
4649                 else
4650                     gnome_prefix=$prefix/lib
4651                 fi
4652             else
4653                 gnome_prefix=`eval echo \`echo $libdir\``
4654             fi
4655
4656             if test "$no_gnome_config" = "yes"; then
4657               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4658 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4659               if test -f $gnome_prefix/gnomeConf.sh; then
4660                 echo "$as_me:$LINENO: result: found" >&5
4661 echo "${ECHO_T}found" >&6
4662                 echo "loading gnome configuration from" \
4663                      "$gnome_prefix/gnomeConf.sh"
4664                 . $gnome_prefix/gnomeConf.sh
4665
4666               else
4667                 echo "$as_me:$LINENO: result: not found" >&5
4668 echo "${ECHO_T}not found" >&6
4669                 if test xfail = xfail; then
4670                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4671 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4672    { (exit 1); exit 1; }; }
4673                 fi
4674               fi
4675             fi
4676         fi
4677
4678         if test -n ""; then
4679           n=""
4680           for i in $n; do
4681             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4682 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683             case $i in
4684               applets)
4685
4686                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4687                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4689               docklets)
4690
4691                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4692                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4694               capplet)
4695
4696                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4697                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4698 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4699               *)
4700                 echo "$as_me:$LINENO: result: unknown library" >&5
4701 echo "${ECHO_T}unknown library" >&6
4702             esac
4703             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4704             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4705           done
4706         fi
4707
4708
4709      GNOME_DIR=src/gnome-console
4710      gnome_version="Version 1.4"
4711   fi
4712 fi
4713
4714
4715
4716 # -------------------------------------------
4717 # wx-console (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-wx-console or --disable-wx-console was given.
4720 if test "${enable_wx_console+set}" = set; then
4721   enableval="$enable_wx_console"
4722   if test x$enableval = xyes; then
4723     support_wx_console=yes
4724   fi
4725 fi;
4726
4727 WX_DIR=
4728 if test x$support_wx_console = xyes; then
4729   abc=`$WXCONFIG --cppflags`
4730   pkg=$?
4731   if test $pkg = 0; then
4732      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4733      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4734
4735
4736      WX_DIR=src/wx-console
4737   else
4738      echo " "
4739      echo "wx-config program not found. wx-console disabled."
4740      echo " "
4741      support_wx_console=no
4742   fi
4743 fi
4744
4745
4746
4747
4748 # -------------------------------------------
4749 # smartalloc (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4752 if test "${enable_smartalloc+set}" = set; then
4753   enableval="$enable_smartalloc"
4754   if test x$enableval = xno; then
4755     support_smartalloc=no
4756   fi
4757 fi;
4758
4759 if test x$support_smartalloc = xyes; then
4760    cat >>confdefs.h <<\_ACEOF
4761 #define SMARTALLOC 1
4762 _ACEOF
4763
4764 fi
4765
4766 # -------------------------------------------
4767 # static-tools (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-static-tools or --disable-static-tools was given.
4770 if test "${enable_static_tools+set}" = set; then
4771   enableval="$enable_static_tools"
4772   if test x$enableval = xyes; then
4773      support_static_tools=yes
4774    fi
4775 fi;
4776
4777 TTOOL_LDFLAGS=
4778 if test x$support_static_tools = xyes; then
4779    TTOOL_LDFLAGS="-static"
4780 fi
4781
4782
4783 # -------------------------------------------
4784 # static-fd    (default off)
4785 # -------------------------------------------
4786 # Check whether --enable-static-fd or --disable-static-fd was given.
4787 if test "${enable_static_fd+set}" = set; then
4788   enableval="$enable_static_fd"
4789   if test x$enableval = xyes; then
4790      support_static_fd=yes
4791    fi
4792 fi;
4793
4794 STATIC_FD=
4795 if test x$support_static_fd = xyes; then
4796    STATIC_FD="static-bacula-fd"
4797 fi
4798
4799
4800 # -------------------------------------------
4801 # static-sd    (default off)
4802 # -------------------------------------------
4803 # Check whether --enable-static-sd or --disable-static-sd was given.
4804 if test "${enable_static_sd+set}" = set; then
4805   enableval="$enable_static_sd"
4806   if test x$enableval = xyes; then
4807      support_static_sd=yes
4808    fi
4809 fi;
4810
4811 STATIC_SD=
4812 if test x$support_static_sd = xyes; then
4813    STATIC_SD="static-bacula-sd"
4814 fi
4815
4816
4817 # -------------------------------------------
4818 # static-dir   (default off)
4819 # -------------------------------------------
4820 # Check whether --enable-static-dir or --disable-static-dir was given.
4821 if test "${enable_static_dir+set}" = set; then
4822   enableval="$enable_static_dir"
4823   if test x$enableval = xyes; then
4824      support_static_dir=yes
4825    fi
4826 fi;
4827
4828 STATIC_DIR=
4829 if test x$support_static_dir = xyes; then
4830    STATIC_DIR="static-bacula-dir"
4831 fi
4832
4833
4834 # -------------------------------------------
4835 # static-cons  (default off)
4836 # -------------------------------------------
4837 # Check whether --enable-static-cons or --disable-static-cons was given.
4838 if test "${enable_static_cons+set}" = set; then
4839   enableval="$enable_static_cons"
4840   if test x$enableval = xyes; then
4841      support_static_cons=yes
4842    fi
4843 fi;
4844
4845 STATIC_CONS=
4846 STATIC_GNOME_CONS=
4847 STATIC_WX_CONS=
4848 if test x$support_static_cons = xyes; then
4849    STATIC_CONS="static-bconsole"
4850    STATIC_GNOME_CONS="static-gnome-console"
4851    STATIC_WX_CONS="static-wx-console"
4852 fi
4853
4854
4855
4856
4857 # -------------------------------------------
4858 # client_only  (default off)
4859 # -------------------------------------------
4860 # Check whether --enable-client-only or --disable-client-only was given.
4861 if test "${enable_client_only+set}" = set; then
4862   enableval="$enable_client_only"
4863   if test x$enableval = xyes; then
4864      build_client_only=yes
4865     db_name=None
4866     DB_NAME=none
4867    fi
4868 fi;
4869 if test x$build_client_only = xno; then
4870    ALL_DIRS="subdirs"
4871 else
4872    ALL_DIRS=""
4873 fi
4874
4875
4876 # ---------------------------------------------------
4877 # Check for conio (Bacula readline substitute)(
4878 # ---------------------------------------------------
4879 # this allows you to turn it completely off
4880 # Check whether --enable-conio or --disable-conio was given.
4881 if test "${enable_conio+set}" = set; then
4882   enableval="$enable_conio"
4883   if test x$enableval = xno; then
4884     support_conio=no
4885   fi
4886 fi;
4887
4888 got_conio="no"
4889 if test x$support_conio = xyes; then
4890    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4892 if test "${ac_cv_header_stdc+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <stdlib.h>
4903 #include <stdarg.h>
4904 #include <string.h>
4905 #include <float.h>
4906
4907 int
4908 main ()
4909 {
4910
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917   (eval $ac_compile) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_header_stdc=yes
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_cv_header_stdc=no
4933 fi
4934 rm -f conftest.$ac_objext conftest.$ac_ext
4935
4936 if test $ac_cv_header_stdc = yes; then
4937   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4938   cat >conftest.$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4940 /* confdefs.h.  */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h.  */
4945 #include <string.h>
4946
4947 _ACEOF
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949   $EGREP "memchr" >/dev/null 2>&1; then
4950   :
4951 else
4952   ac_cv_header_stdc=no
4953 fi
4954 rm -f conftest*
4955
4956 fi
4957
4958 if test $ac_cv_header_stdc = yes; then
4959   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4960   cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <stdlib.h>
4968
4969 _ACEOF
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971   $EGREP "free" >/dev/null 2>&1; then
4972   :
4973 else
4974   ac_cv_header_stdc=no
4975 fi
4976 rm -f conftest*
4977
4978 fi
4979
4980 if test $ac_cv_header_stdc = yes; then
4981   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4982   if test "$cross_compiling" = yes; then
4983   :
4984 else
4985   cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <ctype.h>
4993 #if ((' ' & 0x0FF) == 0x020)
4994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4996 #else
4997 # define ISLOWER(c) \
4998                    (('a' <= (c) && (c) <= 'i') \
4999                      || ('j' <= (c) && (c) <= 'r') \
5000                      || ('s' <= (c) && (c) <= 'z'))
5001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5002 #endif
5003
5004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5005 int
5006 main ()
5007 {
5008   int i;
5009   for (i = 0; i < 256; i++)
5010     if (XOR (islower (i), ISLOWER (i))
5011         || toupper (i) != TOUPPER (i))
5012       exit(2);
5013   exit (0);
5014 }
5015 _ACEOF
5016 rm -f conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018   (eval $ac_link) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023   (eval $ac_try) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }; }; then
5027   :
5028 else
5029   echo "$as_me: program exited with status $ac_status" >&5
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 ( exit $ac_status )
5034 ac_cv_header_stdc=no
5035 fi
5036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5037 fi
5038 fi
5039 fi
5040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5042 if test $ac_cv_header_stdc = yes; then
5043
5044 cat >>confdefs.h <<\_ACEOF
5045 #define STDC_HEADERS 1
5046 _ACEOF
5047
5048 fi
5049
5050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5061                   inttypes.h stdint.h unistd.h
5062 do
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   cat >conftest.$ac_ext <<_ACEOF
5070 #line $LINENO "configure"
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 $ac_includes_default
5077
5078 #include <$ac_header>
5079 _ACEOF
5080 rm -f conftest.$ac_objext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082   (eval $ac_compile) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -s conftest.$ac_objext'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; }; then
5092   eval "$as_ac_Header=yes"
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 eval "$as_ac_Header=no"
5098 fi
5099 rm -f conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104   cat >>confdefs.h <<_ACEOF
5105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106 _ACEOF
5107
5108 fi
5109
5110 done
5111
5112
5113 if test "${ac_cv_header_termcap_h+set}" = set; then
5114   echo "$as_me:$LINENO: checking for termcap.h" >&5
5115 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5116 if test "${ac_cv_header_termcap_h+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 fi
5119 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5121 else
5122   # Is the header compilable?
5123 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5124 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 $ac_includes_default
5133 #include <termcap.h>
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137   (eval $ac_compile) 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); } &&
5141          { ac_try='test -s conftest.$ac_objext'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; }; then
5147   ac_header_compiler=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ac_header_compiler=no
5153 fi
5154 rm -f conftest.$ac_objext conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156 echo "${ECHO_T}$ac_header_compiler" >&6
5157
5158 # Is the header present?
5159 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5160 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5163 /* confdefs.h.  */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h.  */
5168 #include <termcap.h>
5169 _ACEOF
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172   ac_status=$?
5173   grep -v '^ *+' conftest.er1 >conftest.err
5174   rm -f conftest.er1
5175   cat conftest.err >&5
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); } >/dev/null; then
5178   if test -s conftest.err; then
5179     ac_cpp_err=$ac_c_preproc_warn_flag
5180   else
5181     ac_cpp_err=
5182   fi
5183 else
5184   ac_cpp_err=yes
5185 fi
5186 if test -z "$ac_cpp_err"; then
5187   ac_header_preproc=yes
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192   ac_header_preproc=no
5193 fi
5194 rm -f conftest.err conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196 echo "${ECHO_T}$ac_header_preproc" >&6
5197
5198 # So?  What about this header?
5199 case $ac_header_compiler:$ac_header_preproc in
5200   yes:no )
5201     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5202 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5204 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5205     (
5206       cat <<\_ASBOX
5207 ## ------------------------------------ ##
5208 ## Report this to bug-autoconf@gnu.org. ##
5209 ## ------------------------------------ ##
5210 _ASBOX
5211     ) |
5212       sed "s/^/$as_me: WARNING:     /" >&2
5213     ;;
5214   no:yes )
5215     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5216 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5217     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5218 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5219     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5220 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5221     (
5222       cat <<\_ASBOX
5223 ## ------------------------------------ ##
5224 ## Report this to bug-autoconf@gnu.org. ##
5225 ## ------------------------------------ ##
5226 _ASBOX
5227     ) |
5228       sed "s/^/$as_me: WARNING:     /" >&2
5229     ;;
5230 esac
5231 echo "$as_me:$LINENO: checking for termcap.h" >&5
5232 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5233 if test "${ac_cv_header_termcap_h+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   ac_cv_header_termcap_h=$ac_header_preproc
5237 fi
5238 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5239 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5240
5241 fi
5242 if test $ac_cv_header_termcap_h = yes; then
5243    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5244 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5245 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-ltermcap  $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257
5258 /* Override any gcc2 internal prototype to avoid an error.  */
5259 #ifdef __cplusplus
5260 extern "C"
5261 #endif
5262 /* We use char because int might match the return type of a gcc2
5263    builtin and then its argument prototype would still apply.  */
5264 char tgetent ();
5265 int
5266 main ()
5267 {
5268 tgetent ();
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275   (eval $ac_link) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } &&
5279          { ac_try='test -s conftest$ac_exeext'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   ac_cv_lib_termcap_tgetent=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 ac_cv_lib_termcap_tgetent=no
5291 fi
5292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5294 fi
5295 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5296 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5297 if test $ac_cv_lib_termcap_tgetent = yes; then
5298    CONS_LIBS="-ltermcap"
5299          CONS_OBJ="conio.o"
5300          CONS_SRC="conio.c"
5301          got_conio="yes"
5302          support_readline=no
5303
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_CONIO 1
5306 _ACEOF
5307
5308
5309 else
5310    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5311 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5312 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   ac_check_lib_save_LIBS=$LIBS
5316 LIBS="-lncurses  $LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324
5325 /* Override any gcc2 internal prototype to avoid an error.  */
5326 #ifdef __cplusplus
5327 extern "C"
5328 #endif
5329 /* We use char because int might match the return type of a gcc2
5330    builtin and then its argument prototype would still apply.  */
5331 char tgetent ();
5332 int
5333 main ()
5334 {
5335 tgetent ();
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext conftest$ac_exeext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342   (eval $ac_link) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } &&
5346          { ac_try='test -s conftest$ac_exeext'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; }; then
5352   ac_cv_lib_ncurses_tgetent=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_cv_lib_ncurses_tgetent=no
5358 fi
5359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5361 fi
5362 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5363 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5364 if test $ac_cv_lib_ncurses_tgetent = yes; then
5365    CONS_LIBS="-lncurses"
5366            CONS_OBJ="conio.o"
5367            CONS_SRC="conio.c"
5368            got_conio="yes"
5369            support_readline=no
5370
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_CONIO 1
5373 _ACEOF
5374
5375
5376 else
5377    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5378 fi
5379
5380
5381 fi
5382
5383
5384 else
5385   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5386 fi
5387
5388
5389 fi
5390
5391
5392 # ---------------------------------------------------
5393 # Check for readline support/directory (default off)
5394 # ---------------------------------------------------
5395 # this allows you to turn it completely off
5396 # Check whether --enable-readline or --disable-readline was given.
5397 if test "${enable_readline+set}" = set; then
5398   enableval="$enable_readline"
5399   if test x$enableval = xno; then
5400     support_readline=no
5401   fi
5402 fi;
5403
5404 got_readline="no"
5405 READLINE_SRC=
5406 if test x$support_readline = xyes; then
5407
5408 # Check whether --with-readline or --without-readline was given.
5409 if test "${with_readline+set}" = set; then
5410   withval="$with_readline"
5411
5412         case "$with_readline" in
5413         no) : ;;
5414         yes|*)
5415           if test "$with_readline" != "yes"; then
5416             CONS_INC="-I${with_readline}"
5417             CONS_LDFLAGS="-L$with_readline"
5418           else
5419              with_readline="/usr/include/readline"
5420           fi
5421           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5424 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 fi
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5430 else
5431   # Is the header compilable?
5432 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5433 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 $ac_includes_default
5442 #include <${with_readline}/readline.h>
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446   (eval $ac_compile) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -s conftest.$ac_objext'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; }; then
5456   ac_header_compiler=yes
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_header_compiler=no
5462 fi
5463 rm -f conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465 echo "${ECHO_T}$ac_header_compiler" >&6
5466
5467 # Is the header present?
5468 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5469 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477 #include <${with_readline}/readline.h>
5478 _ACEOF
5479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5481   ac_status=$?
5482   grep -v '^ *+' conftest.er1 >conftest.err
5483   rm -f conftest.er1
5484   cat conftest.err >&5
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } >/dev/null; then
5487   if test -s conftest.err; then
5488     ac_cpp_err=$ac_c_preproc_warn_flag
5489   else
5490     ac_cpp_err=
5491   fi
5492 else
5493   ac_cpp_err=yes
5494 fi
5495 if test -z "$ac_cpp_err"; then
5496   ac_header_preproc=yes
5497 else
5498   echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501   ac_header_preproc=no
5502 fi
5503 rm -f conftest.err conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6
5506
5507 # So?  What about this header?
5508 case $ac_header_compiler:$ac_header_preproc in
5509   yes:no )
5510     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5514     (
5515       cat <<\_ASBOX
5516 ## ------------------------------------ ##
5517 ## Report this to bug-autoconf@gnu.org. ##
5518 ## ------------------------------------ ##
5519 _ASBOX
5520     ) |
5521       sed "s/^/$as_me: WARNING:     /" >&2
5522     ;;
5523   no:yes )
5524     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5526     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5527 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5528     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5529 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5530     (
5531       cat <<\_ASBOX
5532 ## ------------------------------------ ##
5533 ## Report this to bug-autoconf@gnu.org. ##
5534 ## ------------------------------------ ##
5535 _ASBOX
5536     ) |
5537       sed "s/^/$as_me: WARNING:     /" >&2
5538     ;;
5539 esac
5540 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5541 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   eval "$as_ac_Header=$ac_header_preproc"
5546 fi
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5549
5550 fi
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552    cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_READLINE 1
5554 _ACEOF
5555
5556                CONS_LIBS="-lreadline -ltermcap"
5557                got_readline="yes"
5558
5559 else
5560    echo " "
5561                echo "readline.h not found. readline turned off ..."
5562                echo " "
5563
5564
5565 fi
5566
5567
5568           ;;
5569         esac
5570
5571 else
5572
5573        # check for standard readline library
5574        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5575   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5576 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5577 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 fi
5580 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5581 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5582 else
5583   # Is the header compilable?
5584 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5585 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 $ac_includes_default
5594 #include </usr/include/readline/readline.h>
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598   (eval $ac_compile) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } &&
5602          { ac_try='test -s conftest.$ac_objext'
5603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604   (eval $ac_try) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; }; then
5608   ac_header_compiler=yes
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ac_header_compiler=no
5614 fi
5615 rm -f conftest.$ac_objext conftest.$ac_ext
5616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5617 echo "${ECHO_T}$ac_header_compiler" >&6
5618
5619 # Is the header present?
5620 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5621 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 /* confdefs.h.  */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h.  */
5629 #include </usr/include/readline/readline.h>
5630 _ACEOF
5631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } >/dev/null; then
5639   if test -s conftest.err; then
5640     ac_cpp_err=$ac_c_preproc_warn_flag
5641   else
5642     ac_cpp_err=
5643   fi
5644 else
5645   ac_cpp_err=yes
5646 fi
5647 if test -z "$ac_cpp_err"; then
5648   ac_header_preproc=yes
5649 else
5650   echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5652
5653   ac_header_preproc=no
5654 fi
5655 rm -f conftest.err conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5657 echo "${ECHO_T}$ac_header_preproc" >&6
5658
5659 # So?  What about this header?
5660 case $ac_header_compiler:$ac_header_preproc in
5661   yes:no )
5662     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5663 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5664     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5665 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5666     (
5667       cat <<\_ASBOX
5668 ## ------------------------------------ ##
5669 ## Report this to bug-autoconf@gnu.org. ##
5670 ## ------------------------------------ ##
5671 _ASBOX
5672     ) |
5673       sed "s/^/$as_me: WARNING:     /" >&2
5674     ;;
5675   no:yes )
5676     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5678     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5679 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5680     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5681 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5682     (
5683       cat <<\_ASBOX
5684 ## ------------------------------------ ##
5685 ## Report this to bug-autoconf@gnu.org. ##
5686 ## ------------------------------------ ##
5687 _ASBOX
5688     ) |
5689       sed "s/^/$as_me: WARNING:     /" >&2
5690     ;;
5691 esac
5692 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5693 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5694 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5698 fi
5699 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5700 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5701
5702 fi
5703 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5704    cat >>confdefs.h <<\_ACEOF
5705 #define HAVE_READLINE 1
5706 _ACEOF
5707
5708            got_readline="yes"
5709            CONS_INC="-I/usr/include/readline"
5710            CONS_LIBS="-lreadline -ltermcap"
5711
5712 else
5713
5714            # Did not find standard library, so try Bacula's default
5715             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5718 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 fi
5722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5724 else
5725   # Is the header compilable?
5726 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5727 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 $ac_includes_default
5736 #include <${TOP_DIR}/depkgs/readline/readline.h>
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740   (eval $ac_compile) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -s conftest.$ac_objext'
5745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746   (eval $ac_try) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   ac_header_compiler=yes
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 ac_header_compiler=no
5756 fi
5757 rm -f conftest.$ac_objext conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5759 echo "${ECHO_T}$ac_header_compiler" >&6
5760
5761 # Is the header present?
5762 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5763 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 #include <${TOP_DIR}/depkgs/readline/readline.h>
5772 _ACEOF
5773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } >/dev/null; then
5781   if test -s conftest.err; then
5782     ac_cpp_err=$ac_c_preproc_warn_flag
5783   else
5784     ac_cpp_err=
5785   fi
5786 else
5787   ac_cpp_err=yes
5788 fi
5789 if test -z "$ac_cpp_err"; then
5790   ac_header_preproc=yes
5791 else
5792   echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795   ac_header_preproc=no
5796 fi
5797 rm -f conftest.err conftest.$ac_ext
5798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5799 echo "${ECHO_T}$ac_header_preproc" >&6
5800
5801 # So?  What about this header?
5802 case $ac_header_compiler:$ac_header_preproc in
5803   yes:no )
5804     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5805 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5806     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5808     (
5809       cat <<\_ASBOX
5810 ## ------------------------------------ ##
5811 ## Report this to bug-autoconf@gnu.org. ##
5812 ## ------------------------------------ ##
5813 _ASBOX
5814     ) |
5815       sed "s/^/$as_me: WARNING:     /" >&2
5816     ;;
5817   no:yes )
5818     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5820     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5821 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5822     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5823 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5824     (
5825       cat <<\_ASBOX
5826 ## ------------------------------------ ##
5827 ## Report this to bug-autoconf@gnu.org. ##
5828 ## ------------------------------------ ##
5829 _ASBOX
5830     ) |
5831       sed "s/^/$as_me: WARNING:     /" >&2
5832     ;;
5833 esac
5834 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5835 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   eval "$as_ac_Header=$ac_header_preproc"
5840 fi
5841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5843
5844 fi
5845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5846    cat >>confdefs.h <<\_ACEOF
5847 #define HAVE_READLINE 1
5848 _ACEOF
5849
5850                  got_readline="yes"
5851                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5852                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5853                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5854                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5855
5856 else
5857    echo " "
5858                 echo "readline.h not found. readline turned off ..."
5859                 echo " "
5860
5861
5862 fi
5863
5864
5865
5866
5867 fi
5868
5869
5870
5871
5872 fi;
5873 fi
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 # Minimal stuff for readline Makefile configuration
5885 MAKE_SHELL=/bin/sh
5886
5887 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5888 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5889 if test "${ac_cv_header_stat_broken+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 /* confdefs.h.  */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h.  */
5899 #include <sys/types.h>
5900 #include <sys/stat.h>
5901
5902 #if defined(S_ISBLK) && defined(S_IFDIR)
5903 # if S_ISBLK (S_IFDIR)
5904 You lose.
5905 # endif
5906 #endif
5907
5908 #if defined(S_ISBLK) && defined(S_IFCHR)
5909 # if S_ISBLK (S_IFCHR)
5910 You lose.
5911 # endif
5912 #endif
5913
5914 #if defined(S_ISLNK) && defined(S_IFREG)
5915 # if S_ISLNK (S_IFREG)
5916 You lose.
5917 # endif
5918 #endif
5919
5920 #if defined(S_ISSOCK) && defined(S_IFREG)
5921 # if S_ISSOCK (S_IFREG)
5922 You lose.
5923 # endif
5924 #endif
5925
5926 _ACEOF
5927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5928   $EGREP "You lose" >/dev/null 2>&1; then
5929   ac_cv_header_stat_broken=yes
5930 else
5931   ac_cv_header_stat_broken=no
5932 fi
5933 rm -f conftest*
5934
5935 fi
5936 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5937 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5938 if test $ac_cv_header_stat_broken = yes; then
5939
5940 cat >>confdefs.h <<\_ACEOF
5941 #define STAT_MACROS_BROKEN 1
5942 _ACEOF
5943
5944 fi
5945
5946
5947
5948
5949
5950
5951 ac_header_dirent=no
5952 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5953   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5954 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5955 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   cat >conftest.$ac_ext <<_ACEOF
5960 #line $LINENO "configure"
5961 /* confdefs.h.  */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h.  */
5966 #include <sys/types.h>
5967 #include <$ac_hdr>
5968
5969 int
5970 main ()
5971 {
5972 if ((DIR *) 0)
5973 return 0;
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980   (eval $ac_compile) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -s conftest.$ac_objext'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; }; then
5990   eval "$as_ac_Header=yes"
5991 else
5992   echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5994
5995 eval "$as_ac_Header=no"
5996 fi
5997 rm -f conftest.$ac_objext conftest.$ac_ext
5998 fi
5999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6002   cat >>confdefs.h <<_ACEOF
6003 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6004 _ACEOF
6005
6006 ac_header_dirent=$ac_hdr; break
6007 fi
6008
6009 done
6010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6011 if test $ac_header_dirent = dirent.h; then
6012   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6013 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6014 if test "${ac_cv_search_opendir+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   ac_func_search_save_LIBS=$LIBS
6018 ac_cv_search_opendir=no
6019 cat >conftest.$ac_ext <<_ACEOF
6020 #line $LINENO "configure"
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026
6027 /* Override any gcc2 internal prototype to avoid an error.  */
6028 #ifdef __cplusplus
6029 extern "C"
6030 #endif
6031 /* We use char because int might match the return type of a gcc2
6032    builtin and then its argument prototype would still apply.  */
6033 char opendir ();
6034 int
6035 main ()
6036 {
6037 opendir ();
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044   (eval $ac_link) 2>&5
6045   ac_status=$?
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); } &&
6048          { ac_try='test -s conftest$ac_exeext'
6049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050   (eval $ac_try) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; }; then
6054   ac_cv_search_opendir="none required"
6055 else
6056   echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 fi
6060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6061 if test "$ac_cv_search_opendir" = no; then
6062   for ac_lib in dir; do
6063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6064     cat >conftest.$ac_ext <<_ACEOF
6065 #line $LINENO "configure"
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071
6072 /* Override any gcc2 internal prototype to avoid an error.  */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 /* We use char because int might match the return type of a gcc2
6077    builtin and then its argument prototype would still apply.  */
6078 char opendir ();
6079 int
6080 main ()
6081 {
6082 opendir ();
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089   (eval $ac_link) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } &&
6093          { ac_try='test -s conftest$ac_exeext'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   ac_cv_search_opendir="-l$ac_lib"
6100 break
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 fi
6106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107   done
6108 fi
6109 LIBS=$ac_func_search_save_LIBS
6110 fi
6111 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6112 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6113 if test "$ac_cv_search_opendir" != no; then
6114   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6115
6116 fi
6117
6118 else
6119   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6121 if test "${ac_cv_search_opendir+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   ac_func_search_save_LIBS=$LIBS
6125 ac_cv_search_opendir=no
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133
6134 /* Override any gcc2 internal prototype to avoid an error.  */
6135 #ifdef __cplusplus
6136 extern "C"
6137 #endif
6138 /* We use char because int might match the return type of a gcc2
6139    builtin and then its argument prototype would still apply.  */
6140 char opendir ();
6141 int
6142 main ()
6143 {
6144 opendir ();
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151   (eval $ac_link) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } &&
6155          { ac_try='test -s conftest$ac_exeext'
6156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157   (eval $ac_try) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); }; }; then
6161   ac_cv_search_opendir="none required"
6162 else
6163   echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 fi
6167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6168 if test "$ac_cv_search_opendir" = no; then
6169   for ac_lib in x; do
6170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6171     cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 /* confdefs.h.  */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h.  */
6178
6179 /* Override any gcc2 internal prototype to avoid an error.  */
6180 #ifdef __cplusplus
6181 extern "C"
6182 #endif
6183 /* We use char because int might match the return type of a gcc2
6184    builtin and then its argument prototype would still apply.  */
6185 char opendir ();
6186 int
6187 main ()
6188 {
6189 opendir ();
6190   ;
6191   return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196   (eval $ac_link) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -s conftest$ac_exeext'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; }; then
6206   ac_cv_search_opendir="-l$ac_lib"
6207 break
6208 else
6209   echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 fi
6213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6214   done
6215 fi
6216 LIBS=$ac_func_search_save_LIBS
6217 fi
6218 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6219 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6220 if test "$ac_cv_search_opendir" != no; then
6221   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6222
6223 fi
6224
6225 fi
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6236 do
6237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6238 echo "$as_me:$LINENO: checking for $ac_func" >&5
6239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6240 if eval "test \"\${$as_ac_var+set}\" = set"; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   cat >conftest.$ac_ext <<_ACEOF
6244 #line $LINENO "configure"
6245 /* confdefs.h.  */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h.  */
6250 /* System header to define __stub macros and hopefully few prototypes,
6251     which can conflict with char $ac_func (); below.
6252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253     <limits.h> exists even on freestanding compilers.  */
6254 #ifdef __STDC__
6255 # include <limits.h>
6256 #else
6257 # include <assert.h>
6258 #endif
6259 /* Override any gcc2 internal prototype to avoid an error.  */
6260 #ifdef __cplusplus
6261 extern "C"
6262 {
6263 #endif
6264 /* We use char because int might match the return type of a gcc2
6265    builtin and then its argument prototype would still apply.  */
6266 char $ac_func ();
6267 /* The GNU C library defines this for functions which it implements
6268     to always fail with ENOSYS.  Some functions are actually named
6269     something starting with __ and the normal name is an alias.  */
6270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6271 choke me
6272 #else
6273 char (*f) () = $ac_func;
6274 #endif
6275 #ifdef __cplusplus
6276 }
6277 #endif
6278
6279 int
6280 main ()
6281 {
6282 return f != $ac_func;
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289   (eval $ac_link) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -s conftest$ac_exeext'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299   eval "$as_ac_var=yes"
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 eval "$as_ac_var=no"
6305 fi
6306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6307 fi
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6310 if test `eval echo '${'$as_ac_var'}'` = yes; then
6311   cat >>confdefs.h <<_ACEOF
6312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6313 _ACEOF
6314
6315 fi
6316 done
6317
6318
6319
6320 for ac_func in nanosleep nl_langinfo
6321 do
6322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6323 echo "$as_me:$LINENO: checking for $ac_func" >&5
6324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_var+set}\" = set"; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 /* confdefs.h.  */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h.  */
6335 /* System header to define __stub macros and hopefully few prototypes,
6336     which can conflict with char $ac_func (); below.
6337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338     <limits.h> exists even on freestanding compilers.  */
6339 #ifdef __STDC__
6340 # include <limits.h>
6341 #else
6342 # include <assert.h>
6343 #endif
6344 /* Override any gcc2 internal prototype to avoid an error.  */
6345 #ifdef __cplusplus
6346 extern "C"
6347 {
6348 #endif
6349 /* We use char because int might match the return type of a gcc2
6350    builtin and then its argument prototype would still apply.  */
6351 char $ac_func ();
6352 /* The GNU C library defines this for functions which it implements
6353     to always fail with ENOSYS.  Some functions are actually named
6354     something starting with __ and the normal name is an alias.  */
6355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6356 choke me
6357 #else
6358 char (*f) () = $ac_func;
6359 #endif
6360 #ifdef __cplusplus
6361 }
6362 #endif
6363
6364 int
6365 main ()
6366 {
6367 return f != $ac_func;
6368   ;
6369   return 0;
6370 }
6371 _ACEOF
6372 rm -f conftest.$ac_objext conftest$ac_exeext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6374   (eval $ac_link) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } &&
6378          { ac_try='test -s conftest$ac_exeext'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; }; then
6384   eval "$as_ac_var=yes"
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 eval "$as_ac_var=no"
6390 fi
6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6392 fi
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6395 if test `eval echo '${'$as_ac_var'}'` = yes; then
6396   cat >>confdefs.h <<_ACEOF
6397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6398 _ACEOF
6399
6400 fi
6401 done
6402
6403
6404 for ac_header in varargs.h
6405 do
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408   echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 fi
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415 else
6416   # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6421 /* confdefs.h.  */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h.  */
6426 $ac_includes_default
6427 #include <$ac_header>
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431   (eval $ac_compile) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } &&
6435          { ac_try='test -s conftest.$ac_objext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   ac_header_compiler=yes
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 ac_header_compiler=no
6447 fi
6448 rm -f conftest.$ac_objext conftest.$ac_ext
6449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450 echo "${ECHO_T}$ac_header_compiler" >&6
6451
6452 # Is the header present?
6453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 #include <$ac_header>
6463 _ACEOF
6464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } >/dev/null; then
6472   if test -s conftest.err; then
6473     ac_cpp_err=$ac_c_preproc_warn_flag
6474   else
6475     ac_cpp_err=
6476   fi
6477 else
6478   ac_cpp_err=yes
6479 fi
6480 if test -z "$ac_cpp_err"; then
6481   ac_header_preproc=yes
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486   ac_header_preproc=no
6487 fi
6488 rm -f conftest.err conftest.$ac_ext
6489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6490 echo "${ECHO_T}$ac_header_preproc" >&6
6491
6492 # So?  What about this header?
6493 case $ac_header_compiler:$ac_header_preproc in
6494   yes:no )
6495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6499     (
6500       cat <<\_ASBOX
6501 ## ------------------------------------ ##
6502 ## Report this to bug-autoconf@gnu.org. ##
6503 ## ------------------------------------ ##
6504 _ASBOX
6505     ) |
6506       sed "s/^/$as_me: WARNING:     /" >&2
6507     ;;
6508   no:yes )
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515     (
6516       cat <<\_ASBOX
6517 ## ------------------------------------ ##
6518 ## Report this to bug-autoconf@gnu.org. ##
6519 ## ------------------------------------ ##
6520 _ASBOX
6521     ) |
6522       sed "s/^/$as_me: WARNING:     /" >&2
6523     ;;
6524 esac
6525 echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   eval "$as_ac_Header=$ac_header_preproc"
6531 fi
6532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534
6535 fi
6536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537   cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539 _ACEOF
6540
6541 fi
6542
6543 done
6544
6545
6546 # End of readline/conio stuff
6547 # -----------------------------------------------------------------------
6548
6549
6550 # ---------------------------------------------------
6551 # Check for GMP support/directory
6552 # ---------------------------------------------------
6553 #GMP_SRC=
6554 #local_gmp="no"
6555 #AC_ARG_WITH(gmp,
6556 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6557 #  [
6558 #     case "$with_gmp" in
6559 #     no) : ;;
6560 #     yes|*)
6561 #       if test "$with_gmp" != "yes"; then
6562 #         GMP_INC="-I$with_gmp"
6563 #         GMP_LIBS="-lgmp"
6564 #         GMP_LDFLAGS="-L$with_gmp"
6565 #       else
6566 #          with_gmp="/usr/include"
6567 #       fi
6568 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6569 #          [ AC_MSG_RESULT(yes)
6570 #            AC_DEFINE(HAVE_GMP)
6571 #            GMP_LIBS="-lgmp"
6572 #            got_gmp="yes"
6573 #          ],
6574 #          [ AC_MSG_ERROR([*** gmp library missing])
6575 #          ]
6576 #       )
6577 #       ;;
6578 #     esac
6579 #  ],[
6580 #    # check for standard gmp library
6581 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6582 #    [ AC_MSG_RESULT(yes)
6583 #      AC_DEFINE(HAVE_GMP)
6584 #      got_gmp="yes"
6585 #      GMP_INC=
6586 #      GMP_LIBS="-lgmp"
6587 #    ], [
6588 #      # Did not find standard library, so use our own
6589 #      AC_MSG_RESULT(yes)
6590 #      AC_DEFINE(HAVE_GMP)
6591 #      got_gmp="yes"
6592 #      local_gmp="yes"
6593 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6594 #      GMP_LIBS="-lgmp"
6595 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6596 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6597 #    ])
6598 #  ]
6599 #)
6600 #AC_SUBST(GMP_INC)
6601 #AC_SUBST(GMP_LIBS)
6602 #AC_SUBST(GMP_LDFLAGS)
6603 #AC_SUBST(GMP_SRC)
6604
6605 # End of GMP stuff
6606 # -----------------------------------------------------------------------
6607
6608
6609 # ---------------------------------------------------
6610 # Check for CWEB support/directory
6611 # ---------------------------------------------------
6612 #CWEB_SRC=
6613 #CWEB=/bin
6614 #local_cweb="no"
6615 #AC_ARG_WITH(cweb,
6616 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6617 #  [
6618 #     case "$with_cweb" in
6619 #     no) : ;;
6620 #     yes|*)
6621 #       if test "$with_cweb" != "yes"; then
6622 #         CWEB_INC="-I$with_cweb"
6623 #         CWEB_LIBS="-lcweb"
6624 #         CWEB_LDFLAGS="-L$with_cweb"
6625 #       else
6626 #          with_cweb="/usr/include"
6627 #       fi
6628 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6629 #          [ AC_MSG_RESULT(yes)
6630 #            AC_DEFINE(HAVE_CWEB)
6631 #            CWEB_LIBS="-lcweb"
6632 #            got_cweb="yes"
6633 #          ],
6634 #          [ AC_MSG_ERROR([*** cweb library missing])
6635 #          ]
6636 #       )
6637 #       ;;
6638 #     esac
6639 #  ],[
6640 #    # check for standard cweb library
6641 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6642 #    [ AC_MSG_RESULT(yes)
6643 #      AC_DEFINE(HAVE_CWEB)
6644 #      got_cweb="yes"
6645 #      CWEB_INC=
6646 #      CWEB_LIBS="-lcweb"
6647 #    ], [
6648 #      # Did not find starndard library, so use our own
6649 #      AC_MSG_RESULT(yes)
6650 #      AC_DEFINE(HAVE_CWEB)
6651 #      got_cweb="yes"
6652 #      local_cweb="yes"
6653 #      CWEB=${TOP_DIR}/depkgs/cweb
6654 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6655 #      CWEB_LIBS="-lcweb"
6656 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6657 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6658 #    ])
6659 #  ]
6660 #)
6661 #AC_SUBST(CWEB)
6662 #AC_SUBST(CWEB_INC)
6663 #AC_SUBST(CWEB_LIBS)
6664 #AC_SUBST(CWEB_LDFLAGS)
6665 #AC_SUBST(CWEB_SRC)
6666
6667 # End of CWEB stuff
6668 # -----------------------------------------------------------------------
6669
6670
6671
6672 # -----------------------------------------------------------
6673 # Check whether user wants TCP wrappers support (default off)
6674 # -----------------------------------------------------------
6675 TCPW_MSG="no"
6676
6677 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6678 if test "${with_tcp_wrappers+set}" = set; then
6679   withval="$with_tcp_wrappers"
6680
6681     if test "x$withval" != "xno" ; then
6682        saved_LIBS="$LIBS"
6683        LIBS="$saved_LIBS -lwrap"
6684        echo "$as_me:$LINENO: checking for libwrap" >&5
6685 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6686        cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6688 /* confdefs.h.  */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h.  */
6693  #include <tcpd.h>
6694              int deny_severity = 0;
6695              int allow_severity = 0;
6696              struct request_info *req;
6697 int
6698 main ()
6699 {
6700  hosts_access(req);
6701   ;
6702   return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707   (eval $ac_link) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } &&
6711          { ac_try='test -s conftest$ac_exeext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717
6718             echo "$as_me:$LINENO: result: yes" >&5
6719 echo "${ECHO_T}yes" >&6
6720             cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_LIBWRAP 1
6722 _ACEOF
6723
6724             TCPW_MSG="yes"
6725
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730
6731             LIBS="$saved_LIBS -lwrap -lnsl"
6732             cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739  #include <tcpd.h>
6740                  int deny_severity = 0;
6741                  int allow_severity = 0;
6742                  struct request_info *req;
6743 int
6744 main ()
6745 {
6746  hosts_access(req);
6747   ;
6748   return 0;
6749 }
6750 _ACEOF
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753   (eval $ac_link) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -s conftest$ac_exeext'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; }; then
6763
6764                  echo "$as_me:$LINENO: result: yes" >&5
6765 echo "${ECHO_T}yes" >&6
6766                  cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_LIBWRAP 1
6768 _ACEOF
6769
6770                  TCPW_MSG="yes"
6771
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6777 echo "$as_me: error: *** libwrap missing" >&2;}
6778    { (exit 1); exit 1; }; }
6779
6780 fi
6781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6782
6783 fi
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6785     fi
6786
6787
6788 fi;
6789
6790 # ------------------------------------------
6791 # Where to place working dir
6792 # ------------------------------------------
6793 working_dir=`eval echo ${prefix}/var/bacula/working`
6794
6795 # Check whether --with-working-dir or --without-working-dir was given.
6796 if test "${with_working_dir+set}" = set; then
6797   withval="$with_working_dir"
6798
6799        if test "x$withval" != "xno" ; then
6800               working_dir=$withval
6801        fi
6802
6803
6804 fi;
6805
6806
6807
6808
6809 # ------------------------------------------
6810 # Where to place scriptdir (script files)
6811 # ------------------------------------------
6812 scriptdir=`eval echo ${sysconfdir}`
6813
6814 # Check whether --with-scriptdir or --without-scriptdir was given.
6815 if test "${with_scriptdir+set}" = set; then
6816   withval="$with_scriptdir"
6817
6818        if test "x$withval" != "xno" ; then
6819               scriptdir=$withval
6820        fi
6821
6822
6823 fi;
6824
6825
6826
6827
6828 # ------------------------------------------
6829 # Where to send dump email
6830 # ------------------------------------------
6831 dump_email=root@localhost
6832
6833 # Check whether --with-dump-email or --without-dump-email was given.
6834 if test "${with_dump_email+set}" = set; then
6835   withval="$with_dump_email"
6836
6837        if test "x$withval" != "xno" ; then
6838               dump_email=$withval
6839        fi
6840
6841
6842 fi;
6843
6844
6845
6846 # ------------------------------------------
6847 # Where to send job email
6848 # ------------------------------------------
6849 job_email=root@localhost
6850
6851 # Check whether --with-job-email or --without-job-email was given.
6852 if test "${with_job_email+set}" = set; then
6853   withval="$with_job_email"
6854
6855        if test "x$withval" != "xno" ; then
6856               job_email=$withval
6857        fi
6858
6859
6860 fi;
6861
6862
6863
6864 # ------------------------------------------
6865 # Where to find smtp host
6866 # ------------------------------------------
6867 smtp_host=localhost
6868
6869 # Check whether --with-smtp_host or --without-smtp_host was given.
6870 if test "${with_smtp_host+set}" = set; then
6871   withval="$with_smtp_host"
6872
6873        if test "x$withval" != "xno" ; then
6874               smtp_host=$withval
6875        fi
6876
6877
6878 fi;
6879
6880
6881
6882
6883 # ------------------------------------
6884 # Where to place pid files
6885 # ------------------------------------
6886 piddir=/var/run
6887
6888 # Check whether --with-pid-dir or --without-pid-dir was given.
6889 if test "${with_pid_dir+set}" = set; then
6890   withval="$with_pid_dir"
6891
6892         if test "x$withval" != "xno" ; then
6893             piddir=$withval
6894         fi
6895
6896
6897 fi;
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define _PATH_BACULA_PIDDIR "$piddir"
6901 _ACEOF
6902
6903
6904
6905
6906 # ------------------------------------
6907 # Where to place subsys "lock file"
6908 # ------------------------------------
6909 subsysdir=/var/run/subsys
6910
6911 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6912 if test "${with_subsys_dir+set}" = set; then
6913   withval="$with_subsys_dir"
6914
6915         if test "x$withval" != "xno" ; then
6916             subsysdir=$withval
6917         fi
6918
6919
6920 fi;
6921
6922
6923
6924
6925
6926 # ------------------------------------
6927 # Where to start assigning ports
6928 # ------------------------------------
6929 baseport=9101
6930
6931 # Check whether --with-baseport or --without-baseport was given.
6932 if test "${with_baseport+set}" = set; then
6933   withval="$with_baseport"
6934
6935         if test "x$withval" != "xno" ; then
6936              baseport=$withval
6937         fi
6938
6939
6940 fi;
6941
6942
6943 dir_port=`expr $baseport`
6944 fd_port=`expr $baseport + 1`
6945 sd_port=`expr $fd_port + 1`
6946
6947
6948
6949
6950
6951
6952 # ------------------------------------------
6953 # Generate passwords
6954 # ------------------------------------------
6955 dir_password=
6956
6957 # Check whether --with-dir-password or --without-dir-password was given.
6958 if test "${with_dir_password+set}" = set; then
6959   withval="$with_dir_password"
6960
6961        if test "x$withval" != "xno" ; then
6962            dir_password=$withval
6963        fi
6964
6965
6966 fi;
6967
6968 if test "x$dir_password" = "x" ; then
6969    if test "x$OPENSSL" = "xnone" ; then
6970 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6971       key=`autoconf/randpass 33`
6972    else
6973       key=`openssl rand -base64 33`
6974    fi
6975    dir_password=$key
6976 fi
6977
6978 fd_password=
6979
6980 # Check whether --with-fd-password or --without-fd-password was given.
6981 if test "${with_fd_password+set}" = set; then
6982   withval="$with_fd_password"
6983
6984        if test "x$withval" != "xno" ; then
6985            fd_password=$withval
6986        fi
6987
6988
6989 fi;
6990
6991 if test "x$fd_password" = "x" ; then
6992    if test "x$OPENSSL" = "xnone" ; then
6993 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6994       key=`autoconf/randpass 37`
6995    else
6996       key=`openssl rand -base64 33`
6997    fi
6998    fd_password=$key
6999 fi
7000
7001 sd_password=
7002
7003 # Check whether --with-sd-password or --without-sd-password was given.
7004 if test "${with_sd_password+set}" = set; then
7005   withval="$with_sd_password"
7006
7007        if test "x$withval" != "xno" ; then
7008            sd_password=$withval
7009        fi
7010
7011
7012 fi;
7013
7014 if test "x$sd_password" = "x" ; then
7015    if test "x$OPENSSL" = "xnone" ; then
7016 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7017       key=`autoconf/randpass 41`
7018    else
7019       key=`openssl rand -base64 33`
7020    fi
7021    sd_password=$key
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030 #
7031 # Handle users and groups for each daemon
7032 #
7033 dir_user=
7034
7035 # Check whether --with-dir_user or --without-dir_user was given.
7036 if test "${with_dir_user+set}" = set; then
7037   withval="$with_dir_user"
7038
7039         if test "x$withval" != "x" ; then
7040              dir_user=$withval
7041         fi
7042
7043
7044 fi;
7045
7046 dir_group=
7047
7048 # Check whether --with-dir_group or --without-dir_group was given.
7049 if test "${with_dir_group+set}" = set; then
7050   withval="$with_dir_group"
7051
7052         if test "x$withval" != "x" ; then
7053              dir_group=$withval
7054         fi
7055
7056
7057 fi;
7058
7059 sd_user=
7060
7061 # Check whether --with-sd_user or --without-sd_user was given.
7062 if test "${with_sd_user+set}" = set; then
7063   withval="$with_sd_user"
7064
7065         if test "x$withval" != "x" ; then
7066              sd_user=$withval
7067         fi
7068
7069
7070 fi;
7071
7072 sd_group=
7073
7074 # Check whether --with-sd_group or --without-sd_group was given.
7075 if test "${with_sd_group+set}" = set; then
7076   withval="$with_sd_group"
7077
7078         if test "x$withval" != "x" ; then
7079              sd_group=$withval
7080         fi
7081
7082
7083 fi;
7084
7085 fd_user=
7086
7087 # Check whether --with-fd_user or --without-fd_user was given.
7088 if test "${with_fd_user+set}" = set; then
7089   withval="$with_fd_user"
7090
7091         if test "x$withval" != "x" ; then
7092              fd_user=$withval
7093         fi
7094
7095
7096 fi;
7097
7098 fd_group=
7099
7100 # Check whether --with-fd_group or --without-fd_group was given.
7101 if test "${with_fd_group+set}" = set; then
7102   withval="$with_fd_group"
7103
7104         if test "x$withval" != "x" ; then
7105              fd_group=$withval
7106         fi
7107
7108
7109 fi;
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 #
7122 # allow setting default executable permissions
7123 #
7124 SBINPERM=0754
7125
7126 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7127 if test "${with_sbin_perm+set}" = set; then
7128   withval="$with_sbin_perm"
7129
7130         if test "x$withval" != "x" ; then
7131             SBINPERM=$withval
7132         fi
7133
7134
7135 fi;
7136
7137
7138
7139 # ------------------------------------------------
7140 # Bacula check for various SQL database engines
7141 # ------------------------------------------------
7142
7143 db_found=no
7144 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7145 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7146
7147 # Check whether --with-postgresql or --without-postgresql was given.
7148 if test "${with_postgresql+set}" = set; then
7149   withval="$with_postgresql"
7150
7151   if test "$withval" != "no"; then
7152       if test "$db_found" = "yes"; then
7153           echo "$as_me:$LINENO: result: error" >&5
7154 echo "${ECHO_T}error" >&6
7155           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7156 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7157    { (exit 1); exit 1; }; };
7158       fi
7159       if test "$withval" = "yes"; then
7160           if test -f /usr/local/include/libpq-fe.h; then
7161               POSTGRESQL_INCDIR=/usr/local/include
7162               POSTGRESQL_LIBDIR=/usr/local/lib
7163               POSTGRESQL_BINDIR=/usr/local/bin
7164           elif test -f /usr/include/libpq-fe.h; then
7165               POSTGRESQL_INCDIR=/usr/include
7166               POSTGRESQL_LIBDIR=/usr/lib
7167               POSTGRESQL_BINDIR=/usr/bin
7168           elif test -f /usr/include/pgsql/libpq-fe.h; then
7169               POSTGRESQL_INCDIR=/usr/include/pgsql
7170               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7171               POSTGRESQL_BINDIR=/usr/bin
7172           elif test -f /usr/include/postgresql/libpq-fe.h; then
7173               POSTGRESQL_INCDIR=/usr/include/postgresql
7174               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7175               POSTGRESQL_BINDIR=/usr/bin
7176           else
7177               echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7180 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7181    { (exit 1); exit 1; }; }
7182           fi
7183       elif test -f $withval/include/libpq-fe.h; then
7184           POSTGRESQL_INCDIR=$withval/include
7185           POSTGRESQL_LIBDIR=$withval/lib
7186           POSTGRESQL_BINDIR=$withval/bin
7187       else
7188           echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7191 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7192    { (exit 1); exit 1; }; }
7193       fi
7194       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7195       echo "$as_me:$LINENO: checking for crypt" >&5
7196 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7197 if test "${ac_cv_func_crypt+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   cat >conftest.$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7202 /* confdefs.h.  */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h.  */
7207 /* System header to define __stub macros and hopefully few prototypes,
7208     which can conflict with char crypt (); below.
7209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7210     <limits.h> exists even on freestanding compilers.  */
7211 #ifdef __STDC__
7212 # include <limits.h>
7213 #else
7214 # include <assert.h>
7215 #endif
7216 /* Override any gcc2 internal prototype to avoid an error.  */
7217 #ifdef __cplusplus
7218 extern "C"
7219 {
7220 #endif
7221 /* We use char because int might match the return type of a gcc2
7222    builtin and then its argument prototype would still apply.  */
7223 char crypt ();
7224 /* The GNU C library defines this for functions which it implements
7225     to always fail with ENOSYS.  Some functions are actually named
7226     something starting with __ and the normal name is an alias.  */
7227 #if defined (__stub_crypt) || defined (__stub___crypt)
7228 choke me
7229 #else
7230 char (*f) () = crypt;
7231 #endif
7232 #ifdef __cplusplus
7233 }
7234 #endif
7235
7236 int
7237 main ()
7238 {
7239 return f != crypt;
7240   ;
7241   return 0;
7242 }
7243 _ACEOF
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7246   (eval $ac_link) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } &&
7250          { ac_try='test -s conftest$ac_exeext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256   ac_cv_func_crypt=yes
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 ac_cv_func_crypt=no
7262 fi
7263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7264 fi
7265 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7266 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7267 if test $ac_cv_func_crypt = yes; then
7268   :
7269 else
7270   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7271 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7272 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   ac_check_lib_save_LIBS=$LIBS
7276 LIBS="-lcrypt  $LIBS"
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284
7285 /* Override any gcc2 internal prototype to avoid an error.  */
7286 #ifdef __cplusplus
7287 extern "C"
7288 #endif
7289 /* We use char because int might match the return type of a gcc2
7290    builtin and then its argument prototype would still apply.  */
7291 char crypt ();
7292 int
7293 main ()
7294 {
7295 crypt ();
7296   ;
7297   return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302   (eval $ac_link) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } &&
7306          { ac_try='test -s conftest$ac_exeext'
7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308   (eval $ac_try) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }; }; then
7312   ac_cv_lib_crypt_crypt=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 ac_cv_lib_crypt_crypt=no
7318 fi
7319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7321 fi
7322 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7323 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7324 if test $ac_cv_lib_crypt_crypt = yes; then
7325   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7326 fi
7327
7328 fi
7329
7330       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7331       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7332       SQL_BINDIR=$POSTGRESQL_BINDIR
7333       cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_POSTGRESQL 1
7335 _ACEOF
7336
7337       echo "$as_me:$LINENO: result: yes" >&5
7338 echo "${ECHO_T}yes" >&6
7339       db_found=yes
7340       support_postgresql=yes
7341       db_name=PostgreSQL
7342       DB_NAME=postgresql
7343   else
7344       echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7346   fi
7347
7348 else
7349
7350   echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7352
7353 fi;
7354
7355
7356
7357
7358
7359
7360
7361 db_found=no
7362 echo "$as_me:$LINENO: checking for MySQL support" >&5
7363 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7364
7365 # Check whether --with-mysql or --without-mysql was given.
7366 if test "${with_mysql+set}" = set; then
7367   withval="$with_mysql"
7368
7369   if test "$withval" != "no"; then
7370         if test "$withval" = "yes"; then
7371                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7372                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7373                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7374                         MYSQL_BINDIR=/usr/local/mysql/bin
7375                 elif test -f /usr/include/mysql/mysql.h; then
7376                         MYSQL_INCDIR=/usr/include/mysql
7377                         MYSQL_LIBDIR=/usr/lib/mysql
7378                         MYSQL_BINDIR=/usr/bin
7379                 elif test -f /usr/include/mysql.h; then
7380                         MYSQL_INCDIR=/usr/include
7381                         MYSQL_LIBDIR=/usr/lib
7382                         MYSQL_BINDIR=/usr/bin
7383                 elif test -f /usr/local/include/mysql/mysql.h; then
7384                         MYSQL_INCDIR=/usr/local/include/mysql
7385                         MYSQL_LIBDIR=/usr/local/lib/mysql
7386                         MYSQL_BINDIR=/usr/local/bin
7387                 elif test -f /usr/local/include/mysql.h; then
7388                         MYSQL_INCDIR=/usr/local/include
7389                         MYSQL_LIBDIR=/usr/local/lib
7390                         MYSQL_BINDIR=/usr/local/bin
7391                 else
7392                    echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7394                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7395 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7396    { (exit 1); exit 1; }; }
7397                 fi
7398         else
7399                 if test -f $withval/include/mysql/mysql.h; then
7400                         MYSQL_INCDIR=$withval/include/mysql
7401                         MYSQL_LIBDIR=$withval/lib/mysql
7402                         MYSQL_BINDIR=$withval/bin
7403                 elif test -f $withval/include/mysql.h; then
7404                         MYSQL_INCDIR=$withval/include
7405                         MYSQL_LIBDIR=$withval/lib
7406                         MYSQL_BINDIR=$withval/bin
7407                 else
7408                    echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7411 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7412    { (exit 1); exit 1; }; }
7413                 fi
7414         fi
7415     SQL_INCLUDE=-I$MYSQL_INCDIR
7416     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7417        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7418        cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_THREAD_SAFE_MYSQL 1
7420 _ACEOF
7421
7422     else
7423        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7424     fi
7425     SQL_BINDIR=$MYSQL_BINDIR
7426
7427     cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_MYSQL 1
7429 _ACEOF
7430
7431     echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6
7433     db_found=yes
7434     support_mysql=yes
7435     db_name=MySQL
7436     DB_NAME=mysql
7437
7438   else
7439         echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441   fi
7442
7443 else
7444
7445     echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6
7447
7448 fi;
7449
7450
7451 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7452 if test "${with_embedded_mysql+set}" = set; then
7453   withval="$with_embedded_mysql"
7454
7455   if test "$withval" != "no"; then
7456         if test "$withval" = "yes"; then
7457                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7458                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7459                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7460                         MYSQL_BINDIR=/usr/local/mysql/bin
7461                 elif test -f /usr/include/mysql/mysql.h; then
7462                         MYSQL_INCDIR=/usr/include/mysql
7463                         MYSQL_LIBDIR=/usr/lib/mysql
7464                         MYSQL_BINDIR=/usr/bin
7465                 elif test -f /usr/include/mysql.h; then
7466                         MYSQL_INCDIR=/usr/include
7467                         MYSQL_LIBDIR=/usr/lib
7468                         MYSQL_BINDIR=/usr/bin
7469                 elif test -f /usr/local/include/mysql/mysql.h; then
7470                         MYSQL_INCDIR=/usr/local/include/mysql
7471                         MYSQL_LIBDIR=/usr/local/lib/mysql
7472                         MYSQL_BINDIR=/usr/local/bin
7473                 elif test -f /usr/local/include/mysql.h; then
7474                         MYSQL_INCDIR=/usr/local/include
7475                         MYSQL_LIBDIR=/usr/local/lib
7476                         MYSQL_BINDIR=/usr/local/bin
7477                 else
7478                    echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7481 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7482    { (exit 1); exit 1; }; }
7483                 fi
7484         else
7485                 if test -f $withval/include/mysql/mysql.h; then
7486                         MYSQL_INCDIR=$withval/include/mysql
7487                         MYSQL_LIBDIR=$withval/lib/mysql
7488                         MYSQL_BINDIR=$withval/bin
7489                 elif test -f $withval/include/mysql.h; then
7490                         MYSQL_INCDIR=$withval/include
7491                         MYSQL_LIBDIR=$withval/lib
7492                         MYSQL_BINDIR=$withval/bin
7493                 else
7494                    echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7497 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7498    { (exit 1); exit 1; }; }
7499                 fi
7500         fi
7501     SQL_INCLUDE=-I$MYSQL_INCDIR
7502     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7503     SQL_BINDIR=$MYSQL_BINDIR
7504
7505     cat >>confdefs.h <<\_ACEOF
7506 #define HAVE_MYSQL 1
7507 _ACEOF
7508
7509     cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_EMBEDDED_MYSQL 1
7511 _ACEOF
7512
7513     echo "$as_me:$LINENO: result: yes" >&5
7514 echo "${ECHO_T}yes" >&6
7515     db_found=yes
7516     support_mysql=yes
7517     db_name=MySQL
7518     DB_NAME=mysql
7519
7520   else
7521         echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7523   fi
7524
7525 else
7526
7527   echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529
7530 fi;
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 db_found=no
7541 echo "$as_me:$LINENO: checking for SQLite support" >&5
7542 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7543
7544 # Check whether --with-sqlite or --without-sqlite was given.
7545 if test "${with_sqlite+set}" = set; then
7546   withval="$with_sqlite"
7547
7548   if test "$withval" != "no"; then
7549         if test "$withval" = "yes"; then
7550                 if test -f /usr/local/include/sqlite.h; then
7551                         SQLITE_INCDIR=/usr/local/include
7552                         SQLITE_LIBDIR=/usr/local/lib
7553                         SQLITE_BINDIR=/usr/local/bin
7554                 elif test -f /usr/include/sqlite.h; then
7555                         SQLITE_INCDIR=/usr/include
7556                         SQLITE_LIBDIR=/usr/lib
7557                         SQLITE_BINDIR=/usr/bin
7558                 else
7559                    echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7562 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7563    { (exit 1); exit 1; }; }
7564                 fi
7565         else
7566                 if test -f $withval/sqlite.h; then
7567                         SQLITE_INCDIR=$withval
7568                         SQLITE_LIBDIR=$withval
7569                         SQLITE_BINDIR=$withval
7570                 else
7571                    echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7573                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7574 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7575    { (exit 1); exit 1; }; }
7576                 fi
7577         fi
7578     SQL_INCLUDE=-I$SQLITE_INCDIR
7579     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7580     SQL_BINDIR=$SQLITE_BINDIR
7581
7582     cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_SQLITE 1
7584 _ACEOF
7585
7586     echo "$as_me:$LINENO: result: yes" >&5
7587 echo "${ECHO_T}yes" >&6
7588     db_found=yes
7589     support_sqlite=yes
7590     db_name=SQLite
7591     DB_NAME=sqlite
7592
7593   else
7594         echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7596   fi
7597
7598 else
7599
7600   echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6
7602
7603 fi;
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613 cat >>confdefs.h <<\_ACEOF
7614 #define PROTOTYPES 1
7615 _ACEOF
7616
7617
7618 if test -z "$CFLAGS"; then
7619     if test -z "$CCOPTS"; then
7620         CCOPTS='-g -O2'
7621     fi
7622     CFLAGS="$CCOPTS"
7623 fi
7624
7625
7626
7627
7628 largefile_support="no"
7629
7630    # Check whether --enable-largefile or --disable-largefile was given.
7631 if test "${enable_largefile+set}" = set; then
7632   enableval="$enable_largefile"
7633
7634 fi;
7635    if test "$enable_largefile" != no; then
7636      if test -n "$ac_tool_prefix"; then
7637   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7639 echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_GETCONF+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   if test -n "$GETCONF"; then
7645   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652   for ac_exec_ext in '' $ac_executable_extensions; do
7653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659 done
7660
7661 fi
7662 fi
7663 GETCONF=$ac_cv_prog_GETCONF
7664 if test -n "$GETCONF"; then
7665   echo "$as_me:$LINENO: result: $GETCONF" >&5
7666 echo "${ECHO_T}$GETCONF" >&6
7667 else
7668   echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670 fi
7671
7672 fi
7673 if test -z "$ac_cv_prog_GETCONF"; then
7674   ac_ct_GETCONF=$GETCONF
7675   # Extract the first word of "getconf", so it can be a program name with args.
7676 set dummy getconf; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   if test -n "$ac_ct_GETCONF"; then
7683   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692     ac_cv_prog_ac_ct_GETCONF="getconf"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698
7699 fi
7700 fi
7701 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7702 if test -n "$ac_ct_GETCONF"; then
7703   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7704 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7705 else
7706   echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7708 fi
7709
7710   GETCONF=$ac_ct_GETCONF
7711 else
7712   GETCONF="$ac_cv_prog_GETCONF"
7713 fi
7714
7715      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7716 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7717 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7721         ac_cv_sys_largefile_CFLAGS=no
7722         case "$host_os" in
7723            # IRIX 6.2 and later require cc -n32.
7724            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7725              if test "$GCC" != yes; then
7726                ac_cv_sys_largefile_CFLAGS=-n32
7727              fi
7728              ac_save_CC="$CC"
7729              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7730              cat >conftest.$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737
7738 int
7739 main ()
7740 {
7741
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748   (eval $ac_link) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } &&
7752          { ac_try='test -s conftest$ac_exeext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   :
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_cv_sys_largefile_CFLAGS=no
7764 fi
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766              CC="$ac_save_CC"
7767            esac
7768       }
7769 fi
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7772      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7773 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7778         ac_cv_sys_largefile_LDFLAGS=no
7779
7780       }
7781 fi
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7784      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7785 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7786 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7790         ac_cv_sys_largefile_LIBS=no
7791
7792       }
7793 fi
7794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7795 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7796
7797      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7798        case "$ac_flag" in
7799        no) ;;
7800        -D_FILE_OFFSET_BITS=*) ;;
7801        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7802        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7803        -D?* | -I?*)
7804          case "$ac_flag" in
7805    no) ;;
7806    ?*)
7807      case "$CPPFLAGS" in
7808      '') CPPFLAGS="$ac_flag" ;;
7809      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7810      esac ;;
7811    esac ;;
7812        *)
7813          case "$ac_flag" in
7814    no) ;;
7815    ?*)
7816      case "$CFLAGS" in
7817      '') CFLAGS="$ac_flag" ;;
7818      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7819      esac ;;
7820    esac ;;
7821        esac
7822      done
7823      case "$ac_cv_sys_largefile_LDFLAGS" in
7824    no) ;;
7825    ?*)
7826      case "$LDFLAGS" in
7827      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7828      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7829      esac ;;
7830    esac
7831      case "$ac_cv_sys_largefile_LIBS" in
7832    no) ;;
7833    ?*)
7834      case "$LIBS" in
7835      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7836      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7837      esac ;;
7838    esac
7839      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7840 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   ac_cv_sys_file_offset_bits=no
7845       case "$host_os" in
7846         # HP-UX 10.20 and later
7847         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7848           ac_cv_sys_file_offset_bits=64 ;;
7849         esac
7850       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7851         case "$ac_flag" in
7852         -D_FILE_OFFSET_BITS)
7853           ac_cv_sys_file_offset_bits=1 ;;
7854         -D_FILE_OFFSET_BITS=*)
7855           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7856         esac
7857       done
7858
7859 fi
7860 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7862    if test "$ac_cv_sys_file_offset_bits" != no; then
7863
7864 cat >>confdefs.h <<_ACEOF
7865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7866 _ACEOF
7867
7868    fi
7869      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7870 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7871 if test "${ac_cv_sys_largefile_source+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   ac_cv_sys_largefile_source=no
7875       case "$host_os" in
7876         # HP-UX 10.20 and later
7877         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7878           ac_cv_sys_largefile_source=1 ;;
7879         esac
7880       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7881         case "$ac_flag" in
7882         -D_LARGEFILE_SOURCE)
7883           ac_cv_sys_largefile_source=1 ;;
7884         -D_LARGEFILE_SOURCE=*)
7885           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7886         esac
7887       done
7888
7889 fi
7890 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7891 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7892    if test "$ac_cv_sys_largefile_source" != no; then
7893
7894 cat >>confdefs.h <<_ACEOF
7895 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7896 _ACEOF
7897
7898    fi
7899      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7900 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7901 if test "${ac_cv_sys_large_files+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   ac_cv_sys_large_files=no
7905       case "$host_os" in
7906         # AIX 4.2 and later
7907         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7908           ac_cv_sys_large_files=1 ;;
7909         esac
7910       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7911         case "$ac_flag" in
7912         -D_LARGE_FILES)
7913           ac_cv_sys_large_files=1 ;;
7914         -D_LARGE_FILES=*)
7915           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7916         esac
7917       done
7918
7919 fi
7920 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7921 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7922    if test "$ac_cv_sys_large_files" != no; then
7923
7924 cat >>confdefs.h <<_ACEOF
7925 #define _LARGE_FILES $ac_cv_sys_large_files
7926 _ACEOF
7927
7928    fi
7929    fi
7930
7931
7932
7933 echo "$as_me:$LINENO: checking for X" >&5
7934 echo $ECHO_N "checking for X... $ECHO_C" >&6
7935
7936
7937 # Check whether --with-x or --without-x was given.
7938 if test "${with_x+set}" = set; then
7939   withval="$with_x"
7940
7941 fi;
7942 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7943 if test "x$with_x" = xno; then
7944   # The user explicitly disabled X.
7945   have_x=disabled
7946 else
7947   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7948     # Both variables are already set.
7949     have_x=yes
7950   else
7951     if test "${ac_cv_have_x+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   # One or both of the vars are not set, and there is no cached value.
7955 ac_x_includes=no ac_x_libraries=no
7956 rm -fr conftest.dir
7957 if mkdir conftest.dir; then
7958   cd conftest.dir
7959   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7960   cat >Imakefile <<'_ACEOF'
7961 acfindx:
7962         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7963 _ACEOF
7964   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7965     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7966     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7967     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7968     for ac_extension in a so sl; do
7969       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7970          test -f $ac_im_libdir/libX11.$ac_extension; then
7971         ac_im_usrlibdir=$ac_im_libdir; break
7972       fi
7973     done
7974     # Screen out bogus values from the imake configuration.  They are
7975     # bogus both because they are the default anyway, and because
7976     # using them would break gcc on systems where it needs fixed includes.
7977     case $ac_im_incroot in
7978         /usr/include) ;;
7979         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7980     esac
7981     case $ac_im_usrlibdir in
7982         /usr/lib | /lib) ;;
7983         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7984     esac
7985   fi
7986   cd ..
7987   rm -fr conftest.dir
7988 fi
7989
7990 # Standard set of common directories for X headers.
7991 # Check X11 before X11Rn because it is often a symlink to the current release.
7992 ac_x_header_dirs='
7993 /usr/X11/include
7994 /usr/X11R6/include
7995 /usr/X11R5/include
7996 /usr/X11R4/include
7997
7998 /usr/include/X11
7999 /usr/include/X11R6
8000 /usr/include/X11R5
8001 /usr/include/X11R4
8002
8003 /usr/local/X11/include
8004 /usr/local/X11R6/include
8005 /usr/local/X11R5/include
8006 /usr/local/X11R4/include
8007
8008 /usr/local/include/X11
8009 /usr/local/include/X11R6
8010 /usr/local/include/X11R5
8011 /usr/local/include/X11R4
8012
8013 /usr/X386/include
8014 /usr/x386/include
8015 /usr/XFree86/include/X11
8016
8017 /usr/include
8018 /usr/local/include
8019 /usr/unsupported/include
8020 /usr/athena/include
8021 /usr/local/x11r5/include
8022 /usr/lpp/Xamples/include
8023
8024 /usr/openwin/include
8025 /usr/openwin/share/include'
8026
8027 if test "$ac_x_includes" = no; then
8028   # Guess where to find include files, by looking for Intrinsic.h.
8029   # First, try using that file with no special directory specified.
8030   cat >conftest.$ac_ext <<_ACEOF
8031 #line $LINENO "configure"
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037 #include <X11/Intrinsic.h>
8038 _ACEOF
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } >/dev/null; then
8047   if test -s conftest.err; then
8048     ac_cpp_err=$ac_c_preproc_warn_flag
8049   else
8050     ac_cpp_err=
8051   fi
8052 else
8053   ac_cpp_err=yes
8054 fi
8055 if test -z "$ac_cpp_err"; then
8056   # We can compile using X headers with no special include directory.
8057 ac_x_includes=
8058 else
8059   echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062   for ac_dir in $ac_x_header_dirs; do
8063   if test -r "$ac_dir/X11/Intrinsic.h"; then
8064     ac_x_includes=$ac_dir
8065     break
8066   fi
8067 done
8068 fi
8069 rm -f conftest.err conftest.$ac_ext
8070 fi # $ac_x_includes = no
8071
8072 if test "$ac_x_libraries" = no; then
8073   # Check for the libraries.
8074   # See if we find them without any special options.
8075   # Don't add to $LIBS permanently.
8076   ac_save_LIBS=$LIBS
8077   LIBS="-lXt $LIBS"
8078   cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 #include <X11/Intrinsic.h>
8086 int
8087 main ()
8088 {
8089 XtMalloc (0)
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8096   (eval $ac_link) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } &&
8100          { ac_try='test -s conftest$ac_exeext'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106   LIBS=$ac_save_LIBS
8107 # We can link X programs with no special library path.
8108 ac_x_libraries=
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 LIBS=$ac_save_LIBS
8114 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8115 do
8116   # Don't even attempt the hair of trying to link an X program!
8117   for ac_extension in a so sl; do
8118     if test -r $ac_dir/libXt.$ac_extension; then
8119       ac_x_libraries=$ac_dir
8120       break 2
8121     fi
8122   done
8123 done
8124 fi
8125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 fi # $ac_x_libraries = no
8127
8128 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8129   # Didn't find X anywhere.  Cache the known absence of X.
8130   ac_cv_have_x="have_x=no"
8131 else
8132   # Record where we found X for the cache.
8133   ac_cv_have_x="have_x=yes \
8134                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8135 fi
8136 fi
8137
8138   fi
8139   eval "$ac_cv_have_x"
8140 fi # $with_x != no
8141
8142 if test "$have_x" != yes; then
8143   echo "$as_me:$LINENO: result: $have_x" >&5
8144 echo "${ECHO_T}$have_x" >&6
8145   no_x=yes
8146 else
8147   # If each of the values was on the command line, it overrides each guess.
8148   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8149   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8150   # Update the cache value to reflect the command line values.
8151   ac_cv_have_x="have_x=yes \
8152                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8153   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8154 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8155 fi
8156
8157 if test "$no_x" = yes; then
8158   # Not all programs may use this symbol, but it does not hurt to define it.
8159
8160 cat >>confdefs.h <<\_ACEOF
8161 #define X_DISPLAY_MISSING 1
8162 _ACEOF
8163
8164   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8165 else
8166   if test -n "$x_includes"; then
8167     X_CFLAGS="$X_CFLAGS -I$x_includes"
8168   fi
8169
8170   # It would also be nice to do this for all -L options, not just this one.
8171   if test -n "$x_libraries"; then
8172     X_LIBS="$X_LIBS -L$x_libraries"
8173     # For Solaris; some versions of Sun CC require a space after -R and
8174     # others require no space.  Words are not sufficient . . . .
8175     case `(uname -sr) 2>/dev/null` in
8176     "SunOS 5"*)
8177       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8178 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8179       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8180       cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187
8188 int
8189 main ()
8190 {
8191
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198   (eval $ac_link) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } &&
8202          { ac_try='test -s conftest$ac_exeext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   ac_R_nospace=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_R_nospace=no
8214 fi
8215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216       if test $ac_R_nospace = yes; then
8217         echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219         X_LIBS="$X_LIBS -R$x_libraries"
8220       else
8221         LIBS="$ac_xsave_LIBS -R $x_libraries"
8222         cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229
8230 int
8231 main ()
8232 {
8233
8234   ;
8235   return 0;
8236 }
8237 _ACEOF
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240   (eval $ac_link) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -s conftest$ac_exeext'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_R_space=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_R_space=no
8256 fi
8257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8258         if test $ac_R_space = yes; then
8259           echo "$as_me:$LINENO: result: yes" >&5
8260 echo "${ECHO_T}yes" >&6
8261           X_LIBS="$X_LIBS -R $x_libraries"
8262         else
8263           echo "$as_me:$LINENO: result: neither works" >&5
8264 echo "${ECHO_T}neither works" >&6
8265         fi
8266       fi
8267       LIBS=$ac_xsave_LIBS
8268     esac
8269   fi
8270
8271   # Check for system-dependent libraries X programs must link with.
8272   # Do this before checking for the system-independent R6 libraries
8273   # (-lICE), since we may need -lsocket or whatever for X linking.
8274
8275   if test "$ISC" = yes; then
8276     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8277   else
8278     # Martyn Johnson says this is needed for Ultrix, if the X
8279     # libraries were built with DECnet support.  And Karl Berry says
8280     # the Alpha needs dnet_stub (dnet does not exist).
8281     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8282     cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289
8290 /* Override any gcc2 internal prototype to avoid an error.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 /* We use char because int might match the return type of a gcc2
8295    builtin and then its argument prototype would still apply.  */
8296 char XOpenDisplay ();
8297 int
8298 main ()
8299 {
8300 XOpenDisplay ();
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307   (eval $ac_link) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } &&
8311          { ac_try='test -s conftest$ac_exeext'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; }; then
8317   :
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8323 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8324 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-ldnet  $LIBS"
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336
8337 /* Override any gcc2 internal prototype to avoid an error.  */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 /* We use char because int might match the return type of a gcc2
8342    builtin and then its argument prototype would still apply.  */
8343 char dnet_ntoa ();
8344 int
8345 main ()
8346 {
8347 dnet_ntoa ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354   (eval $ac_link) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -s conftest$ac_exeext'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_cv_lib_dnet_dnet_ntoa=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_cv_lib_dnet_dnet_ntoa=no
8370 fi
8371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8373 fi
8374 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8375 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8376 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8377   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8378 fi
8379
8380     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8381       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8382 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8383 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386   ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-ldnet_stub  $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395
8396 /* Override any gcc2 internal prototype to avoid an error.  */
8397 #ifdef __cplusplus
8398 extern "C"
8399 #endif
8400 /* We use char because int might match the return type of a gcc2
8401    builtin and then its argument prototype would still apply.  */
8402 char dnet_ntoa ();
8403 int
8404 main ()
8405 {
8406 dnet_ntoa ();
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413   (eval $ac_link) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } &&
8417          { ac_try='test -s conftest$ac_exeext'
8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419   (eval $ac_try) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428 ac_cv_lib_dnet_stub_dnet_ntoa=no
8429 fi
8430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_lib_save_LIBS
8432 fi
8433 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8434 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8435 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8436   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8437 fi
8438
8439     fi
8440 fi
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442     LIBS="$ac_xsave_LIBS"
8443
8444     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8445     # to get the SysV transport functions.
8446     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8447     # needs -lnsl.
8448     # The nsl library prevents programs from opening the X display
8449     # on Irix 5.2, according to T.E. Dickey.
8450     # The functions gethostbyname, getservbyname, and inet_addr are
8451     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8452     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8453 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8454 if test "${ac_cv_func_gethostbyname+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   cat >conftest.$ac_ext <<_ACEOF
8458 #line $LINENO "configure"
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464 /* System header to define __stub macros and hopefully few prototypes,
8465     which can conflict with char gethostbyname (); below.
8466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467     <limits.h> exists even on freestanding compilers.  */
8468 #ifdef __STDC__
8469 # include <limits.h>
8470 #else
8471 # include <assert.h>
8472 #endif
8473 /* Override any gcc2 internal prototype to avoid an error.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 {
8477 #endif
8478 /* We use char because int might match the return type of a gcc2
8479    builtin and then its argument prototype would still apply.  */
8480 char gethostbyname ();
8481 /* The GNU C library defines this for functions which it implements
8482     to always fail with ENOSYS.  Some functions are actually named
8483     something starting with __ and the normal name is an alias.  */
8484 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8485 choke me
8486 #else
8487 char (*f) () = gethostbyname;
8488 #endif
8489 #ifdef __cplusplus
8490 }
8491 #endif
8492
8493 int
8494 main ()
8495 {
8496 return f != gethostbyname;
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503   (eval $ac_link) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -s conftest$ac_exeext'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   ac_cv_func_gethostbyname=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 ac_cv_func_gethostbyname=no
8519 fi
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8521 fi
8522 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8523 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8524
8525     if test $ac_cv_func_gethostbyname = no; then
8526       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8527 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8528 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   ac_check_lib_save_LIBS=$LIBS
8532 LIBS="-lnsl  $LIBS"
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540
8541 /* Override any gcc2 internal prototype to avoid an error.  */
8542 #ifdef __cplusplus
8543 extern "C"
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546    builtin and then its argument prototype would still apply.  */
8547 char gethostbyname ();
8548 int
8549 main ()
8550 {
8551 gethostbyname ();
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558   (eval $ac_link) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } &&
8562          { ac_try='test -s conftest$ac_exeext'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; }; then
8568   ac_cv_lib_nsl_gethostbyname=yes
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 ac_cv_lib_nsl_gethostbyname=no
8574 fi
8575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8577 fi
8578 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8579 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8580 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8581   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8582 fi
8583
8584       if test $ac_cv_lib_nsl_gethostbyname = no; then
8585         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8586 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8587 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8588   echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590   ac_check_lib_save_LIBS=$LIBS
8591 LIBS="-lbsd  $LIBS"
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599
8600 /* Override any gcc2 internal prototype to avoid an error.  */
8601 #ifdef __cplusplus
8602 extern "C"
8603 #endif
8604 /* We use char because int might match the return type of a gcc2
8605    builtin and then its argument prototype would still apply.  */
8606 char gethostbyname ();
8607 int
8608 main ()
8609 {
8610 gethostbyname ();
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617   (eval $ac_link) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -s conftest$ac_exeext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_lib_bsd_gethostbyname=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_cv_lib_bsd_gethostbyname=no
8633 fi
8634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8635 LIBS=$ac_check_lib_save_LIBS
8636 fi
8637 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8638 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8639 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8640   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8641 fi
8642
8643       fi
8644     fi
8645
8646     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8647     # socket/setsockopt and other routines are undefined under SCO ODT
8648     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8649     # on later versions), says Simon Leinen: it contains gethostby*
8650     # variants that don't use the name server (or something).  -lsocket
8651     # must be given before -lnsl if both are needed.  We assume that
8652     # if connect needs -lnsl, so does gethostbyname.
8653     echo "$as_me:$LINENO: checking for connect" >&5
8654 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8655 if test "${ac_cv_func_connect+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 /* System header to define __stub macros and hopefully few prototypes,
8666     which can conflict with char connect (); below.
8667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668     <limits.h> exists even on freestanding compilers.  */
8669 #ifdef __STDC__
8670 # include <limits.h>
8671 #else
8672 # include <assert.h>
8673 #endif
8674 /* Override any gcc2 internal prototype to avoid an error.  */
8675 #ifdef __cplusplus
8676 extern "C"
8677 {
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680    builtin and then its argument prototype would still apply.  */
8681 char connect ();
8682 /* The GNU C library defines this for functions which it implements
8683     to always fail with ENOSYS.  Some functions are actually named
8684     something starting with __ and the normal name is an alias.  */
8685 #if defined (__stub_connect) || defined (__stub___connect)
8686 choke me
8687 #else
8688 char (*f) () = connect;
8689 #endif
8690 #ifdef __cplusplus
8691 }
8692 #endif
8693
8694 int
8695 main ()
8696 {
8697 return f != connect;
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704   (eval $ac_link) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } &&
8708          { ac_try='test -s conftest$ac_exeext'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   ac_cv_func_connect=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 ac_cv_func_connect=no
8720 fi
8721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8722 fi
8723 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8724 echo "${ECHO_T}$ac_cv_func_connect" >&6
8725
8726     if test $ac_cv_func_connect = no; then
8727       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8728 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8729 if test "${ac_cv_lib_socket_connect+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 /* Override any gcc2 internal prototype to avoid an error.  */
8743 #ifdef __cplusplus
8744 extern "C"
8745 #endif
8746 /* We use char because int might match the return type of a gcc2
8747    builtin and then its argument prototype would still apply.  */
8748 char connect ();
8749 int
8750 main ()
8751 {
8752 connect ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759   (eval $ac_link) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } &&
8763          { ac_try='test -s conftest$ac_exeext'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; }; then
8769   ac_cv_lib_socket_connect=yes
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 ac_cv_lib_socket_connect=no
8775 fi
8776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8778 fi
8779 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8780 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8781 if test $ac_cv_lib_socket_connect = yes; then
8782   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8783 fi
8784
8785     fi
8786
8787     # Guillermo Gomez says -lposix is necessary on A/UX.
8788     echo "$as_me:$LINENO: checking for remove" >&5
8789 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8790 if test "${ac_cv_func_remove+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   cat >conftest.$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800 /* System header to define __stub macros and hopefully few prototypes,
8801     which can conflict with char remove (); below.
8802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803     <limits.h> exists even on freestanding compilers.  */
8804 #ifdef __STDC__
8805 # include <limits.h>
8806 #else
8807 # include <assert.h>
8808 #endif
8809 /* Override any gcc2 internal prototype to avoid an error.  */
8810 #ifdef __cplusplus
8811 extern "C"
8812 {
8813 #endif
8814 /* We use char because int might match the return type of a gcc2
8815    builtin and then its argument prototype would still apply.  */
8816 char remove ();
8817 /* The GNU C library defines this for functions which it implements
8818     to always fail with ENOSYS.  Some functions are actually named
8819     something starting with __ and the normal name is an alias.  */
8820 #if defined (__stub_remove) || defined (__stub___remove)
8821 choke me
8822 #else
8823 char (*f) () = remove;
8824 #endif
8825 #ifdef __cplusplus
8826 }
8827 #endif
8828
8829 int
8830 main ()
8831 {
8832 return f != remove;
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839   (eval $ac_link) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } &&
8843          { ac_try='test -s conftest$ac_exeext'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_cv_func_remove=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_cv_func_remove=no
8855 fi
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857 fi
8858 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8859 echo "${ECHO_T}$ac_cv_func_remove" >&6
8860
8861     if test $ac_cv_func_remove = no; then
8862       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8863 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8864 if test "${ac_cv_lib_posix_remove+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   ac_check_lib_save_LIBS=$LIBS
8868 LIBS="-lposix  $LIBS"
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876
8877 /* Override any gcc2 internal prototype to avoid an error.  */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 /* We use char because int might match the return type of a gcc2
8882    builtin and then its argument prototype would still apply.  */
8883 char remove ();
8884 int
8885 main ()
8886 {
8887 remove ();
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894   (eval $ac_link) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -s conftest$ac_exeext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_lib_posix_remove=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_lib_posix_remove=no
8910 fi
8911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8915 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8916 if test $ac_cv_lib_posix_remove = yes; then
8917   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8918 fi
8919
8920     fi
8921
8922     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8923     echo "$as_me:$LINENO: checking for shmat" >&5
8924 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8925 if test "${ac_cv_func_shmat+set}" = set; then
8926   echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928   cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8930 /* confdefs.h.  */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h.  */
8935 /* System header to define __stub macros and hopefully few prototypes,
8936     which can conflict with char shmat (); below.
8937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938     <limits.h> exists even on freestanding compilers.  */
8939 #ifdef __STDC__
8940 # include <limits.h>
8941 #else
8942 # include <assert.h>
8943 #endif
8944 /* Override any gcc2 internal prototype to avoid an error.  */
8945 #ifdef __cplusplus
8946 extern "C"
8947 {
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950    builtin and then its argument prototype would still apply.  */
8951 char shmat ();
8952 /* The GNU C library defines this for functions which it implements
8953     to always fail with ENOSYS.  Some functions are actually named
8954     something starting with __ and the normal name is an alias.  */
8955 #if defined (__stub_shmat) || defined (__stub___shmat)
8956 choke me
8957 #else
8958 char (*f) () = shmat;
8959 #endif
8960 #ifdef __cplusplus
8961 }
8962 #endif
8963
8964 int
8965 main ()
8966 {
8967 return f != shmat;
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974   (eval $ac_link) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); } &&
8978          { ac_try='test -s conftest$ac_exeext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   ac_cv_func_shmat=yes
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 ac_cv_func_shmat=no
8990 fi
8991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8992 fi
8993 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8994 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8995
8996     if test $ac_cv_func_shmat = no; then
8997       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8998 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8999 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   ac_check_lib_save_LIBS=$LIBS
9003 LIBS="-lipc  $LIBS"
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9006 /* confdefs.h.  */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h.  */
9011
9012 /* Override any gcc2 internal prototype to avoid an error.  */
9013 #ifdef __cplusplus
9014 extern "C"
9015 #endif
9016 /* We use char because int might match the return type of a gcc2
9017    builtin and then its argument prototype would still apply.  */
9018 char shmat ();
9019 int
9020 main ()
9021 {
9022 shmat ();
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029   (eval $ac_link) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } &&
9033          { ac_try='test -s conftest$ac_exeext'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; }; then
9039   ac_cv_lib_ipc_shmat=yes
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 ac_cv_lib_ipc_shmat=no
9045 fi
9046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_check_lib_save_LIBS
9048 fi
9049 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9050 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9051 if test $ac_cv_lib_ipc_shmat = yes; then
9052   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9053 fi
9054
9055     fi
9056   fi
9057
9058   # Check for libraries that X11R6 Xt/Xaw programs need.
9059   ac_save_LDFLAGS=$LDFLAGS
9060   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9061   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9062   # check for ICE first), but we must link in the order -lSM -lICE or
9063   # we get undefined symbols.  So assume we have SM if we have ICE.
9064   # These have to be linked with before -lX11, unlike the other
9065   # libraries we check for below, so use a different variable.
9066   # John Interrante, Karl Berry
9067   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9068 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9069 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   ac_check_lib_save_LIBS=$LIBS
9073 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081
9082 /* Override any gcc2 internal prototype to avoid an error.  */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 /* We use char because int might match the return type of a gcc2
9087    builtin and then its argument prototype would still apply.  */
9088 char IceConnectionNumber ();
9089 int
9090 main ()
9091 {
9092 IceConnectionNumber ();
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099   (eval $ac_link) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } &&
9103          { ac_try='test -s conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   ac_cv_lib_ICE_IceConnectionNumber=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_cv_lib_ICE_IceConnectionNumber=no
9115 fi
9116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9120 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9121 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9122   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9123 fi
9124
9125   LDFLAGS=$ac_save_LDFLAGS
9126
9127 fi
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 for ac_header in \
9154         assert.h \
9155         fcntl.h \
9156         grp.h \
9157         pwd.h \
9158         libc.h \
9159         limits.h \
9160         stdarg.h \
9161         stdlib.h \
9162         stdint.h \
9163         string.h \
9164         termios.h \
9165         unistd.h \
9166         sys/byteorder.h \
9167         sys/ioctl.h \
9168         sys/select.h \
9169         sys/sockio.h \
9170         sys/time.h \
9171         sys/socket.h \
9172         arpa/nameser.h \
9173         resolv.h \
9174         mtio.h \
9175         sys/mtio.h \
9176         regex.h \
9177
9178 do
9179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9181   echo "$as_me:$LINENO: checking for $ac_header" >&5
9182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 fi
9186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 else
9189   # Is the header compilable?
9190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 $ac_includes_default
9200 #include <$ac_header>
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204   (eval $ac_compile) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_header_compiler=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_header_compiler=no
9220 fi
9221 rm -f conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9223 echo "${ECHO_T}$ac_header_compiler" >&6
9224
9225 # Is the header present?
9226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9229 #line $LINENO "configure"
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235 #include <$ac_header>
9236 _ACEOF
9237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } >/dev/null; then
9245   if test -s conftest.err; then
9246     ac_cpp_err=$ac_c_preproc_warn_flag
9247   else
9248     ac_cpp_err=
9249   fi
9250 else
9251   ac_cpp_err=yes
9252 fi
9253 if test -z "$ac_cpp_err"; then
9254   ac_header_preproc=yes
9255 else
9256   echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259   ac_header_preproc=no
9260 fi
9261 rm -f conftest.err conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9263 echo "${ECHO_T}$ac_header_preproc" >&6
9264
9265 # So?  What about this header?
9266 case $ac_header_compiler:$ac_header_preproc in
9267   yes:no )
9268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9272     (
9273       cat <<\_ASBOX
9274 ## ------------------------------------ ##
9275 ## Report this to bug-autoconf@gnu.org. ##
9276 ## ------------------------------------ ##
9277 _ASBOX
9278     ) |
9279       sed "s/^/$as_me: WARNING:     /" >&2
9280     ;;
9281   no:yes )
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9284     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288     (
9289       cat <<\_ASBOX
9290 ## ------------------------------------ ##
9291 ## Report this to bug-autoconf@gnu.org. ##
9292 ## ------------------------------------ ##
9293 _ASBOX
9294     ) |
9295       sed "s/^/$as_me: WARNING:     /" >&2
9296     ;;
9297 esac
9298 echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303   eval "$as_ac_Header=$ac_header_preproc"
9304 fi
9305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307
9308 fi
9309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9310   cat >>confdefs.h <<_ACEOF
9311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9312 _ACEOF
9313
9314 fi
9315
9316 done
9317
9318 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9320 if test "${ac_cv_header_stdc+set}" = set; then
9321   echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323   cat >conftest.$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9325 /* confdefs.h.  */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h.  */
9330 #include <stdlib.h>
9331 #include <stdarg.h>
9332 #include <string.h>
9333 #include <float.h>
9334
9335 int
9336 main ()
9337 {
9338
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345   (eval $ac_compile) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } &&
9349          { ac_try='test -s conftest.$ac_objext'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   ac_cv_header_stdc=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 ac_cv_header_stdc=no
9361 fi
9362 rm -f conftest.$ac_objext conftest.$ac_ext
9363
9364 if test $ac_cv_header_stdc = yes; then
9365   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9366   cat >conftest.$ac_ext <<_ACEOF
9367 #line $LINENO "configure"
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373 #include <string.h>
9374
9375 _ACEOF
9376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9377   $EGREP "memchr" >/dev/null 2>&1; then
9378   :
9379 else
9380   ac_cv_header_stdc=no
9381 fi
9382 rm -f conftest*
9383
9384 fi
9385
9386 if test $ac_cv_header_stdc = yes; then
9387   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9388   cat >conftest.$ac_ext <<_ACEOF
9389 #line $LINENO "configure"
9390 /* confdefs.h.  */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h.  */
9395 #include <stdlib.h>
9396
9397 _ACEOF
9398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9399   $EGREP "free" >/dev/null 2>&1; then
9400   :
9401 else
9402   ac_cv_header_stdc=no
9403 fi
9404 rm -f conftest*
9405
9406 fi
9407
9408 if test $ac_cv_header_stdc = yes; then
9409   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9410   if test "$cross_compiling" = yes; then
9411   :
9412 else
9413   cat >conftest.$ac_ext <<_ACEOF
9414 #line $LINENO "configure"
9415 /* confdefs.h.  */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h.  */
9420 #include <ctype.h>
9421 #if ((' ' & 0x0FF) == 0x020)
9422 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9423 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9424 #else
9425 # define ISLOWER(c) \
9426                    (('a' <= (c) && (c) <= 'i') \
9427                      || ('j' <= (c) && (c) <= 'r') \
9428                      || ('s' <= (c) && (c) <= 'z'))
9429 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9430 #endif
9431
9432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9433 int
9434 main ()
9435 {
9436   int i;
9437   for (i = 0; i < 256; i++)
9438     if (XOR (islower (i), ISLOWER (i))
9439         || toupper (i) != TOUPPER (i))
9440       exit(2);
9441   exit (0);
9442 }
9443 _ACEOF
9444 rm -f conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446   (eval $ac_link) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451   (eval $ac_try) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); }; }; then
9455   :
9456 else
9457   echo "$as_me: program exited with status $ac_status" >&5
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ( exit $ac_status )
9462 ac_cv_header_stdc=no
9463 fi
9464 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9465 fi
9466 fi
9467 fi
9468 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9469 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9470 if test $ac_cv_header_stdc = yes; then
9471
9472 cat >>confdefs.h <<\_ACEOF
9473 #define STDC_HEADERS 1
9474 _ACEOF
9475
9476 fi
9477
9478 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9479 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9480 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   cat >conftest.$ac_ext <<_ACEOF
9484 #line $LINENO "configure"
9485 /* confdefs.h.  */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h.  */
9490 #include <sys/types.h>
9491 int
9492 main ()
9493 {
9494 return makedev(0, 0);
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501   (eval $ac_link) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -s conftest$ac_exeext'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; }; then
9511   ac_cv_header_sys_types_h_makedev=yes
9512 else
9513   echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 ac_cv_header_sys_types_h_makedev=no
9517 fi
9518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9519
9520 fi
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9523
9524 if test $ac_cv_header_sys_types_h_makedev = no; then
9525 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9526   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9527 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9528 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 fi
9531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9532 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9533 else
9534   # Is the header compilable?
9535 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9536 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9537 cat >conftest.$ac_ext <<_ACEOF
9538 #line $LINENO "configure"
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 $ac_includes_default
9545 #include <sys/mkdev.h>
9546 _ACEOF
9547 rm -f conftest.$ac_objext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549   (eval $ac_compile) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -s conftest.$ac_objext'
9554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555   (eval $ac_try) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; }; then
9559   ac_header_compiler=yes
9560 else
9561   echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 ac_header_compiler=no
9565 fi
9566 rm -f conftest.$ac_objext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9568 echo "${ECHO_T}$ac_header_compiler" >&6
9569
9570 # Is the header present?
9571 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9572 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line $LINENO "configure"
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580 #include <sys/mkdev.h>
9581 _ACEOF
9582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9584   ac_status=$?
9585   grep -v '^ *+' conftest.er1 >conftest.err
9586   rm -f conftest.er1
9587   cat conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); } >/dev/null; then
9590   if test -s conftest.err; then
9591     ac_cpp_err=$ac_c_preproc_warn_flag
9592   else
9593     ac_cpp_err=
9594   fi
9595 else
9596   ac_cpp_err=yes
9597 fi
9598 if test -z "$ac_cpp_err"; then
9599   ac_header_preproc=yes
9600 else
9601   echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604   ac_header_preproc=no
9605 fi
9606 rm -f conftest.err conftest.$ac_ext
9607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9608 echo "${ECHO_T}$ac_header_preproc" >&6
9609
9610 # So?  What about this header?
9611 case $ac_header_compiler:$ac_header_preproc in
9612   yes:no )
9613     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9614 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9615     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9616 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9617     (
9618       cat <<\_ASBOX
9619 ## ------------------------------------ ##
9620 ## Report this to bug-autoconf@gnu.org. ##
9621 ## ------------------------------------ ##
9622 _ASBOX
9623     ) |
9624       sed "s/^/$as_me: WARNING:     /" >&2
9625     ;;
9626   no:yes )
9627     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9629     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9630 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9631     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9632 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9633     (
9634       cat <<\_ASBOX
9635 ## ------------------------------------ ##
9636 ## Report this to bug-autoconf@gnu.org. ##
9637 ## ------------------------------------ ##
9638 _ASBOX
9639     ) |
9640       sed "s/^/$as_me: WARNING:     /" >&2
9641     ;;
9642 esac
9643 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9644 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9645 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9649 fi
9650 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9651 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9652
9653 fi
9654 if test $ac_cv_header_sys_mkdev_h = yes; then
9655
9656 cat >>confdefs.h <<\_ACEOF
9657 #define MAJOR_IN_MKDEV 1
9658 _ACEOF
9659
9660 fi
9661
9662
9663
9664   if test $ac_cv_header_sys_mkdev_h = no; then
9665     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9666   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9667 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9668 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9669   echo $ECHO_N "(cached) $ECHO_C" >&6
9670 fi
9671 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9672 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9673 else
9674   # Is the header compilable?
9675 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9676 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 /* confdefs.h.  */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h.  */
9684 $ac_includes_default
9685 #include <sys/sysmacros.h>
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689   (eval $ac_compile) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -s conftest.$ac_objext'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_header_compiler=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_header_compiler=no
9705 fi
9706 rm -f conftest.$ac_objext conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9708 echo "${ECHO_T}$ac_header_compiler" >&6
9709
9710 # Is the header present?
9711 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9712 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9713 cat >conftest.$ac_ext <<_ACEOF
9714 #line $LINENO "configure"
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720 #include <sys/sysmacros.h>
9721 _ACEOF
9722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } >/dev/null; then
9730   if test -s conftest.err; then
9731     ac_cpp_err=$ac_c_preproc_warn_flag
9732   else
9733     ac_cpp_err=
9734   fi
9735 else
9736   ac_cpp_err=yes
9737 fi
9738 if test -z "$ac_cpp_err"; then
9739   ac_header_preproc=yes
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744   ac_header_preproc=no
9745 fi
9746 rm -f conftest.err conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9748 echo "${ECHO_T}$ac_header_preproc" >&6
9749
9750 # So?  What about this header?
9751 case $ac_header_compiler:$ac_header_preproc in
9752   yes:no )
9753     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9754 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9755     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9757     (
9758       cat <<\_ASBOX
9759 ## ------------------------------------ ##
9760 ## Report this to bug-autoconf@gnu.org. ##
9761 ## ------------------------------------ ##
9762 _ASBOX
9763     ) |
9764       sed "s/^/$as_me: WARNING:     /" >&2
9765     ;;
9766   no:yes )
9767     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9769     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9770 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9771     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9772 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9773     (
9774       cat <<\_ASBOX
9775 ## ------------------------------------ ##
9776 ## Report this to bug-autoconf@gnu.org. ##
9777 ## ------------------------------------ ##
9778 _ASBOX
9779     ) |
9780       sed "s/^/$as_me: WARNING:     /" >&2
9781     ;;
9782 esac
9783 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9784 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9785 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9789 fi
9790 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9791 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9792
9793 fi
9794 if test $ac_cv_header_sys_sysmacros_h = yes; then
9795
9796 cat >>confdefs.h <<\_ACEOF
9797 #define MAJOR_IN_SYSMACROS 1
9798 _ACEOF
9799
9800 fi
9801
9802
9803   fi
9804 fi
9805
9806
9807
9808
9809
9810
9811 ac_header_dirent=no
9812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9813   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9814 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9815 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 /* confdefs.h.  */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h.  */
9826 #include <sys/types.h>
9827 #include <$ac_hdr>
9828
9829 int
9830 main ()
9831 {
9832 if ((DIR *) 0)
9833 return 0;
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840   (eval $ac_compile) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -s conftest.$ac_objext'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; }; then
9850   eval "$as_ac_Header=yes"
9851 else
9852   echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 eval "$as_ac_Header=no"
9856 fi
9857 rm -f conftest.$ac_objext conftest.$ac_ext
9858 fi
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9862   cat >>confdefs.h <<_ACEOF
9863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9864 _ACEOF
9865
9866 ac_header_dirent=$ac_hdr; break
9867 fi
9868
9869 done
9870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9871 if test $ac_header_dirent = dirent.h; then
9872   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9874 if test "${ac_cv_search_opendir+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   ac_func_search_save_LIBS=$LIBS
9878 ac_cv_search_opendir=no
9879 cat >conftest.$ac_ext <<_ACEOF
9880 #line $LINENO "configure"
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886
9887 /* Override any gcc2 internal prototype to avoid an error.  */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 /* We use char because int might match the return type of a gcc2
9892    builtin and then its argument prototype would still apply.  */
9893 char opendir ();
9894 int
9895 main ()
9896 {
9897 opendir ();
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904   (eval $ac_link) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -s conftest$ac_exeext'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   ac_cv_search_opendir="none required"
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919 fi
9920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9921 if test "$ac_cv_search_opendir" = no; then
9922   for ac_lib in dir; do
9923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9924     cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931
9932 /* Override any gcc2 internal prototype to avoid an error.  */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 /* We use char because int might match the return type of a gcc2
9937    builtin and then its argument prototype would still apply.  */
9938 char opendir ();
9939 int
9940 main ()
9941 {
9942 opendir ();
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949   (eval $ac_link) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); } &&
9953          { ac_try='test -s conftest$ac_exeext'
9954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955   (eval $ac_try) 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; }; then
9959   ac_cv_search_opendir="-l$ac_lib"
9960 break
9961 else
9962   echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965 fi
9966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9967   done
9968 fi
9969 LIBS=$ac_func_search_save_LIBS
9970 fi
9971 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9972 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9973 if test "$ac_cv_search_opendir" != no; then
9974   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9975
9976 fi
9977
9978 else
9979   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9981 if test "${ac_cv_search_opendir+set}" = set; then
9982   echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984   ac_func_search_save_LIBS=$LIBS
9985 ac_cv_search_opendir=no
9986 cat >conftest.$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993
9994 /* Override any gcc2 internal prototype to avoid an error.  */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 /* We use char because int might match the return type of a gcc2
9999    builtin and then its argument prototype would still apply.  */
10000 char opendir ();
10001 int
10002 main ()
10003 {
10004 opendir ();
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011   (eval $ac_link) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); } &&
10015          { ac_try='test -s conftest$ac_exeext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_search_opendir="none required"
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 fi
10027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10028 if test "$ac_cv_search_opendir" = no; then
10029   for ac_lib in x; do
10030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10031     cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10033 /* confdefs.h.  */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h.  */
10038
10039 /* Override any gcc2 internal prototype to avoid an error.  */
10040 #ifdef __cplusplus
10041 extern "C"
10042 #endif
10043 /* We use char because int might match the return type of a gcc2
10044    builtin and then its argument prototype would still apply.  */
10045 char opendir ();
10046 int
10047 main ()
10048 {
10049 opendir ();
10050   ;
10051   return 0;
10052 }
10053 _ACEOF
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056   (eval $ac_link) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } &&
10060          { ac_try='test -s conftest$ac_exeext'
10061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062   (eval $ac_try) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; }; then
10066   ac_cv_search_opendir="-l$ac_lib"
10067 break
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 fi
10073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10074   done
10075 fi
10076 LIBS=$ac_func_search_save_LIBS
10077 fi
10078 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10079 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10080 if test "$ac_cv_search_opendir" != no; then
10081   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10082
10083 fi
10084
10085 fi
10086
10087 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10088 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10089 if test "${ac_cv_header_stat_broken+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   cat >conftest.$ac_ext <<_ACEOF
10093 #line $LINENO "configure"
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099 #include <sys/types.h>
10100 #include <sys/stat.h>
10101
10102 #if defined(S_ISBLK) && defined(S_IFDIR)
10103 # if S_ISBLK (S_IFDIR)
10104 You lose.
10105 # endif
10106 #endif
10107
10108 #if defined(S_ISBLK) && defined(S_IFCHR)
10109 # if S_ISBLK (S_IFCHR)
10110 You lose.
10111 # endif
10112 #endif
10113
10114 #if defined(S_ISLNK) && defined(S_IFREG)
10115 # if S_ISLNK (S_IFREG)
10116 You lose.
10117 # endif
10118 #endif
10119
10120 #if defined(S_ISSOCK) && defined(S_IFREG)
10121 # if S_ISSOCK (S_IFREG)
10122 You lose.
10123 # endif
10124 #endif
10125
10126 _ACEOF
10127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10128   $EGREP "You lose" >/dev/null 2>&1; then
10129   ac_cv_header_stat_broken=yes
10130 else
10131   ac_cv_header_stat_broken=no
10132 fi
10133 rm -f conftest*
10134
10135 fi
10136 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10137 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10138 if test $ac_cv_header_stat_broken = yes; then
10139
10140 cat >>confdefs.h <<\_ACEOF
10141 #define STAT_MACROS_BROKEN 1
10142 _ACEOF
10143
10144 fi
10145
10146 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10147 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10148 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   cat >conftest.$ac_ext <<_ACEOF
10152 #line $LINENO "configure"
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158 #include <sys/types.h>
10159 #include <sys/wait.h>
10160 #ifndef WEXITSTATUS
10161 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10162 #endif
10163 #ifndef WIFEXITED
10164 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10165 #endif
10166
10167 int
10168 main ()
10169 {
10170   int s;
10171   wait (&s);
10172   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10173   ;
10174   return 0;
10175 }
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179   (eval $ac_compile) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } &&
10183          { ac_try='test -s conftest.$ac_objext'
10184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185   (eval $ac_try) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   ac_cv_header_sys_wait_h=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194 ac_cv_header_sys_wait_h=no
10195 fi
10196 rm -f conftest.$ac_objext conftest.$ac_ext
10197 fi
10198 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10199 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10200 if test $ac_cv_header_sys_wait_h = yes; then
10201
10202 cat >>confdefs.h <<\_ACEOF
10203 #define HAVE_SYS_WAIT_H 1
10204 _ACEOF
10205
10206 fi
10207
10208 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10209 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10210 if test "${ac_cv_header_time+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   cat >conftest.$ac_ext <<_ACEOF
10214 #line $LINENO "configure"
10215 /* confdefs.h.  */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h.  */
10220 #include <sys/types.h>
10221 #include <sys/time.h>
10222 #include <time.h>
10223
10224 int
10225 main ()
10226 {
10227 if ((struct tm *) 0)
10228 return 0;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } &&
10239          { ac_try='test -s conftest.$ac_objext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   ac_cv_header_time=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_header_time=no
10251 fi
10252 rm -f conftest.$ac_objext conftest.$ac_ext
10253 fi
10254 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10255 echo "${ECHO_T}$ac_cv_header_time" >&6
10256 if test $ac_cv_header_time = yes; then
10257
10258 cat >>confdefs.h <<\_ACEOF
10259 #define TIME_WITH_SYS_TIME 1
10260 _ACEOF
10261
10262 fi
10263
10264
10265 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10266 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10267 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10272 /* confdefs.h.  */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h.  */
10277 $ac_includes_default
10278 int
10279 main ()
10280 {
10281 static struct stat ac_aggr;
10282 if (ac_aggr.st_blksize)
10283 return 0;
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290   (eval $ac_compile) 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -s conftest.$ac_objext'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   ac_cv_member_struct_stat_st_blksize=yes
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312 $ac_includes_default
10313 int
10314 main ()
10315 {
10316 static struct stat ac_aggr;
10317 if (sizeof ac_aggr.st_blksize)
10318 return 0;
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325   (eval $ac_compile) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -s conftest.$ac_objext'
10330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331   (eval $ac_try) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335   ac_cv_member_struct_stat_st_blksize=yes
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 ac_cv_member_struct_stat_st_blksize=no
10341 fi
10342 rm -f conftest.$ac_objext conftest.$ac_ext
10343 fi
10344 rm -f conftest.$ac_objext conftest.$ac_ext
10345 fi
10346 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10347 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10348 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10349
10350 cat >>confdefs.h <<_ACEOF
10351 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10352 _ACEOF
10353
10354
10355 cat >>confdefs.h <<\_ACEOF
10356 #define HAVE_ST_BLKSIZE 1
10357 _ACEOF
10358
10359 fi
10360
10361
10362 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10363 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10364 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10374 $ac_includes_default
10375 int
10376 main ()
10377 {
10378 static struct stat ac_aggr;
10379 if (ac_aggr.st_blocks)
10380 return 0;
10381   ;
10382   return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10387   (eval $ac_compile) 2>&5
10388   ac_status=$?
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); } &&
10391          { ac_try='test -s conftest.$ac_objext'
10392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393   (eval $ac_try) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }; }; then
10397   ac_cv_member_struct_stat_st_blocks=yes
10398 else
10399   echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 /* confdefs.h.  */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h.  */
10409 $ac_includes_default
10410 int
10411 main ()
10412 {
10413 static struct stat ac_aggr;
10414 if (sizeof ac_aggr.st_blocks)
10415 return 0;
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422   (eval $ac_compile) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } &&
10426          { ac_try='test -s conftest.$ac_objext'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   ac_cv_member_struct_stat_st_blocks=yes
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ac_cv_member_struct_stat_st_blocks=no
10438 fi
10439 rm -f conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 rm -f conftest.$ac_objext conftest.$ac_ext
10442 fi
10443 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10444 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10445 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10446
10447 cat >>confdefs.h <<_ACEOF
10448 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10449 _ACEOF
10450
10451
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_ST_BLOCKS 1
10454 _ACEOF
10455
10456 else
10457   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10458 fi
10459
10460
10461 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10462 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10463 if test "${ac_cv_struct_tm+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   cat >conftest.$ac_ext <<_ACEOF
10467 #line $LINENO "configure"
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473 #include <sys/types.h>
10474 #include <time.h>
10475
10476 int
10477 main ()
10478 {
10479 struct tm *tp; tp->tm_sec;
10480   ;
10481   return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486   (eval $ac_compile) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); } &&
10490          { ac_try='test -s conftest.$ac_objext'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; }; then
10496   ac_cv_struct_tm=time.h
10497 else
10498   echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 ac_cv_struct_tm=sys/time.h
10502 fi
10503 rm -f conftest.$ac_objext conftest.$ac_ext
10504 fi
10505 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10506 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10507 if test $ac_cv_struct_tm = sys/time.h; then
10508
10509 cat >>confdefs.h <<\_ACEOF
10510 #define TM_IN_SYS_TIME 1
10511 _ACEOF
10512
10513 fi
10514
10515 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10516 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10517 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   cat >conftest.$ac_ext <<_ACEOF
10521 #line $LINENO "configure"
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527 #include <sys/types.h>
10528 #include <$ac_cv_struct_tm>
10529
10530
10531 int
10532 main ()
10533 {
10534 static struct tm ac_aggr;
10535 if (ac_aggr.tm_zone)
10536 return 0;
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543   (eval $ac_compile) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -s conftest.$ac_objext'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; }; then
10553   ac_cv_member_struct_tm_tm_zone=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 cat >conftest.$ac_ext <<_ACEOF
10559 #line $LINENO "configure"
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 #include <sys/types.h>
10566 #include <$ac_cv_struct_tm>
10567
10568
10569 int
10570 main ()
10571 {
10572 static struct tm ac_aggr;
10573 if (sizeof ac_aggr.tm_zone)
10574 return 0;
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581   (eval $ac_compile) 2>&5
10582   ac_status=$?
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); } &&
10585          { ac_try='test -s conftest.$ac_objext'
10586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587   (eval $ac_try) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; }; then
10591   ac_cv_member_struct_tm_tm_zone=yes
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ac_cv_member_struct_tm_tm_zone=no
10597 fi
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10599 fi
10600 rm -f conftest.$ac_objext conftest.$ac_ext
10601 fi
10602 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10603 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10604 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10605
10606 cat >>confdefs.h <<_ACEOF
10607 #define HAVE_STRUCT_TM_TM_ZONE 1
10608 _ACEOF
10609
10610
10611 fi
10612
10613 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10614
10615 cat >>confdefs.h <<\_ACEOF
10616 #define HAVE_TM_ZONE 1
10617 _ACEOF
10618
10619 else
10620   echo "$as_me:$LINENO: checking for tzname" >&5
10621 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10622 if test "${ac_cv_var_tzname+set}" = set; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632 #include <time.h>
10633 #ifndef tzname /* For SGI.  */
10634 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10635 #endif
10636
10637 int
10638 main ()
10639 {
10640 atoi(*tzname);
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647   (eval $ac_link) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } &&
10651          { ac_try='test -s conftest$ac_exeext'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }; then
10657   ac_cv_var_tzname=yes
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662 ac_cv_var_tzname=no
10663 fi
10664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10665 fi
10666 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10667 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10668   if test $ac_cv_var_tzname = yes; then
10669
10670 cat >>confdefs.h <<\_ACEOF
10671 #define HAVE_TZNAME 1
10672 _ACEOF
10673
10674   fi
10675 fi
10676
10677
10678 echo "$as_me:$LINENO: checking for utime.h" >&5
10679 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10680 if test "${ba_cv_header_utime_h+set}" = set; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683   cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690
10691 #include <sys/types.h>
10692 #include <utime.h>
10693 int
10694 main ()
10695 {
10696 struct utimbuf foo
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703   (eval $ac_compile) 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } &&
10707          { ac_try='test -s conftest.$ac_objext'
10708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709   (eval $ac_try) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; }; then
10713   ba_cv_header_utime_h=yes
10714 else
10715   echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 ba_cv_header_utime_h=no
10719 fi
10720 rm -f conftest.$ac_objext conftest.$ac_ext
10721 fi
10722 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10723 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10724 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10725 #define HAVE_UTIME_H 1
10726 _ACEOF
10727
10728
10729 echo "$as_me:$LINENO: checking for socklen_t" >&5
10730 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10731 if test "${ba_cv_header_socklen_t+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735 #line $LINENO "configure"
10736 /* confdefs.h.  */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h.  */
10741
10742 #include <sys/types.h>
10743 #include <sys/socket.h>
10744 int
10745 main ()
10746 {
10747 socklen_t x
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754   (eval $ac_compile) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); } &&
10758          { ac_try='test -s conftest.$ac_objext'
10759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760   (eval $ac_try) 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; }; then
10764   ba_cv_header_socklen_t=yes
10765 else
10766   echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10768
10769 ba_cv_header_socklen_t=no
10770 fi
10771 rm -f conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10774 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10775 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_SOCKLEN_T 1
10777 _ACEOF
10778
10779
10780 echo "$as_me:$LINENO: checking for bigendian" >&5
10781 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10782 if test "${ba_cv_bigendian+set}" = set; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785   if test "$cross_compiling" = yes; then
10786   ba_cv_bigendian=no
10787 else
10788   cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10796 _ACEOF
10797 rm -f conftest$ac_exeext
10798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10799   (eval $ac_link) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ba_cv_bigendian=yes
10809 else
10810   echo "$as_me: program exited with status $ac_status" >&5
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 ( exit $ac_status )
10815 ba_cv_bigendian=no
10816 fi
10817 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10818 fi
10819 fi
10820 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10821 echo "${ECHO_T}$ba_cv_bigendian" >&6
10822 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_BIGENDIAN 1
10824 _ACEOF
10825
10826
10827
10828 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10829 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10830 if test "${ac_cv_c_const+set}" = set; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833   cat >conftest.$ac_ext <<_ACEOF
10834 #line $LINENO "configure"
10835 /* confdefs.h.  */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h.  */
10840
10841 int
10842 main ()
10843 {
10844 /* FIXME: Include the comments suggested by Paul. */
10845 #ifndef __cplusplus
10846   /* Ultrix mips cc rejects this.  */
10847   typedef int charset[2];
10848   const charset x;
10849   /* SunOS 4.1.1 cc rejects this.  */
10850   char const *const *ccp;
10851   char **p;
10852   /* NEC SVR4.0.2 mips cc rejects this.  */
10853   struct point {int x, y;};
10854   static struct point const zero = {0,0};
10855   /* AIX XL C 1.02.0.0 rejects this.
10856      It does not let you subtract one const X* pointer from another in
10857      an arm of an if-expression whose if-part is not a constant
10858      expression */
10859   const char *g = "string";
10860   ccp = &g + (g ? g-g : 0);
10861   /* HPUX 7.0 cc rejects these. */
10862   ++ccp;
10863   p = (char**) ccp;
10864   ccp = (char const *const *) p;
10865   { /* SCO 3.2v4 cc rejects this.  */
10866     char *t;
10867     char const *s = 0 ? (char *) 0 : (char const *) 0;
10868
10869     *t++ = 0;
10870   }
10871   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10872     int x[] = {25, 17};
10873     const int *foo = &x[0];
10874     ++foo;
10875   }
10876   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10877     typedef const int *iptr;
10878     iptr p = 0;
10879     ++p;
10880   }
10881   { /* AIX XL C 1.02.0.0 rejects this saying
10882        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10883     struct s { int j; const int *ap[3]; };
10884     struct s *b; b->j = 5;
10885   }
10886   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10887     const int foo = 10;
10888   }
10889 #endif
10890
10891   ;
10892   return 0;
10893 }
10894 _ACEOF
10895 rm -f conftest.$ac_objext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897   (eval $ac_compile) 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } &&
10901          { ac_try='test -s conftest.$ac_objext'
10902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903   (eval $ac_try) 2>&5
10904   ac_status=$?
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); }; }; then
10907   ac_cv_c_const=yes
10908 else
10909   echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_cv_c_const=no
10913 fi
10914 rm -f conftest.$ac_objext conftest.$ac_ext
10915 fi
10916 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10917 echo "${ECHO_T}$ac_cv_c_const" >&6
10918 if test $ac_cv_c_const = no; then
10919
10920 cat >>confdefs.h <<\_ACEOF
10921 #define const
10922 _ACEOF
10923
10924 fi
10925
10926
10927
10928 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10929 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10930 fstype=no
10931 # The order of these tests is important.
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 /* confdefs.h.  */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h.  */
10939 #include <sys/statvfs.h>
10940 #include <sys/fstyp.h>
10941 _ACEOF
10942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } >/dev/null; then
10950   if test -s conftest.err; then
10951     ac_cpp_err=$ac_c_preproc_warn_flag
10952   else
10953     ac_cpp_err=
10954   fi
10955 else
10956   ac_cpp_err=yes
10957 fi
10958 if test -z "$ac_cpp_err"; then
10959   cat >>confdefs.h <<\_ACEOF
10960 #define FSTYPE_STATVFS 1
10961 _ACEOF
10962  fstype=SVR4
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967
10968 fi
10969 rm -f conftest.err conftest.$ac_ext
10970 if test $fstype = no; then
10971 cat >conftest.$ac_ext <<_ACEOF
10972 #line $LINENO "configure"
10973 /* confdefs.h.  */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h.  */
10978 #include <sys/statfs.h>
10979 #include <sys/fstyp.h>
10980 _ACEOF
10981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10983   ac_status=$?
10984   grep -v '^ *+' conftest.er1 >conftest.err
10985   rm -f conftest.er1
10986   cat conftest.err >&5
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); } >/dev/null; then
10989   if test -s conftest.err; then
10990     ac_cpp_err=$ac_c_preproc_warn_flag
10991   else
10992     ac_cpp_err=
10993   fi
10994 else
10995   ac_cpp_err=yes
10996 fi
10997 if test -z "$ac_cpp_err"; then
10998   cat >>confdefs.h <<\_ACEOF
10999 #define FSTYPE_USG_STATFS 1
11000 _ACEOF
11001  fstype=SVR3
11002 else
11003   echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006
11007 fi
11008 rm -f conftest.err conftest.$ac_ext
11009 fi
11010 if test $fstype = no; then
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018 #include <sys/statfs.h>
11019 #include <sys/vmount.h>
11020 _ACEOF
11021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11023   ac_status=$?
11024   grep -v '^ *+' conftest.er1 >conftest.err
11025   rm -f conftest.er1
11026   cat conftest.err >&5
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } >/dev/null; then
11029   if test -s conftest.err; then
11030     ac_cpp_err=$ac_c_preproc_warn_flag
11031   else
11032     ac_cpp_err=
11033   fi
11034 else
11035   ac_cpp_err=yes
11036 fi
11037 if test -z "$ac_cpp_err"; then
11038   cat >>confdefs.h <<\_ACEOF
11039 #define FSTYPE_AIX_STATFS 1
11040 _ACEOF
11041  fstype=AIX
11042 else
11043   echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046
11047 fi
11048 rm -f conftest.err conftest.$ac_ext
11049 fi
11050 if test $fstype = no; then
11051 cat >conftest.$ac_ext <<_ACEOF
11052 #line $LINENO "configure"
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058 #include <mntent.h>
11059 _ACEOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11062   ac_status=$?
11063   grep -v '^ *+' conftest.er1 >conftest.err
11064   rm -f conftest.er1
11065   cat conftest.err >&5
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } >/dev/null; then
11068   if test -s conftest.err; then
11069     ac_cpp_err=$ac_c_preproc_warn_flag
11070   else
11071     ac_cpp_err=
11072   fi
11073 else
11074   ac_cpp_err=yes
11075 fi
11076 if test -z "$ac_cpp_err"; then
11077   cat >>confdefs.h <<\_ACEOF
11078 #define FSTYPE_MNTENT 1
11079 _ACEOF
11080  fstype=4.3BSD
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085
11086 fi
11087 rm -f conftest.err conftest.$ac_ext
11088 fi
11089 if test $fstype = no; then
11090 cat >conftest.$ac_ext <<_ACEOF
11091 #line $LINENO "configure"
11092 /* confdefs.h.  */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h.  */
11097 #include <sys/mount.h>
11098
11099 _ACEOF
11100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11101   $EGREP "f_type;" >/dev/null 2>&1; then
11102   cat >>confdefs.h <<\_ACEOF
11103 #define FSTYPE_STATFS 1
11104 _ACEOF
11105  fstype=4.4BSD/OSF1
11106 fi
11107 rm -f conftest*
11108
11109 fi
11110 if test $fstype = no; then
11111 cat >conftest.$ac_ext <<_ACEOF
11112 #line $LINENO "configure"
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 #include <sys/mount.h>
11119 #include <sys/fs_types.h>
11120 _ACEOF
11121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11123   ac_status=$?
11124   grep -v '^ *+' conftest.er1 >conftest.err
11125   rm -f conftest.er1
11126   cat conftest.err >&5
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } >/dev/null; then
11129   if test -s conftest.err; then
11130     ac_cpp_err=$ac_c_preproc_warn_flag
11131   else
11132     ac_cpp_err=
11133   fi
11134 else
11135   ac_cpp_err=yes
11136 fi
11137 if test -z "$ac_cpp_err"; then
11138   cat >>confdefs.h <<\_ACEOF
11139 #define FSTYPE_GETMNT 1
11140 _ACEOF
11141  fstype=Ultrix
11142 else
11143   echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146
11147 fi
11148 rm -f conftest.err conftest.$ac_ext
11149 fi
11150 echo "$as_me:$LINENO: result: $fstype" >&5
11151 echo "${ECHO_T}$fstype" >&6
11152
11153 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11154 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11155 if test "${ac_cv_type_signal+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 #include <sys/types.h>
11166 #include <signal.h>
11167 #ifdef signal
11168 # undef signal
11169 #endif
11170 #ifdef __cplusplus
11171 extern "C" void (*signal (int, void (*)(int)))(int);
11172 #else
11173 void (*signal ()) ();
11174 #endif
11175
11176 int
11177 main ()
11178 {
11179 int i;
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 rm -f conftest.$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186   (eval $ac_compile) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); } &&
11190          { ac_try='test -s conftest.$ac_objext'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   ac_cv_type_signal=void
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 ac_cv_type_signal=int
11202 fi
11203 rm -f conftest.$ac_objext conftest.$ac_ext
11204 fi
11205 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11206 echo "${ECHO_T}$ac_cv_type_signal" >&6
11207
11208 cat >>confdefs.h <<_ACEOF
11209 #define RETSIGTYPE $ac_cv_type_signal
11210 _ACEOF
11211
11212
11213
11214 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11215 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11216 if test "${bash_cv_signal_vintage+set}" = set; then
11217   echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219
11220   cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 #include <signal.h>
11228 int
11229 main ()
11230 {
11231
11232     sigset_t ss;
11233     struct sigaction sa;
11234     sigemptyset(&ss); sigsuspend(&ss);
11235     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11236     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11237
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244   (eval $ac_link) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } &&
11248          { ac_try='test -s conftest$ac_exeext'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   bash_cv_signal_vintage=posix
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259
11260     cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267 #include <signal.h>
11268 int
11269 main ()
11270 {
11271
11272         int mask = sigmask(SIGINT);
11273         sigsetmask(mask); sigblock(mask); sigpause(mask);
11274
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281   (eval $ac_link) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -s conftest$ac_exeext'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; }; then
11291   bash_cv_signal_vintage=4.2bsd
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296
11297       cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11299 /* confdefs.h.  */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h.  */
11304
11305         #include <signal.h>
11306         RETSIGTYPE foo() { }
11307 int
11308 main ()
11309 {
11310
11311                 int mask = sigmask(SIGINT);
11312                 sigset(SIGINT, foo); sigrelse(SIGINT);
11313                 sighold(SIGINT); sigpause(SIGINT);
11314
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321   (eval $ac_link) 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } &&
11325          { ac_try='test -s conftest$ac_exeext'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; }; then
11331   bash_cv_signal_vintage=svr3
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11335
11336 bash_cv_signal_vintage=v7
11337
11338 fi
11339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11340
11341 fi
11342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11343
11344 fi
11345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11346
11347 fi
11348
11349 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11350 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11351 if test "$bash_cv_signal_vintage" = posix; then
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_POSIX_SIGNALS 1
11354 _ACEOF
11355
11356 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11357 cat >>confdefs.h <<\_ACEOF
11358 #define HAVE_BSD_SIGNALS 1
11359 _ACEOF
11360
11361 elif test "$bash_cv_signal_vintage" = svr3; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_USG_SIGHOLD 1
11364 _ACEOF
11365
11366 fi
11367
11368 echo "$as_me:$LINENO: checking for mode_t" >&5
11369 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11370 if test "${ac_cv_type_mode_t+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   cat >conftest.$ac_ext <<_ACEOF
11374 #line $LINENO "configure"
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 $ac_includes_default
11381 int
11382 main ()
11383 {
11384 if ((mode_t *) 0)
11385   return 0;
11386 if (sizeof (mode_t))
11387   return 0;
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394   (eval $ac_compile) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } &&
11398          { ac_try='test -s conftest.$ac_objext'
11399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400   (eval $ac_try) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   ac_cv_type_mode_t=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_cv_type_mode_t=no
11410 fi
11411 rm -f conftest.$ac_objext conftest.$ac_ext
11412 fi
11413 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11414 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11415 if test $ac_cv_type_mode_t = yes; then
11416   :
11417 else
11418
11419 cat >>confdefs.h <<_ACEOF
11420 #define mode_t int
11421 _ACEOF
11422
11423 fi
11424
11425 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11426 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11427 if test "${ac_cv_type_uid_t+set}" = set; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430   cat >conftest.$ac_ext <<_ACEOF
11431 #line $LINENO "configure"
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 #include <sys/types.h>
11438
11439 _ACEOF
11440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11441   $EGREP "uid_t" >/dev/null 2>&1; then
11442   ac_cv_type_uid_t=yes
11443 else
11444   ac_cv_type_uid_t=no
11445 fi
11446 rm -f conftest*
11447
11448 fi
11449 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11450 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11451 if test $ac_cv_type_uid_t = no; then
11452
11453 cat >>confdefs.h <<\_ACEOF
11454 #define uid_t int
11455 _ACEOF
11456
11457
11458 cat >>confdefs.h <<\_ACEOF
11459 #define gid_t int
11460 _ACEOF
11461
11462 fi
11463
11464 echo "$as_me:$LINENO: checking for size_t" >&5
11465 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11466 if test "${ac_cv_type_size_t+set}" = set; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476 $ac_includes_default
11477 int
11478 main ()
11479 {
11480 if ((size_t *) 0)
11481   return 0;
11482 if (sizeof (size_t))
11483   return 0;
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490   (eval $ac_compile) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); } &&
11494          { ac_try='test -s conftest.$ac_objext'
11495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496   (eval $ac_try) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; }; then
11500   ac_cv_type_size_t=yes
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505 ac_cv_type_size_t=no
11506 fi
11507 rm -f conftest.$ac_objext conftest.$ac_ext
11508 fi
11509 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11510 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11511 if test $ac_cv_type_size_t = yes; then
11512   :
11513 else
11514
11515 cat >>confdefs.h <<_ACEOF
11516 #define size_t unsigned
11517 _ACEOF
11518
11519 fi
11520
11521 echo "$as_me:$LINENO: checking for pid_t" >&5
11522 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11523 if test "${ac_cv_type_pid_t+set}" = set; then
11524   echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526   cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 $ac_includes_default
11534 int
11535 main ()
11536 {
11537 if ((pid_t *) 0)
11538   return 0;
11539 if (sizeof (pid_t))
11540   return 0;
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547   (eval $ac_compile) 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } &&
11551          { ac_try='test -s conftest.$ac_objext'
11552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553   (eval $ac_try) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; }; then
11557   ac_cv_type_pid_t=yes
11558 else
11559   echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 ac_cv_type_pid_t=no
11563 fi
11564 rm -f conftest.$ac_objext conftest.$ac_ext
11565 fi
11566 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11567 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11568 if test $ac_cv_type_pid_t = yes; then
11569   :
11570 else
11571
11572 cat >>confdefs.h <<_ACEOF
11573 #define pid_t int
11574 _ACEOF
11575
11576 fi
11577
11578 echo "$as_me:$LINENO: checking for off_t" >&5
11579 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11580 if test "${ac_cv_type_off_t+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11585 /* confdefs.h.  */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h.  */
11590 $ac_includes_default
11591 int
11592 main ()
11593 {
11594 if ((off_t *) 0)
11595   return 0;
11596 if (sizeof (off_t))
11597   return 0;
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 rm -f conftest.$ac_objext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604   (eval $ac_compile) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } &&
11608          { ac_try='test -s conftest.$ac_objext'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; }; then
11614   ac_cv_type_off_t=yes
11615 else
11616   echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619 ac_cv_type_off_t=no
11620 fi
11621 rm -f conftest.$ac_objext conftest.$ac_ext
11622 fi
11623 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11624 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11625 if test $ac_cv_type_off_t = yes; then
11626   :
11627 else
11628
11629 cat >>confdefs.h <<_ACEOF
11630 #define off_t long
11631 _ACEOF
11632
11633 fi
11634
11635 echo "$as_me:$LINENO: checking for ino_t" >&5
11636 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11637 if test "${ac_cv_type_ino_t+set}" = set; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 $ac_includes_default
11648 int
11649 main ()
11650 {
11651 if ((ino_t *) 0)
11652   return 0;
11653 if (sizeof (ino_t))
11654   return 0;
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661   (eval $ac_compile) 2>&5
11662   ac_status=$?
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -s conftest.$ac_objext'
11666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667   (eval $ac_try) 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; }; then
11671   ac_cv_type_ino_t=yes
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676 ac_cv_type_ino_t=no
11677 fi
11678 rm -f conftest.$ac_objext conftest.$ac_ext
11679 fi
11680 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11681 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11682 if test $ac_cv_type_ino_t = yes; then
11683   :
11684 else
11685
11686 cat >>confdefs.h <<_ACEOF
11687 #define ino_t unsigned long
11688 _ACEOF
11689
11690 fi
11691
11692 echo "$as_me:$LINENO: checking for dev_t" >&5
11693 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11694 if test "${ac_cv_type_dev_t+set}" = set; then
11695   echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697   cat >conftest.$ac_ext <<_ACEOF
11698 #line $LINENO "configure"
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 $ac_includes_default
11705 int
11706 main ()
11707 {
11708 if ((dev_t *) 0)
11709   return 0;
11710 if (sizeof (dev_t))
11711   return 0;
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 rm -f conftest.$ac_objext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718   (eval $ac_compile) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } &&
11722          { ac_try='test -s conftest.$ac_objext'
11723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724   (eval $ac_try) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   ac_cv_type_dev_t=yes
11729 else
11730   echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 ac_cv_type_dev_t=no
11734 fi
11735 rm -f conftest.$ac_objext conftest.$ac_ext
11736 fi
11737 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11738 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11739 if test $ac_cv_type_dev_t = yes; then
11740   :
11741 else
11742
11743 cat >>confdefs.h <<_ACEOF
11744 #define dev_t unsigned long
11745 _ACEOF
11746
11747 fi
11748
11749 echo "$as_me:$LINENO: checking for daddr_t" >&5
11750 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11751 if test "${ac_cv_type_daddr_t+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   cat >conftest.$ac_ext <<_ACEOF
11755 #line $LINENO "configure"
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761 $ac_includes_default
11762 int
11763 main ()
11764 {
11765 if ((daddr_t *) 0)
11766   return 0;
11767 if (sizeof (daddr_t))
11768   return 0;
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775   (eval $ac_compile) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); } &&
11779          { ac_try='test -s conftest.$ac_objext'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   ac_cv_type_daddr_t=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_cv_type_daddr_t=no
11791 fi
11792 rm -f conftest.$ac_objext conftest.$ac_ext
11793 fi
11794 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11795 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11796 if test $ac_cv_type_daddr_t = yes; then
11797   :
11798 else
11799
11800 cat >>confdefs.h <<_ACEOF
11801 #define daddr_t long
11802 _ACEOF
11803
11804 fi
11805
11806 echo "$as_me:$LINENO: checking for major_t" >&5
11807 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11808 if test "${ac_cv_type_major_t+set}" = set; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811   cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 $ac_includes_default
11819 int
11820 main ()
11821 {
11822 if ((major_t *) 0)
11823   return 0;
11824 if (sizeof (major_t))
11825   return 0;
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 rm -f conftest.$ac_objext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832   (eval $ac_compile) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } &&
11836          { ac_try='test -s conftest.$ac_objext'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }; then
11842   ac_cv_type_major_t=yes
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 ac_cv_type_major_t=no
11848 fi
11849 rm -f conftest.$ac_objext conftest.$ac_ext
11850 fi
11851 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11852 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11853 if test $ac_cv_type_major_t = yes; then
11854   :
11855 else
11856
11857 cat >>confdefs.h <<_ACEOF
11858 #define major_t int
11859 _ACEOF
11860
11861 fi
11862
11863 echo "$as_me:$LINENO: checking for minor_t" >&5
11864 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11865 if test "${ac_cv_type_minor_t+set}" = set; then
11866   echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868   cat >conftest.$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875 $ac_includes_default
11876 int
11877 main ()
11878 {
11879 if ((minor_t *) 0)
11880   return 0;
11881 if (sizeof (minor_t))
11882   return 0;
11883   ;
11884   return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889   (eval $ac_compile) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -s conftest.$ac_objext'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; }; then
11899   ac_cv_type_minor_t=yes
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_cv_type_minor_t=no
11905 fi
11906 rm -f conftest.$ac_objext conftest.$ac_ext
11907 fi
11908 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11909 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11910 if test $ac_cv_type_minor_t = yes; then
11911   :
11912 else
11913
11914 cat >>confdefs.h <<_ACEOF
11915 #define minor_t int
11916 _ACEOF
11917
11918 fi
11919
11920 echo "$as_me:$LINENO: checking for ssize_t" >&5
11921 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11922 if test "${ac_cv_type_ssize_t+set}" = set; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   cat >conftest.$ac_ext <<_ACEOF
11926 #line $LINENO "configure"
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932 $ac_includes_default
11933 int
11934 main ()
11935 {
11936 if ((ssize_t *) 0)
11937   return 0;
11938 if (sizeof (ssize_t))
11939   return 0;
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11946   (eval $ac_compile) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -s conftest.$ac_objext'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   ac_cv_type_ssize_t=yes
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 ac_cv_type_ssize_t=no
11962 fi
11963 rm -f conftest.$ac_objext conftest.$ac_ext
11964 fi
11965 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11966 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11967 if test $ac_cv_type_ssize_t = yes; then
11968   :
11969 else
11970
11971 cat >>confdefs.h <<_ACEOF
11972 #define ssize_t int
11973 _ACEOF
11974
11975 fi
11976
11977 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11978 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11979 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11980   echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982   cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 $ac_includes_default
11990 int
11991 main ()
11992 {
11993 static struct stat ac_aggr;
11994 if (ac_aggr.st_blocks)
11995 return 0;
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002   (eval $ac_compile) 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -s conftest.$ac_objext'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   ac_cv_member_struct_stat_st_blocks=yes
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 $ac_includes_default
12025 int
12026 main ()
12027 {
12028 static struct stat ac_aggr;
12029 if (sizeof ac_aggr.st_blocks)
12030 return 0;
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037   (eval $ac_compile) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -s conftest.$ac_objext'
12042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043   (eval $ac_try) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_cv_member_struct_stat_st_blocks=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 ac_cv_member_struct_stat_st_blocks=no
12053 fi
12054 rm -f conftest.$ac_objext conftest.$ac_ext
12055 fi
12056 rm -f conftest.$ac_objext conftest.$ac_ext
12057 fi
12058 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12059 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12060 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12061
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12064 _ACEOF
12065
12066
12067 cat >>confdefs.h <<\_ACEOF
12068 #define HAVE_ST_BLOCKS 1
12069 _ACEOF
12070
12071 else
12072   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12073 fi
12074
12075
12076
12077 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12078 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12079 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12084 /* confdefs.h.  */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h.  */
12089 $ac_includes_default
12090 int
12091 main ()
12092 {
12093 static struct stat ac_aggr;
12094 if (ac_aggr.st_rdev)
12095 return 0;
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102   (eval $ac_compile) 2>&5
12103   ac_status=$?
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); } &&
12106          { ac_try='test -s conftest.$ac_objext'
12107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108   (eval $ac_try) 2>&5
12109   ac_status=$?
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); }; }; then
12112   ac_cv_member_struct_stat_st_rdev=yes
12113 else
12114   echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 $ac_includes_default
12125 int
12126 main ()
12127 {
12128 static struct stat ac_aggr;
12129 if (sizeof ac_aggr.st_rdev)
12130 return 0;
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137   (eval $ac_compile) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); } &&
12141          { ac_try='test -s conftest.$ac_objext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_member_struct_stat_st_rdev=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_member_struct_stat_st_rdev=no
12153 fi
12154 rm -f conftest.$ac_objext conftest.$ac_ext
12155 fi
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12157 fi
12158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12159 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12160 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12161
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_STRUCT_STAT_ST_RDEV 1
12164 _ACEOF
12165
12166
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_ST_RDEV 1
12169 _ACEOF
12170
12171 fi
12172
12173
12174 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12175 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12176 if test "${ac_cv_struct_tm+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179   cat >conftest.$ac_ext <<_ACEOF
12180 #line $LINENO "configure"
12181 /* confdefs.h.  */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h.  */
12186 #include <sys/types.h>
12187 #include <time.h>
12188
12189 int
12190 main ()
12191 {
12192 struct tm *tp; tp->tm_sec;
12193   ;
12194   return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12199   (eval $ac_compile) 2>&5
12200   ac_status=$?
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); } &&
12203          { ac_try='test -s conftest.$ac_objext'
12204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205   (eval $ac_try) 2>&5
12206   ac_status=$?
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); }; }; then
12209   ac_cv_struct_tm=time.h
12210 else
12211   echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214 ac_cv_struct_tm=sys/time.h
12215 fi
12216 rm -f conftest.$ac_objext conftest.$ac_ext
12217 fi
12218 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12219 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12220 if test $ac_cv_struct_tm = sys/time.h; then
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define TM_IN_SYS_TIME 1
12224 _ACEOF
12225
12226 fi
12227
12228 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12229 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12230 if test "${ac_cv_c_const+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   cat >conftest.$ac_ext <<_ACEOF
12234 #line $LINENO "configure"
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12240
12241 int
12242 main ()
12243 {
12244 /* FIXME: Include the comments suggested by Paul. */
12245 #ifndef __cplusplus
12246   /* Ultrix mips cc rejects this.  */
12247   typedef int charset[2];
12248   const charset x;
12249   /* SunOS 4.1.1 cc rejects this.  */
12250   char const *const *ccp;
12251   char **p;
12252   /* NEC SVR4.0.2 mips cc rejects this.  */
12253   struct point {int x, y;};
12254   static struct point const zero = {0,0};
12255   /* AIX XL C 1.02.0.0 rejects this.
12256      It does not let you subtract one const X* pointer from another in
12257      an arm of an if-expression whose if-part is not a constant
12258      expression */
12259   const char *g = "string";
12260   ccp = &g + (g ? g-g : 0);
12261   /* HPUX 7.0 cc rejects these. */
12262   ++ccp;
12263   p = (char**) ccp;
12264   ccp = (char const *const *) p;
12265   { /* SCO 3.2v4 cc rejects this.  */
12266     char *t;
12267     char const *s = 0 ? (char *) 0 : (char const *) 0;
12268
12269     *t++ = 0;
12270   }
12271   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12272     int x[] = {25, 17};
12273     const int *foo = &x[0];
12274     ++foo;
12275   }
12276   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12277     typedef const int *iptr;
12278     iptr p = 0;
12279     ++p;
12280   }
12281   { /* AIX XL C 1.02.0.0 rejects this saying
12282        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12283     struct s { int j; const int *ap[3]; };
12284     struct s *b; b->j = 5;
12285   }
12286   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12287     const int foo = 10;
12288   }
12289 #endif
12290
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12297   (eval $ac_compile) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } &&
12301          { ac_try='test -s conftest.$ac_objext'
12302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303   (eval $ac_try) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; }; then
12307   ac_cv_c_const=yes
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312 ac_cv_c_const=no
12313 fi
12314 rm -f conftest.$ac_objext conftest.$ac_ext
12315 fi
12316 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12317 echo "${ECHO_T}$ac_cv_c_const" >&6
12318 if test $ac_cv_c_const = no; then
12319
12320 cat >>confdefs.h <<\_ACEOF
12321 #define const
12322 _ACEOF
12323
12324 fi
12325
12326
12327
12328 echo "$as_me:$LINENO: checking for char" >&5
12329 echo $ECHO_N "checking for char... $ECHO_C" >&6
12330 if test "${ac_cv_type_char+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12335 /* confdefs.h.  */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h.  */
12340 $ac_includes_default
12341 int
12342 main ()
12343 {
12344 if ((char *) 0)
12345   return 0;
12346 if (sizeof (char))
12347   return 0;
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354   (eval $ac_compile) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -s conftest.$ac_objext'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_cv_type_char=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_cv_type_char=no
12370 fi
12371 rm -f conftest.$ac_objext conftest.$ac_ext
12372 fi
12373 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12374 echo "${ECHO_T}$ac_cv_type_char" >&6
12375
12376 echo "$as_me:$LINENO: checking size of char" >&5
12377 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12378 if test "${ac_cv_sizeof_char+set}" = set; then
12379   echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381   if test "$ac_cv_type_char" = yes; then
12382   # The cast to unsigned long works around a bug in the HP C Compiler
12383   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12384   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12385   # This bug is HP SR number 8606223364.
12386   if test "$cross_compiling" = yes; then
12387   # Depending upon the size, compute the lo and hi bounds.
12388 cat >conftest.$ac_ext <<_ACEOF
12389 #line $LINENO "configure"
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 $ac_includes_default
12396 int
12397 main ()
12398 {
12399 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12400 test_array [0] = 0
12401
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408   (eval $ac_compile) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -s conftest.$ac_objext'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; }; then
12418   ac_lo=0 ac_mid=0
12419   while :; do
12420     cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 $ac_includes_default
12428 int
12429 main ()
12430 {
12431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12432 test_array [0] = 0
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440   (eval $ac_compile) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -s conftest.$ac_objext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450   ac_hi=$ac_mid; break
12451 else
12452   echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 ac_lo=`expr $ac_mid + 1`
12456                     if test $ac_lo -le $ac_mid; then
12457                       ac_lo= ac_hi=
12458                       break
12459                     fi
12460                     ac_mid=`expr 2 '*' $ac_mid + 1`
12461 fi
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12463   done
12464 else
12465   echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468 cat >conftest.$ac_ext <<_ACEOF
12469 #line $LINENO "configure"
12470 /* confdefs.h.  */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h.  */
12475 $ac_includes_default
12476 int
12477 main ()
12478 {
12479 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12480 test_array [0] = 0
12481
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488   (eval $ac_compile) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } &&
12492          { ac_try='test -s conftest.$ac_objext'
12493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494   (eval $ac_try) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); }; }; then
12498   ac_hi=-1 ac_mid=-1
12499   while :; do
12500     cat >conftest.$ac_ext <<_ACEOF
12501 #line $LINENO "configure"
12502 /* confdefs.h.  */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h.  */
12507 $ac_includes_default
12508 int
12509 main ()
12510 {
12511 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12512 test_array [0] = 0
12513
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520   (eval $ac_compile) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -s conftest.$ac_objext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530   ac_lo=$ac_mid; break
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 ac_hi=`expr '(' $ac_mid ')' - 1`
12536                        if test $ac_mid -le $ac_hi; then
12537                          ac_lo= ac_hi=
12538                          break
12539                        fi
12540                        ac_mid=`expr 2 '*' $ac_mid`
12541 fi
12542 rm -f conftest.$ac_objext conftest.$ac_ext
12543   done
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 ac_lo= ac_hi=
12549 fi
12550 rm -f conftest.$ac_objext conftest.$ac_ext
12551 fi
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12553 # Binary search between lo and hi bounds.
12554 while test "x$ac_lo" != "x$ac_hi"; do
12555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12556   cat >conftest.$ac_ext <<_ACEOF
12557 #line $LINENO "configure"
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563 $ac_includes_default
12564 int
12565 main ()
12566 {
12567 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12568 test_array [0] = 0
12569
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576   (eval $ac_compile) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } &&
12580          { ac_try='test -s conftest.$ac_objext'
12581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582   (eval $ac_try) 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; }; then
12586   ac_hi=$ac_mid
12587 else
12588   echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591 ac_lo=`expr '(' $ac_mid ')' + 1`
12592 fi
12593 rm -f conftest.$ac_objext conftest.$ac_ext
12594 done
12595 case $ac_lo in
12596 ?*) ac_cv_sizeof_char=$ac_lo;;
12597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12598 See \`config.log' for more details." >&5
12599 echo "$as_me: error: cannot compute sizeof (char), 77
12600 See \`config.log' for more details." >&2;}
12601    { (exit 1); exit 1; }; } ;;
12602 esac
12603 else
12604   if test "$cross_compiling" = yes; then
12605   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12606 See \`config.log' for more details." >&5
12607 echo "$as_me: error: cannot run test program while cross compiling
12608 See \`config.log' for more details." >&2;}
12609    { (exit 1); exit 1; }; }
12610 else
12611   cat >conftest.$ac_ext <<_ACEOF
12612 #line $LINENO "configure"
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618 $ac_includes_default
12619 long longval () { return (long) (sizeof (char)); }
12620 unsigned long ulongval () { return (long) (sizeof (char)); }
12621 #include <stdio.h>
12622 #include <stdlib.h>
12623 int
12624 main ()
12625 {
12626
12627   FILE *f = fopen ("conftest.val", "w");
12628   if (! f)
12629     exit (1);
12630   if (((long) (sizeof (char))) < 0)
12631     {
12632       long i = longval ();
12633       if (i != ((long) (sizeof (char))))
12634         exit (1);
12635       fprintf (f, "%ld\n", i);
12636     }
12637   else
12638     {
12639       unsigned long i = ulongval ();
12640       if (i != ((long) (sizeof (char))))
12641         exit (1);
12642       fprintf (f, "%lu\n", i);
12643     }
12644   exit (ferror (f) || fclose (f) != 0);
12645
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652   (eval $ac_link) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   ac_cv_sizeof_char=`cat conftest.val`
12662 else
12663   echo "$as_me: program exited with status $ac_status" >&5
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 ( exit $ac_status )
12668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12669 See \`config.log' for more details." >&5
12670 echo "$as_me: error: cannot compute sizeof (char), 77
12671 See \`config.log' for more details." >&2;}
12672    { (exit 1); exit 1; }; }
12673 fi
12674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12675 fi
12676 fi
12677 rm -f conftest.val
12678 else
12679   ac_cv_sizeof_char=0
12680 fi
12681 fi
12682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12683 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12684 cat >>confdefs.h <<_ACEOF
12685 #define SIZEOF_CHAR $ac_cv_sizeof_char
12686 _ACEOF
12687
12688
12689 echo "$as_me:$LINENO: checking for short int" >&5
12690 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12691 if test "${ac_cv_type_short_int+set}" = set; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   cat >conftest.$ac_ext <<_ACEOF
12695 #line $LINENO "configure"
12696 /* confdefs.h.  */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h.  */
12701 $ac_includes_default
12702 int
12703 main ()
12704 {
12705 if ((short int *) 0)
12706   return 0;
12707 if (sizeof (short int))
12708   return 0;
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715   (eval $ac_compile) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -s conftest.$ac_objext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_cv_type_short_int=yes
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ac_cv_type_short_int=no
12731 fi
12732 rm -f conftest.$ac_objext conftest.$ac_ext
12733 fi
12734 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12735 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12736
12737 echo "$as_me:$LINENO: checking size of short int" >&5
12738 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12739 if test "${ac_cv_sizeof_short_int+set}" = set; then
12740   echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742   if test "$ac_cv_type_short_int" = yes; then
12743   # The cast to unsigned long works around a bug in the HP C Compiler
12744   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12745   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12746   # This bug is HP SR number 8606223364.
12747   if test "$cross_compiling" = yes; then
12748   # Depending upon the size, compute the lo and hi bounds.
12749 cat >conftest.$ac_ext <<_ACEOF
12750 #line $LINENO "configure"
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756 $ac_includes_default
12757 int
12758 main ()
12759 {
12760 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12761 test_array [0] = 0
12762
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769   (eval $ac_compile) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } &&
12773          { ac_try='test -s conftest.$ac_objext'
12774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775   (eval $ac_try) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); }; }; then
12779   ac_lo=0 ac_mid=0
12780   while :; do
12781     cat >conftest.$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788 $ac_includes_default
12789 int
12790 main ()
12791 {
12792 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12793 test_array [0] = 0
12794
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801   (eval $ac_compile) 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); } &&
12805          { ac_try='test -s conftest.$ac_objext'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; }; then
12811   ac_hi=$ac_mid; break
12812 else
12813   echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816 ac_lo=`expr $ac_mid + 1`
12817                     if test $ac_lo -le $ac_mid; then
12818                       ac_lo= ac_hi=
12819                       break
12820                     fi
12821                     ac_mid=`expr 2 '*' $ac_mid + 1`
12822 fi
12823 rm -f conftest.$ac_objext conftest.$ac_ext
12824   done
12825 else
12826   echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 cat >conftest.$ac_ext <<_ACEOF
12830 #line $LINENO "configure"
12831 /* confdefs.h.  */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h.  */
12836 $ac_includes_default
12837 int
12838 main ()
12839 {
12840 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12841 test_array [0] = 0
12842
12843   ;
12844   return 0;
12845 }
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849   (eval $ac_compile) 2>&5
12850   ac_status=$?
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } &&
12853          { ac_try='test -s conftest.$ac_objext'
12854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855   (eval $ac_try) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859   ac_hi=-1 ac_mid=-1
12860   while :; do
12861     cat >conftest.$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12863 /* confdefs.h.  */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h.  */
12868 $ac_includes_default
12869 int
12870 main ()
12871 {
12872 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12873 test_array [0] = 0
12874
12875   ;
12876   return 0;
12877 }
12878 _ACEOF
12879 rm -f conftest.$ac_objext
12880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12881   (eval $ac_compile) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } &&
12885          { ac_try='test -s conftest.$ac_objext'
12886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887   (eval $ac_try) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; }; then
12891   ac_lo=$ac_mid; break
12892 else
12893   echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896 ac_hi=`expr '(' $ac_mid ')' - 1`
12897                        if test $ac_mid -le $ac_hi; then
12898                          ac_lo= ac_hi=
12899                          break
12900                        fi
12901                        ac_mid=`expr 2 '*' $ac_mid`
12902 fi
12903 rm -f conftest.$ac_objext conftest.$ac_ext
12904   done
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_lo= ac_hi=
12910 fi
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12912 fi
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914 # Binary search between lo and hi bounds.
12915 while test "x$ac_lo" != "x$ac_hi"; do
12916   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12917   cat >conftest.$ac_ext <<_ACEOF
12918 #line $LINENO "configure"
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924 $ac_includes_default
12925 int
12926 main ()
12927 {
12928 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12929 test_array [0] = 0
12930
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937   (eval $ac_compile) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } &&
12941          { ac_try='test -s conftest.$ac_objext'
12942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943   (eval $ac_try) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   ac_hi=$ac_mid
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 ac_lo=`expr '(' $ac_mid ')' + 1`
12953 fi
12954 rm -f conftest.$ac_objext conftest.$ac_ext
12955 done
12956 case $ac_lo in
12957 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12959 See \`config.log' for more details." >&5
12960 echo "$as_me: error: cannot compute sizeof (short int), 77
12961 See \`config.log' for more details." >&2;}
12962    { (exit 1); exit 1; }; } ;;
12963 esac
12964 else
12965   if test "$cross_compiling" = yes; then
12966   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12967 See \`config.log' for more details." >&5
12968 echo "$as_me: error: cannot run test program while cross compiling
12969 See \`config.log' for more details." >&2;}
12970    { (exit 1); exit 1; }; }
12971 else
12972   cat >conftest.$ac_ext <<_ACEOF
12973 #line $LINENO "configure"
12974 /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979 $ac_includes_default
12980 long longval () { return (long) (sizeof (short int)); }
12981 unsigned long ulongval () { return (long) (sizeof (short int)); }
12982 #include <stdio.h>
12983 #include <stdlib.h>
12984 int
12985 main ()
12986 {
12987
12988   FILE *f = fopen ("conftest.val", "w");
12989   if (! f)
12990     exit (1);
12991   if (((long) (sizeof (short int))) < 0)
12992     {
12993       long i = longval ();
12994       if (i != ((long) (sizeof (short int))))
12995         exit (1);
12996       fprintf (f, "%ld\n", i);
12997     }
12998   else
12999     {
13000       unsigned long i = ulongval ();
13001       if (i != ((long) (sizeof (short int))))
13002         exit (1);
13003       fprintf (f, "%lu\n", i);
13004     }
13005   exit (ferror (f) || fclose (f) != 0);
13006
13007   ;
13008   return 0;
13009 }
13010 _ACEOF
13011 rm -f conftest$ac_exeext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13013   (eval $ac_link) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018   (eval $ac_try) 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; }; then
13022   ac_cv_sizeof_short_int=`cat conftest.val`
13023 else
13024   echo "$as_me: program exited with status $ac_status" >&5
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13027
13028 ( exit $ac_status )
13029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13030 See \`config.log' for more details." >&5
13031 echo "$as_me: error: cannot compute sizeof (short int), 77
13032 See \`config.log' for more details." >&2;}
13033    { (exit 1); exit 1; }; }
13034 fi
13035 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13036 fi
13037 fi
13038 rm -f conftest.val
13039 else
13040   ac_cv_sizeof_short_int=0
13041 fi
13042 fi
13043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13044 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13045 cat >>confdefs.h <<_ACEOF
13046 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13047 _ACEOF
13048
13049
13050 echo "$as_me:$LINENO: checking for int" >&5
13051 echo $ECHO_N "checking for int... $ECHO_C" >&6
13052 if test "${ac_cv_type_int+set}" = set; then
13053   echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055   cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13057 /* confdefs.h.  */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h.  */
13062 $ac_includes_default
13063 int
13064 main ()
13065 {
13066 if ((int *) 0)
13067   return 0;
13068 if (sizeof (int))
13069   return 0;
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076   (eval $ac_compile) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); } &&
13080          { ac_try='test -s conftest.$ac_objext'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   ac_cv_type_int=yes
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091 ac_cv_type_int=no
13092 fi
13093 rm -f conftest.$ac_objext conftest.$ac_ext
13094 fi
13095 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13096 echo "${ECHO_T}$ac_cv_type_int" >&6
13097
13098 echo "$as_me:$LINENO: checking size of int" >&5
13099 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13100 if test "${ac_cv_sizeof_int+set}" = set; then
13101   echo $ECHO_N "(cached) $ECHO_C" >&6
13102 else
13103   if test "$ac_cv_type_int" = yes; then
13104   # The cast to unsigned long works around a bug in the HP C Compiler
13105   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13106   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13107   # This bug is HP SR number 8606223364.
13108   if test "$cross_compiling" = yes; then
13109   # Depending upon the size, compute the lo and hi bounds.
13110 cat >conftest.$ac_ext <<_ACEOF
13111 #line $LINENO "configure"
13112 /* confdefs.h.  */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h.  */
13117 $ac_includes_default
13118 int
13119 main ()
13120 {
13121 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13122 test_array [0] = 0
13123
13124   ;
13125   return 0;
13126 }
13127 _ACEOF
13128 rm -f conftest.$ac_objext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130   (eval $ac_compile) 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); } &&
13134          { ac_try='test -s conftest.$ac_objext'
13135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136   (eval $ac_try) 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }; }; then
13140   ac_lo=0 ac_mid=0
13141   while :; do
13142     cat >conftest.$ac_ext <<_ACEOF
13143 #line $LINENO "configure"
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149 $ac_includes_default
13150 int
13151 main ()
13152 {
13153 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13154 test_array [0] = 0
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -s conftest.$ac_objext'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_hi=$ac_mid; break
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177 ac_lo=`expr $ac_mid + 1`
13178                     if test $ac_lo -le $ac_mid; then
13179                       ac_lo= ac_hi=
13180                       break
13181                     fi
13182                     ac_mid=`expr 2 '*' $ac_mid + 1`
13183 fi
13184 rm -f conftest.$ac_objext conftest.$ac_ext
13185   done
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197 $ac_includes_default
13198 int
13199 main ()
13200 {
13201 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13202 test_array [0] = 0
13203
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 rm -f conftest.$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210   (eval $ac_compile) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); } &&
13214          { ac_try='test -s conftest.$ac_objext'
13215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216   (eval $ac_try) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   ac_hi=-1 ac_mid=-1
13221   while :; do
13222     cat >conftest.$ac_ext <<_ACEOF
13223 #line $LINENO "configure"
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229 $ac_includes_default
13230 int
13231 main ()
13232 {
13233 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13234 test_array [0] = 0
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242   (eval $ac_compile) 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -s conftest.$ac_objext'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; }; then
13252   ac_lo=$ac_mid; break
13253 else
13254   echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13256
13257 ac_hi=`expr '(' $ac_mid ')' - 1`
13258                        if test $ac_mid -le $ac_hi; then
13259                          ac_lo= ac_hi=
13260                          break
13261                        fi
13262                        ac_mid=`expr 2 '*' $ac_mid`
13263 fi
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13265   done
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_lo= ac_hi=
13271 fi
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13273 fi
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275 # Binary search between lo and hi bounds.
13276 while test "x$ac_lo" != "x$ac_hi"; do
13277   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13278   cat >conftest.$ac_ext <<_ACEOF
13279 #line $LINENO "configure"
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285 $ac_includes_default
13286 int
13287 main ()
13288 {
13289 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13290 test_array [0] = 0
13291
13292   ;
13293   return 0;
13294 }
13295 _ACEOF
13296 rm -f conftest.$ac_objext
13297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13298   (eval $ac_compile) 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); } &&
13302          { ac_try='test -s conftest.$ac_objext'
13303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304   (eval $ac_try) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); }; }; then
13308   ac_hi=$ac_mid
13309 else
13310   echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13312
13313 ac_lo=`expr '(' $ac_mid ')' + 1`
13314 fi
13315 rm -f conftest.$ac_objext conftest.$ac_ext
13316 done
13317 case $ac_lo in
13318 ?*) ac_cv_sizeof_int=$ac_lo;;
13319 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13320 See \`config.log' for more details." >&5
13321 echo "$as_me: error: cannot compute sizeof (int), 77
13322 See \`config.log' for more details." >&2;}
13323    { (exit 1); exit 1; }; } ;;
13324 esac
13325 else
13326   if test "$cross_compiling" = yes; then
13327   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13328 See \`config.log' for more details." >&5
13329 echo "$as_me: error: cannot run test program while cross compiling
13330 See \`config.log' for more details." >&2;}
13331    { (exit 1); exit 1; }; }
13332 else
13333   cat >conftest.$ac_ext <<_ACEOF
13334 #line $LINENO "configure"
13335 /* confdefs.h.  */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h.  */
13340 $ac_includes_default
13341 long longval () { return (long) (sizeof (int)); }
13342 unsigned long ulongval () { return (long) (sizeof (int)); }
13343 #include <stdio.h>
13344 #include <stdlib.h>
13345 int
13346 main ()
13347 {
13348
13349   FILE *f = fopen ("conftest.val", "w");
13350   if (! f)
13351     exit (1);
13352   if (((long) (sizeof (int))) < 0)
13353     {
13354       long i = longval ();
13355       if (i != ((long) (sizeof (int))))
13356         exit (1);
13357       fprintf (f, "%ld\n", i);
13358     }
13359   else
13360     {
13361       unsigned long i = ulongval ();
13362       if (i != ((long) (sizeof (int))))
13363         exit (1);
13364       fprintf (f, "%lu\n", i);
13365     }
13366   exit (ferror (f) || fclose (f) != 0);
13367
13368   ;
13369   return 0;
13370 }
13371 _ACEOF
13372 rm -f conftest$ac_exeext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13374   (eval $ac_link) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   ac_cv_sizeof_int=`cat conftest.val`
13384 else
13385   echo "$as_me: program exited with status $ac_status" >&5
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 ( exit $ac_status )
13390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13391 See \`config.log' for more details." >&5
13392 echo "$as_me: error: cannot compute sizeof (int), 77
13393 See \`config.log' for more details." >&2;}
13394    { (exit 1); exit 1; }; }
13395 fi
13396 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13397 fi
13398 fi
13399 rm -f conftest.val
13400 else
13401   ac_cv_sizeof_int=0
13402 fi
13403 fi
13404 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13405 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13406 cat >>confdefs.h <<_ACEOF
13407 #define SIZEOF_INT $ac_cv_sizeof_int
13408 _ACEOF
13409
13410
13411 echo "$as_me:$LINENO: checking for long int" >&5
13412 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13413 if test "${ac_cv_type_long_int+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   cat >conftest.$ac_ext <<_ACEOF
13417 #line $LINENO "configure"
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 $ac_includes_default
13424 int
13425 main ()
13426 {
13427 if ((long int *) 0)
13428   return 0;
13429 if (sizeof (long int))
13430   return 0;
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437   (eval $ac_compile) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -s conftest.$ac_objext'
13442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443   (eval $ac_try) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447   ac_cv_type_long_int=yes
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 ac_cv_type_long_int=no
13453 fi
13454 rm -f conftest.$ac_objext conftest.$ac_ext
13455 fi
13456 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13457 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13458
13459 echo "$as_me:$LINENO: checking size of long int" >&5
13460 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13461 if test "${ac_cv_sizeof_long_int+set}" = set; then
13462   echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464   if test "$ac_cv_type_long_int" = yes; then
13465   # The cast to unsigned long works around a bug in the HP C Compiler
13466   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13467   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13468   # This bug is HP SR number 8606223364.
13469   if test "$cross_compiling" = yes; then
13470   # Depending upon the size, compute the lo and hi bounds.
13471 cat >conftest.$ac_ext <<_ACEOF
13472 #line $LINENO "configure"
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 $ac_includes_default
13479 int
13480 main ()
13481 {
13482 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13483 test_array [0] = 0
13484
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491   (eval $ac_compile) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } &&
13495          { ac_try='test -s conftest.$ac_objext'
13496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497   (eval $ac_try) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; }; then
13501   ac_lo=0 ac_mid=0
13502   while :; do
13503     cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13505 /* confdefs.h.  */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h.  */
13510 $ac_includes_default
13511 int
13512 main ()
13513 {
13514 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13515 test_array [0] = 0
13516
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 rm -f conftest.$ac_objext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13523   (eval $ac_compile) 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -s conftest.$ac_objext'
13528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529   (eval $ac_try) 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; }; then
13533   ac_hi=$ac_mid; break
13534 else
13535   echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538 ac_lo=`expr $ac_mid + 1`
13539                     if test $ac_lo -le $ac_mid; then
13540                       ac_lo= ac_hi=
13541                       break
13542                     fi
13543                     ac_mid=`expr 2 '*' $ac_mid + 1`
13544 fi
13545 rm -f conftest.$ac_objext conftest.$ac_ext
13546   done
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 $ac_includes_default
13559 int
13560 main ()
13561 {
13562 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13563 test_array [0] = 0
13564
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571   (eval $ac_compile) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } &&
13575          { ac_try='test -s conftest.$ac_objext'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   ac_hi=-1 ac_mid=-1
13582   while :; do
13583     cat >conftest.$ac_ext <<_ACEOF
13584 #line $LINENO "configure"
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590 $ac_includes_default
13591 int
13592 main ()
13593 {
13594 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13595 test_array [0] = 0
13596
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603   (eval $ac_compile) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } &&
13607          { ac_try='test -s conftest.$ac_objext'
13608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609   (eval $ac_try) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); }; }; then
13613   ac_lo=$ac_mid; break
13614 else
13615   echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 ac_hi=`expr '(' $ac_mid ')' - 1`
13619                        if test $ac_mid -le $ac_hi; then
13620                          ac_lo= ac_hi=
13621                          break
13622                        fi
13623                        ac_mid=`expr 2 '*' $ac_mid`
13624 fi
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13626   done
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 ac_lo= ac_hi=
13632 fi
13633 rm -f conftest.$ac_objext conftest.$ac_ext
13634 fi
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13636 # Binary search between lo and hi bounds.
13637 while test "x$ac_lo" != "x$ac_hi"; do
13638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13639   cat >conftest.$ac_ext <<_ACEOF
13640 #line $LINENO "configure"
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646 $ac_includes_default
13647 int
13648 main ()
13649 {
13650 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13651 test_array [0] = 0
13652
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659   (eval $ac_compile) 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); } &&
13663          { ac_try='test -s conftest.$ac_objext'
13664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665   (eval $ac_try) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; }; then
13669   ac_hi=$ac_mid
13670 else
13671   echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13673
13674 ac_lo=`expr '(' $ac_mid ')' + 1`
13675 fi
13676 rm -f conftest.$ac_objext conftest.$ac_ext
13677 done
13678 case $ac_lo in
13679 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13681 See \`config.log' for more details." >&5
13682 echo "$as_me: error: cannot compute sizeof (long int), 77
13683 See \`config.log' for more details." >&2;}
13684    { (exit 1); exit 1; }; } ;;
13685 esac
13686 else
13687   if test "$cross_compiling" = yes; then
13688   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13689 See \`config.log' for more details." >&5
13690 echo "$as_me: error: cannot run test program while cross compiling
13691 See \`config.log' for more details." >&2;}
13692    { (exit 1); exit 1; }; }
13693 else
13694   cat >conftest.$ac_ext <<_ACEOF
13695 #line $LINENO "configure"
13696 /* confdefs.h.  */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h.  */
13701 $ac_includes_default
13702 long longval () { return (long) (sizeof (long int)); }
13703 unsigned long ulongval () { return (long) (sizeof (long int)); }
13704 #include <stdio.h>
13705 #include <stdlib.h>
13706 int
13707 main ()
13708 {
13709
13710   FILE *f = fopen ("conftest.val", "w");
13711   if (! f)
13712     exit (1);
13713   if (((long) (sizeof (long int))) < 0)
13714     {
13715       long i = longval ();
13716       if (i != ((long) (sizeof (long int))))
13717         exit (1);
13718       fprintf (f, "%ld\n", i);
13719     }
13720   else
13721     {
13722       unsigned long i = ulongval ();
13723       if (i != ((long) (sizeof (long int))))
13724         exit (1);
13725       fprintf (f, "%lu\n", i);
13726     }
13727   exit (ferror (f) || fclose (f) != 0);
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest$ac_exeext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735   (eval $ac_link) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   ac_cv_sizeof_long_int=`cat conftest.val`
13745 else
13746   echo "$as_me: program exited with status $ac_status" >&5
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 ( exit $ac_status )
13751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13752 See \`config.log' for more details." >&5
13753 echo "$as_me: error: cannot compute sizeof (long int), 77
13754 See \`config.log' for more details." >&2;}
13755    { (exit 1); exit 1; }; }
13756 fi
13757 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13758 fi
13759 fi
13760 rm -f conftest.val
13761 else
13762   ac_cv_sizeof_long_int=0
13763 fi
13764 fi
13765 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13766 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13767 cat >>confdefs.h <<_ACEOF
13768 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13769 _ACEOF
13770
13771
13772 echo "$as_me:$LINENO: checking for long long int" >&5
13773 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13774 if test "${ac_cv_type_long_long_int+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   cat >conftest.$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13779 /* confdefs.h.  */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h.  */
13784 $ac_includes_default
13785 int
13786 main ()
13787 {
13788 if ((long long int *) 0)
13789   return 0;
13790 if (sizeof (long long int))
13791   return 0;
13792   ;
13793   return 0;
13794 }
13795 _ACEOF
13796 rm -f conftest.$ac_objext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798   (eval $ac_compile) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } &&
13802          { ac_try='test -s conftest.$ac_objext'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; }; then
13808   ac_cv_type_long_long_int=yes
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813 ac_cv_type_long_long_int=no
13814 fi
13815 rm -f conftest.$ac_objext conftest.$ac_ext
13816 fi
13817 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13818 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13819
13820 echo "$as_me:$LINENO: checking size of long long int" >&5
13821 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13822 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13823   echo $ECHO_N "(cached) $ECHO_C" >&6
13824 else
13825   if test "$ac_cv_type_long_long_int" = yes; then
13826   # The cast to unsigned long works around a bug in the HP C Compiler
13827   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13828   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13829   # This bug is HP SR number 8606223364.
13830   if test "$cross_compiling" = yes; then
13831   # Depending upon the size, compute the lo and hi bounds.
13832 cat >conftest.$ac_ext <<_ACEOF
13833 #line $LINENO "configure"
13834 /* confdefs.h.  */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h.  */
13839 $ac_includes_default
13840 int
13841 main ()
13842 {
13843 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13844 test_array [0] = 0
13845
13846   ;
13847   return 0;
13848 }
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852   (eval $ac_compile) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); } &&
13856          { ac_try='test -s conftest.$ac_objext'
13857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858   (eval $ac_try) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_lo=0 ac_mid=0
13863   while :; do
13864     cat >conftest.$ac_ext <<_ACEOF
13865 #line $LINENO "configure"
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 $ac_includes_default
13872 int
13873 main ()
13874 {
13875 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13876 test_array [0] = 0
13877
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884   (eval $ac_compile) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -s conftest.$ac_objext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_hi=$ac_mid; break
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 ac_lo=`expr $ac_mid + 1`
13900                     if test $ac_lo -le $ac_mid; then
13901                       ac_lo= ac_hi=
13902                       break
13903                     fi
13904                     ac_mid=`expr 2 '*' $ac_mid + 1`
13905 fi
13906 rm -f conftest.$ac_objext conftest.$ac_ext
13907   done
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 $ac_includes_default
13920 int
13921 main ()
13922 {
13923 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13924 test_array [0] = 0
13925
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932   (eval $ac_compile) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -s conftest.$ac_objext'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; }; then
13942   ac_hi=-1 ac_mid=-1
13943   while :; do
13944     cat >conftest.$ac_ext <<_ACEOF
13945 #line $LINENO "configure"
13946 /* confdefs.h.  */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h.  */
13951 $ac_includes_default
13952 int
13953 main ()
13954 {
13955 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13956 test_array [0] = 0
13957
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } &&
13968          { ac_try='test -s conftest.$ac_objext'
13969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970   (eval $ac_try) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; }; then
13974   ac_lo=$ac_mid; break
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979 ac_hi=`expr '(' $ac_mid ')' - 1`
13980                        if test $ac_mid -le $ac_hi; then
13981                          ac_lo= ac_hi=
13982                          break
13983                        fi
13984                        ac_mid=`expr 2 '*' $ac_mid`
13985 fi
13986 rm -f conftest.$ac_objext conftest.$ac_ext
13987   done
13988 else
13989   echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 ac_lo= ac_hi=
13993 fi
13994 rm -f conftest.$ac_objext conftest.$ac_ext
13995 fi
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13997 # Binary search between lo and hi bounds.
13998 while test "x$ac_lo" != "x$ac_hi"; do
13999   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14000   cat >conftest.$ac_ext <<_ACEOF
14001 #line $LINENO "configure"
14002 /* confdefs.h.  */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h.  */
14007 $ac_includes_default
14008 int
14009 main ()
14010 {
14011 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14012 test_array [0] = 0
14013
14014   ;
14015   return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020   (eval $ac_compile) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } &&
14024          { ac_try='test -s conftest.$ac_objext'
14025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026   (eval $ac_try) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_hi=$ac_mid
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_lo=`expr '(' $ac_mid ')' + 1`
14036 fi
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14038 done
14039 case $ac_lo in
14040 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14041 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14042 See \`config.log' for more details." >&5
14043 echo "$as_me: error: cannot compute sizeof (long long int), 77
14044 See \`config.log' for more details." >&2;}
14045    { (exit 1); exit 1; }; } ;;
14046 esac
14047 else
14048   if test "$cross_compiling" = yes; then
14049   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14050 See \`config.log' for more details." >&5
14051 echo "$as_me: error: cannot run test program while cross compiling
14052 See \`config.log' for more details." >&2;}
14053    { (exit 1); exit 1; }; }
14054 else
14055   cat >conftest.$ac_ext <<_ACEOF
14056 #line $LINENO "configure"
14057 /* confdefs.h.  */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h.  */
14062 $ac_includes_default
14063 long longval () { return (long) (sizeof (long long int)); }
14064 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14065 #include <stdio.h>
14066 #include <stdlib.h>
14067 int
14068 main ()
14069 {
14070
14071   FILE *f = fopen ("conftest.val", "w");
14072   if (! f)
14073     exit (1);
14074   if (((long) (sizeof (long long int))) < 0)
14075     {
14076       long i = longval ();
14077       if (i != ((long) (sizeof (long long int))))
14078         exit (1);
14079       fprintf (f, "%ld\n", i);
14080     }
14081   else
14082     {
14083       unsigned long i = ulongval ();
14084       if (i != ((long) (sizeof (long long int))))
14085         exit (1);
14086       fprintf (f, "%lu\n", i);
14087     }
14088   exit (ferror (f) || fclose (f) != 0);
14089
14090   ;
14091   return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest$ac_exeext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14096   (eval $ac_link) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   ac_cv_sizeof_long_long_int=`cat conftest.val`
14106 else
14107   echo "$as_me: program exited with status $ac_status" >&5
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14110
14111 ( exit $ac_status )
14112 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14113 See \`config.log' for more details." >&5
14114 echo "$as_me: error: cannot compute sizeof (long long int), 77
14115 See \`config.log' for more details." >&2;}
14116    { (exit 1); exit 1; }; }
14117 fi
14118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14119 fi
14120 fi
14121 rm -f conftest.val
14122 else
14123   ac_cv_sizeof_long_long_int=0
14124 fi
14125 fi
14126 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14127 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14128 cat >>confdefs.h <<_ACEOF
14129 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14130 _ACEOF
14131
14132
14133 echo "$as_me:$LINENO: checking for int *" >&5
14134 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14135 if test "${ac_cv_type_int_p+set}" = set; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145 $ac_includes_default
14146 int
14147 main ()
14148 {
14149 if ((int * *) 0)
14150   return 0;
14151 if (sizeof (int *))
14152   return 0;
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159   (eval $ac_compile) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); } &&
14163          { ac_try='test -s conftest.$ac_objext'
14164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165   (eval $ac_try) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; }; then
14169   ac_cv_type_int_p=yes
14170 else
14171   echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 ac_cv_type_int_p=no
14175 fi
14176 rm -f conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14179 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14180
14181 echo "$as_me:$LINENO: checking size of int *" >&5
14182 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14183 if test "${ac_cv_sizeof_int_p+set}" = set; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186   if test "$ac_cv_type_int_p" = yes; then
14187   # The cast to unsigned long works around a bug in the HP C Compiler
14188   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14189   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14190   # This bug is HP SR number 8606223364.
14191   if test "$cross_compiling" = yes; then
14192   # Depending upon the size, compute the lo and hi bounds.
14193 cat >conftest.$ac_ext <<_ACEOF
14194 #line $LINENO "configure"
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200 $ac_includes_default
14201 int
14202 main ()
14203 {
14204 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14205 test_array [0] = 0
14206
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213   (eval $ac_compile) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -s conftest.$ac_objext'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }; then
14223   ac_lo=0 ac_mid=0
14224   while :; do
14225     cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 $ac_includes_default
14233 int
14234 main ()
14235 {
14236 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14237 test_array [0] = 0
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245   (eval $ac_compile) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } &&
14249          { ac_try='test -s conftest.$ac_objext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   ac_hi=$ac_mid; break
14256 else
14257   echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 ac_lo=`expr $ac_mid + 1`
14261                     if test $ac_lo -le $ac_mid; then
14262                       ac_lo= ac_hi=
14263                       break
14264                     fi
14265                     ac_mid=`expr 2 '*' $ac_mid + 1`
14266 fi
14267 rm -f conftest.$ac_objext conftest.$ac_ext
14268   done
14269 else
14270   echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 $ac_includes_default
14281 int
14282 main ()
14283 {
14284 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14285 test_array [0] = 0
14286
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293   (eval $ac_compile) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); } &&
14297          { ac_try='test -s conftest.$ac_objext'
14298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299   (eval $ac_try) 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; }; then
14303   ac_hi=-1 ac_mid=-1
14304   while :; do
14305     cat >conftest.$ac_ext <<_ACEOF
14306 #line $LINENO "configure"
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 $ac_includes_default
14313 int
14314 main ()
14315 {
14316 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14317 test_array [0] = 0
14318
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 rm -f conftest.$ac_objext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325   (eval $ac_compile) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } &&
14329          { ac_try='test -s conftest.$ac_objext'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_lo=$ac_mid; break
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ac_hi=`expr '(' $ac_mid ')' - 1`
14341                        if test $ac_mid -le $ac_hi; then
14342                          ac_lo= ac_hi=
14343                          break
14344                        fi
14345                        ac_mid=`expr 2 '*' $ac_mid`
14346 fi
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14348   done
14349 else
14350   echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353 ac_lo= ac_hi=
14354 fi
14355 rm -f conftest.$ac_objext conftest.$ac_ext
14356 fi
14357 rm -f conftest.$ac_objext conftest.$ac_ext
14358 # Binary search between lo and hi bounds.
14359 while test "x$ac_lo" != "x$ac_hi"; do
14360   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14361   cat >conftest.$ac_ext <<_ACEOF
14362 #line $LINENO "configure"
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368 $ac_includes_default
14369 int
14370 main ()
14371 {
14372 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14373 test_array [0] = 0
14374
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 rm -f conftest.$ac_objext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381   (eval $ac_compile) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -s conftest.$ac_objext'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; }; then
14391   ac_hi=$ac_mid
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_lo=`expr '(' $ac_mid ')' + 1`
14397 fi
14398 rm -f conftest.$ac_objext conftest.$ac_ext
14399 done
14400 case $ac_lo in
14401 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14402 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14403 See \`config.log' for more details." >&5
14404 echo "$as_me: error: cannot compute sizeof (int *), 77
14405 See \`config.log' for more details." >&2;}
14406    { (exit 1); exit 1; }; } ;;
14407 esac
14408 else
14409   if test "$cross_compiling" = yes; then
14410   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14411 See \`config.log' for more details." >&5
14412 echo "$as_me: error: cannot run test program while cross compiling
14413 See \`config.log' for more details." >&2;}
14414    { (exit 1); exit 1; }; }
14415 else
14416   cat >conftest.$ac_ext <<_ACEOF
14417 #line $LINENO "configure"
14418 /* confdefs.h.  */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h.  */
14423 $ac_includes_default
14424 long longval () { return (long) (sizeof (int *)); }
14425 unsigned long ulongval () { return (long) (sizeof (int *)); }
14426 #include <stdio.h>
14427 #include <stdlib.h>
14428 int
14429 main ()
14430 {
14431
14432   FILE *f = fopen ("conftest.val", "w");
14433   if (! f)
14434     exit (1);
14435   if (((long) (sizeof (int *))) < 0)
14436     {
14437       long i = longval ();
14438       if (i != ((long) (sizeof (int *))))
14439         exit (1);
14440       fprintf (f, "%ld\n", i);
14441     }
14442   else
14443     {
14444       unsigned long i = ulongval ();
14445       if (i != ((long) (sizeof (int *))))
14446         exit (1);
14447       fprintf (f, "%lu\n", i);
14448     }
14449   exit (ferror (f) || fclose (f) != 0);
14450
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest$ac_exeext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14457   (eval $ac_link) 2>&5
14458   ac_status=$?
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462   (eval $ac_try) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   ac_cv_sizeof_int_p=`cat conftest.val`
14467 else
14468   echo "$as_me: program exited with status $ac_status" >&5
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472 ( exit $ac_status )
14473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14474 See \`config.log' for more details." >&5
14475 echo "$as_me: error: cannot compute sizeof (int *), 77
14476 See \`config.log' for more details." >&2;}
14477    { (exit 1); exit 1; }; }
14478 fi
14479 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14480 fi
14481 fi
14482 rm -f conftest.val
14483 else
14484   ac_cv_sizeof_int_p=0
14485 fi
14486 fi
14487 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14488 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14489 cat >>confdefs.h <<_ACEOF
14490 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14491 _ACEOF
14492
14493
14494
14495 # Check for sys/types.h types
14496 echo "$as_me:$LINENO: checking for u_int type" >&5
14497 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14498 if test "${ac_cv_have_u_int+set}" = set; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501
14502     cat >conftest.$ac_ext <<_ACEOF
14503 #line $LINENO "configure"
14504 /* confdefs.h.  */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h.  */
14509  #include <sys/types.h>
14510 int
14511 main ()
14512 {
14513  u_int a; a = 1;
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520   (eval $ac_compile) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -s conftest.$ac_objext'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; }; then
14530    ac_cv_have_u_int="yes"
14531 else
14532   echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535  ac_cv_have_u_int="no"
14536
14537 fi
14538 rm -f conftest.$ac_objext conftest.$ac_ext
14539
14540 fi
14541 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14542 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14543 if test "x$ac_cv_have_u_int" = "xyes" ; then
14544    cat >>confdefs.h <<\_ACEOF
14545 #define HAVE_U_INT 1
14546 _ACEOF
14547
14548    have_u_int=1
14549 fi
14550
14551 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14552 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14553 if test "${ac_cv_have_intmax_t+set}" = set; then
14554   echo $ECHO_N "(cached) $ECHO_C" >&6
14555 else
14556
14557    cat >conftest.$ac_ext <<_ACEOF
14558 #line $LINENO "configure"
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564  #include <sys/types.h>
14565 int
14566 main ()
14567 {
14568  intmax_t a; a = 1;
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575   (eval $ac_compile) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -s conftest.$ac_objext'
14580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581   (eval $ac_try) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; }; then
14585    ac_cv_have_intmax_t="yes"
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590
14591          cat >conftest.$ac_ext <<_ACEOF
14592 #line $LINENO "configure"
14593 /* confdefs.h.  */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h.  */
14598  #include <stdint.h>
14599 int
14600 main ()
14601 {
14602  intmax_t a; a = 1;
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609   (eval $ac_compile) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); } &&
14613          { ac_try='test -s conftest.$ac_objext'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619    ac_cv_have_intmax_t="yes"
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624  ac_cv_have_intmax_t="no"
14625
14626 fi
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14628
14629
14630 fi
14631 rm -f conftest.$ac_objext conftest.$ac_ext
14632
14633
14634 fi
14635 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14636 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14637 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14638    cat >>confdefs.h <<\_ACEOF
14639 #define HAVE_INTMAX_T 1
14640 _ACEOF
14641
14642    have_intmax_t=1
14643 fi
14644
14645
14646 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14647 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14648 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14649   echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651
14652    cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659  #include <sys/types.h>
14660 int
14661 main ()
14662 {
14663  u_intmax_t a; a = 1;
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670   (eval $ac_compile) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -s conftest.$ac_objext'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680    ac_cv_have_u_intmax_t="yes"
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685
14686          cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693  #include <stdint.h>
14694 int
14695 main ()
14696 {
14697  u_intmax_t a; a = 1;
14698   ;
14699   return 0;
14700 }
14701 _ACEOF
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704   (eval $ac_compile) 2>&5
14705   ac_status=$?
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); } &&
14708          { ac_try='test -s conftest.$ac_objext'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; }; then
14714    ac_cv_have_u_intmax_t="yes"
14715 else
14716   echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719  ac_cv_have_u_intmax_t="no"
14720
14721 fi
14722 rm -f conftest.$ac_objext conftest.$ac_ext
14723
14724
14725 fi
14726 rm -f conftest.$ac_objext conftest.$ac_ext
14727
14728 fi
14729 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14730 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14731 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14732    cat >>confdefs.h <<\_ACEOF
14733 #define HAVE_U_INTMAX_T 1
14734 _ACEOF
14735
14736    have_u_intmax_t=1
14737 fi
14738
14739
14740 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14741 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14742 if test "${ac_cv_have_intxx_t+set}" = set; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745
14746    cat >conftest.$ac_ext <<_ACEOF
14747 #line $LINENO "configure"
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753  #include <sys/types.h>
14754 int
14755 main ()
14756 {
14757  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14758   ;
14759   return 0;
14760 }
14761 _ACEOF
14762 rm -f conftest.$ac_objext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14764   (eval $ac_compile) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } &&
14768          { ac_try='test -s conftest.$ac_objext'
14769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770   (eval $ac_try) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); }; }; then
14774    ac_cv_have_intxx_t="yes"
14775 else
14776   echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14778
14779  ac_cv_have_intxx_t="no"
14780
14781 fi
14782 rm -f conftest.$ac_objext conftest.$ac_ext
14783
14784 fi
14785 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14786 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14787 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14788    cat >>confdefs.h <<\_ACEOF
14789 #define HAVE_INTXX_T 1
14790 _ACEOF
14791
14792    have_intxx_t=1
14793 fi
14794
14795 echo "$as_me:$LINENO: checking for int64_t type" >&5
14796 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14797 if test "${ac_cv_have_int64_t+set}" = set; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800
14801    cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808  #include <sys/types.h>
14809 int
14810 main ()
14811 {
14812  int64_t a; a = 1;
14813   ;
14814   return 0;
14815 }
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819   (eval $ac_compile) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); } &&
14823          { ac_try='test -s conftest.$ac_objext'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; }; then
14829    ac_cv_have_int64_t="yes"
14830 else
14831   echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834  ac_cv_have_int64_t="no"
14835
14836 fi
14837 rm -f conftest.$ac_objext conftest.$ac_ext
14838
14839 fi
14840 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14841 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14842 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14843    cat >>confdefs.h <<\_ACEOF
14844 #define HAVE_INT64_T 1
14845 _ACEOF
14846
14847    have_int64_t=1
14848 fi
14849
14850 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14851 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14852 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855
14856    cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863  #include <sys/types.h>
14864 int
14865 main ()
14866 {
14867  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874   (eval $ac_compile) 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } &&
14878          { ac_try='test -s conftest.$ac_objext'
14879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880   (eval $ac_try) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; }; then
14884    ac_cv_have_u_intxx_t="yes"
14885 else
14886   echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889  ac_cv_have_u_intxx_t="no"
14890
14891 fi
14892 rm -f conftest.$ac_objext conftest.$ac_ext
14893
14894 fi
14895 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14896 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14897 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14898    cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_U_INTXX_T 1
14900 _ACEOF
14901
14902    have_u_intxx_t=1
14903 fi
14904
14905 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14906 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14907 if test "${ac_cv_have_u_int64_t+set}" = set; then
14908   echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910
14911    cat >conftest.$ac_ext <<_ACEOF
14912 #line $LINENO "configure"
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918  #include <sys/types.h>
14919 int
14920 main ()
14921 {
14922  u_int64_t a; a = 1;
14923   ;
14924   return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14929   (eval $ac_compile) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } &&
14933          { ac_try='test -s conftest.$ac_objext'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939    ac_cv_have_u_int64_t="yes"
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944  ac_cv_have_u_int64_t="no"
14945
14946 fi
14947 rm -f conftest.$ac_objext conftest.$ac_ext
14948
14949 fi
14950 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14951 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14952 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14953    cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_U_INT64_T 1
14955 _ACEOF
14956
14957    have_u_int64_t=1
14958 fi
14959
14960 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14961            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14962 then
14963    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14964 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14965    cat >conftest.$ac_ext <<_ACEOF
14966 #line $LINENO "configure"
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972  #include <sys/bitypes.h>
14973 int
14974 main ()
14975 {
14976  int8_t a; int16_t b; int32_t c;
14977         u_int8_t e; u_int16_t f; u_int32_t g;
14978         a = b = c = e = f = g = 1;
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985   (eval $ac_compile) 2>&5
14986   ac_status=$?
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); } &&
14989          { ac_try='test -s conftest.$ac_objext'
14990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991   (eval $ac_try) 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995    cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_U_INTXX_T 1
14997 _ACEOF
14998
14999         cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_INTXX_T 1
15001 _ACEOF
15002
15003         cat >>confdefs.h <<\_ACEOF
15004 #define HAVE_SYS_BITYPES_H 1
15005 _ACEOF
15006
15007         echo "$as_me:$LINENO: result: yes" >&5
15008 echo "${ECHO_T}yes" >&6
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013  echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15015
15016 fi
15017 rm -f conftest.$ac_objext conftest.$ac_ext
15018 fi
15019
15020 if test -z "$have_u_intxx_t" ; then
15021    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15022 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15023 if test "${ac_cv_have_uintxx_t+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026
15027       cat >conftest.$ac_ext <<_ACEOF
15028 #line $LINENO "configure"
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034  #include <sys/types.h>
15035 int
15036 main ()
15037 {
15038  uint8_t a; uint16_t b;
15039            uint32_t c; a = b = c = 1;
15040   ;
15041   return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext
15045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15046   (eval $ac_compile) 2>&5
15047   ac_status=$?
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -s conftest.$ac_objext'
15051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052   (eval $ac_try) 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); }; }; then
15056    ac_cv_have_uintxx_t="yes"
15057 else
15058   echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15060
15061  ac_cv_have_uintxx_t="no"
15062
15063 fi
15064 rm -f conftest.$ac_objext conftest.$ac_ext
15065
15066 fi
15067 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15068 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15069    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15070       cat >>confdefs.h <<\_ACEOF
15071 #define HAVE_UINTXX_T 1
15072 _ACEOF
15073
15074    fi
15075 fi
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091 for ac_func in \
15092         fork \
15093         getcwd \
15094         gethostname \
15095         getpid \
15096         gettimeofday \
15097         setpgid \
15098         setpgrp \
15099         setsid \
15100         signal \
15101         strerror \
15102         strncmp \
15103         strncpy \
15104         vfprintf \
15105
15106 do
15107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15108 echo "$as_me:$LINENO: checking for $ac_func" >&5
15109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15110 if eval "test \"\${$as_ac_var+set}\" = set"; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   cat >conftest.$ac_ext <<_ACEOF
15114 #line $LINENO "configure"
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 /* System header to define __stub macros and hopefully few prototypes,
15121     which can conflict with char $ac_func (); below.
15122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15123     <limits.h> exists even on freestanding compilers.  */
15124 #ifdef __STDC__
15125 # include <limits.h>
15126 #else
15127 # include <assert.h>
15128 #endif
15129 /* Override any gcc2 internal prototype to avoid an error.  */
15130 #ifdef __cplusplus
15131 extern "C"
15132 {
15133 #endif
15134 /* We use char because int might match the return type of a gcc2
15135    builtin and then its argument prototype would still apply.  */
15136 char $ac_func ();
15137 /* The GNU C library defines this for functions which it implements
15138     to always fail with ENOSYS.  Some functions are actually named
15139     something starting with __ and the normal name is an alias.  */
15140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15141 choke me
15142 #else
15143 char (*f) () = $ac_func;
15144 #endif
15145 #ifdef __cplusplus
15146 }
15147 #endif
15148
15149 int
15150 main ()
15151 {
15152 return f != $ac_func;
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159   (eval $ac_link) 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } &&
15163          { ac_try='test -s conftest$ac_exeext'
15164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165   (eval $ac_try) 2>&5
15166   ac_status=$?
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); }; }; then
15169   eval "$as_ac_var=yes"
15170 else
15171   echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174 eval "$as_ac_var=no"
15175 fi
15176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15177 fi
15178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15180 if test `eval echo '${'$as_ac_var'}'` = yes; then
15181   cat >>confdefs.h <<_ACEOF
15182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15183 _ACEOF
15184
15185 else
15186   echo 'configure: cannot find needed function.'; exit 1
15187
15188 fi
15189 done
15190
15191
15192
15193 for ac_func in fchdir
15194 do
15195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15196 echo "$as_me:$LINENO: checking for $ac_func" >&5
15197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15198 if eval "test \"\${$as_ac_var+set}\" = set"; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   cat >conftest.$ac_ext <<_ACEOF
15202 #line $LINENO "configure"
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208 /* System header to define __stub macros and hopefully few prototypes,
15209     which can conflict with char $ac_func (); below.
15210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15211     <limits.h> exists even on freestanding compilers.  */
15212 #ifdef __STDC__
15213 # include <limits.h>
15214 #else
15215 # include <assert.h>
15216 #endif
15217 /* Override any gcc2 internal prototype to avoid an error.  */
15218 #ifdef __cplusplus
15219 extern "C"
15220 {
15221 #endif
15222 /* We use char because int might match the return type of a gcc2
15223    builtin and then its argument prototype would still apply.  */
15224 char $ac_func ();
15225 /* The GNU C library defines this for functions which it implements
15226     to always fail with ENOSYS.  Some functions are actually named
15227     something starting with __ and the normal name is an alias.  */
15228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15229 choke me
15230 #else
15231 char (*f) () = $ac_func;
15232 #endif
15233 #ifdef __cplusplus
15234 }
15235 #endif
15236
15237 int
15238 main ()
15239 {
15240 return f != $ac_func;
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247   (eval $ac_link) 2>&5
15248   ac_status=$?
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); } &&
15251          { ac_try='test -s conftest$ac_exeext'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   eval "$as_ac_var=yes"
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 eval "$as_ac_var=no"
15263 fi
15264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15265 fi
15266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15268 if test `eval echo '${'$as_ac_var'}'` = yes; then
15269   cat >>confdefs.h <<_ACEOF
15270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15271 _ACEOF
15272  cat >>confdefs.h <<\_ACEOF
15273 #define HAVE_FCHDIR 1
15274 _ACEOF
15275
15276 fi
15277 done
15278
15279
15280 for ac_func in strtoll
15281 do
15282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15283 echo "$as_me:$LINENO: checking for $ac_func" >&5
15284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15285 if eval "test \"\${$as_ac_var+set}\" = set"; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288   cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 /* System header to define __stub macros and hopefully few prototypes,
15296     which can conflict with char $ac_func (); below.
15297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15298     <limits.h> exists even on freestanding compilers.  */
15299 #ifdef __STDC__
15300 # include <limits.h>
15301 #else
15302 # include <assert.h>
15303 #endif
15304 /* Override any gcc2 internal prototype to avoid an error.  */
15305 #ifdef __cplusplus
15306 extern "C"
15307 {
15308 #endif
15309 /* We use char because int might match the return type of a gcc2
15310    builtin and then its argument prototype would still apply.  */
15311 char $ac_func ();
15312 /* The GNU C library defines this for functions which it implements
15313     to always fail with ENOSYS.  Some functions are actually named
15314     something starting with __ and the normal name is an alias.  */
15315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15316 choke me
15317 #else
15318 char (*f) () = $ac_func;
15319 #endif
15320 #ifdef __cplusplus
15321 }
15322 #endif
15323
15324 int
15325 main ()
15326 {
15327 return f != $ac_func;
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334   (eval $ac_link) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340   (eval $ac_try) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344   eval "$as_ac_var=yes"
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 eval "$as_ac_var=no"
15350 fi
15351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15352 fi
15353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15355 if test `eval echo '${'$as_ac_var'}'` = yes; then
15356   cat >>confdefs.h <<_ACEOF
15357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15358 _ACEOF
15359  cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_STRTOLL 1
15361 _ACEOF
15362
15363 fi
15364 done
15365
15366
15367
15368 for ac_func in chflags
15369 do
15370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15371 echo "$as_me:$LINENO: checking for $ac_func" >&5
15372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15373 if eval "test \"\${$as_ac_var+set}\" = set"; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   cat >conftest.$ac_ext <<_ACEOF
15377 #line $LINENO "configure"
15378 /* confdefs.h.  */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h.  */
15383 /* System header to define __stub macros and hopefully few prototypes,
15384     which can conflict with char $ac_func (); below.
15385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15386     <limits.h> exists even on freestanding compilers.  */
15387 #ifdef __STDC__
15388 # include <limits.h>
15389 #else
15390 # include <assert.h>
15391 #endif
15392 /* Override any gcc2 internal prototype to avoid an error.  */
15393 #ifdef __cplusplus
15394 extern "C"
15395 {
15396 #endif
15397 /* We use char because int might match the return type of a gcc2
15398    builtin and then its argument prototype would still apply.  */
15399 char $ac_func ();
15400 /* The GNU C library defines this for functions which it implements
15401     to always fail with ENOSYS.  Some functions are actually named
15402     something starting with __ and the normal name is an alias.  */
15403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15404 choke me
15405 #else
15406 char (*f) () = $ac_func;
15407 #endif
15408 #ifdef __cplusplus
15409 }
15410 #endif
15411
15412 int
15413 main ()
15414 {
15415 return f != $ac_func;
15416   ;
15417   return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422   (eval $ac_link) 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } &&
15426          { ac_try='test -s conftest$ac_exeext'
15427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428   (eval $ac_try) 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; }; then
15432   eval "$as_ac_var=yes"
15433 else
15434   echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15436
15437 eval "$as_ac_var=no"
15438 fi
15439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15440 fi
15441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15443 if test `eval echo '${'$as_ac_var'}'` = yes; then
15444   cat >>confdefs.h <<_ACEOF
15445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15446 _ACEOF
15447
15448 fi
15449 done
15450
15451
15452
15453
15454
15455
15456 for ac_func in snprintf vsnprintf gethostid getdomainname
15457 do
15458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15459 echo "$as_me:$LINENO: checking for $ac_func" >&5
15460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15461 if eval "test \"\${$as_ac_var+set}\" = set"; then
15462   echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464   cat >conftest.$ac_ext <<_ACEOF
15465 #line $LINENO "configure"
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 /* System header to define __stub macros and hopefully few prototypes,
15472     which can conflict with char $ac_func (); below.
15473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15474     <limits.h> exists even on freestanding compilers.  */
15475 #ifdef __STDC__
15476 # include <limits.h>
15477 #else
15478 # include <assert.h>
15479 #endif
15480 /* Override any gcc2 internal prototype to avoid an error.  */
15481 #ifdef __cplusplus
15482 extern "C"
15483 {
15484 #endif
15485 /* We use char because int might match the return type of a gcc2
15486    builtin and then its argument prototype would still apply.  */
15487 char $ac_func ();
15488 /* The GNU C library defines this for functions which it implements
15489     to always fail with ENOSYS.  Some functions are actually named
15490     something starting with __ and the normal name is an alias.  */
15491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15492 choke me
15493 #else
15494 char (*f) () = $ac_func;
15495 #endif
15496 #ifdef __cplusplus
15497 }
15498 #endif
15499
15500 int
15501 main ()
15502 {
15503 return f != $ac_func;
15504   ;
15505   return 0;
15506 }
15507 _ACEOF
15508 rm -f conftest.$ac_objext conftest$ac_exeext
15509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15510   (eval $ac_link) 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } &&
15514          { ac_try='test -s conftest$ac_exeext'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; }; then
15520   eval "$as_ac_var=yes"
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 eval "$as_ac_var=no"
15526 fi
15527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15528 fi
15529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15531 if test `eval echo '${'$as_ac_var'}'` = yes; then
15532   cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 _ACEOF
15535
15536 fi
15537 done
15538
15539
15540
15541
15542
15543
15544 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15545 do
15546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15547 echo "$as_me:$LINENO: checking for $ac_func" >&5
15548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15549 if eval "test \"\${$as_ac_var+set}\" = set"; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559 /* System header to define __stub macros and hopefully few prototypes,
15560     which can conflict with char $ac_func (); below.
15561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15562     <limits.h> exists even on freestanding compilers.  */
15563 #ifdef __STDC__
15564 # include <limits.h>
15565 #else
15566 # include <assert.h>
15567 #endif
15568 /* Override any gcc2 internal prototype to avoid an error.  */
15569 #ifdef __cplusplus
15570 extern "C"
15571 {
15572 #endif
15573 /* We use char because int might match the return type of a gcc2
15574    builtin and then its argument prototype would still apply.  */
15575 char $ac_func ();
15576 /* The GNU C library defines this for functions which it implements
15577     to always fail with ENOSYS.  Some functions are actually named
15578     something starting with __ and the normal name is an alias.  */
15579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15580 choke me
15581 #else
15582 char (*f) () = $ac_func;
15583 #endif
15584 #ifdef __cplusplus
15585 }
15586 #endif
15587
15588 int
15589 main ()
15590 {
15591 return f != $ac_func;
15592   ;
15593   return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598   (eval $ac_link) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } &&
15602          { ac_try='test -s conftest$ac_exeext'
15603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604   (eval $ac_try) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   eval "$as_ac_var=yes"
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 eval "$as_ac_var=no"
15614 fi
15615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15616 fi
15617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15619 if test `eval echo '${'$as_ac_var'}'` = yes; then
15620   cat >>confdefs.h <<_ACEOF
15621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15622 _ACEOF
15623
15624 fi
15625 done
15626
15627
15628 # If resolver functions are not in libc check for -lnsl or -lresolv.
15629 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15630 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15631 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15632   echo $ECHO_N "(cached) $ECHO_C" >&6
15633 else
15634   cat >conftest.$ac_ext <<_ACEOF
15635 #line $LINENO "configure"
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641 /* System header to define __stub macros and hopefully few prototypes,
15642     which can conflict with char gethostbyname_r (); below.
15643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644     <limits.h> exists even on freestanding compilers.  */
15645 #ifdef __STDC__
15646 # include <limits.h>
15647 #else
15648 # include <assert.h>
15649 #endif
15650 /* Override any gcc2 internal prototype to avoid an error.  */
15651 #ifdef __cplusplus
15652 extern "C"
15653 {
15654 #endif
15655 /* We use char because int might match the return type of a gcc2
15656    builtin and then its argument prototype would still apply.  */
15657 char gethostbyname_r ();
15658 /* The GNU C library defines this for functions which it implements
15659     to always fail with ENOSYS.  Some functions are actually named
15660     something starting with __ and the normal name is an alias.  */
15661 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15662 choke me
15663 #else
15664 char (*f) () = gethostbyname_r;
15665 #endif
15666 #ifdef __cplusplus
15667 }
15668 #endif
15669
15670 int
15671 main ()
15672 {
15673 return f != gethostbyname_r;
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680   (eval $ac_link) 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -s conftest$ac_exeext'
15685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686   (eval $ac_try) 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   ac_cv_func_gethostbyname_r=yes
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 ac_cv_func_gethostbyname_r=no
15696 fi
15697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15698 fi
15699 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15700 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15701 if test $ac_cv_func_gethostbyname_r = yes; then
15702   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15703 echo "${ECHO_T}using libc's resolver" >&6
15704 else
15705
15706 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15707 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15708 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   ac_check_lib_save_LIBS=$LIBS
15712 LIBS="-lnsl  $LIBS"
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720
15721 /* Override any gcc2 internal prototype to avoid an error.  */
15722 #ifdef __cplusplus
15723 extern "C"
15724 #endif
15725 /* We use char because int might match the return type of a gcc2
15726    builtin and then its argument prototype would still apply.  */
15727 char gethostbyname_r ();
15728 int
15729 main ()
15730 {
15731 gethostbyname_r ();
15732   ;
15733   return 0;
15734 }
15735 _ACEOF
15736 rm -f conftest.$ac_objext conftest$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738   (eval $ac_link) 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } &&
15742          { ac_try='test -s conftest$ac_exeext'
15743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744   (eval $ac_try) 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); }; }; then
15748   ac_cv_lib_nsl_gethostbyname_r=yes
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_cv_lib_nsl_gethostbyname_r=no
15754 fi
15755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15756 LIBS=$ac_check_lib_save_LIBS
15757 fi
15758 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15759 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15760 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15761   cat >>confdefs.h <<_ACEOF
15762 #define HAVE_LIBNSL 1
15763 _ACEOF
15764
15765   LIBS="-lnsl $LIBS"
15766
15767 fi
15768
15769
15770 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15771 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15772 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15773   echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775   ac_check_lib_save_LIBS=$LIBS
15776 LIBS="-lresolv  $LIBS"
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15779 /* confdefs.h.  */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h.  */
15784
15785 /* Override any gcc2 internal prototype to avoid an error.  */
15786 #ifdef __cplusplus
15787 extern "C"
15788 #endif
15789 /* We use char because int might match the return type of a gcc2
15790    builtin and then its argument prototype would still apply.  */
15791 char gethostbyname_r ();
15792 int
15793 main ()
15794 {
15795 gethostbyname_r ();
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802   (eval $ac_link) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } &&
15806          { ac_try='test -s conftest$ac_exeext'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; }; then
15812   ac_cv_lib_resolv_gethostbyname_r=yes
15813 else
15814   echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_cv_lib_resolv_gethostbyname_r=no
15818 fi
15819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15820 LIBS=$ac_check_lib_save_LIBS
15821 fi
15822 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15823 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15824 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15825   cat >>confdefs.h <<_ACEOF
15826 #define HAVE_LIBRESOLV 1
15827 _ACEOF
15828
15829   LIBS="-lresolv $LIBS"
15830
15831 fi
15832
15833 fi
15834
15835
15836
15837 # Find where sockets are (especially for Solaris)
15838 echo "$as_me:$LINENO: checking for socket" >&5
15839 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15840 if test "${ac_cv_func_socket+set}" = set; then
15841   echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843   cat >conftest.$ac_ext <<_ACEOF
15844 #line $LINENO "configure"
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850 /* System header to define __stub macros and hopefully few prototypes,
15851     which can conflict with char socket (); below.
15852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15853     <limits.h> exists even on freestanding compilers.  */
15854 #ifdef __STDC__
15855 # include <limits.h>
15856 #else
15857 # include <assert.h>
15858 #endif
15859 /* Override any gcc2 internal prototype to avoid an error.  */
15860 #ifdef __cplusplus
15861 extern "C"
15862 {
15863 #endif
15864 /* We use char because int might match the return type of a gcc2
15865    builtin and then its argument prototype would still apply.  */
15866 char socket ();
15867 /* The GNU C library defines this for functions which it implements
15868     to always fail with ENOSYS.  Some functions are actually named
15869     something starting with __ and the normal name is an alias.  */
15870 #if defined (__stub_socket) || defined (__stub___socket)
15871 choke me
15872 #else
15873 char (*f) () = socket;
15874 #endif
15875 #ifdef __cplusplus
15876 }
15877 #endif
15878
15879 int
15880 main ()
15881 {
15882 return f != socket;
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889   (eval $ac_link) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } &&
15893          { ac_try='test -s conftest$ac_exeext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_cv_func_socket=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 ac_cv_func_socket=no
15905 fi
15906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15907 fi
15908 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15909 echo "${ECHO_T}$ac_cv_func_socket" >&6
15910 if test $ac_cv_func_socket = yes; then
15911   echo "$as_me:$LINENO: result: using libc's socket" >&5
15912 echo "${ECHO_T}using libc's socket" >&6
15913 else
15914
15915 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15916 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15917 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920   ac_check_lib_save_LIBS=$LIBS
15921 LIBS="-lxnet  $LIBS"
15922 cat >conftest.$ac_ext <<_ACEOF
15923 #line $LINENO "configure"
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929
15930 /* Override any gcc2 internal prototype to avoid an error.  */
15931 #ifdef __cplusplus
15932 extern "C"
15933 #endif
15934 /* We use char because int might match the return type of a gcc2
15935    builtin and then its argument prototype would still apply.  */
15936 char socket ();
15937 int
15938 main ()
15939 {
15940 socket ();
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947   (eval $ac_link) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -s conftest$ac_exeext'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957   ac_cv_lib_xnet_socket=yes
15958 else
15959   echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 ac_cv_lib_xnet_socket=no
15963 fi
15964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15965 LIBS=$ac_check_lib_save_LIBS
15966 fi
15967 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15968 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15969 if test $ac_cv_lib_xnet_socket = yes; then
15970   cat >>confdefs.h <<_ACEOF
15971 #define HAVE_LIBXNET 1
15972 _ACEOF
15973
15974   LIBS="-lxnet $LIBS"
15975
15976 fi
15977
15978
15979 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15980 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15981 if test "${ac_cv_lib_socket_socket+set}" = set; then
15982   echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984   ac_check_lib_save_LIBS=$LIBS
15985 LIBS="-lsocket  $LIBS"
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15988 /* confdefs.h.  */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h.  */
15993
15994 /* Override any gcc2 internal prototype to avoid an error.  */
15995 #ifdef __cplusplus
15996 extern "C"
15997 #endif
15998 /* We use char because int might match the return type of a gcc2
15999    builtin and then its argument prototype would still apply.  */
16000 char socket ();
16001 int
16002 main ()
16003 {
16004 socket ();
16005   ;
16006   return 0;
16007 }
16008 _ACEOF
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011   (eval $ac_link) 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -s conftest$ac_exeext'
16016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017   (eval $ac_try) 2>&5
16018   ac_status=$?
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); }; }; then
16021   ac_cv_lib_socket_socket=yes
16022 else
16023   echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16025
16026 ac_cv_lib_socket_socket=no
16027 fi
16028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16030 fi
16031 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16032 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16033 if test $ac_cv_lib_socket_socket = yes; then
16034   cat >>confdefs.h <<_ACEOF
16035 #define HAVE_LIBSOCKET 1
16036 _ACEOF
16037
16038   LIBS="-lsocket $LIBS"
16039
16040 fi
16041
16042
16043 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16044 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16045 if test "${ac_cv_lib_inet_socket+set}" = set; then
16046   echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048   ac_check_lib_save_LIBS=$LIBS
16049 LIBS="-linet  $LIBS"
16050 cat >conftest.$ac_ext <<_ACEOF
16051 #line $LINENO "configure"
16052 /* confdefs.h.  */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h.  */
16057
16058 /* Override any gcc2 internal prototype to avoid an error.  */
16059 #ifdef __cplusplus
16060 extern "C"
16061 #endif
16062 /* We use char because int might match the return type of a gcc2
16063    builtin and then its argument prototype would still apply.  */
16064 char socket ();
16065 int
16066 main ()
16067 {
16068 socket ();
16069   ;
16070   return 0;
16071 }
16072 _ACEOF
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075   (eval $ac_link) 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } &&
16079          { ac_try='test -s conftest$ac_exeext'
16080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081   (eval $ac_try) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; }; then
16085   ac_cv_lib_inet_socket=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_cv_lib_inet_socket=no
16091 fi
16092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16094 fi
16095 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16096 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16097 if test $ac_cv_lib_inet_socket = yes; then
16098   cat >>confdefs.h <<_ACEOF
16099 #define HAVE_LIBINET 1
16100 _ACEOF
16101
16102   LIBS="-linet $LIBS"
16103
16104 fi
16105
16106 fi
16107
16108
16109
16110 for ac_func in inet_pton
16111 do
16112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16113 echo "$as_me:$LINENO: checking for $ac_func" >&5
16114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16115 if eval "test \"\${$as_ac_var+set}\" = set"; then
16116   echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118   cat >conftest.$ac_ext <<_ACEOF
16119 #line $LINENO "configure"
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125 /* System header to define __stub macros and hopefully few prototypes,
16126     which can conflict with char $ac_func (); below.
16127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128     <limits.h> exists even on freestanding compilers.  */
16129 #ifdef __STDC__
16130 # include <limits.h>
16131 #else
16132 # include <assert.h>
16133 #endif
16134 /* Override any gcc2 internal prototype to avoid an error.  */
16135 #ifdef __cplusplus
16136 extern "C"
16137 {
16138 #endif
16139 /* We use char because int might match the return type of a gcc2
16140    builtin and then its argument prototype would still apply.  */
16141 char $ac_func ();
16142 /* The GNU C library defines this for functions which it implements
16143     to always fail with ENOSYS.  Some functions are actually named
16144     something starting with __ and the normal name is an alias.  */
16145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16146 choke me
16147 #else
16148 char (*f) () = $ac_func;
16149 #endif
16150 #ifdef __cplusplus
16151 }
16152 #endif
16153
16154 int
16155 main ()
16156 {
16157 return f != $ac_func;
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164   (eval $ac_link) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } &&
16168          { ac_try='test -s conftest$ac_exeext'
16169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170   (eval $ac_try) 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); }; }; then
16174   eval "$as_ac_var=yes"
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179 eval "$as_ac_var=no"
16180 fi
16181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16182 fi
16183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16185 if test `eval echo '${'$as_ac_var'}'` = yes; then
16186   cat >>confdefs.h <<_ACEOF
16187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16188 _ACEOF
16189  cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_INET_PTON 1
16191 _ACEOF
16192
16193 fi
16194 done
16195
16196
16197
16198 for ac_func in strftime
16199 do
16200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16201 echo "$as_me:$LINENO: checking for $ac_func" >&5
16202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_var+set}\" = set"; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   cat >conftest.$ac_ext <<_ACEOF
16207 #line $LINENO "configure"
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 /* System header to define __stub macros and hopefully few prototypes,
16214     which can conflict with char $ac_func (); below.
16215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16216     <limits.h> exists even on freestanding compilers.  */
16217 #ifdef __STDC__
16218 # include <limits.h>
16219 #else
16220 # include <assert.h>
16221 #endif
16222 /* Override any gcc2 internal prototype to avoid an error.  */
16223 #ifdef __cplusplus
16224 extern "C"
16225 {
16226 #endif
16227 /* We use char because int might match the return type of a gcc2
16228    builtin and then its argument prototype would still apply.  */
16229 char $ac_func ();
16230 /* The GNU C library defines this for functions which it implements
16231     to always fail with ENOSYS.  Some functions are actually named
16232     something starting with __ and the normal name is an alias.  */
16233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16234 choke me
16235 #else
16236 char (*f) () = $ac_func;
16237 #endif
16238 #ifdef __cplusplus
16239 }
16240 #endif
16241
16242 int
16243 main ()
16244 {
16245 return f != $ac_func;
16246   ;
16247   return 0;
16248 }
16249 _ACEOF
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16252   (eval $ac_link) 2>&5
16253   ac_status=$?
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); } &&
16256          { ac_try='test -s conftest$ac_exeext'
16257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258   (eval $ac_try) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; }; then
16262   eval "$as_ac_var=yes"
16263 else
16264   echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16266
16267 eval "$as_ac_var=no"
16268 fi
16269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16270 fi
16271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16273 if test `eval echo '${'$as_ac_var'}'` = yes; then
16274   cat >>confdefs.h <<_ACEOF
16275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276 _ACEOF
16277
16278 else
16279   # strftime is in -lintl on SCO UNIX.
16280 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16281 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16282 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16283   echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285   ac_check_lib_save_LIBS=$LIBS
16286 LIBS="-lintl  $LIBS"
16287 cat >conftest.$ac_ext <<_ACEOF
16288 #line $LINENO "configure"
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294
16295 /* Override any gcc2 internal prototype to avoid an error.  */
16296 #ifdef __cplusplus
16297 extern "C"
16298 #endif
16299 /* We use char because int might match the return type of a gcc2
16300    builtin and then its argument prototype would still apply.  */
16301 char strftime ();
16302 int
16303 main ()
16304 {
16305 strftime ();
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16312   (eval $ac_link) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); } &&
16316          { ac_try='test -s conftest$ac_exeext'
16317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318   (eval $ac_try) 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; }; then
16322   ac_cv_lib_intl_strftime=yes
16323 else
16324   echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327 ac_cv_lib_intl_strftime=no
16328 fi
16329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16330 LIBS=$ac_check_lib_save_LIBS
16331 fi
16332 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16333 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16334 if test $ac_cv_lib_intl_strftime = yes; then
16335   cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_STRFTIME 1
16337 _ACEOF
16338
16339 LIBS="-lintl $LIBS"
16340 fi
16341
16342 fi
16343 done
16344
16345
16346 for ac_func in vprintf
16347 do
16348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16349 echo "$as_me:$LINENO: checking for $ac_func" >&5
16350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16351 if eval "test \"\${$as_ac_var+set}\" = set"; then
16352   echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354   cat >conftest.$ac_ext <<_ACEOF
16355 #line $LINENO "configure"
16356 /* confdefs.h.  */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h.  */
16361 /* System header to define __stub macros and hopefully few prototypes,
16362     which can conflict with char $ac_func (); below.
16363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16364     <limits.h> exists even on freestanding compilers.  */
16365 #ifdef __STDC__
16366 # include <limits.h>
16367 #else
16368 # include <assert.h>
16369 #endif
16370 /* Override any gcc2 internal prototype to avoid an error.  */
16371 #ifdef __cplusplus
16372 extern "C"
16373 {
16374 #endif
16375 /* We use char because int might match the return type of a gcc2
16376    builtin and then its argument prototype would still apply.  */
16377 char $ac_func ();
16378 /* The GNU C library defines this for functions which it implements
16379     to always fail with ENOSYS.  Some functions are actually named
16380     something starting with __ and the normal name is an alias.  */
16381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16382 choke me
16383 #else
16384 char (*f) () = $ac_func;
16385 #endif
16386 #ifdef __cplusplus
16387 }
16388 #endif
16389
16390 int
16391 main ()
16392 {
16393 return f != $ac_func;
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400   (eval $ac_link) 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); } &&
16404          { ac_try='test -s conftest$ac_exeext'
16405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406   (eval $ac_try) 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; }; then
16410   eval "$as_ac_var=yes"
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 eval "$as_ac_var=no"
16416 fi
16417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16418 fi
16419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16421 if test `eval echo '${'$as_ac_var'}'` = yes; then
16422   cat >>confdefs.h <<_ACEOF
16423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16424 _ACEOF
16425
16426 echo "$as_me:$LINENO: checking for _doprnt" >&5
16427 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16428 if test "${ac_cv_func__doprnt+set}" = set; then
16429   echo $ECHO_N "(cached) $ECHO_C" >&6
16430 else
16431   cat >conftest.$ac_ext <<_ACEOF
16432 #line $LINENO "configure"
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438 /* System header to define __stub macros and hopefully few prototypes,
16439     which can conflict with char _doprnt (); below.
16440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16441     <limits.h> exists even on freestanding compilers.  */
16442 #ifdef __STDC__
16443 # include <limits.h>
16444 #else
16445 # include <assert.h>
16446 #endif
16447 /* Override any gcc2 internal prototype to avoid an error.  */
16448 #ifdef __cplusplus
16449 extern "C"
16450 {
16451 #endif
16452 /* We use char because int might match the return type of a gcc2
16453    builtin and then its argument prototype would still apply.  */
16454 char _doprnt ();
16455 /* The GNU C library defines this for functions which it implements
16456     to always fail with ENOSYS.  Some functions are actually named
16457     something starting with __ and the normal name is an alias.  */
16458 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16459 choke me
16460 #else
16461 char (*f) () = _doprnt;
16462 #endif
16463 #ifdef __cplusplus
16464 }
16465 #endif
16466
16467 int
16468 main ()
16469 {
16470 return f != _doprnt;
16471   ;
16472   return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477   (eval $ac_link) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } &&
16481          { ac_try='test -s conftest$ac_exeext'
16482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483   (eval $ac_try) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_func__doprnt=yes
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_func__doprnt=no
16493 fi
16494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16495 fi
16496 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16497 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16498 if test $ac_cv_func__doprnt = yes; then
16499
16500 cat >>confdefs.h <<\_ACEOF
16501 #define HAVE_DOPRNT 1
16502 _ACEOF
16503
16504 fi
16505
16506 fi
16507 done
16508
16509
16510 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16511 # for constant arguments.  Useless!
16512 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16513 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16514 if test "${ac_cv_working_alloca_h+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 #line $LINENO "configure"
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 #include <alloca.h>
16525 int
16526 main ()
16527 {
16528 char *p = (char *) alloca (2 * sizeof (int));
16529   ;
16530   return 0;
16531 }
16532 _ACEOF
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535   (eval $ac_link) 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } &&
16539          { ac_try='test -s conftest$ac_exeext'
16540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541   (eval $ac_try) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; }; then
16545   ac_cv_working_alloca_h=yes
16546 else
16547   echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550 ac_cv_working_alloca_h=no
16551 fi
16552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16553 fi
16554 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16555 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16556 if test $ac_cv_working_alloca_h = yes; then
16557
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE_ALLOCA_H 1
16560 _ACEOF
16561
16562 fi
16563
16564 echo "$as_me:$LINENO: checking for alloca" >&5
16565 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16566 if test "${ac_cv_func_alloca_works+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   cat >conftest.$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576 #ifdef __GNUC__
16577 # define alloca __builtin_alloca
16578 #else
16579 # ifdef _MSC_VER
16580 #  include <malloc.h>
16581 #  define alloca _alloca
16582 # else
16583 #  if HAVE_ALLOCA_H
16584 #   include <alloca.h>
16585 #  else
16586 #   ifdef _AIX
16587  #pragma alloca
16588 #   else
16589 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16590 char *alloca ();
16591 #    endif
16592 #   endif
16593 #  endif
16594 # endif
16595 #endif
16596
16597 int
16598 main ()
16599 {
16600 char *p = (char *) alloca (1);
16601   ;
16602   return 0;
16603 }
16604 _ACEOF
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16607   (eval $ac_link) 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } &&
16611          { ac_try='test -s conftest$ac_exeext'
16612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613   (eval $ac_try) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }; then
16617   ac_cv_func_alloca_works=yes
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622 ac_cv_func_alloca_works=no
16623 fi
16624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16625 fi
16626 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16627 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16628
16629 if test $ac_cv_func_alloca_works = yes; then
16630
16631 cat >>confdefs.h <<\_ACEOF
16632 #define HAVE_ALLOCA 1
16633 _ACEOF
16634
16635 else
16636   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16637 # that cause trouble.  Some versions do not even contain alloca or
16638 # contain a buggy version.  If you still want to use their alloca,
16639 # use ar to extract alloca.o from them instead of compiling alloca.c.
16640
16641 ALLOCA=alloca.$ac_objext
16642
16643 cat >>confdefs.h <<\_ACEOF
16644 #define C_ALLOCA 1
16645 _ACEOF
16646
16647
16648 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16649 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16650 if test "${ac_cv_os_cray+set}" = set; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   cat >conftest.$ac_ext <<_ACEOF
16654 #line $LINENO "configure"
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660 #if defined(CRAY) && ! defined(CRAY2)
16661 webecray
16662 #else
16663 wenotbecray
16664 #endif
16665
16666 _ACEOF
16667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16668   $EGREP "webecray" >/dev/null 2>&1; then
16669   ac_cv_os_cray=yes
16670 else
16671   ac_cv_os_cray=no
16672 fi
16673 rm -f conftest*
16674
16675 fi
16676 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16677 echo "${ECHO_T}$ac_cv_os_cray" >&6
16678 if test $ac_cv_os_cray = yes; then
16679   for ac_func in _getb67 GETB67 getb67; do
16680     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16681 echo "$as_me:$LINENO: checking for $ac_func" >&5
16682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16683 if eval "test \"\${$as_ac_var+set}\" = set"; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   cat >conftest.$ac_ext <<_ACEOF
16687 #line $LINENO "configure"
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 /* System header to define __stub macros and hopefully few prototypes,
16694     which can conflict with char $ac_func (); below.
16695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696     <limits.h> exists even on freestanding compilers.  */
16697 #ifdef __STDC__
16698 # include <limits.h>
16699 #else
16700 # include <assert.h>
16701 #endif
16702 /* Override any gcc2 internal prototype to avoid an error.  */
16703 #ifdef __cplusplus
16704 extern "C"
16705 {
16706 #endif
16707 /* We use char because int might match the return type of a gcc2
16708    builtin and then its argument prototype would still apply.  */
16709 char $ac_func ();
16710 /* The GNU C library defines this for functions which it implements
16711     to always fail with ENOSYS.  Some functions are actually named
16712     something starting with __ and the normal name is an alias.  */
16713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16714 choke me
16715 #else
16716 char (*f) () = $ac_func;
16717 #endif
16718 #ifdef __cplusplus
16719 }
16720 #endif
16721
16722 int
16723 main ()
16724 {
16725 return f != $ac_func;
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732   (eval $ac_link) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -s conftest$ac_exeext'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; }; then
16742   eval "$as_ac_var=yes"
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 eval "$as_ac_var=no"
16748 fi
16749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16750 fi
16751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16753 if test `eval echo '${'$as_ac_var'}'` = yes; then
16754
16755 cat >>confdefs.h <<_ACEOF
16756 #define CRAY_STACKSEG_END $ac_func
16757 _ACEOF
16758
16759     break
16760 fi
16761
16762   done
16763 fi
16764
16765 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16766 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16767 if test "${ac_cv_c_stack_direction+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770   if test "$cross_compiling" = yes; then
16771   ac_cv_c_stack_direction=0
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 #line $LINENO "configure"
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 int
16781 find_stack_direction ()
16782 {
16783   static char *addr = 0;
16784   auto char dummy;
16785   if (addr == 0)
16786     {
16787       addr = &dummy;
16788       return find_stack_direction ();
16789     }
16790   else
16791     return (&dummy > addr) ? 1 : -1;
16792 }
16793
16794 int
16795 main ()
16796 {
16797   exit (find_stack_direction () < 0);
16798 }
16799 _ACEOF
16800 rm -f conftest$ac_exeext
16801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16802   (eval $ac_link) 2>&5
16803   ac_status=$?
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807   (eval $ac_try) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_cv_c_stack_direction=1
16812 else
16813   echo "$as_me: program exited with status $ac_status" >&5
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16816
16817 ( exit $ac_status )
16818 ac_cv_c_stack_direction=-1
16819 fi
16820 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16821 fi
16822 fi
16823 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16824 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16825
16826 cat >>confdefs.h <<_ACEOF
16827 #define STACK_DIRECTION $ac_cv_c_stack_direction
16828 _ACEOF
16829
16830
16831 fi
16832
16833 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16834 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16835 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16836 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16837   echo $ECHO_N "(cached) $ECHO_C" >&6
16838 else
16839   ac_check_lib_save_LIBS=$LIBS
16840 LIBS="-lsun  $LIBS"
16841 cat >conftest.$ac_ext <<_ACEOF
16842 #line $LINENO "configure"
16843 /* confdefs.h.  */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h.  */
16848
16849 /* Override any gcc2 internal prototype to avoid an error.  */
16850 #ifdef __cplusplus
16851 extern "C"
16852 #endif
16853 /* We use char because int might match the return type of a gcc2
16854    builtin and then its argument prototype would still apply.  */
16855 char getmntent ();
16856 int
16857 main ()
16858 {
16859 getmntent ();
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866   (eval $ac_link) 2>&5
16867   ac_status=$?
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } &&
16870          { ac_try='test -s conftest$ac_exeext'
16871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872   (eval $ac_try) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876   ac_cv_lib_sun_getmntent=yes
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 ac_cv_lib_sun_getmntent=no
16882 fi
16883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16884 LIBS=$ac_check_lib_save_LIBS
16885 fi
16886 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16887 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16888 if test $ac_cv_lib_sun_getmntent = yes; then
16889   LIBS="-lsun $LIBS"
16890 else
16891   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16892 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16893 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16894   echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896   ac_check_lib_save_LIBS=$LIBS
16897 LIBS="-lseq  $LIBS"
16898 cat >conftest.$ac_ext <<_ACEOF
16899 #line $LINENO "configure"
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905
16906 /* Override any gcc2 internal prototype to avoid an error.  */
16907 #ifdef __cplusplus
16908 extern "C"
16909 #endif
16910 /* We use char because int might match the return type of a gcc2
16911    builtin and then its argument prototype would still apply.  */
16912 char getmntent ();
16913 int
16914 main ()
16915 {
16916 getmntent ();
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923   (eval $ac_link) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } &&
16927          { ac_try='test -s conftest$ac_exeext'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; }; then
16933   ac_cv_lib_seq_getmntent=yes
16934 else
16935   echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938 ac_cv_lib_seq_getmntent=no
16939 fi
16940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16944 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16945 if test $ac_cv_lib_seq_getmntent = yes; then
16946   LIBS="-lseq $LIBS"
16947 else
16948   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16949 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16950 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lgen  $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16956 #line $LINENO "configure"
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962
16963 /* Override any gcc2 internal prototype to avoid an error.  */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 /* We use char because int might match the return type of a gcc2
16968    builtin and then its argument prototype would still apply.  */
16969 char getmntent ();
16970 int
16971 main ()
16972 {
16973 getmntent ();
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980   (eval $ac_link) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } &&
16984          { ac_try='test -s conftest$ac_exeext'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   ac_cv_lib_gen_getmntent=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 ac_cv_lib_gen_getmntent=no
16996 fi
16997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16998 LIBS=$ac_check_lib_save_LIBS
16999 fi
17000 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17001 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17002 if test $ac_cv_lib_gen_getmntent = yes; then
17003   LIBS="-lgen $LIBS"
17004 fi
17005
17006 fi
17007
17008 fi
17009
17010
17011 for ac_func in getmntent
17012 do
17013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17014 echo "$as_me:$LINENO: checking for $ac_func" >&5
17015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17016 if eval "test \"\${$as_ac_var+set}\" = set"; then
17017   echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019   cat >conftest.$ac_ext <<_ACEOF
17020 #line $LINENO "configure"
17021 /* confdefs.h.  */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h.  */
17026 /* System header to define __stub macros and hopefully few prototypes,
17027     which can conflict with char $ac_func (); below.
17028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029     <limits.h> exists even on freestanding compilers.  */
17030 #ifdef __STDC__
17031 # include <limits.h>
17032 #else
17033 # include <assert.h>
17034 #endif
17035 /* Override any gcc2 internal prototype to avoid an error.  */
17036 #ifdef __cplusplus
17037 extern "C"
17038 {
17039 #endif
17040 /* We use char because int might match the return type of a gcc2
17041    builtin and then its argument prototype would still apply.  */
17042 char $ac_func ();
17043 /* The GNU C library defines this for functions which it implements
17044     to always fail with ENOSYS.  Some functions are actually named
17045     something starting with __ and the normal name is an alias.  */
17046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17047 choke me
17048 #else
17049 char (*f) () = $ac_func;
17050 #endif
17051 #ifdef __cplusplus
17052 }
17053 #endif
17054
17055 int
17056 main ()
17057 {
17058 return f != $ac_func;
17059   ;
17060   return 0;
17061 }
17062 _ACEOF
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17065   (eval $ac_link) 2>&5
17066   ac_status=$?
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); } &&
17069          { ac_try='test -s conftest$ac_exeext'
17070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071   (eval $ac_try) 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); }; }; then
17075   eval "$as_ac_var=yes"
17076 else
17077   echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17079
17080 eval "$as_ac_var=no"
17081 fi
17082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17083 fi
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17086 if test `eval echo '${'$as_ac_var'}'` = yes; then
17087   cat >>confdefs.h <<_ACEOF
17088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17089 _ACEOF
17090
17091 fi
17092 done
17093
17094
17095 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17096 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17097 if test "${ac_cv_func_closedir_void+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   if test "$cross_compiling" = yes; then
17101   ac_cv_func_closedir_void=yes
17102 else
17103   cat >conftest.$ac_ext <<_ACEOF
17104 #line $LINENO "configure"
17105 /* confdefs.h.  */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h.  */
17110 $ac_includes_default
17111 #include <$ac_header_dirent>
17112 #ifndef __cplusplus
17113 int closedir ();
17114 #endif
17115
17116 int
17117 main ()
17118 {
17119 exit (closedir (opendir (".")) != 0);
17120   ;
17121   return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126   (eval $ac_link) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   ac_cv_func_closedir_void=no
17136 else
17137   echo "$as_me: program exited with status $ac_status" >&5
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141 ( exit $ac_status )
17142 ac_cv_func_closedir_void=yes
17143 fi
17144 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 fi
17147 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17148 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17149 if test $ac_cv_func_closedir_void = yes; then
17150
17151 cat >>confdefs.h <<\_ACEOF
17152 #define CLOSEDIR_VOID 1
17153 _ACEOF
17154
17155 fi
17156
17157 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17158 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17159 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162   if test "$cross_compiling" = yes; then
17163   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17164 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17165    { (exit 1); exit 1; }; }
17166 else
17167   cat >conftest.$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174 #if HAVE_UNISTD_H
17175 # include <unistd.h>
17176 #endif
17177
17178 int
17179 main ()
17180 {
17181 /* If this system has a BSD-style setpgrp which takes arguments,
17182   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17183   exit successfully. */
17184   exit (setpgrp (1,1) == -1 ? 0 : 1);
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191   (eval $ac_link) 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196   (eval $ac_try) 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   ac_cv_func_setpgrp_void=no
17201 else
17202   echo "$as_me: program exited with status $ac_status" >&5
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17205
17206 ( exit $ac_status )
17207 ac_cv_func_setpgrp_void=yes
17208 fi
17209 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 fi
17212 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17213 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17214 if test $ac_cv_func_setpgrp_void = yes; then
17215
17216 cat >>confdefs.h <<\_ACEOF
17217 #define SETPGRP_VOID 1
17218 _ACEOF
17219
17220 fi
17221                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17222 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17223 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   # Some versions of Solaris, SCO, and the GNU C Library
17227    # have a broken or incompatible fnmatch.
17228    # So we run a test program.  If we are cross-compiling, take no chance.
17229    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17230    if test "$cross_compiling" = yes; then
17231   ac_cv_func_fnmatch_works=cross
17232 else
17233   cat >conftest.$ac_ext <<_ACEOF
17234 #line $LINENO "configure"
17235 /* confdefs.h.  */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h.  */
17240 #include <fnmatch.h>
17241 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17242 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17243
17244 int
17245 main ()
17246 {
17247 exit
17248            (!(y ("a*", "abc", 0)
17249               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17250               && y ("a\\\\bc", "abc", 0)
17251               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17252               && y ("*x", ".x", 0)
17253               && n ("*x", ".x", FNM_PERIOD)
17254               && 1));
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261   (eval $ac_link) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266   (eval $ac_try) 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }; }; then
17270   ac_cv_func_fnmatch_works=yes
17271 else
17272   echo "$as_me: program exited with status $ac_status" >&5
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 ( exit $ac_status )
17277 ac_cv_func_fnmatch_works=no
17278 fi
17279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17280 fi
17281 fi
17282 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17283 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17284 if test $ac_cv_func_fnmatch_works = yes; then
17285
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_FNMATCH 1
17288 _ACEOF
17289
17290 fi
17291
17292
17293
17294
17295
17296 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17297 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17298 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301   ac_check_lib_save_LIBS=$LIBS
17302 LIBS="-lxpg4  $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 setlocale ();
17318 int
17319 main ()
17320 {
17321 setlocale ();
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_xpg4_setlocale=yes
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ac_cv_lib_xpg4_setlocale=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_xpg4_setlocale" >&5
17349 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17350 if test $ac_cv_lib_xpg4_setlocale = yes; then
17351   LIBS="$LIBS -lxpg4"
17352 fi
17353
17354
17355
17356
17357 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17358 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17359 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17360   echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362   ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-lsun  $LIBS"
17364 cat >conftest.$ac_ext <<_ACEOF
17365 #line $LINENO "configure"
17366 /* confdefs.h.  */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h.  */
17371
17372 /* Override any gcc2 internal prototype to avoid an error.  */
17373 #ifdef __cplusplus
17374 extern "C"
17375 #endif
17376 /* We use char because int might match the return type of a gcc2
17377    builtin and then its argument prototype would still apply.  */
17378 char getpwnam ();
17379 int
17380 main ()
17381 {
17382 getpwnam ();
17383   ;
17384   return 0;
17385 }
17386 _ACEOF
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389   (eval $ac_link) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } &&
17393          { ac_try='test -s conftest$ac_exeext'
17394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395   (eval $ac_try) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; }; then
17399   ac_cv_lib_sun_getpwnam=yes
17400 else
17401   echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_lib_sun_getpwnam=no
17405 fi
17406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17408 fi
17409 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17410 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17411 if test $ac_cv_lib_sun_getpwnam = yes; then
17412   cat >>confdefs.h <<_ACEOF
17413 #define HAVE_LIBSUN 1
17414 _ACEOF
17415
17416   LIBS="-lsun $LIBS"
17417
17418 fi
17419
17420
17421
17422 for ac_header in zlib.h
17423 do
17424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17426   echo "$as_me:$LINENO: checking for $ac_header" >&5
17427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17429   echo $ECHO_N "(cached) $ECHO_C" >&6
17430 fi
17431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17433 else
17434   # Is the header compilable?
17435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17437 cat >conftest.$ac_ext <<_ACEOF
17438 #line $LINENO "configure"
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444 $ac_includes_default
17445 #include <$ac_header>
17446 _ACEOF
17447 rm -f conftest.$ac_objext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449   (eval $ac_compile) 2>&5
17450   ac_status=$?
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -s conftest.$ac_objext'
17454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455   (eval $ac_try) 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; }; then
17459   ac_header_compiler=yes
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 ac_header_compiler=no
17465 fi
17466 rm -f conftest.$ac_objext conftest.$ac_ext
17467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17468 echo "${ECHO_T}$ac_header_compiler" >&6
17469
17470 # Is the header present?
17471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17473 cat >conftest.$ac_ext <<_ACEOF
17474 #line $LINENO "configure"
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 #include <$ac_header>
17481 _ACEOF
17482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17484   ac_status=$?
17485   grep -v '^ *+' conftest.er1 >conftest.err
17486   rm -f conftest.er1
17487   cat conftest.err >&5
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } >/dev/null; then
17490   if test -s conftest.err; then
17491     ac_cpp_err=$ac_c_preproc_warn_flag
17492   else
17493     ac_cpp_err=
17494   fi
17495 else
17496   ac_cpp_err=yes
17497 fi
17498 if test -z "$ac_cpp_err"; then
17499   ac_header_preproc=yes
17500 else
17501   echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504   ac_header_preproc=no
17505 fi
17506 rm -f conftest.err conftest.$ac_ext
17507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17508 echo "${ECHO_T}$ac_header_preproc" >&6
17509
17510 # So?  What about this header?
17511 case $ac_header_compiler:$ac_header_preproc in
17512   yes:no )
17513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17517     (
17518       cat <<\_ASBOX
17519 ## ------------------------------------ ##
17520 ## Report this to bug-autoconf@gnu.org. ##
17521 ## ------------------------------------ ##
17522 _ASBOX
17523     ) |
17524       sed "s/^/$as_me: WARNING:     /" >&2
17525     ;;
17526   no:yes )
17527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17529     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17533     (
17534       cat <<\_ASBOX
17535 ## ------------------------------------ ##
17536 ## Report this to bug-autoconf@gnu.org. ##
17537 ## ------------------------------------ ##
17538 _ASBOX
17539     ) |
17540       sed "s/^/$as_me: WARNING:     /" >&2
17541     ;;
17542 esac
17543 echo "$as_me:$LINENO: checking for $ac_header" >&5
17544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17546   echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548   eval "$as_ac_Header=$ac_header_preproc"
17549 fi
17550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17552
17553 fi
17554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17555   cat >>confdefs.h <<_ACEOF
17556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17557 _ACEOF
17558
17559 fi
17560
17561 done
17562
17563 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17564 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17565 if test "${ac_cv_lib_z_deflate+set}" = set; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   ac_check_lib_save_LIBS=$LIBS
17569 LIBS="-lz  $LIBS"
17570 cat >conftest.$ac_ext <<_ACEOF
17571 #line $LINENO "configure"
17572 /* confdefs.h.  */
17573 _ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h.  */
17577
17578 /* Override any gcc2 internal prototype to avoid an error.  */
17579 #ifdef __cplusplus
17580 extern "C"
17581 #endif
17582 /* We use char because int might match the return type of a gcc2
17583    builtin and then its argument prototype would still apply.  */
17584 char deflate ();
17585 int
17586 main ()
17587 {
17588 deflate ();
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595   (eval $ac_link) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); } &&
17599          { ac_try='test -s 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_lib_z_deflate=yes
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610 ac_cv_lib_z_deflate=no
17611 fi
17612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17614 fi
17615 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17616 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17617 if test $ac_cv_lib_z_deflate = yes; then
17618   FDLIBS="-lz"
17619 fi
17620
17621 have_zlib=no
17622 if test x$FDLIBS = x-lz; then
17623   cat >>confdefs.h <<\_ACEOF
17624 #define HAVE_LIBZ 1
17625 _ACEOF
17626
17627   have_zlib=yes
17628 fi
17629
17630 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17631   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17632 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17633 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 fi
17636 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17637 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17638 else
17639   # Is the header compilable?
17640 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17641 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17642 cat >conftest.$ac_ext <<_ACEOF
17643 #line $LINENO "configure"
17644 /* confdefs.h.  */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h.  */
17649 $ac_includes_default
17650 #include <sys/acl.h>
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654   (eval $ac_compile) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); } &&
17658          { ac_try='test -s conftest.$ac_objext'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; }; then
17664   ac_header_compiler=yes
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669 ac_header_compiler=no
17670 fi
17671 rm -f conftest.$ac_objext conftest.$ac_ext
17672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 echo "${ECHO_T}$ac_header_compiler" >&6
17674
17675 # Is the header present?
17676 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17677 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 #include <sys/acl.h>
17686 _ACEOF
17687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17689   ac_status=$?
17690   grep -v '^ *+' conftest.er1 >conftest.err
17691   rm -f conftest.er1
17692   cat conftest.err >&5
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } >/dev/null; then
17695   if test -s conftest.err; then
17696     ac_cpp_err=$ac_c_preproc_warn_flag
17697   else
17698     ac_cpp_err=
17699   fi
17700 else
17701   ac_cpp_err=yes
17702 fi
17703 if test -z "$ac_cpp_err"; then
17704   ac_header_preproc=yes
17705 else
17706   echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17708
17709   ac_header_preproc=no
17710 fi
17711 rm -f conftest.err conftest.$ac_ext
17712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 echo "${ECHO_T}$ac_header_preproc" >&6
17714
17715 # So?  What about this header?
17716 case $ac_header_compiler:$ac_header_preproc in
17717   yes:no )
17718     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17719 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17721 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17722     (
17723       cat <<\_ASBOX
17724 ## ------------------------------------ ##
17725 ## Report this to bug-autoconf@gnu.org. ##
17726 ## ------------------------------------ ##
17727 _ASBOX
17728     ) |
17729       sed "s/^/$as_me: WARNING:     /" >&2
17730     ;;
17731   no:yes )
17732     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17733 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17734     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17735 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17736     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17737 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17738     (
17739       cat <<\_ASBOX
17740 ## ------------------------------------ ##
17741 ## Report this to bug-autoconf@gnu.org. ##
17742 ## ------------------------------------ ##
17743 _ASBOX
17744     ) |
17745       sed "s/^/$as_me: WARNING:     /" >&2
17746     ;;
17747 esac
17748 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17749 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17750 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17751   echo $ECHO_N "(cached) $ECHO_C" >&6
17752 else
17753   ac_cv_header_sys_acl_h=$ac_header_preproc
17754 fi
17755 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17756 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17757
17758 fi
17759
17760
17761 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17762 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17763 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17764   echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766   ac_check_lib_save_LIBS=$LIBS
17767 LIBS="-lacl  $LIBS"
17768 cat >conftest.$ac_ext <<_ACEOF
17769 #line $LINENO "configure"
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775
17776 /* Override any gcc2 internal prototype to avoid an error.  */
17777 #ifdef __cplusplus
17778 extern "C"
17779 #endif
17780 /* We use char because int might match the return type of a gcc2
17781    builtin and then its argument prototype would still apply.  */
17782 char acl_get_file ();
17783 int
17784 main ()
17785 {
17786 acl_get_file ();
17787   ;
17788   return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17793   (eval $ac_link) 2>&5
17794   ac_status=$?
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); } &&
17797          { ac_try='test -s conftest$ac_exeext'
17798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799   (eval $ac_try) 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; }; then
17803   ac_cv_lib_acl_acl_get_file=yes
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808 ac_cv_lib_acl_acl_get_file=no
17809 fi
17810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17811 LIBS=$ac_check_lib_save_LIBS
17812 fi
17813 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17814 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17815 if test $ac_cv_lib_acl_acl_get_file = yes; then
17816   FDLIBS="-lacl $FDLIBS"
17817 fi
17818
17819 have_acl=no
17820 if test $ac_cv_lib_acl_acl_get_file = yes; then
17821    cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_ACL 1
17823 _ACEOF
17824
17825    have_acl=yes
17826 fi
17827
17828 PTHREAD_LIB=""
17829 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17830 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17831 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17832   echo $ECHO_N "(cached) $ECHO_C" >&6
17833 else
17834   ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-lpthread  $LIBS"
17836 cat >conftest.$ac_ext <<_ACEOF
17837 #line $LINENO "configure"
17838 /* confdefs.h.  */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h.  */
17843
17844 /* Override any gcc2 internal prototype to avoid an error.  */
17845 #ifdef __cplusplus
17846 extern "C"
17847 #endif
17848 /* We use char because int might match the return type of a gcc2
17849    builtin and then its argument prototype would still apply.  */
17850 char pthread_create ();
17851 int
17852 main ()
17853 {
17854 pthread_create ();
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861   (eval $ac_link) 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); } &&
17865          { ac_try='test -s conftest$ac_exeext'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; }; then
17871   ac_cv_lib_pthread_pthread_create=yes
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 ac_cv_lib_pthread_pthread_create=no
17877 fi
17878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17879 LIBS=$ac_check_lib_save_LIBS
17880 fi
17881 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17882 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17883 if test $ac_cv_lib_pthread_pthread_create = yes; then
17884   PTHREAD_LIB="-lpthread"
17885 else
17886   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17887 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17888 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17889   echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891   ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-lpthreads  $LIBS"
17893 cat >conftest.$ac_ext <<_ACEOF
17894 #line $LINENO "configure"
17895 /* confdefs.h.  */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h.  */
17900
17901 /* Override any gcc2 internal prototype to avoid an error.  */
17902 #ifdef __cplusplus
17903 extern "C"
17904 #endif
17905 /* We use char because int might match the return type of a gcc2
17906    builtin and then its argument prototype would still apply.  */
17907 char pthread_create ();
17908 int
17909 main ()
17910 {
17911 pthread_create ();
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918   (eval $ac_link) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } &&
17922          { ac_try='test -s conftest$ac_exeext'
17923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924   (eval $ac_try) 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; }; then
17928   ac_cv_lib_pthreads_pthread_create=yes
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933 ac_cv_lib_pthreads_pthread_create=no
17934 fi
17935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17936 LIBS=$ac_check_lib_save_LIBS
17937 fi
17938 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17939 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17940 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17941   PTHREAD_LIB="-lpthreads"
17942 else
17943   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17944 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17945 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948   ac_check_lib_save_LIBS=$LIBS
17949 LIBS="-lc_r  $LIBS"
17950 cat >conftest.$ac_ext <<_ACEOF
17951 #line $LINENO "configure"
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957
17958 /* Override any gcc2 internal prototype to avoid an error.  */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 /* We use char because int might match the return type of a gcc2
17963    builtin and then its argument prototype would still apply.  */
17964 char pthread_create ();
17965 int
17966 main ()
17967 {
17968 pthread_create ();
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975   (eval $ac_link) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); } &&
17979          { ac_try='test -s conftest$ac_exeext'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; }; then
17985   ac_cv_lib_c_r_pthread_create=yes
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 ac_cv_lib_c_r_pthread_create=no
17991 fi
17992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17993 LIBS=$ac_check_lib_save_LIBS
17994 fi
17995 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17996 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17997 if test $ac_cv_lib_c_r_pthread_create = yes; then
17998   PTHREAD_LIB="-lc_r"
17999 else
18000   echo "$as_me:$LINENO: checking for pthread_create" >&5
18001 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18002 if test "${ac_cv_func_pthread_create+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 /* System header to define __stub macros and hopefully few prototypes,
18013     which can conflict with char pthread_create (); below.
18014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015     <limits.h> exists even on freestanding compilers.  */
18016 #ifdef __STDC__
18017 # include <limits.h>
18018 #else
18019 # include <assert.h>
18020 #endif
18021 /* Override any gcc2 internal prototype to avoid an error.  */
18022 #ifdef __cplusplus
18023 extern "C"
18024 {
18025 #endif
18026 /* We use char because int might match the return type of a gcc2
18027    builtin and then its argument prototype would still apply.  */
18028 char pthread_create ();
18029 /* The GNU C library defines this for functions which it implements
18030     to always fail with ENOSYS.  Some functions are actually named
18031     something starting with __ and the normal name is an alias.  */
18032 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18033 choke me
18034 #else
18035 char (*f) () = pthread_create;
18036 #endif
18037 #ifdef __cplusplus
18038 }
18039 #endif
18040
18041 int
18042 main ()
18043 {
18044 return f != pthread_create;
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051   (eval $ac_link) 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); } &&
18055          { ac_try='test -s conftest$ac_exeext'
18056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057   (eval $ac_try) 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); }; }; then
18061   ac_cv_func_pthread_create=yes
18062 else
18063   echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 ac_cv_func_pthread_create=no
18067 fi
18068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18069 fi
18070 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18071 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18072
18073
18074 fi
18075
18076
18077 fi
18078
18079
18080 fi
18081
18082
18083
18084 cat >>confdefs.h <<\_ACEOF
18085 #define FDLIBS 1
18086 _ACEOF
18087
18088
18089
18090 CFLAGS=${CFLAGS--O}
18091 LDFLAGS=${LDFLAGS--O}
18092 DB_LIBS="${SQL_LFLAGS}"
18093
18094 CPPFLAGS="$CPPFLAGS"
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109 OBJLIST=
18110
18111
18112 lld="lld"
18113 llu="llu"
18114
18115 WCFLAGS=
18116 WLDFLAGS=
18117
18118 #
18119 # Finally we set appropriate distribution specific
18120 #  variables and defaults
18121 #
18122 # PFILES are platform specific files
18123 PFILES="platforms/Makefile"
18124 PSCMD="ps -e"
18125 WIN32=
18126 MACOSX=
18127 hostname=`uname -n | cut -d '.' -f 1`
18128 case "$DISTNAME" in
18129 aix)
18130         DISTVER=`uname -r`
18131         PSCMD="ps -e -o pid,comm"
18132         PFILES="${PFILES} \
18133            platforms/aix/Makefile"
18134         TAPEDRIVE="/dev/rmt0.1"
18135   ;;
18136 alpha)
18137         DISTVER=`uname -r`
18138         PTHREAD_LIB="-lpthread -lexc"
18139         if test "${CC}" = "gcc" ; then
18140            lld="lld"
18141            llu="llu"
18142         else
18143            lld="ld"
18144            llu="lu"
18145         fi
18146         TAPEDRIVE="/dev/nrmt0"
18147   ;;
18148 bsdi)
18149         DISTVER=`uname -a |awk '{print $3}'`
18150         TAPEDRIVE="/dev/nrmt0"
18151         PTHREAD_LIB="-pthread"
18152         CFLAGS="${CFLAGS} -pthread"
18153         PSCMD="ps -x -o pid,command"
18154         lld="qd"
18155         llu="qu"
18156         PFILES="${PFILES} \
18157             platforms/bsdi/Makefile \
18158             platforms/bsdi/bacula-fd \
18159             platforms/bsdi/bacula-sd \
18160             platforms/bsdi/bacula-dir"
18161         largefile_support="yes"
18162   ;;
18163 cygwin)
18164         DISTVER=`uname -a |awk '{print $3}'`
18165         TAPEDRIVE="/dev/nrst0"
18166         WIN32=win32
18167         WCFLAGS="-mwindows"
18168         WLDFLAGS="-mwindows"
18169   ;;
18170 darwin)
18171         DISTVER=`uname -r`
18172         TAPEDRIVE="/dev/nst0"
18173         PSCMD="ps -e -o pid,command"
18174         MACOSX=macosx
18175         PFILES="${PFILES} \
18176            platforms/darwin/Makefile"
18177   ;;
18178 debian)
18179         DISTVER=`cat /etc/debian_version`
18180         TAPEDRIVE="/dev/nrst0"
18181         PSCMD="ps -e -o pid,command"
18182   ;;
18183 freebsd)
18184         DISTVER=`uname -a |awk '{print $3}'`
18185         VER=`echo $DISTVER | cut -c 1`
18186         if test x$VER = x4 ; then
18187            PTHREAD_LIB="-pthread"
18188            CFLAGS="${CFLAGS} -pthread"
18189         fi
18190         lld="qd"
18191         llu="qu"
18192         TAPEDRIVE="/dev/nrsa0"
18193         PSCMD="ps -x -o pid,command"
18194         PFILES="${PFILES} \
18195             platforms/freebsd/Makefile \
18196             platforms/freebsd/bacula-fd \
18197             platforms/freebsd/bacula-sd \
18198             platforms/freebsd/bacula-dir"
18199         largefile_support="yes"
18200   ;;
18201 hpux)
18202         PSCMD="UNIX95=1 ps -e -o pid,comm"
18203         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18204         DISTVER=`uname -r`
18205         TAPEDRIVE="/dev/rmt/0hnb"
18206   ;;
18207 irix)
18208         DISTVER=`uname -r`
18209         TAPEDRIVE="/dev/rmt/0cbn"
18210         PSCMD="ps -e -o pid,comm"
18211         PFILES="${PFILES} \
18212             platforms/irix/Makefile \
18213             platforms/irix/bacula-fd \
18214             platforms/irix/bacula-sd \
18215             platforms/irix/bacula-dir"
18216   ;;
18217 netbsd)
18218         DISTVER=`uname -a |awk '{print $3}'`
18219         lld="qd"
18220         llu="qu"
18221         TAPEDRIVE="/dev/nrst0"
18222         PSCMD="ps -a -o pid,command"
18223         PTHREAD_LIB="-pthread"
18224         CFLAGS="${CFLAGS} -pthread"
18225   ;;
18226 openbsd)
18227         DISTVER=`uname -a |awk '{print $3}'`
18228         lld="qd"
18229         llu="qu"
18230         TAPEDRIVE="/dev/nrst0"
18231         PSCMD="ps -a -o pid,command"
18232         PTHREAD_LIB="-pthread"
18233         CFLAGS="${CFLAGS} -pthread"
18234         PFILES="${PFILES} \
18235             platforms/openbsd/Makefile \
18236             platforms/openbsd/bacula-fd \
18237             platforms/openbsd/bacula-sd \
18238             platforms/openbsd/bacula-dir"
18239   ;;
18240 redhat)
18241         if test -f /etc/whitebox-release ; then
18242            f=/etc/whitebox-release
18243         else
18244            f=/etc/redhat-release
18245         fi
18246         if test `cat $f | grep release |\
18247                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18248            DISTVER="Enterprise "`cat $f | grep release |\
18249                     cut -f 6 -d ' '`
18250         else
18251             DISTVER=`cat /etc/redhat-release | grep release |\
18252                      cut -f 5 -d ' '`
18253         fi
18254         TAPEDRIVE="/dev/nst0"
18255         PSCMD="ps -e -o pid,command"
18256         PFILES="${PFILES} \
18257             platforms/redhat/Makefile \
18258             platforms/redhat/bacula-fd \
18259             platforms/redhat/bacula-sd \
18260             platforms/redhat/bacula-dir \
18261             platforms/redhat/bacula.spec \
18262             "
18263         hostname=`hostname -s`
18264   ;;
18265 mandrake)
18266         DISTVER=`cat /etc/mandrake-release | grep release |\
18267            cut -f 5 -d ' '`
18268         TAPEDRIVE="/dev/nst0"
18269         PSCMD="ps -e -o pid,command"
18270         PFILES="${PFILES} \
18271             platforms/mandrake/Makefile \
18272             platforms/mandrake/bacula-fd \
18273             platforms/mandrake/bacula-sd \
18274             platforms/mandrake/bacula-dir \
18275             platforms/mandrake/bacula.spec \
18276             "
18277   ;;
18278 gentoo)
18279         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18280         TAPEDRIVE="/dev/nst0"
18281         PSCMD="ps -e -o pid,command"
18282         PFILES="${PFILES} \
18283             platforms/gentoo/Makefile \
18284             platforms/gentoo/bacula-fd \
18285             platforms/gentoo/bacula-sd \
18286             platforms/gentoo/bacula-dir"
18287   ;;
18288 slackware)
18289         DISTVER=`cat /etc/slackware-version`
18290         TAPEDRIVE="/dev/nst0"
18291         PSCMD="ps -e -o pid,command"
18292         PFILES="${PFILES} \
18293             platforms/slackware/Makefile \
18294             platforms/slackware/rc.bacula-fd \
18295             platforms/slackware/rc.bacula-sd \
18296             platforms/slackware/rc.bacula-dir\
18297             platforms/slackware/functions.bacula"
18298   ;;
18299 solaris)
18300         DISTVER=`uname -r`
18301         TAPEDRIVE="/dev/rmt/0cbn"
18302         PSCMD="ps -e -o pid,comm"
18303         PFILES="${PFILES} \
18304             platforms/solaris/Makefile \
18305             platforms/solaris/bacula-fd \
18306             platforms/solaris/bacula-sd \
18307             platforms/solaris/bacula-dir"
18308         if test x$DISTVER = x5.6 ; then
18309             cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_OLD_SOCKOPT 1
18311 _ACEOF
18312
18313         fi
18314   ;;
18315 suse)
18316         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18317             cut -f 3 -d ' '`
18318         TAPEDRIVE="/dev/nst0"
18319         PSCMD="ps -e -o pid,command"
18320         PFILES="${PFILES} \
18321             platforms/suse/Makefile \
18322             platforms/suse/bacula-fd \
18323             platforms/suse/bacula-sd \
18324             platforms/suse/bacula-dir \
18325             platforms/suse/bacula \
18326             platforms/suse/bacula.spec"
18327   ;;
18328 suse5)
18329         DISTNAME=suse
18330         DISTVER=5.x
18331         TAPEDRIVE="/dev/nst0"
18332         PSCMD="ps -e -o pid,command"
18333         PFILES="${PFILES} \
18334             platforms/suse/Makefile \
18335             platforms/suse/bacula-fd \
18336             platforms/suse/bacula-sd \
18337             platforms/suse/bacula-dir"
18338   ;;
18339 unknown)
18340         DISTVER=unknown
18341         TAPEDRIVE="/dev/nst0"
18342   ;;
18343 *)
18344   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18345   ;;
18346 esac
18347
18348
18349
18350 LIBS="$PTHREAD_LIB $LIBS"
18351
18352 cat >>confdefs.h <<_ACEOF
18353 #define lld "$lld"
18354 _ACEOF
18355
18356 cat >>confdefs.h <<_ACEOF
18357 #define llu "$llu"
18358 _ACEOF
18359
18360
18361
18362
18363
18364
18365
18366
18367 MCOMMON=./autoconf/Make.common
18368
18369
18370 if test "x${subsysdir}" = "x${sbindir}" ; then
18371    echo " "
18372    echo " "
18373    echo "You have set both --sbindir and --with-subsys-dir"
18374    echo "  equal to: ${subsysdir} "
18375    echo "This is not permitted. Please reconfigure."
18376    echo " "
18377    echo "Aborting configuration ..."
18378    echo " "
18379    echo " "
18380    exit 1
18381 fi
18382
18383                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18384           ac_config_commands="$ac_config_commands default"
18385 cat >confcache <<\_ACEOF
18386 # This file is a shell script that caches the results of configure
18387 # tests run on this system so they can be shared between configure
18388 # scripts and configure runs, see configure's option --config-cache.
18389 # It is not useful on other systems.  If it contains results you don't
18390 # want to keep, you may remove or edit it.
18391 #
18392 # config.status only pays attention to the cache file if you give it
18393 # the --recheck option to rerun configure.
18394 #
18395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18397 # following values.
18398
18399 _ACEOF
18400
18401 # The following way of writing the cache mishandles newlines in values,
18402 # but we know of no workaround that is simple, portable, and efficient.
18403 # So, don't put newlines in cache variables' values.
18404 # Ultrix sh set writes to stderr and can't be redirected directly,
18405 # and sets the high bit in the cache file unless we assign to the vars.
18406 {
18407   (set) 2>&1 |
18408     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18409     *ac_space=\ *)
18410       # `set' does not quote correctly, so add quotes (double-quote
18411       # substitution turns \\\\ into \\, and sed turns \\ into \).
18412       sed -n \
18413         "s/'/'\\\\''/g;
18414           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18415       ;;
18416     *)
18417       # `set' quotes correctly as required by POSIX, so do not add quotes.
18418       sed -n \
18419         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18420       ;;
18421     esac;
18422 } |
18423   sed '
18424      t clear
18425      : clear
18426      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18427      t end
18428      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18429      : end' >>confcache
18430 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18431   if test -w $cache_file; then
18432     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18433     cat confcache >$cache_file
18434   else
18435     echo "not updating unwritable cache $cache_file"
18436   fi
18437 fi
18438 rm -f confcache
18439
18440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18441 # Let make expand exec_prefix.
18442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18443
18444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18446 # trailing colons and then remove the whole line if VPATH becomes empty
18447 # (actually we leave an empty line to preserve line numbers).
18448 if test "x$srcdir" = x.; then
18449   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18450 s/:*\$(srcdir):*/:/;
18451 s/:*\${srcdir}:*/:/;
18452 s/:*@srcdir@:*/:/;
18453 s/^\([^=]*=[    ]*\):*/\1/;
18454 s/:*$//;
18455 s/^[^=]*=[      ]*$//;
18456 }'
18457 fi
18458
18459 DEFS=-DHAVE_CONFIG_H
18460
18461 ac_libobjs=
18462 ac_ltlibobjs=
18463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18464   # 1. Remove the extension, and $U if already installed.
18465   ac_i=`echo "$ac_i" |
18466          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18467   # 2. Add them.
18468   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18469   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18470 done
18471 LIBOBJS=$ac_libobjs
18472
18473 LTLIBOBJS=$ac_ltlibobjs
18474
18475
18476
18477 : ${CONFIG_STATUS=./config.status}
18478 ac_clean_files_save=$ac_clean_files
18479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18480 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18481 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18482 cat >$CONFIG_STATUS <<_ACEOF
18483 #! $SHELL
18484 # Generated by $as_me.
18485 # Run this file to recreate the current configuration.
18486 # Compiler output produced by configure, useful for debugging
18487 # configure, is in config.log if it exists.
18488
18489 debug=false
18490 ac_cs_recheck=false
18491 ac_cs_silent=false
18492 SHELL=\${CONFIG_SHELL-$SHELL}
18493 _ACEOF
18494
18495 cat >>$CONFIG_STATUS <<\_ACEOF
18496 ## --------------------- ##
18497 ## M4sh Initialization.  ##
18498 ## --------------------- ##
18499
18500 # Be Bourne compatible
18501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18502   emulate sh
18503   NULLCMD=:
18504   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18505   # is contrary to our usage.  Disable this feature.
18506   alias -g '${1+"$@"}'='"$@"'
18507 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18508   set -o posix
18509 fi
18510
18511 # Support unset when possible.
18512 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18513   as_unset=unset
18514 else
18515   as_unset=false
18516 fi
18517
18518
18519 # Work around bugs in pre-3.0 UWIN ksh.
18520 $as_unset ENV MAIL MAILPATH
18521 PS1='$ '
18522 PS2='> '
18523 PS4='+ '
18524
18525 # NLS nuisances.
18526 for as_var in \
18527   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18528   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18529   LC_TELEPHONE LC_TIME
18530 do
18531   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18532     eval $as_var=C; export $as_var
18533   else
18534     $as_unset $as_var
18535   fi
18536 done
18537
18538 # Required to use basename.
18539 if expr a : '\(a\)' >/dev/null 2>&1; then
18540   as_expr=expr
18541 else
18542   as_expr=false
18543 fi
18544
18545 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18546   as_basename=basename
18547 else
18548   as_basename=false
18549 fi
18550
18551
18552 # Name of the executable.
18553 as_me=`$as_basename "$0" ||
18554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18555          X"$0" : 'X\(//\)$' \| \
18556          X"$0" : 'X\(/\)$' \| \
18557          .     : '\(.\)' 2>/dev/null ||
18558 echo X/"$0" |
18559     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18560           /^X\/\(\/\/\)$/{ s//\1/; q; }
18561           /^X\/\(\/\).*/{ s//\1/; q; }
18562           s/.*/./; q'`
18563
18564
18565 # PATH needs CR, and LINENO needs CR and PATH.
18566 # Avoid depending upon Character Ranges.
18567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18570 as_cr_digits='0123456789'
18571 as_cr_alnum=$as_cr_Letters$as_cr_digits
18572
18573 # The user is always right.
18574 if test "${PATH_SEPARATOR+set}" != set; then
18575   echo "#! /bin/sh" >conf$$.sh
18576   echo  "exit 0"   >>conf$$.sh
18577   chmod +x conf$$.sh
18578   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18579     PATH_SEPARATOR=';'
18580   else
18581     PATH_SEPARATOR=:
18582   fi
18583   rm -f conf$$.sh
18584 fi
18585
18586
18587   as_lineno_1=$LINENO
18588   as_lineno_2=$LINENO
18589   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18590   test "x$as_lineno_1" != "x$as_lineno_2" &&
18591   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18592   # Find who we are.  Look in the path if we contain no path at all
18593   # relative or not.
18594   case $0 in
18595     *[\\/]* ) as_myself=$0 ;;
18596     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18597 for as_dir in $PATH
18598 do
18599   IFS=$as_save_IFS
18600   test -z "$as_dir" && as_dir=.
18601   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18602 done
18603
18604        ;;
18605   esac
18606   # We did not find ourselves, most probably we were run as `sh COMMAND'
18607   # in which case we are not to be found in the path.
18608   if test "x$as_myself" = x; then
18609     as_myself=$0
18610   fi
18611   if test ! -f "$as_myself"; then
18612     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18613 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18614    { (exit 1); exit 1; }; }
18615   fi
18616   case $CONFIG_SHELL in
18617   '')
18618     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18620 do
18621   IFS=$as_save_IFS
18622   test -z "$as_dir" && as_dir=.
18623   for as_base in sh bash ksh sh5; do
18624          case $as_dir in
18625          /*)
18626            if ("$as_dir/$as_base" -c '
18627   as_lineno_1=$LINENO
18628   as_lineno_2=$LINENO
18629   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18630   test "x$as_lineno_1" != "x$as_lineno_2" &&
18631   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18632              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18633              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18634              CONFIG_SHELL=$as_dir/$as_base
18635              export CONFIG_SHELL
18636              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18637            fi;;
18638          esac
18639        done
18640 done
18641 ;;
18642   esac
18643
18644   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18645   # uniformly replaced by the line number.  The first 'sed' inserts a
18646   # line-number line before each line; the second 'sed' does the real
18647   # work.  The second script uses 'N' to pair each line-number line
18648   # with the numbered line, and appends trailing '-' during
18649   # substitution so that $LINENO is not a special case at line end.
18650   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18651   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18652   sed '=' <$as_myself |
18653     sed '
18654       N
18655       s,$,-,
18656       : loop
18657       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18658       t loop
18659       s,-$,,
18660       s,^['$as_cr_digits']*\n,,
18661     ' >$as_me.lineno &&
18662   chmod +x $as_me.lineno ||
18663     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18664 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18665    { (exit 1); exit 1; }; }
18666
18667   # Don't try to exec as it changes $[0], causing all sort of problems
18668   # (the dirname of $[0] is not the place where we might find the
18669   # original and so on.  Autoconf is especially sensible to this).
18670   . ./$as_me.lineno
18671   # Exit status is that of the last command.
18672   exit
18673 }
18674
18675
18676 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18677   *c*,-n*) ECHO_N= ECHO_C='
18678 ' ECHO_T='      ' ;;
18679   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18680   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18681 esac
18682
18683 if expr a : '\(a\)' >/dev/null 2>&1; then
18684   as_expr=expr
18685 else
18686   as_expr=false
18687 fi
18688
18689 rm -f conf$$ conf$$.exe conf$$.file
18690 echo >conf$$.file
18691 if ln -s conf$$.file conf$$ 2>/dev/null; then
18692   # We could just check for DJGPP; but this test a) works b) is more generic
18693   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18694   if test -f conf$$.exe; then
18695     # Don't use ln at all; we don't have any links
18696     as_ln_s='cp -p'
18697   else
18698     as_ln_s='ln -s'
18699   fi
18700 elif ln conf$$.file conf$$ 2>/dev/null; then
18701   as_ln_s=ln
18702 else
18703   as_ln_s='cp -p'
18704 fi
18705 rm -f conf$$ conf$$.exe conf$$.file
18706
18707 if mkdir -p . 2>/dev/null; then
18708   as_mkdir_p=:
18709 else
18710   as_mkdir_p=false
18711 fi
18712
18713 as_executable_p="test -f"
18714
18715 # Sed expression to map a string onto a valid CPP name.
18716 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18717
18718 # Sed expression to map a string onto a valid variable name.
18719 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18720
18721
18722 # IFS
18723 # We need space, tab and new line, in precisely that order.
18724 as_nl='
18725 '
18726 IFS="   $as_nl"
18727
18728 # CDPATH.
18729 $as_unset CDPATH
18730
18731 exec 6>&1
18732
18733 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18734 # report actual input values of CONFIG_FILES etc. instead of their
18735 # values after options handling.  Logging --version etc. is OK.
18736 exec 5>>config.log
18737 {
18738   echo
18739   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18740 ## Running $as_me. ##
18741 _ASBOX
18742 } >&5
18743 cat >&5 <<_CSEOF
18744
18745 This file was extended by $as_me, which was
18746 generated by GNU Autoconf 2.57.  Invocation command line was
18747
18748   CONFIG_FILES    = $CONFIG_FILES
18749   CONFIG_HEADERS  = $CONFIG_HEADERS
18750   CONFIG_LINKS    = $CONFIG_LINKS
18751   CONFIG_COMMANDS = $CONFIG_COMMANDS
18752   $ $0 $@
18753
18754 _CSEOF
18755 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18756 echo >&5
18757 _ACEOF
18758
18759 # Files that config.status was made for.
18760 if test -n "$ac_config_files"; then
18761   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18762 fi
18763
18764 if test -n "$ac_config_headers"; then
18765   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18766 fi
18767
18768 if test -n "$ac_config_links"; then
18769   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18770 fi
18771
18772 if test -n "$ac_config_commands"; then
18773   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18774 fi
18775
18776 cat >>$CONFIG_STATUS <<\_ACEOF
18777
18778 ac_cs_usage="\
18779 \`$as_me' instantiates files from templates according to the
18780 current configuration.
18781
18782 Usage: $0 [OPTIONS] [FILE]...
18783
18784   -h, --help       print this help, then exit
18785   -V, --version    print version number, then exit
18786   -q, --quiet      do not print progress messages
18787   -d, --debug      don't remove temporary files
18788       --recheck    update $as_me by reconfiguring in the same conditions
18789   --file=FILE[:TEMPLATE]
18790                    instantiate the configuration file FILE
18791   --header=FILE[:TEMPLATE]
18792                    instantiate the configuration header FILE
18793
18794 Configuration files:
18795 $config_files
18796
18797 Configuration headers:
18798 $config_headers
18799
18800 Configuration commands:
18801 $config_commands
18802
18803 Report bugs to <bug-autoconf@gnu.org>."
18804 _ACEOF
18805
18806 cat >>$CONFIG_STATUS <<_ACEOF
18807 ac_cs_version="\\
18808 config.status
18809 configured by $0, generated by GNU Autoconf 2.57,
18810   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18811
18812 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18813 Free Software Foundation, Inc.
18814 This config.status script is free software; the Free Software Foundation
18815 gives unlimited permission to copy, distribute and modify it."
18816 srcdir=$srcdir
18817 INSTALL="$INSTALL"
18818 _ACEOF
18819
18820 cat >>$CONFIG_STATUS <<\_ACEOF
18821 # If no file are specified by the user, then we need to provide default
18822 # value.  By we need to know if files were specified by the user.
18823 ac_need_defaults=:
18824 while test $# != 0
18825 do
18826   case $1 in
18827   --*=*)
18828     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18829     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18830     ac_shift=:
18831     ;;
18832   -*)
18833     ac_option=$1
18834     ac_optarg=$2
18835     ac_shift=shift
18836     ;;
18837   *) # This is not an option, so the user has probably given explicit
18838      # arguments.
18839      ac_option=$1
18840      ac_need_defaults=false;;
18841   esac
18842
18843   case $ac_option in
18844   # Handling of the options.
18845 _ACEOF
18846 cat >>$CONFIG_STATUS <<\_ACEOF
18847   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18848     ac_cs_recheck=: ;;
18849   --version | --vers* | -V )
18850     echo "$ac_cs_version"; exit 0 ;;
18851   --he | --h)
18852     # Conflict between --help and --header
18853     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18854 Try \`$0 --help' for more information." >&5
18855 echo "$as_me: error: ambiguous option: $1
18856 Try \`$0 --help' for more information." >&2;}
18857    { (exit 1); exit 1; }; };;
18858   --help | --hel | -h )
18859     echo "$ac_cs_usage"; exit 0 ;;
18860   --debug | --d* | -d )
18861     debug=: ;;
18862   --file | --fil | --fi | --f )
18863     $ac_shift
18864     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18865     ac_need_defaults=false;;
18866   --header | --heade | --head | --hea )
18867     $ac_shift
18868     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18869     ac_need_defaults=false;;
18870   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18871   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18872     ac_cs_silent=: ;;
18873
18874   # This is an error.
18875   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18876 Try \`$0 --help' for more information." >&5
18877 echo "$as_me: error: unrecognized option: $1
18878 Try \`$0 --help' for more information." >&2;}
18879    { (exit 1); exit 1; }; } ;;
18880
18881   *) ac_config_targets="$ac_config_targets $1" ;;
18882
18883   esac
18884   shift
18885 done
18886
18887 ac_configure_extra_args=
18888
18889 if $ac_cs_silent; then
18890   exec 6>/dev/null
18891   ac_configure_extra_args="$ac_configure_extra_args --silent"
18892 fi
18893
18894 _ACEOF
18895 cat >>$CONFIG_STATUS <<_ACEOF
18896 if \$ac_cs_recheck; then
18897   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18898   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18899 fi
18900
18901 _ACEOF
18902
18903
18904
18905
18906
18907 cat >>$CONFIG_STATUS <<\_ACEOF
18908 for ac_config_target in $ac_config_targets
18909 do
18910   case "$ac_config_target" in
18911   # Handling of arguments.
18912   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18913   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18914   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18915   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18916   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18917   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18918   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18919   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18920   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18921   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18922   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18923   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18924   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18925   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18926   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18927   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18928   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18929   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18930   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18931   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18932   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18933   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18934   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18935   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18936   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18937   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18938   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18939   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18940   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18941   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18942   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18943   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18944   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18945   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18946   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18947   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18948   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18949   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18950   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18951   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18952   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18953   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18954   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18955   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18956   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18957   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18958   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18959   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18960   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18961   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18962   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18963   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18964   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18965   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18966   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18967   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18968   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18969   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18970   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18971   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18972   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18973   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18974   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18975   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18976   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18977   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18978   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18979   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18980   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18981   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18982   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18983   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18984   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18985   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18986   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18987   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18988   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18989   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18990   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18991   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18992   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18993   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18994   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18995   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18996   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18997   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18998   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18999   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19000   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19001   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19002   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19003 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19004    { (exit 1); exit 1; }; };;
19005   esac
19006 done
19007
19008 # If the user did not use the arguments to specify the items to instantiate,
19009 # then the envvar interface is used.  Set only those that are not.
19010 # We use the long form for the default assignment because of an extremely
19011 # bizarre bug on SunOS 4.1.3.
19012 if $ac_need_defaults; then
19013   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19014   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19015   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19016 fi
19017
19018 # Have a temporary directory for convenience.  Make it in the build tree
19019 # simply because there is no reason to put it here, and in addition,
19020 # creating and moving files from /tmp can sometimes cause problems.
19021 # Create a temporary directory, and hook for its removal unless debugging.
19022 $debug ||
19023 {
19024   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19025   trap '{ (exit 1); exit 1; }' 1 2 13 15
19026 }
19027
19028 # Create a (secure) tmp directory for tmp files.
19029
19030 {
19031   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19032   test -n "$tmp" && test -d "$tmp"
19033 }  ||
19034 {
19035   tmp=./confstat$$-$RANDOM
19036   (umask 077 && mkdir $tmp)
19037 } ||
19038 {
19039    echo "$me: cannot create a temporary directory in ." >&2
19040    { (exit 1); exit 1; }
19041 }
19042
19043 _ACEOF
19044
19045 cat >>$CONFIG_STATUS <<_ACEOF
19046
19047 #
19048 # CONFIG_FILES section.
19049 #
19050
19051 # No need to generate the scripts if there are no CONFIG_FILES.
19052 # This happens for instance when ./config.status config.h
19053 if test -n "\$CONFIG_FILES"; then
19054   # Protect against being on the right side of a sed subst in config.status.
19055   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19056    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19057 s,@SHELL@,$SHELL,;t t
19058 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19059 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19060 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19061 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19062 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19063 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19064 s,@exec_prefix@,$exec_prefix,;t t
19065 s,@prefix@,$prefix,;t t
19066 s,@program_transform_name@,$program_transform_name,;t t
19067 s,@bindir@,$bindir,;t t
19068 s,@sbindir@,$sbindir,;t t
19069 s,@libexecdir@,$libexecdir,;t t
19070 s,@datadir@,$datadir,;t t
19071 s,@sysconfdir@,$sysconfdir,;t t
19072 s,@sharedstatedir@,$sharedstatedir,;t t
19073 s,@localstatedir@,$localstatedir,;t t
19074 s,@libdir@,$libdir,;t t
19075 s,@includedir@,$includedir,;t t
19076 s,@oldincludedir@,$oldincludedir,;t t
19077 s,@infodir@,$infodir,;t t
19078 s,@mandir@,$mandir,;t t
19079 s,@build_alias@,$build_alias,;t t
19080 s,@host_alias@,$host_alias,;t t
19081 s,@target_alias@,$target_alias,;t t
19082 s,@DEFS@,$DEFS,;t t
19083 s,@ECHO_C@,$ECHO_C,;t t
19084 s,@ECHO_N@,$ECHO_N,;t t
19085 s,@ECHO_T@,$ECHO_T,;t t
19086 s,@LIBS@,$LIBS,;t t
19087 s,@BUILD_DIR@,$BUILD_DIR,;t t
19088 s,@TRUEPRG@,$TRUEPRG,;t t
19089 s,@FALSEPRG@,$FALSEPRG,;t t
19090 s,@VERSION@,$VERSION,;t t
19091 s,@DATE@,$DATE,;t t
19092 s,@LSMDATE@,$LSMDATE,;t t
19093 s,@CC@,$CC,;t t
19094 s,@CFLAGS@,$CFLAGS,;t t
19095 s,@LDFLAGS@,$LDFLAGS,;t t
19096 s,@CPPFLAGS@,$CPPFLAGS,;t t
19097 s,@ac_ct_CC@,$ac_ct_CC,;t t
19098 s,@EXEEXT@,$EXEEXT,;t t
19099 s,@OBJEXT@,$OBJEXT,;t t
19100 s,@CXX@,$CXX,;t t
19101 s,@CXXFLAGS@,$CXXFLAGS,;t t
19102 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19103 s,@CPP@,$CPP,;t t
19104 s,@EGREP@,$EGREP,;t t
19105 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19106 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19107 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19108 s,@RANLIB@,$RANLIB,;t t
19109 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19110 s,@MV@,$MV,;t t
19111 s,@RM@,$RM,;t t
19112 s,@CP@,$CP,;t t
19113 s,@SED@,$SED,;t t
19114 s,@AWK@,$AWK,;t t
19115 s,@ECHO@,$ECHO,;t t
19116 s,@CMP@,$CMP,;t t
19117 s,@TBL@,$TBL,;t t
19118 s,@AR@,$AR,;t t
19119 s,@OPENSSL@,$OPENSSL,;t t
19120 s,@MTX@,$MTX,;t t
19121 s,@PKGCONFIG@,$PKGCONFIG,;t t
19122 s,@WXCONFIG@,$WXCONFIG,;t t
19123 s,@ARFLAGS@,$ARFLAGS,;t t
19124 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19125 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19126 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19127 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19128 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19129 s,@build@,$build,;t t
19130 s,@build_cpu@,$build_cpu,;t t
19131 s,@build_vendor@,$build_vendor,;t t
19132 s,@build_os@,$build_os,;t t
19133 s,@host@,$host,;t t
19134 s,@host_cpu@,$host_cpu,;t t
19135 s,@host_vendor@,$host_vendor,;t t
19136 s,@host_os@,$host_os,;t t
19137 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19138 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19139 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19140 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19141 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19142 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19143 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19144 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19145 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19146 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19147 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19148 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19149 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19150 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19151 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19152 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19153 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19154 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19155 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19156 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19157 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19158 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19159 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19160 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19161 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19162 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19163 s,@MSGFMT@,$MSGFMT,;t t
19164 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19165 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19166 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19167 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19168 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19169 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19170 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19171 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19172 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19173 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19174 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19175 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19176 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19177 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19178 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19179 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19180 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19181 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19182 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19183 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19184 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19185 s,@GNOME_DIR@,$GNOME_DIR,;t t
19186 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19187 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19188 s,@WX_DIR@,$WX_DIR,;t t
19189 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19190 s,@STATIC_FD@,$STATIC_FD,;t t
19191 s,@STATIC_SD@,$STATIC_SD,;t t
19192 s,@STATIC_DIR@,$STATIC_DIR,;t t
19193 s,@STATIC_CONS@,$STATIC_CONS,;t t
19194 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19195 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19196 s,@ALL_DIRS@,$ALL_DIRS,;t t
19197 s,@CONS_INC@,$CONS_INC,;t t
19198 s,@CONS_OBJ@,$CONS_OBJ,;t t
19199 s,@CONS_SRC@,$CONS_SRC,;t t
19200 s,@CONS_LIBS@,$CONS_LIBS,;t t
19201 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19202 s,@READLINE_SRC@,$READLINE_SRC,;t t
19203 s,@working_dir@,$working_dir,;t t
19204 s,@scriptdir@,$scriptdir,;t t
19205 s,@dump_email@,$dump_email,;t t
19206 s,@job_email@,$job_email,;t t
19207 s,@smtp_host@,$smtp_host,;t t
19208 s,@piddir@,$piddir,;t t
19209 s,@subsysdir@,$subsysdir,;t t
19210 s,@baseport@,$baseport,;t t
19211 s,@dir_port@,$dir_port,;t t
19212 s,@fd_port@,$fd_port,;t t
19213 s,@sd_port@,$sd_port,;t t
19214 s,@dir_password@,$dir_password,;t t
19215 s,@fd_password@,$fd_password,;t t
19216 s,@sd_password@,$sd_password,;t t
19217 s,@dir_user@,$dir_user,;t t
19218 s,@dir_group@,$dir_group,;t t
19219 s,@sd_user@,$sd_user,;t t
19220 s,@sd_group@,$sd_group,;t t
19221 s,@fd_user@,$fd_user,;t t
19222 s,@fd_group@,$fd_group,;t t
19223 s,@SBINPERM@,$SBINPERM,;t t
19224 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19225 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19226 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19227 s,@cats@,$cats,;t t
19228 s,@DB_NAME@,$DB_NAME,;t t
19229 s,@GETCONF@,$GETCONF,;t t
19230 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19231 s,@X_CFLAGS@,$X_CFLAGS,;t t
19232 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19233 s,@X_LIBS@,$X_LIBS,;t t
19234 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19235 s,@LIBOBJS@,$LIBOBJS,;t t
19236 s,@ALLOCA@,$ALLOCA,;t t
19237 s,@FDLIBS@,$FDLIBS,;t t
19238 s,@DEBUG@,$DEBUG,;t t
19239 s,@DINCLUDE@,$DINCLUDE,;t t
19240 s,@DLIB@,$DLIB,;t t
19241 s,@DB_LIBS@,$DB_LIBS,;t t
19242 s,@WCFLAGS@,$WCFLAGS,;t t
19243 s,@WLDFLAGS@,$WLDFLAGS,;t t
19244 s,@OBJLIST@,$OBJLIST,;t t
19245 s,@hostname@,$hostname,;t t
19246 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19247 s,@PSCMD@,$PSCMD,;t t
19248 s,@WIN32@,$WIN32,;t t
19249 s,@MACOSX@,$MACOSX,;t t
19250 s,@DISTNAME@,$DISTNAME,;t t
19251 s,@DISTVER@,$DISTVER,;t t
19252 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19253 /@MCOMMON@/r $MCOMMON
19254 s,@MCOMMON@,,;t t
19255 CEOF
19256
19257 _ACEOF
19258
19259   cat >>$CONFIG_STATUS <<\_ACEOF
19260   # Split the substitutions into bite-sized pieces for seds with
19261   # small command number limits, like on Digital OSF/1 and HP-UX.
19262   ac_max_sed_lines=48
19263   ac_sed_frag=1 # Number of current file.
19264   ac_beg=1 # First line for current file.
19265   ac_end=$ac_max_sed_lines # Line after last line for current file.
19266   ac_more_lines=:
19267   ac_sed_cmds=
19268   while $ac_more_lines; do
19269     if test $ac_beg -gt 1; then
19270       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19271     else
19272       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19273     fi
19274     if test ! -s $tmp/subs.frag; then
19275       ac_more_lines=false
19276     else
19277       # The purpose of the label and of the branching condition is to
19278       # speed up the sed processing (if there are no `@' at all, there
19279       # is no need to browse any of the substitutions).
19280       # These are the two extra sed commands mentioned above.
19281       (echo ':t
19282   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19283       if test -z "$ac_sed_cmds"; then
19284         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19285       else
19286         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19287       fi
19288       ac_sed_frag=`expr $ac_sed_frag + 1`
19289       ac_beg=$ac_end
19290       ac_end=`expr $ac_end + $ac_max_sed_lines`
19291     fi
19292   done
19293   if test -z "$ac_sed_cmds"; then
19294     ac_sed_cmds=cat
19295   fi
19296 fi # test -n "$CONFIG_FILES"
19297
19298 _ACEOF
19299 cat >>$CONFIG_STATUS <<\_ACEOF
19300 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19301   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19302   case $ac_file in
19303   - | *:- | *:-:* ) # input from stdin
19304         cat >$tmp/stdin
19305         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19306         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19307   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19308         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19309   * )   ac_file_in=$ac_file.in ;;
19310   esac
19311
19312   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19313   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19315          X"$ac_file" : 'X\(//\)[^/]' \| \
19316          X"$ac_file" : 'X\(//\)$' \| \
19317          X"$ac_file" : 'X\(/\)' \| \
19318          .     : '\(.\)' 2>/dev/null ||
19319 echo X"$ac_file" |
19320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19321           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19322           /^X\(\/\/\)$/{ s//\1/; q; }
19323           /^X\(\/\).*/{ s//\1/; q; }
19324           s/.*/./; q'`
19325   { if $as_mkdir_p; then
19326     mkdir -p "$ac_dir"
19327   else
19328     as_dir="$ac_dir"
19329     as_dirs=
19330     while test ! -d "$as_dir"; do
19331       as_dirs="$as_dir $as_dirs"
19332       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19334          X"$as_dir" : 'X\(//\)[^/]' \| \
19335          X"$as_dir" : 'X\(//\)$' \| \
19336          X"$as_dir" : 'X\(/\)' \| \
19337          .     : '\(.\)' 2>/dev/null ||
19338 echo X"$as_dir" |
19339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19340           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19341           /^X\(\/\/\)$/{ s//\1/; q; }
19342           /^X\(\/\).*/{ s//\1/; q; }
19343           s/.*/./; q'`
19344     done
19345     test ! -n "$as_dirs" || mkdir $as_dirs
19346   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19347 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19348    { (exit 1); exit 1; }; }; }
19349
19350   ac_builddir=.
19351
19352 if test "$ac_dir" != .; then
19353   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19354   # A "../" for each directory in $ac_dir_suffix.
19355   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19356 else
19357   ac_dir_suffix= ac_top_builddir=
19358 fi
19359
19360 case $srcdir in
19361   .)  # No --srcdir option.  We are building in place.
19362     ac_srcdir=.
19363     if test -z "$ac_top_builddir"; then
19364        ac_top_srcdir=.
19365     else
19366        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19367     fi ;;
19368   [\\/]* | ?:[\\/]* )  # Absolute path.
19369     ac_srcdir=$srcdir$ac_dir_suffix;
19370     ac_top_srcdir=$srcdir ;;
19371   *) # Relative path.
19372     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19373     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19374 esac
19375 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19376 # absolute.
19377 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19378 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19379 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19380 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19381
19382
19383   case $INSTALL in
19384   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19385   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19386   esac
19387
19388   if test x"$ac_file" != x-; then
19389     { echo "$as_me:$LINENO: creating $ac_file" >&5
19390 echo "$as_me: creating $ac_file" >&6;}
19391     rm -f "$ac_file"
19392   fi
19393   # Let's still pretend it is `configure' which instantiates (i.e., don't
19394   # use $as_me), people would be surprised to read:
19395   #    /* config.h.  Generated by config.status.  */
19396   if test x"$ac_file" = x-; then
19397     configure_input=
19398   else
19399     configure_input="$ac_file.  "
19400   fi
19401   configure_input=$configure_input"Generated from `echo $ac_file_in |
19402                                      sed 's,.*/,,'` by configure."
19403
19404   # First look for the input files in the build tree, otherwise in the
19405   # src tree.
19406   ac_file_inputs=`IFS=:
19407     for f in $ac_file_in; do
19408       case $f in
19409       -) echo $tmp/stdin ;;
19410       [\\/$]*)
19411          # Absolute (can't be DOS-style, as IFS=:)
19412          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19413 echo "$as_me: error: cannot find input file: $f" >&2;}
19414    { (exit 1); exit 1; }; }
19415          echo $f;;
19416       *) # Relative
19417          if test -f "$f"; then
19418            # Build tree
19419            echo $f
19420          elif test -f "$srcdir/$f"; then
19421            # Source tree
19422            echo $srcdir/$f
19423          else
19424            # /dev/null tree
19425            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19426 echo "$as_me: error: cannot find input file: $f" >&2;}
19427    { (exit 1); exit 1; }; }
19428          fi;;
19429       esac
19430     done` || { (exit 1); exit 1; }
19431 _ACEOF
19432 cat >>$CONFIG_STATUS <<_ACEOF
19433   sed "$ac_vpsub
19434 $extrasub
19435 _ACEOF
19436 cat >>$CONFIG_STATUS <<\_ACEOF
19437 :t
19438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19439 s,@configure_input@,$configure_input,;t t
19440 s,@srcdir@,$ac_srcdir,;t t
19441 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19442 s,@top_srcdir@,$ac_top_srcdir,;t t
19443 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19444 s,@builddir@,$ac_builddir,;t t
19445 s,@abs_builddir@,$ac_abs_builddir,;t t
19446 s,@top_builddir@,$ac_top_builddir,;t t
19447 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19448 s,@INSTALL@,$ac_INSTALL,;t t
19449 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19450   rm -f $tmp/stdin
19451   if test x"$ac_file" != x-; then
19452     mv $tmp/out $ac_file
19453   else
19454     cat $tmp/out
19455     rm -f $tmp/out
19456   fi
19457
19458 done
19459 _ACEOF
19460 cat >>$CONFIG_STATUS <<\_ACEOF
19461
19462 #
19463 # CONFIG_HEADER section.
19464 #
19465
19466 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19467 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19468 #
19469 # ac_d sets the value in "#define NAME VALUE" lines.
19470 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19471 ac_dB='[        ].*$,\1#\2'
19472 ac_dC=' '
19473 ac_dD=',;t'
19474 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19475 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19476 ac_uB='$,\1#\2define\3'
19477 ac_uC=' '
19478 ac_uD=',;t'
19479
19480 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19481   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19482   case $ac_file in
19483   - | *:- | *:-:* ) # input from stdin
19484         cat >$tmp/stdin
19485         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19486         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19487   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19488         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19489   * )   ac_file_in=$ac_file.in ;;
19490   esac
19491
19492   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19493 echo "$as_me: creating $ac_file" >&6;}
19494
19495   # First look for the input files in the build tree, otherwise in the
19496   # src tree.
19497   ac_file_inputs=`IFS=:
19498     for f in $ac_file_in; do
19499       case $f in
19500       -) echo $tmp/stdin ;;
19501       [\\/$]*)
19502          # Absolute (can't be DOS-style, as IFS=:)
19503          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19504 echo "$as_me: error: cannot find input file: $f" >&2;}
19505    { (exit 1); exit 1; }; }
19506          echo $f;;
19507       *) # Relative
19508          if test -f "$f"; then
19509            # Build tree
19510            echo $f
19511          elif test -f "$srcdir/$f"; then
19512            # Source tree
19513            echo $srcdir/$f
19514          else
19515            # /dev/null tree
19516            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19517 echo "$as_me: error: cannot find input file: $f" >&2;}
19518    { (exit 1); exit 1; }; }
19519          fi;;
19520       esac
19521     done` || { (exit 1); exit 1; }
19522   # Remove the trailing spaces.
19523   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19524
19525 _ACEOF
19526
19527 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19528 # `conftest.undefs', that substitutes the proper values into
19529 # config.h.in to produce config.h.  The first handles `#define'
19530 # templates, and the second `#undef' templates.
19531 # And first: Protect against being on the right side of a sed subst in
19532 # config.status.  Protect against being in an unquoted here document
19533 # in config.status.
19534 rm -f conftest.defines conftest.undefs
19535 # Using a here document instead of a string reduces the quoting nightmare.
19536 # Putting comments in sed scripts is not portable.
19537 #
19538 # `end' is used to avoid that the second main sed command (meant for
19539 # 0-ary CPP macros) applies to n-ary macro definitions.
19540 # See the Autoconf documentation for `clear'.
19541 cat >confdef2sed.sed <<\_ACEOF
19542 s/[\\&,]/\\&/g
19543 s,[\\$`],\\&,g
19544 t clear
19545 : clear
19546 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19547 t end
19548 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19549 : end
19550 _ACEOF
19551 # If some macros were called several times there might be several times
19552 # the same #defines, which is useless.  Nevertheless, we may not want to
19553 # sort them, since we want the *last* AC-DEFINE to be honored.
19554 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19555 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19556 rm -f confdef2sed.sed
19557
19558 # This sed command replaces #undef with comments.  This is necessary, for
19559 # example, in the case of _POSIX_SOURCE, which is predefined and required
19560 # on some systems where configure will not decide to define it.
19561 cat >>conftest.undefs <<\_ACEOF
19562 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19563 _ACEOF
19564
19565 # Break up conftest.defines because some shells have a limit on the size
19566 # of here documents, and old seds have small limits too (100 cmds).
19567 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19568 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19569 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19570 echo '  :' >>$CONFIG_STATUS
19571 rm -f conftest.tail
19572 while grep . conftest.defines >/dev/null
19573 do
19574   # Write a limited-size here document to $tmp/defines.sed.
19575   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19576   # Speed up: don't consider the non `#define' lines.
19577   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19578   # Work around the forget-to-reset-the-flag bug.
19579   echo 't clr' >>$CONFIG_STATUS
19580   echo ': clr' >>$CONFIG_STATUS
19581   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19582   echo 'CEOF
19583   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19584   rm -f $tmp/in
19585   mv $tmp/out $tmp/in
19586 ' >>$CONFIG_STATUS
19587   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19588   rm -f conftest.defines
19589   mv conftest.tail conftest.defines
19590 done
19591 rm -f conftest.defines
19592 echo '  fi # grep' >>$CONFIG_STATUS
19593 echo >>$CONFIG_STATUS
19594
19595 # Break up conftest.undefs because some shells have a limit on the size
19596 # of here documents, and old seds have small limits too (100 cmds).
19597 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19598 rm -f conftest.tail
19599 while grep . conftest.undefs >/dev/null
19600 do
19601   # Write a limited-size here document to $tmp/undefs.sed.
19602   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19603   # Speed up: don't consider the non `#undef'
19604   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19605   # Work around the forget-to-reset-the-flag bug.
19606   echo 't clr' >>$CONFIG_STATUS
19607   echo ': clr' >>$CONFIG_STATUS
19608   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19609   echo 'CEOF
19610   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19611   rm -f $tmp/in
19612   mv $tmp/out $tmp/in
19613 ' >>$CONFIG_STATUS
19614   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19615   rm -f conftest.undefs
19616   mv conftest.tail conftest.undefs
19617 done
19618 rm -f conftest.undefs
19619
19620 cat >>$CONFIG_STATUS <<\_ACEOF
19621   # Let's still pretend it is `configure' which instantiates (i.e., don't
19622   # use $as_me), people would be surprised to read:
19623   #    /* config.h.  Generated by config.status.  */
19624   if test x"$ac_file" = x-; then
19625     echo "/* Generated by configure.  */" >$tmp/config.h
19626   else
19627     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19628   fi
19629   cat $tmp/in >>$tmp/config.h
19630   rm -f $tmp/in
19631   if test x"$ac_file" != x-; then
19632     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19633       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19634 echo "$as_me: $ac_file is unchanged" >&6;}
19635     else
19636       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19638          X"$ac_file" : 'X\(//\)[^/]' \| \
19639          X"$ac_file" : 'X\(//\)$' \| \
19640          X"$ac_file" : 'X\(/\)' \| \
19641          .     : '\(.\)' 2>/dev/null ||
19642 echo X"$ac_file" |
19643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19644           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19645           /^X\(\/\/\)$/{ s//\1/; q; }
19646           /^X\(\/\).*/{ s//\1/; q; }
19647           s/.*/./; q'`
19648       { if $as_mkdir_p; then
19649     mkdir -p "$ac_dir"
19650   else
19651     as_dir="$ac_dir"
19652     as_dirs=
19653     while test ! -d "$as_dir"; do
19654       as_dirs="$as_dir $as_dirs"
19655       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19657          X"$as_dir" : 'X\(//\)[^/]' \| \
19658          X"$as_dir" : 'X\(//\)$' \| \
19659          X"$as_dir" : 'X\(/\)' \| \
19660          .     : '\(.\)' 2>/dev/null ||
19661 echo X"$as_dir" |
19662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19663           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19664           /^X\(\/\/\)$/{ s//\1/; q; }
19665           /^X\(\/\).*/{ s//\1/; q; }
19666           s/.*/./; q'`
19667     done
19668     test ! -n "$as_dirs" || mkdir $as_dirs
19669   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19671    { (exit 1); exit 1; }; }; }
19672
19673       rm -f $ac_file
19674       mv $tmp/config.h $ac_file
19675     fi
19676   else
19677     cat $tmp/config.h
19678     rm -f $tmp/config.h
19679   fi
19680 done
19681 _ACEOF
19682 cat >>$CONFIG_STATUS <<\_ACEOF
19683
19684 #
19685 # CONFIG_COMMANDS section.
19686 #
19687 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19688   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19689   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19690   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19691 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19692          X"$ac_dest" : 'X\(//\)[^/]' \| \
19693          X"$ac_dest" : 'X\(//\)$' \| \
19694          X"$ac_dest" : 'X\(/\)' \| \
19695          .     : '\(.\)' 2>/dev/null ||
19696 echo X"$ac_dest" |
19697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19698           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19699           /^X\(\/\/\)$/{ s//\1/; q; }
19700           /^X\(\/\).*/{ s//\1/; q; }
19701           s/.*/./; q'`
19702   ac_builddir=.
19703
19704 if test "$ac_dir" != .; then
19705   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19706   # A "../" for each directory in $ac_dir_suffix.
19707   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19708 else
19709   ac_dir_suffix= ac_top_builddir=
19710 fi
19711
19712 case $srcdir in
19713   .)  # No --srcdir option.  We are building in place.
19714     ac_srcdir=.
19715     if test -z "$ac_top_builddir"; then
19716        ac_top_srcdir=.
19717     else
19718        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19719     fi ;;
19720   [\\/]* | ?:[\\/]* )  # Absolute path.
19721     ac_srcdir=$srcdir$ac_dir_suffix;
19722     ac_top_srcdir=$srcdir ;;
19723   *) # Relative path.
19724     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19725     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19726 esac
19727 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19728 # absolute.
19729 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19730 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19731 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19732 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19733
19734
19735   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19736 echo "$as_me: executing $ac_dest commands" >&6;}
19737   case $ac_dest in
19738     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
19739  ;;
19740   esac
19741 done
19742 _ACEOF
19743
19744 cat >>$CONFIG_STATUS <<\_ACEOF
19745
19746 { (exit 0); exit 0; }
19747 _ACEOF
19748 chmod +x $CONFIG_STATUS
19749 ac_clean_files=$ac_clean_files_save
19750
19751
19752 # configure is writing to config.log, and then calls config.status.
19753 # config.status does its own redirection, appending to config.log.
19754 # Unfortunately, on DOS this fails, as config.log is still kept open
19755 # by configure, so config.status won't be able to write to it; its
19756 # output is simply discarded.  So we exec the FD to /dev/null,
19757 # effectively closing config.log, so it can be properly (re)opened and
19758 # appended to by config.status.  When coming back to configure, we
19759 # need to make the FD available again.
19760 if test "$no_create" != yes; then
19761   ac_cs_success=:
19762   ac_config_status_args=
19763   test "$silent" = yes &&
19764     ac_config_status_args="$ac_config_status_args --quiet"
19765   exec 5>/dev/null
19766   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19767   exec 5>>config.log
19768   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19769   # would make configure fail if this is the last instruction.
19770   $ac_cs_success || { (exit 1); exit 1; }
19771 fi
19772
19773
19774 cd scripts
19775 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19776 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19777 cd ..
19778
19779 c=src/cats
19780
19781 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19782 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19783
19784 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19785 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19786
19787 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19788 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19789
19790 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19791 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19792
19793 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19794 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19795
19796 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19797 chmod 755 $c/sqlite
19798 chmod 755 $c/mysql
19799
19800 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19801    largefile_support="yes"
19802 fi
19803
19804 #
19805 # A whole lot of hand springs to get the compiler version.
19806 #  This is because gcc changed the output in version 3.0
19807 #
19808 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19809 if test "x${CCVERSION}" = "x" ; then
19810   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19811 fi
19812 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19813 if test x"${CXXVERSION}" = x ; then
19814   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19815 fi
19816
19817 if test "x${subsysdir}" = "x${sbindir}" ; then
19818    echo " "
19819    echo " "
19820    echo "You have set --sbindir and --with-subsys-dir"
19821    echo "  both equal to: ${subsysdir} "
19822    echo "  This is not permitted. Please reconfigure."
19823    echo " "
19824    echo "Aborting configuration ..."
19825    echo " "
19826    echo " "
19827    exit 1
19828 fi
19829
19830 if test "x${db_name}" = "xInternal" ; then
19831    echo " "
19832    echo " "
19833    echo "You have not specified either --enable-client-only or one of the"
19834    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
19835    echo "  This is not permitted. Please reconfigure."
19836    echo " "
19837    echo "Aborting the configuration ..."
19838    echo " "
19839    echo " "
19840    exit 1
19841 fi
19842
19843 echo "
19844 Configuration on `date`:
19845
19846   Host:                       $host -- ${DISTNAME} ${DISTVER}
19847   Bacula version:             ${VERSION} (${DATE})
19848   Source code location:       ${srcdir}
19849   Install binaries:           ${sbindir}
19850   Install config files:       ${sysconfdir}
19851   Scripts directory:          ${scriptdir}
19852   Working directory:          ${working_dir}
19853   PID directory:              ${piddir}
19854   Subsys directory:           ${subsysdir}
19855   C Compiler:                 ${CC} ${CCVERSION}
19856   C++ Compiler:               ${CXX} ${CXXVERSION}
19857   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19858   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19859   Libraries:                  ${LIBS}
19860   Statically Linked Tools:    ${support_static_tools}
19861   Statically Linked FD:       ${support_static_fd}
19862   Statically Linked SD:       ${support_static_sd}
19863   Statically Linked DIR:      ${support_static_dir}
19864   Statically Linked CONS:     ${support_static_cons}
19865   Database type:              ${db_name}
19866   Database lib:               ${DB_LIBS}
19867
19868   Job Output Email:           ${job_email}
19869   Traceback Email:            ${dump_email}
19870   SMTP Host Address:          ${smtp_host}
19871
19872   Director Port:              ${dir_port}
19873   File daemon Port:           ${fd_port}
19874   Storage daemon Port:        ${sd_port}
19875
19876   Director User:              ${dir_user}
19877   Director Group:             ${dir_group}
19878   Storage Daemon User:        ${sd_user}
19879   Storage DaemonGroup:        ${sd_group}
19880   File Daemon User:           ${fd_user}
19881   File Daemon Group:          ${fd_group}
19882
19883   SQL binaries Directory      ${SQL_BINDIR}
19884
19885   Large file support:         $largefile_support
19886   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19887   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19888   TCP Wrappers support:       ${TCPW_MSG}
19889   ZLIB support:               ${have_zlib}
19890   enable-smartalloc:          ${support_smartalloc}
19891   enable-gnome:               ${support_gnome} ${gnome_version}
19892   enable-wx-console:          ${support_wx_console}
19893   client-only:                ${build_client_only}
19894   ACL support:                ${have_acl}
19895
19896   " > config.out
19897
19898 cat config.out
19899
19900 # old stuff
19901 # cweb support:               ${got_cweb} ${CWEB_SRC}
19902 # gmp support:                ${got_gmp} ${GMP_SRC}