]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add --enable-wx-console
[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 SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-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-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
899                           base install directory, defaults to /usr/local/pgsql
900
901   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
902                           install directory, default is to search through
903                           a number of common places for the MySQL files.
904
905   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
906                           install directory, default is to search through
907                           a number of common places for the MySQL files.
908
909   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
910                           install directory, default is to search through
911                           a number of common places for the SQLite files.
912   --with-x                use the X Window System
913
914 Some influential environment variables:
915   CC          C compiler command
916   CFLAGS      C compiler flags
917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
918               nonstandard directory <lib dir>
919   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
920               headers in a nonstandard directory <include dir>
921   CXX         C++ compiler command
922   CXXFLAGS    C++ compiler flags
923   CPP         C preprocessor
924
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
927
928 _ACEOF
929 fi
930
931 if test "$ac_init_help" = "recursive"; then
932   # If there are subdirs, report their specific --help.
933   ac_popdir=`pwd`
934   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935     test -d $ac_dir || continue
936     ac_builddir=.
937
938 if test "$ac_dir" != .; then
939   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940   # A "../" for each directory in $ac_dir_suffix.
941   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942 else
943   ac_dir_suffix= ac_top_builddir=
944 fi
945
946 case $srcdir in
947   .)  # No --srcdir option.  We are building in place.
948     ac_srcdir=.
949     if test -z "$ac_top_builddir"; then
950        ac_top_srcdir=.
951     else
952        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953     fi ;;
954   [\\/]* | ?:[\\/]* )  # Absolute path.
955     ac_srcdir=$srcdir$ac_dir_suffix;
956     ac_top_srcdir=$srcdir ;;
957   *) # Relative path.
958     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959     ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 esac
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
962 # absolute.
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967
968     cd $ac_dir
969     # Check for guested configure; otherwise get Cygnus style configure.
970     if test -f $ac_srcdir/configure.gnu; then
971       echo
972       $SHELL $ac_srcdir/configure.gnu  --help=recursive
973     elif test -f $ac_srcdir/configure; then
974       echo
975       $SHELL $ac_srcdir/configure  --help=recursive
976     elif test -f $ac_srcdir/configure.ac ||
977            test -f $ac_srcdir/configure.in; then
978       echo
979       $ac_configure --help
980     else
981       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982     fi
983     cd $ac_popdir
984   done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989   cat <<\_ACEOF
990
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996   exit 0
997 fi
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1002
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57.  Invocation command line was
1005
1006   $ $0 $@
1007
1008 _ACEOF
1009 {
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1014
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1023
1024 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1025 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1028 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1029 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1030 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1031
1032 _ASUNAME
1033
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1036 do
1037   IFS=$as_save_IFS
1038   test -z "$as_dir" && as_dir=.
1039   echo "PATH: $as_dir"
1040 done
1041
1042 } >&5
1043
1044 cat >&5 <<_ACEOF
1045
1046
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1050
1051 _ACEOF
1052
1053
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1065 do
1066   for ac_arg
1067   do
1068     case $ac_arg in
1069     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071     | -silent | --silent | --silen | --sile | --sil)
1072       continue ;;
1073     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075     esac
1076     case $ac_pass in
1077     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078     2)
1079       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080       if test $ac_must_keep_next = true; then
1081         ac_must_keep_next=false # Got value, back to normal.
1082       else
1083         case $ac_arg in
1084           *=* | --config-cache | -C | -disable-* | --disable-* \
1085           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087           | -with-* | --with-* | -without-* | --without-* | --x)
1088             case "$ac_configure_args0 " in
1089               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090             esac
1091             ;;
1092           -* ) ac_must_keep_next=true ;;
1093         esac
1094       fi
1095       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096       # Get rid of the leading space.
1097       ac_sep=" "
1098       ;;
1099     esac
1100   done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log.  We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111   # Save into config.log some information that might help in debugging.
1112   {
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120     echo
1121     # The following way of writing the cache mishandles newlines in values,
1122 {
1123   (set) 2>&1 |
1124     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125     *ac_space=\ *)
1126       sed -n \
1127         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129       ;;
1130     *)
1131       sed -n \
1132         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133       ;;
1134     esac;
1135 }
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143     echo
1144     for ac_var in $ac_subst_vars
1145     do
1146       eval ac_val=$`echo $ac_var`
1147       echo "$ac_var='"'"'$ac_val'"'"'"
1148     done | sort
1149     echo
1150
1151     if test -n "$ac_subst_files"; then
1152       cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157       echo
1158       for ac_var in $ac_subst_files
1159       do
1160         eval ac_val=$`echo $ac_var`
1161         echo "$ac_var='"'"'$ac_val'"'"'"
1162       done | sort
1163       echo
1164     fi
1165
1166     if test -s confdefs.h; then
1167       cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172       echo
1173       sed "/^$/d" confdefs.h | sort
1174       echo
1175     fi
1176     test "$ac_signal" != 0 &&
1177       echo "$as_me: caught signal $ac_signal"
1178     echo "$as_me: exit $exit_status"
1179   } >&5
1180   rm -f core core.* *.core &&
1181   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182     exit $exit_status
1183      ' 0
1184 for ac_signal in 1 2 13 15; do
1185   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1188
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1193
1194 # Predefined preprocessor variables.
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1219
1220
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224   if test "x$prefix" != xNONE; then
1225     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226   else
1227     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228   fi
1229 fi
1230 for ac_site_file in $CONFIG_SITE; do
1231   if test -r "$ac_site_file"; then
1232     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234     sed 's/^/| /' "$ac_site_file" >&5
1235     . "$ac_site_file"
1236   fi
1237 done
1238
1239 if test -r "$cache_file"; then
1240   # Some versions of bash will fail to source /dev/null (special
1241   # files actually), so we avoid doing that.
1242   if test -f "$cache_file"; then
1243     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245     case $cache_file in
1246       [\\/]* | ?:[\\/]* ) . $cache_file;;
1247       *)                      . ./$cache_file;;
1248     esac
1249   fi
1250 else
1251   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253   >$cache_file
1254 fi
1255
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262   eval ac_new_set=\$ac_env_${ac_var}_set
1263   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264   eval ac_new_val="\$ac_env_${ac_var}_value"
1265   case $ac_old_set,$ac_new_set in
1266     set,)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,set)
1271       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273       ac_cache_corrupted=: ;;
1274     ,);;
1275     *)
1276       if test "x$ac_old_val" != "x$ac_new_val"; then
1277         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1280 echo "$as_me:   former value:  $ac_old_val" >&2;}
1281         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1282 echo "$as_me:   current value: $ac_new_val" >&2;}
1283         ac_cache_corrupted=:
1284       fi;;
1285   esac
1286   # Pass precious variables to config.status.
1287   if test "$ac_new_set" = set; then
1288     case $ac_new_val in
1289     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291     *) ac_arg=$ac_var=$ac_new_val ;;
1292     esac
1293     case " $ac_configure_args " in
1294       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1295       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296     esac
1297   fi
1298 done
1299 if $ac_cache_corrupted; then
1300   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304    { (exit 1); exit 1; }; }
1305 fi
1306
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 BUILD_DIR=`pwd`
1332 cd ..
1333 TOP_DIR=`pwd`
1334 cd ${BUILD_DIR}
1335
1336 ac_aux_dir=
1337 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1338   if test -f $ac_dir/install-sh; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/install-sh -c"
1341     break
1342   elif test -f $ac_dir/install.sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install.sh -c"
1345     break
1346   elif test -f $ac_dir/shtool; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/shtool install -c"
1349     break
1350   fi
1351 done
1352 if test -z "$ac_aux_dir"; then
1353   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1355    { (exit 1); exit 1; }; }
1356 fi
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360
1361           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1362
1363
1364
1365
1366
1367 for ac_prog in true
1368 do
1369   # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy $ac_prog; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1374   echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376   case $TRUEPRG in
1377   [\\/]* | ?:[\\/]*)
1378   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1379   ;;
1380   *)
1381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1383 do
1384   IFS=$as_save_IFS
1385   test -z "$as_dir" && as_dir=.
1386   for ac_exec_ext in '' $ac_executable_extensions; do
1387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1388     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390     break 2
1391   fi
1392 done
1393 done
1394
1395   ;;
1396 esac
1397 fi
1398 TRUEPRG=$ac_cv_path_TRUEPRG
1399
1400 if test -n "$TRUEPRG"; then
1401   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1402 echo "${ECHO_T}$TRUEPRG" >&6
1403 else
1404   echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1406 fi
1407
1408   test -n "$TRUEPRG" && break
1409 done
1410 test -n "$TRUEPRG" || TRUEPRG=":"
1411
1412 for ac_prog in false
1413 do
1414   # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   case $FALSEPRG in
1422   [\\/]* | ?:[\\/]*)
1423   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1424   ;;
1425   *)
1426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429   IFS=$as_save_IFS
1430   test -z "$as_dir" && as_dir=.
1431   for ac_exec_ext in '' $ac_executable_extensions; do
1432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435     break 2
1436   fi
1437 done
1438 done
1439
1440   ;;
1441 esac
1442 fi
1443 FALSEPRG=$ac_cv_path_FALSEPRG
1444
1445 if test -n "$FALSEPRG"; then
1446   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1447 echo "${ECHO_T}$FALSEPRG" >&6
1448 else
1449   echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1451 fi
1452
1453   test -n "$FALSEPRG" && break
1454 done
1455 test -n "$FALSEPRG" || FALSEPRG=":"
1456
1457
1458 #AC_CANONICAL_HOST
1459
1460 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 echo "configuring for bacula $VERSION ($DATE)"
1464
1465
1466
1467 ac_ext=c
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 if test -n "$ac_tool_prefix"; then
1473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$CC"; then
1481   ac_cv_prog_CC="$CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   for ac_exec_ext in '' $ac_executable_extensions; do
1489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493   fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 CC=$ac_cv_prog_CC
1500 if test -n "$CC"; then
1501   echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1503 else
1504   echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508 fi
1509 if test -z "$ac_cv_prog_CC"; then
1510   ac_ct_CC=$CC
1511   # Extract the first word of "gcc", so it can be a program name with args.
1512 set dummy gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   if test -n "$ac_ct_CC"; then
1519   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   for ac_exec_ext in '' $ac_executable_extensions; do
1527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_ac_ct_CC="gcc"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531   fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538 if test -n "$ac_ct_CC"; then
1539   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540 echo "${ECHO_T}$ac_ct_CC" >&6
1541 else
1542   echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546   CC=$ac_ct_CC
1547 else
1548   CC="$ac_cv_prog_CC"
1549 fi
1550
1551 if test -z "$CC"; then
1552   if test -n "$ac_tool_prefix"; then
1553   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554 set dummy ${ac_tool_prefix}cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$CC"; then
1561   ac_cv_prog_CC="$CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_CC="${ac_tool_prefix}cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581   echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 fi
1589 if test -z "$ac_cv_prog_CC"; then
1590   ac_ct_CC=$CC
1591   # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   if test -n "$ac_ct_CC"; then
1599   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   for ac_exec_ext in '' $ac_executable_extensions; do
1607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608     ac_cv_prog_ac_ct_CC="cc"
1609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610     break 2
1611   fi
1612 done
1613 done
1614
1615 fi
1616 fi
1617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618 if test -n "$ac_ct_CC"; then
1619   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620 echo "${ECHO_T}$ac_ct_CC" >&6
1621 else
1622   echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 fi
1625
1626   CC=$ac_ct_CC
1627 else
1628   CC="$ac_cv_prog_CC"
1629 fi
1630
1631 fi
1632 if test -z "$CC"; then
1633   # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$CC"; then
1641   ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643   ac_prog_rejected=no
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652        ac_prog_rejected=yes
1653        continue
1654      fi
1655     ac_cv_prog_CC="cc"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658   fi
1659 done
1660 done
1661
1662 if test $ac_prog_rejected = yes; then
1663   # We found a bogon in the path, so make sure we never use it.
1664   set dummy $ac_cv_prog_CC
1665   shift
1666   if test $# != 0; then
1667     # We chose a different compiler from the bogus one.
1668     # However, it has the same basename, so the bogon will be chosen
1669     # first if we set CC to just the basename; use the full file name.
1670     shift
1671     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1672   fi
1673 fi
1674 fi
1675 fi
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678   echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681   echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 fi
1684
1685 fi
1686 if test -z "$CC"; then
1687   if test -n "$ac_tool_prefix"; then
1688   for ac_prog in cl
1689   do
1690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$CC"; then
1698   ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 CC=$ac_cv_prog_CC
1717 if test -n "$CC"; then
1718   echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725     test -n "$CC" && break
1726   done
1727 fi
1728 if test -z "$CC"; then
1729   ac_ct_CC=$CC
1730   for ac_prog in cl
1731 do
1732   # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$ac_ct_CC"; then
1740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_CC="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   test -n "$ac_ct_CC" && break
1768 done
1769
1770   CC=$ac_ct_CC
1771 fi
1772
1773 fi
1774
1775
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&2;}
1780    { (exit 1); exit 1; }; }
1781
1782 # Provide some information about the compiler.
1783 echo "$as_me:$LINENO:" \
1784      "checking for C compiler version" >&5
1785 ac_compiler=`set X $ac_compile; echo $2`
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787   (eval $ac_compiler --version </dev/null >&5) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792   (eval $ac_compiler -v </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797   (eval $ac_compiler -V </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line $LINENO "configure"
1804 /* confdefs.h.  */
1805 _ACEOF
1806 cat confdefs.h >>conftest.$ac_ext
1807 cat >>conftest.$ac_ext <<_ACEOF
1808 /* end confdefs.h.  */
1809
1810 int
1811 main ()
1812 {
1813
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1822 # of exeext.
1823 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1824 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827   (eval $ac_link_default) 2>&5
1828   ac_status=$?
1829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830   (exit $ac_status); }; then
1831   # Find the output, starting from the most likely.  This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1833 # resort.
1834
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1837 ac_cv_exeext=
1838 # b.out is created by i960 compilers.
1839 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1840 do
1841   test -f "$ac_file" || continue
1842   case $ac_file in
1843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1844         ;;
1845     conftest.$ac_ext )
1846         # This is the source file.
1847         ;;
1848     [ab].out )
1849         # We found the default executable, but exeext='' is most
1850         # certainly right.
1851         break;;
1852     *.* )
1853         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1854         # FIXME: I believe we export ac_cv_exeext for Libtool,
1855         # but it would be cool to find out if it's true.  Does anybody
1856         # maintain Libtool? --akim.
1857         export ac_cv_exeext
1858         break;;
1859     * )
1860         break;;
1861   esac
1862 done
1863 else
1864   echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&5
1869 echo "$as_me: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&2;}
1871    { (exit 77); exit 77; }; }
1872 fi
1873
1874 ac_exeext=$ac_cv_exeext
1875 echo "$as_me:$LINENO: result: $ac_file" >&5
1876 echo "${ECHO_T}$ac_file" >&6
1877
1878 # Check the compiler produces executables we can run.  If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1883 # If not cross compiling, check that we can run a simple program.
1884 if test "$cross_compiling" != yes; then
1885   if { ac_try='./$ac_file'
1886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887   (eval $ac_try) 2>&5
1888   ac_status=$?
1889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890   (exit $ac_status); }; }; then
1891     cross_compiling=no
1892   else
1893     if test "$cross_compiling" = maybe; then
1894         cross_compiling=yes
1895     else
1896         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot run C compiled programs.
1900 If you meant to cross compile, use \`--host'.
1901 See \`config.log' for more details." >&2;}
1902    { (exit 1); exit 1; }; }
1903     fi
1904   fi
1905 fi
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1908
1909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1910 ac_clean_files=$ac_clean_files_save
1911 # Check the compiler produces executables we can run.  If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1915 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1916 echo "${ECHO_T}$cross_compiling" >&6
1917
1918 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1921   (eval $ac_link) 2>&5
1922   ac_status=$?
1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924   (exit $ac_status); }; then
1925   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1926 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1927 # work properly (i.e., refer to `conftest.exe'), while it won't with
1928 # `rm'.
1929 for ac_file in conftest.exe conftest conftest.*; do
1930   test -f "$ac_file" || continue
1931   case $ac_file in
1932     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1933     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1934           export ac_cv_exeext
1935           break;;
1936     * ) break;;
1937   esac
1938 done
1939 else
1940   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947 rm -f conftest$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1949 echo "${ECHO_T}$ac_cv_exeext" >&6
1950
1951 rm -f conftest.$ac_ext
1952 EXEEXT=$ac_cv_exeext
1953 ac_exeext=$EXEEXT
1954 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1956 if test "${ac_cv_objext+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   cat >conftest.$ac_ext <<_ACEOF
1960 #line $LINENO "configure"
1961 /* confdefs.h.  */
1962 _ACEOF
1963 cat confdefs.h >>conftest.$ac_ext
1964 cat >>conftest.$ac_ext <<_ACEOF
1965 /* end confdefs.h.  */
1966
1967 int
1968 main ()
1969 {
1970
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 rm -f conftest.o conftest.obj
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977   (eval $ac_compile) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); }; then
1981   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1984     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1985        break;;
1986   esac
1987 done
1988 else
1989   echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2000 fi
2001 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2002 echo "${ECHO_T}$ac_cv_objext" >&6
2003 OBJEXT=$ac_cv_objext
2004 ac_objext=$OBJEXT
2005 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2006 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2007 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 #line $LINENO "configure"
2012 /* confdefs.h.  */
2013 _ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h.  */
2017
2018 int
2019 main ()
2020 {
2021 #ifndef __GNUC__
2022        choke me
2023 #endif
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031   (eval $ac_compile) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); } &&
2035          { ac_try='test -s conftest.$ac_objext'
2036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037   (eval $ac_try) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; }; then
2041   ac_compiler_gnu=yes
2042 else
2043   echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 ac_compiler_gnu=no
2047 fi
2048 rm -f conftest.$ac_objext conftest.$ac_ext
2049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054 GCC=`test $ac_compiler_gnu = yes && echo yes`
2055 ac_test_CFLAGS=${CFLAGS+set}
2056 ac_save_CFLAGS=$CFLAGS
2057 CFLAGS="-g"
2058 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_g+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081   (eval $ac_compile) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); } &&
2085          { ac_try='test -s conftest.$ac_objext'
2086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087   (eval $ac_try) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; }; then
2091   ac_cv_prog_cc_g=yes
2092 else
2093   echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096 ac_cv_prog_cc_g=no
2097 fi
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2102 if test "$ac_test_CFLAGS" = set; then
2103   CFLAGS=$ac_save_CFLAGS
2104 elif test $ac_cv_prog_cc_g = yes; then
2105   if test "$GCC" = yes; then
2106     CFLAGS="-g -O2"
2107   else
2108     CFLAGS="-g"
2109   fi
2110 else
2111   if test "$GCC" = yes; then
2112     CFLAGS="-O2"
2113   else
2114     CFLAGS=
2115   fi
2116 fi
2117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   ac_cv_prog_cc_stdc=no
2123 ac_save_CC=$CC
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131 #include <stdarg.h>
2132 #include <stdio.h>
2133 #include <sys/types.h>
2134 #include <sys/stat.h>
2135 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2136 struct buf { int x; };
2137 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2138 static char *e (p, i)
2139      char **p;
2140      int i;
2141 {
2142   return p[i];
2143 }
2144 static char *f (char * (*g) (char **, int), char **p, ...)
2145 {
2146   char *s;
2147   va_list v;
2148   va_start (v,p);
2149   s = g (p, va_arg (v,int));
2150   va_end (v);
2151   return s;
2152 }
2153 int test (int i, double x);
2154 struct s1 {int (*f) (int a);};
2155 struct s2 {int (*f) (double a);};
2156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2157 int argc;
2158 char **argv;
2159 int
2160 main ()
2161 {
2162 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 # Don't try gcc -ansi; that turns off useful extensions and
2168 # breaks some systems' header files.
2169 # AIX                   -qlanglvl=ansi
2170 # Ultrix and OSF/1      -std1
2171 # HP-UX 10.20 and later -Ae
2172 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2173 # SVR4                  -Xc -D__EXTENSIONS__
2174 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2175 do
2176   CC="$ac_save_CC $ac_arg"
2177   rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179   (eval $ac_compile) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); } &&
2183          { ac_try='test -s conftest.$ac_objext'
2184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185   (eval $ac_try) 2>&5
2186   ac_status=$?
2187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }; }; then
2189   ac_cv_prog_cc_stdc=$ac_arg
2190 break
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 fi
2196 rm -f conftest.$ac_objext
2197 done
2198 rm -f conftest.$ac_ext conftest.$ac_objext
2199 CC=$ac_save_CC
2200
2201 fi
2202
2203 case "x$ac_cv_prog_cc_stdc" in
2204   x|xno)
2205     echo "$as_me:$LINENO: result: none needed" >&5
2206 echo "${ECHO_T}none needed" >&6 ;;
2207   *)
2208     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210     CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 esac
2212
2213 # Some people use a C++ compiler to compile C.  Since we use `exit',
2214 # in C++ we need to declare it.  In case someone uses the same compiler
2215 # for both compiling C and C++ we need to have the C++ compiler decide
2216 # the declaration of exit, since it's the most demanding environment.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #ifndef __cplusplus
2219   choke me
2220 #endif
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -s conftest.$ac_objext'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234   for ac_declaration in \
2235    ''\
2236    '#include <stdlib.h>' \
2237    'extern "C" void std::exit (int) throw (); using std::exit;' \
2238    'extern "C" void std::exit (int); using std::exit;' \
2239    'extern "C" void exit (int) throw ();' \
2240    'extern "C" void exit (int);' \
2241    'void exit (int);'
2242 do
2243   cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250 #include <stdlib.h>
2251 $ac_declaration
2252 int
2253 main ()
2254 {
2255 exit (42);
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   :
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 continue
2278 fi
2279 rm -f conftest.$ac_objext conftest.$ac_ext
2280   cat >conftest.$ac_ext <<_ACEOF
2281 #line $LINENO "configure"
2282 /* confdefs.h.  */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h.  */
2287 $ac_declaration
2288 int
2289 main ()
2290 {
2291 exit (42);
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298   (eval $ac_compile) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); } &&
2302          { ac_try='test -s conftest.$ac_objext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   break
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 fi
2314 rm -f conftest.$ac_objext conftest.$ac_ext
2315 done
2316 rm -f conftest*
2317 if test -n "$ac_declaration"; then
2318   echo '#ifdef __cplusplus' >>confdefs.h
2319   echo $ac_declaration      >>confdefs.h
2320   echo '#endif'             >>confdefs.h
2321 fi
2322
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 fi
2328 rm -f conftest.$ac_objext conftest.$ac_ext
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335 ac_ext=cc
2336 ac_cpp='$CXXCPP $CPPFLAGS'
2337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2342   do
2343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2345 echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347 if test "${ac_cv_prog_CXX+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   if test -n "$CXX"; then
2351   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358   for ac_exec_ext in '' $ac_executable_extensions; do
2359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2360     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365 done
2366
2367 fi
2368 fi
2369 CXX=$ac_cv_prog_CXX
2370 if test -n "$CXX"; then
2371   echo "$as_me:$LINENO: result: $CXX" >&5
2372 echo "${ECHO_T}$CXX" >&6
2373 else
2374   echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2376 fi
2377
2378     test -n "$CXX" && break
2379   done
2380 fi
2381 if test -z "$CXX"; then
2382   ac_ct_CXX=$CXX
2383   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2384 do
2385   # Extract the first word of "$ac_prog", so it can be a program name with args.
2386 set dummy $ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$ac_ct_CXX"; then
2393   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402     ac_cv_prog_ac_ct_CXX="$ac_prog"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408
2409 fi
2410 fi
2411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2412 if test -n "$ac_ct_CXX"; then
2413   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2414 echo "${ECHO_T}$ac_ct_CXX" >&6
2415 else
2416   echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2418 fi
2419
2420   test -n "$ac_ct_CXX" && break
2421 done
2422 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2423
2424   CXX=$ac_ct_CXX
2425 fi
2426
2427
2428 # Provide some information about the compiler.
2429 echo "$as_me:$LINENO:" \
2430      "checking for C++ compiler version" >&5
2431 ac_compiler=`set X $ac_compile; echo $2`
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2433   (eval $ac_compiler --version </dev/null >&5) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2438   (eval $ac_compiler -v </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2443   (eval $ac_compiler -V </dev/null >&5) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447
2448 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2450 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460
2461 int
2462 main ()
2463 {
2464 #ifndef __GNUC__
2465        choke me
2466 #endif
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   ac_compiler_gnu=yes
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 ac_compiler_gnu=no
2490 fi
2491 rm -f conftest.$ac_objext conftest.$ac_ext
2492 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2493
2494 fi
2495 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2496 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2497 GXX=`test $ac_compiler_gnu = yes && echo yes`
2498 ac_test_CXXFLAGS=${CXXFLAGS+set}
2499 ac_save_CXXFLAGS=$CXXFLAGS
2500 CXXFLAGS="-g"
2501 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2502 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2503 if test "${ac_cv_prog_cxx_g+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   (eval $ac_compile) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   ac_cv_prog_cxx_g=yes
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_cv_prog_cxx_g=no
2540 fi
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2542 fi
2543 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2544 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2545 if test "$ac_test_CXXFLAGS" = set; then
2546   CXXFLAGS=$ac_save_CXXFLAGS
2547 elif test $ac_cv_prog_cxx_g = yes; then
2548   if test "$GXX" = yes; then
2549     CXXFLAGS="-g -O2"
2550   else
2551     CXXFLAGS="-g"
2552   fi
2553 else
2554   if test "$GXX" = yes; then
2555     CXXFLAGS="-O2"
2556   else
2557     CXXFLAGS=
2558   fi
2559 fi
2560 for ac_declaration in \
2561    ''\
2562    '#include <stdlib.h>' \
2563    'extern "C" void std::exit (int) throw (); using std::exit;' \
2564    'extern "C" void std::exit (int); using std::exit;' \
2565    'extern "C" void exit (int) throw ();' \
2566    'extern "C" void exit (int);' \
2567    'void exit (int);'
2568 do
2569   cat >conftest.$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 /* confdefs.h.  */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h.  */
2576 #include <stdlib.h>
2577 $ac_declaration
2578 int
2579 main ()
2580 {
2581 exit (42);
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588   (eval $ac_compile) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; }; then
2598   :
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 continue
2604 fi
2605 rm -f conftest.$ac_objext conftest.$ac_ext
2606   cat >conftest.$ac_ext <<_ACEOF
2607 #line $LINENO "configure"
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h.  */
2613 $ac_declaration
2614 int
2615 main ()
2616 {
2617 exit (42);
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624   (eval $ac_compile) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   break
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 fi
2640 rm -f conftest.$ac_objext conftest.$ac_ext
2641 done
2642 rm -f conftest*
2643 if test -n "$ac_declaration"; then
2644   echo '#ifdef __cplusplus' >>confdefs.h
2645   echo $ac_declaration      >>confdefs.h
2646   echo '#endif'             >>confdefs.h
2647 fi
2648
2649 ac_ext=c
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654
2655 if test "x$CC" != xcc; then
2656   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2657 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2658 else
2659   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2660 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2661 fi
2662 set dummy $CC; ac_cc=`echo $2 |
2663                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2664 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   cat >conftest.$ac_ext <<_ACEOF
2668 #line $LINENO "configure"
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674
2675 int
2676 main ()
2677 {
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 # Make sure it works both with $CC and with simple cc.
2684 # We do the test twice because some compilers refuse to overwrite an
2685 # existing .o file with -o, though they will create one.
2686 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2687 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } &&
2692    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); };
2697 then
2698   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2699   if test "x$CC" != xcc; then
2700     # Test first that cc exists at all.
2701     if { ac_try='cc -c conftest.$ac_ext >&5'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; }; then
2707       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2708       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } &&
2713          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); };
2718       then
2719         # cc works too.
2720         :
2721       else
2722         # cc exists but doesn't like -o.
2723         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2724       fi
2725     fi
2726   fi
2727 else
2728   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729 fi
2730 rm -f conftest*
2731
2732 fi
2733 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2734   echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2736 else
2737   echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739
2740 cat >>confdefs.h <<\_ACEOF
2741 #define NO_MINUS_C_MINUS_O 1
2742 _ACEOF
2743
2744 fi
2745
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2752 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2753 # On Suns, sometimes $CPP names a directory.
2754 if test -n "$CPP" && test -d "$CPP"; then
2755   CPP=
2756 fi
2757 if test -z "$CPP"; then
2758   if test "${ac_cv_prog_CPP+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761       # Double quotes because CPP needs to be expanded
2762     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2763     do
2764       ac_preproc_ok=false
2765 for ac_c_preproc_warn_flag in '' yes
2766 do
2767   # Use a header file that comes with gcc, so configuring glibc
2768   # with a fresh cross-compiler works.
2769   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2770   # <limits.h> exists even on freestanding compilers.
2771   # On the NeXT, cc -E runs the code through the compiler's parser,
2772   # not just through cpp. "Syntax error" is here to catch this case.
2773   cat >conftest.$ac_ext <<_ACEOF
2774 #line $LINENO "configure"
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780 #ifdef __STDC__
2781 # include <limits.h>
2782 #else
2783 # include <assert.h>
2784 #endif
2785                      Syntax error
2786 _ACEOF
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2789   ac_status=$?
2790   grep -v '^ *+' conftest.er1 >conftest.err
2791   rm -f conftest.er1
2792   cat conftest.err >&5
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); } >/dev/null; then
2795   if test -s conftest.err; then
2796     ac_cpp_err=$ac_c_preproc_warn_flag
2797   else
2798     ac_cpp_err=
2799   fi
2800 else
2801   ac_cpp_err=yes
2802 fi
2803 if test -z "$ac_cpp_err"; then
2804   :
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809   # Broken: fails on valid input.
2810 continue
2811 fi
2812 rm -f conftest.err conftest.$ac_ext
2813
2814   # OK, works on sane cases.  Now check whether non-existent headers
2815   # can be detected and how.
2816   cat >conftest.$ac_ext <<_ACEOF
2817 #line $LINENO "configure"
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823 #include <ac_nonexistent.h>
2824 _ACEOF
2825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2827   ac_status=$?
2828   grep -v '^ *+' conftest.er1 >conftest.err
2829   rm -f conftest.er1
2830   cat conftest.err >&5
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); } >/dev/null; then
2833   if test -s conftest.err; then
2834     ac_cpp_err=$ac_c_preproc_warn_flag
2835   else
2836     ac_cpp_err=
2837   fi
2838 else
2839   ac_cpp_err=yes
2840 fi
2841 if test -z "$ac_cpp_err"; then
2842   # Broken: success on invalid input.
2843 continue
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848   # Passes both tests.
2849 ac_preproc_ok=:
2850 break
2851 fi
2852 rm -f conftest.err conftest.$ac_ext
2853
2854 done
2855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2856 rm -f conftest.err conftest.$ac_ext
2857 if $ac_preproc_ok; then
2858   break
2859 fi
2860
2861     done
2862     ac_cv_prog_CPP=$CPP
2863
2864 fi
2865   CPP=$ac_cv_prog_CPP
2866 else
2867   ac_cv_prog_CPP=$CPP
2868 fi
2869 echo "$as_me:$LINENO: result: $CPP" >&5
2870 echo "${ECHO_T}$CPP" >&6
2871 ac_preproc_ok=false
2872 for ac_c_preproc_warn_flag in '' yes
2873 do
2874   # Use a header file that comes with gcc, so configuring glibc
2875   # with a fresh cross-compiler works.
2876   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2877   # <limits.h> exists even on freestanding compilers.
2878   # On the NeXT, cc -E runs the code through the compiler's parser,
2879   # not just through cpp. "Syntax error" is here to catch this case.
2880   cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887 #ifdef __STDC__
2888 # include <limits.h>
2889 #else
2890 # include <assert.h>
2891 #endif
2892                      Syntax error
2893 _ACEOF
2894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2896   ac_status=$?
2897   grep -v '^ *+' conftest.er1 >conftest.err
2898   rm -f conftest.er1
2899   cat conftest.err >&5
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); } >/dev/null; then
2902   if test -s conftest.err; then
2903     ac_cpp_err=$ac_c_preproc_warn_flag
2904   else
2905     ac_cpp_err=
2906   fi
2907 else
2908   ac_cpp_err=yes
2909 fi
2910 if test -z "$ac_cpp_err"; then
2911   :
2912 else
2913   echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916   # Broken: fails on valid input.
2917 continue
2918 fi
2919 rm -f conftest.err conftest.$ac_ext
2920
2921   # OK, works on sane cases.  Now check whether non-existent headers
2922   # can be detected and how.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 #include <ac_nonexistent.h>
2931 _ACEOF
2932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2934   ac_status=$?
2935   grep -v '^ *+' conftest.er1 >conftest.err
2936   rm -f conftest.er1
2937   cat conftest.err >&5
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); } >/dev/null; then
2940   if test -s conftest.err; then
2941     ac_cpp_err=$ac_c_preproc_warn_flag
2942   else
2943     ac_cpp_err=
2944   fi
2945 else
2946   ac_cpp_err=yes
2947 fi
2948 if test -z "$ac_cpp_err"; then
2949   # Broken: success on invalid input.
2950 continue
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955   # Passes both tests.
2956 ac_preproc_ok=:
2957 break
2958 fi
2959 rm -f conftest.err conftest.$ac_ext
2960
2961 done
2962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2963 rm -f conftest.err conftest.$ac_ext
2964 if $ac_preproc_ok; then
2965   :
2966 else
2967   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2968 See \`config.log' for more details." >&5
2969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&2;}
2971    { (exit 1); exit 1; }; }
2972 fi
2973
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979
2980
2981 echo "$as_me:$LINENO: checking for egrep" >&5
2982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2983 if test "${ac_cv_prog_egrep+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2987     then ac_cv_prog_egrep='grep -E'
2988     else ac_cv_prog_egrep='egrep'
2989     fi
2990 fi
2991 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2992 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2993  EGREP=$ac_cv_prog_egrep
2994
2995
2996 if test $ac_cv_c_compiler_gnu = yes; then
2997     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2998 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2999 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002     ac_pattern="Autoconf.*'x'"
3003   cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #include <sgtty.h>
3011 Autoconf TIOCGETP
3012 _ACEOF
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3015   ac_cv_prog_gcc_traditional=yes
3016 else
3017   ac_cv_prog_gcc_traditional=no
3018 fi
3019 rm -f conftest*
3020
3021
3022   if test $ac_cv_prog_gcc_traditional = no; then
3023     cat >conftest.$ac_ext <<_ACEOF
3024 #line $LINENO "configure"
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #include <termio.h>
3031 Autoconf TCGETA
3032 _ACEOF
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3035   ac_cv_prog_gcc_traditional=yes
3036 fi
3037 rm -f conftest*
3038
3039   fi
3040 fi
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3042 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3043   if test $ac_cv_prog_gcc_traditional = yes; then
3044     CC="$CC -traditional"
3045   fi
3046 fi
3047
3048 if test x$CC = xgcc
3049 then
3050    cat >>confdefs.h <<\_ACEOF
3051 #define HAVE_GCC 1
3052 _ACEOF
3053
3054 fi
3055
3056 # Find a good install program.  We prefer a C program (faster),
3057 # so one script is as good as another.  But avoid the broken or
3058 # incompatible versions:
3059 # SysV /etc/install, /usr/sbin/install
3060 # SunOS /usr/etc/install
3061 # IRIX /sbin/install
3062 # AIX /bin/install
3063 # AmigaOS /C/install, which installs bootblocks on floppy discs
3064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3067 # ./install, which can be erroneously created by make from ./install.sh.
3068 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3069 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3070 if test -z "$INSTALL"; then
3071 if test "${ac_cv_path_install+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077   IFS=$as_save_IFS
3078   test -z "$as_dir" && as_dir=.
3079   # Account for people who put trailing slashes in PATH elements.
3080 case $as_dir/ in
3081   ./ | .// | /cC/* | \
3082   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3083   /usr/ucb/* ) ;;
3084   *)
3085     # OSF1 and SCO ODT 3.0 have their own names for install.
3086     # Don't use installbsd from OSF since it installs stuff as root
3087     # by default.
3088     for ac_prog in ginstall scoinst install; do
3089       for ac_exec_ext in '' $ac_executable_extensions; do
3090         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3091           if test $ac_prog = install &&
3092             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093             # AIX install.  It has an incompatible calling convention.
3094             :
3095           elif test $ac_prog = install &&
3096             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097             # program-specific install script used by HP pwplus--don't use.
3098             :
3099           else
3100             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3101             break 3
3102           fi
3103         fi
3104       done
3105     done
3106     ;;
3107 esac
3108 done
3109
3110
3111 fi
3112   if test "${ac_cv_path_install+set}" = set; then
3113     INSTALL=$ac_cv_path_install
3114   else
3115     # As a last resort, use the slow shell script.  We don't cache a
3116     # path for INSTALL within a source directory, because that will
3117     # break other packages using the cache if that directory is
3118     # removed, or if the path is relative.
3119     INSTALL=$ac_install_sh
3120   fi
3121 fi
3122 echo "$as_me:$LINENO: result: $INSTALL" >&5
3123 echo "${ECHO_T}$INSTALL" >&6
3124
3125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3126 # It thinks the first close brace ends the variable substitution.
3127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3128
3129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3130
3131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3132
3133 if test -n "$ac_tool_prefix"; then
3134   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3136 echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_RANLIB+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   if test -n "$RANLIB"; then
3142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149   for ac_exec_ext in '' $ac_executable_extensions; do
3150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156 done
3157
3158 fi
3159 fi
3160 RANLIB=$ac_cv_prog_RANLIB
3161 if test -n "$RANLIB"; then
3162   echo "$as_me:$LINENO: result: $RANLIB" >&5
3163 echo "${ECHO_T}$RANLIB" >&6
3164 else
3165   echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3167 fi
3168
3169 fi
3170 if test -z "$ac_cv_prog_RANLIB"; then
3171   ac_ct_RANLIB=$RANLIB
3172   # Extract the first word of "ranlib", so it can be a program name with args.
3173 set dummy ranlib; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   if test -n "$ac_ct_RANLIB"; then
3180   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187   for ac_exec_ext in '' $ac_executable_extensions; do
3188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_ac_ct_RANLIB="ranlib"
3190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194 done
3195
3196   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3197 fi
3198 fi
3199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3200 if test -n "$ac_ct_RANLIB"; then
3201   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3203 else
3204   echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3206 fi
3207
3208   RANLIB=$ac_ct_RANLIB
3209 else
3210   RANLIB="$ac_cv_prog_RANLIB"
3211 fi
3212
3213 # Extract the first word of "mv", so it can be a program name with args.
3214 set dummy mv; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_MV+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   case $MV in
3221   [\\/]* | ?:[\\/]*)
3222   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3223   ;;
3224   *)
3225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230   for ac_exec_ext in '' $ac_executable_extensions; do
3231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234     break 2
3235   fi
3236 done
3237 done
3238
3239   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3240   ;;
3241 esac
3242 fi
3243 MV=$ac_cv_path_MV
3244
3245 if test -n "$MV"; then
3246   echo "$as_me:$LINENO: result: $MV" >&5
3247 echo "${ECHO_T}$MV" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253 # Extract the first word of "rm", so it can be a program name with args.
3254 set dummy rm; ac_word=$2
3255 echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257 if test "${ac_cv_path_RM+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   case $RM in
3261   [\\/]* | ?:[\\/]*)
3262   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3263   ;;
3264   *)
3265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268   IFS=$as_save_IFS
3269   test -z "$as_dir" && as_dir=.
3270   for ac_exec_ext in '' $ac_executable_extensions; do
3271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274     break 2
3275   fi
3276 done
3277 done
3278
3279   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3280   ;;
3281 esac
3282 fi
3283 RM=$ac_cv_path_RM
3284
3285 if test -n "$RM"; then
3286   echo "$as_me:$LINENO: result: $RM" >&5
3287 echo "${ECHO_T}$RM" >&6
3288 else
3289   echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3291 fi
3292
3293 # Extract the first word of "cp", so it can be a program name with args.
3294 set dummy cp; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_path_CP+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   case $CP in
3301   [\\/]* | ?:[\\/]*)
3302   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3303   ;;
3304   *)
3305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310   for ac_exec_ext in '' $ac_executable_extensions; do
3311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317 done
3318
3319   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3320   ;;
3321 esac
3322 fi
3323 CP=$ac_cv_path_CP
3324
3325 if test -n "$CP"; then
3326   echo "$as_me:$LINENO: result: $CP" >&5
3327 echo "${ECHO_T}$CP" >&6
3328 else
3329   echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332
3333 # Extract the first word of "sed", so it can be a program name with args.
3334 set dummy sed; ac_word=$2
3335 echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337 if test "${ac_cv_path_SED+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   case $SED in
3341   [\\/]* | ?:[\\/]*)
3342   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3343   ;;
3344   *)
3345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350   for ac_exec_ext in '' $ac_executable_extensions; do
3351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357 done
3358
3359   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3360   ;;
3361 esac
3362 fi
3363 SED=$ac_cv_path_SED
3364
3365 if test -n "$SED"; then
3366   echo "$as_me:$LINENO: result: $SED" >&5
3367 echo "${ECHO_T}$SED" >&6
3368 else
3369   echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3371 fi
3372
3373 # Extract the first word of "awk", so it can be a program name with args.
3374 set dummy awk; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_path_AWK+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   case $AWK in
3381   [\\/]* | ?:[\\/]*)
3382   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3383   ;;
3384   *)
3385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3400   ;;
3401 esac
3402 fi
3403 AWK=$ac_cv_path_AWK
3404
3405 if test -n "$AWK"; then
3406   echo "$as_me:$LINENO: result: $AWK" >&5
3407 echo "${ECHO_T}$AWK" >&6
3408 else
3409   echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3411 fi
3412
3413 # Extract the first word of "echo", so it can be a program name with args.
3414 set dummy echo; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_path_ECHO+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   case $ECHO in
3421   [\\/]* | ?:[\\/]*)
3422   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3423   ;;
3424   *)
3425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428   IFS=$as_save_IFS
3429   test -z "$as_dir" && as_dir=.
3430   for ac_exec_ext in '' $ac_executable_extensions; do
3431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434     break 2
3435   fi
3436 done
3437 done
3438
3439   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3440   ;;
3441 esac
3442 fi
3443 ECHO=$ac_cv_path_ECHO
3444
3445 if test -n "$ECHO"; then
3446   echo "$as_me:$LINENO: result: $ECHO" >&5
3447 echo "${ECHO_T}$ECHO" >&6
3448 else
3449   echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3451 fi
3452
3453 # Extract the first word of "cmp", so it can be a program name with args.
3454 set dummy cmp; ac_word=$2
3455 echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457 if test "${ac_cv_path_CMP+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   case $CMP in
3461   [\\/]* | ?:[\\/]*)
3462   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3463   ;;
3464   *)
3465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470   for ac_exec_ext in '' $ac_executable_extensions; do
3471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477 done
3478
3479   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3480   ;;
3481 esac
3482 fi
3483 CMP=$ac_cv_path_CMP
3484
3485 if test -n "$CMP"; then
3486   echo "$as_me:$LINENO: result: $CMP" >&5
3487 echo "${ECHO_T}$CMP" >&6
3488 else
3489   echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3491 fi
3492
3493 # Extract the first word of "tbl", so it can be a program name with args.
3494 set dummy tbl; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_path_TBL+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   case $TBL in
3501   [\\/]* | ?:[\\/]*)
3502   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3503   ;;
3504   *)
3505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510   for ac_exec_ext in '' $ac_executable_extensions; do
3511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517 done
3518
3519   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3520   ;;
3521 esac
3522 fi
3523 TBL=$ac_cv_path_TBL
3524
3525 if test -n "$TBL"; then
3526   echo "$as_me:$LINENO: result: $TBL" >&5
3527 echo "${ECHO_T}$TBL" >&6
3528 else
3529   echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3531 fi
3532
3533 # Extract the first word of "ar", so it can be a program name with args.
3534 set dummy ar; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_path_AR+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   case $AR in
3541   [\\/]* | ?:[\\/]*)
3542   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3543   ;;
3544   *)
3545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550   for ac_exec_ext in '' $ac_executable_extensions; do
3551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557 done
3558
3559   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3560   ;;
3561 esac
3562 fi
3563 AR=$ac_cv_path_AR
3564
3565 if test -n "$AR"; then
3566   echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3568 else
3569   echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3571 fi
3572
3573 # Extract the first word of "ranlib", so it can be a program name with args.
3574 set dummy ranlib; ac_word=$2
3575 echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577 if test "${ac_cv_path_RANLIB+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   case $RANLIB in
3581   [\\/]* | ?:[\\/]*)
3582   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3583   ;;
3584   *)
3585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588   IFS=$as_save_IFS
3589   test -z "$as_dir" && as_dir=.
3590   for ac_exec_ext in '' $ac_executable_extensions; do
3591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594     break 2
3595   fi
3596 done
3597 done
3598
3599   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3600   ;;
3601 esac
3602 fi
3603 RANLIB=$ac_cv_path_RANLIB
3604
3605 if test -n "$RANLIB"; then
3606   echo "$as_me:$LINENO: result: $RANLIB" >&5
3607 echo "${ECHO_T}$RANLIB" >&6
3608 else
3609   echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 fi
3612
3613 # Extract the first word of "openssl", so it can be a program name with args.
3614 set dummy openssl; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_path_OPENSSL+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   case $OPENSSL in
3621   [\\/]* | ?:[\\/]*)
3622   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3623   ;;
3624   *)
3625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630   for ac_exec_ext in '' $ac_executable_extensions; do
3631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637 done
3638
3639   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3640   ;;
3641 esac
3642 fi
3643 OPENSSL=$ac_cv_path_OPENSSL
3644
3645 if test -n "$OPENSSL"; then
3646   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3647 echo "${ECHO_T}$OPENSSL" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3651 fi
3652
3653 # Extract the first word of "mtx", so it can be a program name with args.
3654 set dummy mtx; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_path_MTX+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   case $MTX in
3661   [\\/]* | ?:[\\/]*)
3662   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3663   ;;
3664   *)
3665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668   IFS=$as_save_IFS
3669   test -z "$as_dir" && as_dir=.
3670   for ac_exec_ext in '' $ac_executable_extensions; do
3671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674     break 2
3675   fi
3676 done
3677 done
3678
3679   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3680   ;;
3681 esac
3682 fi
3683 MTX=$ac_cv_path_MTX
3684
3685 if test -n "$MTX"; then
3686   echo "$as_me:$LINENO: result: $MTX" >&5
3687 echo "${ECHO_T}$MTX" >&6
3688 else
3689   echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3691 fi
3692
3693 # Extract the first word of "pkg-config", so it can be a program name with args.
3694 set dummy pkg-config; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   case $PKGCONFIG in
3701   [\\/]* | ?:[\\/]*)
3702   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3703   ;;
3704   *)
3705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710   for ac_exec_ext in '' $ac_executable_extensions; do
3711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717 done
3718
3719   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3720   ;;
3721 esac
3722 fi
3723 PKGCONFIG=$ac_cv_path_PKGCONFIG
3724
3725 if test -n "$PKGCONFIG"; then
3726   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3727 echo "${ECHO_T}$PKGCONFIG" >&6
3728 else
3729   echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3731 fi
3732
3733 # Extract the first word of "wx-config", so it can be a program name with args.
3734 set dummy wx-config; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   case $WXCONFIG in
3741   [\\/]* | ?:[\\/]*)
3742   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3743   ;;
3744   *)
3745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750   for ac_exec_ext in '' $ac_executable_extensions; do
3751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757 done
3758
3759   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3760   ;;
3761 esac
3762 fi
3763 WXCONFIG=$ac_cv_path_WXCONFIG
3764
3765 if test -n "$WXCONFIG"; then
3766   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3767 echo "${ECHO_T}$WXCONFIG" >&6
3768 else
3769   echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3771 fi
3772
3773
3774 test -n "$ARFLAG" || ARFLAGS="cr"
3775
3776
3777 MAKE_SHELL=/bin/sh
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787 # Make sure we can run config.sub.
3788 $ac_config_sub sun4 >/dev/null 2>&1 ||
3789   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3790 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3791    { (exit 1); exit 1; }; }
3792
3793 echo "$as_me:$LINENO: checking build system type" >&5
3794 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3795 if test "${ac_cv_build+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   ac_cv_build_alias=$build_alias
3799 test -z "$ac_cv_build_alias" &&
3800   ac_cv_build_alias=`$ac_config_guess`
3801 test -z "$ac_cv_build_alias" &&
3802   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3803 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3804    { (exit 1); exit 1; }; }
3805 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3806   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3807 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3808    { (exit 1); exit 1; }; }
3809
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3812 echo "${ECHO_T}$ac_cv_build" >&6
3813 build=$ac_cv_build
3814 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3815 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3816 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3817
3818
3819 echo "$as_me:$LINENO: checking for Operating System" >&5
3820 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3821 echo "$as_me:$LINENO: checking host system type" >&5
3822 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3823 if test "${ac_cv_host+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   ac_cv_host_alias=$host_alias
3827 test -z "$ac_cv_host_alias" &&
3828   ac_cv_host_alias=$ac_cv_build_alias
3829 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3830   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3831 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3832    { (exit 1); exit 1; }; }
3833
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3836 echo "${ECHO_T}$ac_cv_host" >&6
3837 host=$ac_cv_host
3838 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3839 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3840 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3841
3842
3843 case $host_os in
3844   *cygwin* ) CYGWIN=yes;;
3845          * ) CYGWIN=no;;
3846 esac
3847
3848 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3849 then
3850
3851
3852 if $TRUEPRG; then
3853   HAVE_SUN_OS_TRUE=
3854   HAVE_SUN_OS_FALSE='#'
3855 else
3856   HAVE_SUN_OS_TRUE='#'
3857   HAVE_SUN_OS_FALSE=
3858 fi
3859         cat >>confdefs.h <<\_ACEOF
3860 #define HAVE_SUN_OS 1
3861 _ACEOF
3862
3863 else
3864
3865
3866 if $FALSEPRG; then
3867   HAVE_SUN_OS_TRUE=
3868   HAVE_SUN_OS_FALSE='#'
3869 else
3870   HAVE_SUN_OS_TRUE='#'
3871   HAVE_SUN_OS_FALSE=
3872 fi
3873 fi
3874
3875 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3876 then
3877
3878
3879 if $TRUEPRG; then
3880   HAVE_OSF1_OS_TRUE=
3881   HAVE_OSF1_OS_FALSE='#'
3882 else
3883   HAVE_OSF1_OS_TRUE='#'
3884   HAVE_OSF1_OS_FALSE=
3885 fi
3886         cat >>confdefs.h <<\_ACEOF
3887 #define HAVE_OSF1_OS 1
3888 _ACEOF
3889
3890 else
3891
3892
3893 if $FALSEPRG; then
3894   HAVE_OSF1_OS_TRUE=
3895   HAVE_OSF1_OS_FALSE='#'
3896 else
3897   HAVE_OSF1_OS_TRUE='#'
3898   HAVE_OSF1_OS_FALSE=
3899 fi
3900 fi
3901
3902 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3903 then
3904
3905
3906 if $TRUEPRG; then
3907   HAVE_AIX_OS_TRUE=
3908   HAVE_AIX_OS_FALSE='#'
3909 else
3910   HAVE_AIX_OS_TRUE='#'
3911   HAVE_AIX_OS_FALSE=
3912 fi
3913         cat >>confdefs.h <<\_ACEOF
3914 #define HAVE_AIX_OS 1
3915 _ACEOF
3916
3917 else
3918
3919
3920 if $FALSEPRG; then
3921   HAVE_AIX_OS_TRUE=
3922   HAVE_AIX_OS_FALSE='#'
3923 else
3924   HAVE_AIX_OS_TRUE='#'
3925   HAVE_AIX_OS_FALSE=
3926 fi
3927 fi
3928
3929 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3930 then
3931
3932
3933 if $TRUEPRG; then
3934   HAVE_HPUX_OS_TRUE=
3935   HAVE_HPUX_OS_FALSE='#'
3936 else
3937   HAVE_HPUX_OS_TRUE='#'
3938   HAVE_HPUX_OS_FALSE=
3939 fi
3940         cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_HPUX_OS 1
3942 _ACEOF
3943
3944 else
3945
3946
3947 if $FALSEPRG; then
3948   HAVE_HPUX_OS_TRUE=
3949   HAVE_HPUX_OS_FALSE='#'
3950 else
3951   HAVE_HPUX_OS_TRUE='#'
3952   HAVE_HPUX_OS_FALSE=
3953 fi
3954 fi
3955
3956 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3957 then
3958
3959
3960 if $TRUEPRG; then
3961   HAVE_LINUX_OS_TRUE=
3962   HAVE_LINUX_OS_FALSE='#'
3963 else
3964   HAVE_LINUX_OS_TRUE='#'
3965   HAVE_LINUX_OS_FALSE=
3966 fi
3967         cat >>confdefs.h <<\_ACEOF
3968 #define HAVE_LINUX_OS 1
3969 _ACEOF
3970
3971 else
3972
3973
3974 if $FALSEPRG; then
3975   HAVE_LINUX_OS_TRUE=
3976   HAVE_LINUX_OS_FALSE='#'
3977 else
3978   HAVE_LINUX_OS_TRUE='#'
3979   HAVE_LINUX_OS_FALSE=
3980 fi
3981 fi
3982
3983 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3984 then
3985
3986
3987 if $TRUEPRG; then
3988   HAVE_FREEBSD_OS_TRUE=
3989   HAVE_FREEBSD_OS_FALSE='#'
3990 else
3991   HAVE_FREEBSD_OS_TRUE='#'
3992   HAVE_FREEBSD_OS_FALSE=
3993 fi
3994         cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_FREEBSD_OS 1
3996 _ACEOF
3997
3998 else
3999
4000
4001 if $FALSEPRG; then
4002   HAVE_FREEBSD_OS_TRUE=
4003   HAVE_FREEBSD_OS_FALSE='#'
4004 else
4005   HAVE_FREEBSD_OS_TRUE='#'
4006   HAVE_FREEBSD_OS_FALSE=
4007 fi
4008 fi
4009
4010 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4011 then
4012
4013
4014 if $TRUEPRG; then
4015   HAVE_NETBSD_OS_TRUE=
4016   HAVE_NETBSD_OS_FALSE='#'
4017 else
4018   HAVE_NETBSD_OS_TRUE='#'
4019   HAVE_NETBSD_OS_FALSE=
4020 fi
4021         cat >>confdefs.h <<\_ACEOF
4022 #define HAVE_NETBSD_OS 1
4023 _ACEOF
4024
4025 else
4026
4027
4028 if $FALSEPRG; then
4029   HAVE_NETBSD_OS_TRUE=
4030   HAVE_NETBSD_OS_FALSE='#'
4031 else
4032   HAVE_NETBSD_OS_TRUE='#'
4033   HAVE_NETBSD_OS_FALSE=
4034 fi
4035 fi
4036
4037 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4038 then
4039
4040
4041 if $TRUEPRG; then
4042   HAVE_OPENBSD_OS_TRUE=
4043   HAVE_OPENBSD_OS_FALSE='#'
4044 else
4045   HAVE_OPENBSD_OS_TRUE='#'
4046   HAVE_OPENBSD_OS_FALSE=
4047 fi
4048         cat >>confdefs.h <<\_ACEOF
4049 #define HAVE_OPENBSD_OS 1
4050 _ACEOF
4051
4052 else
4053
4054
4055 if $FALSEPRG; then
4056   HAVE_OPENBSD_OS_TRUE=
4057   HAVE_OPENBSD_OS_FALSE='#'
4058 else
4059   HAVE_OPENBSD_OS_TRUE='#'
4060   HAVE_OPENBSD_OS_FALSE=
4061 fi
4062 fi
4063
4064 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4065 then
4066
4067
4068 if $TRUEPRG; then
4069   HAVE_BSDI_OS_TRUE=
4070   HAVE_BSDI_OS_FALSE='#'
4071 else
4072   HAVE_BSDI_OS_TRUE='#'
4073   HAVE_BSDI_OS_FALSE=
4074 fi
4075         cat >>confdefs.h <<\_ACEOF
4076 #define HAVE_BSDI_OS 1
4077 _ACEOF
4078
4079 else
4080
4081
4082 if $FALSEPRG; then
4083   HAVE_BSDI_OS_TRUE=
4084   HAVE_BSDI_OS_FALSE='#'
4085 else
4086   HAVE_BSDI_OS_TRUE='#'
4087   HAVE_BSDI_OS_FALSE=
4088 fi
4089 fi
4090
4091 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4092 then
4093
4094
4095 if $TRUEPRG; then
4096   HAVE_SGI_OS_TRUE=
4097   HAVE_SGI_OS_FALSE='#'
4098 else
4099   HAVE_SGI_OS_TRUE='#'
4100   HAVE_SGI_OS_FALSE=
4101 fi
4102         cat >>confdefs.h <<\_ACEOF
4103 #define HAVE_SGI_OS 1
4104 _ACEOF
4105
4106 else
4107
4108
4109 if $FALSEPRG; then
4110   HAVE_SGI_OS_TRUE=
4111   HAVE_SGI_OS_FALSE='#'
4112 else
4113   HAVE_SGI_OS_TRUE='#'
4114   HAVE_SGI_OS_FALSE=
4115 fi
4116 fi
4117
4118 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4119 then
4120
4121
4122 if $TRUEPRG; then
4123   HAVE_IRIX_OS_TRUE=
4124   HAVE_IRIX_OS_FALSE='#'
4125 else
4126   HAVE_IRIX_OS_TRUE='#'
4127   HAVE_IRIX_OS_FALSE=
4128 fi
4129         cat >>confdefs.h <<\_ACEOF
4130 #define HAVE_IRIX_OS 1
4131 _ACEOF
4132
4133 else
4134
4135
4136 if $FALSEPRG; then
4137   HAVE_IRIX_OS_TRUE=
4138   HAVE_IRIX_OS_FALSE='#'
4139 else
4140   HAVE_IRIX_OS_TRUE='#'
4141   HAVE_IRIX_OS_FALSE=
4142 fi
4143 fi
4144
4145 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4146 then
4147
4148
4149 if $TRUEPRG; then
4150   HAVE_DARWIN_OS_TRUE=
4151   HAVE_DARWIN_OS_FALSE='#'
4152 else
4153   HAVE_DARWIN_OS_TRUE='#'
4154   HAVE_DARWIN_OS_FALSE=
4155 fi
4156     cat >>confdefs.h <<\_ACEOF
4157 #define HAVE_DARWIN_OS 1
4158 _ACEOF
4159
4160 else
4161
4162
4163 if $FALSEPRG; then
4164   HAVE_DARWIN_OS_TRUE=
4165   HAVE_DARWIN_OS_FALSE='#'
4166 else
4167   HAVE_DARWIN_OS_TRUE='#'
4168   HAVE_DARWIN_OS_FALSE=
4169 fi
4170 fi
4171
4172 echo "$as_me:$LINENO: result: \" \"" >&5
4173 echo "${ECHO_T}\" \"" >&6
4174
4175
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4181 then
4182         echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4184 then
4185         DISTNAME=alpha
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4187 then
4188         DISTNAME=aix
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4190 then
4191         DISTNAME=hpux
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4193 then
4194         DISTNAME=solaris
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4196 then
4197         DISTNAME=freebsd
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4199 then
4200         DISTNAME=netbsd
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4202 then
4203         DISTNAME=openbsd
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4205 then
4206         DISTNAME=irix
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4208 then
4209         DISTNAME=bsdi
4210 elif test -f /etc/SuSE-release
4211 then
4212         DISTNAME=suse
4213 elif test -d /etc/SuSEconfig
4214 then
4215         DISTNAME=suse5
4216 elif test -f /etc/mandrake-release
4217 then
4218         DISTNAME=mandrake
4219 elif test -f /etc/redhat-release
4220 then
4221         DISTNAME=redhat
4222 elif test -f /etc/gentoo-release
4223 then
4224         DISTNAME=gentoo
4225 elif test -f /etc/debian_version
4226 then
4227         DISTNAME=debian
4228 elif test -f /etc/slackware-version
4229 then
4230         DISTNAME=slackware
4231 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4232 then
4233     DISTNAME=darwin
4234 elif test -f /etc/engarde-version
4235 then
4236         DISTNAME=engarde
4237 elif test "$CYGWIN" = yes
4238 then
4239         DISTNAME=cygwin
4240         cat >>confdefs.h <<\_ACEOF
4241 #define HAVE_CYGWIN 1
4242 _ACEOF
4243
4244 else
4245         DISTNAME=unknown
4246 fi
4247 echo "$as_me:$LINENO: result: \" \"" >&5
4248 echo "${ECHO_T}\" \"" >&6
4249
4250
4251 # -----------------------------------------------------------
4252 # ----------------------------------------------------------
4253
4254
4255
4256 if false; then
4257   INSIDE_GNOME_COMMON_TRUE=
4258   INSIDE_GNOME_COMMON_FALSE='#'
4259 else
4260   INSIDE_GNOME_COMMON_TRUE='#'
4261   INSIDE_GNOME_COMMON_FALSE=
4262 fi
4263
4264         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4265
4266         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4267
4268
4269 # ------------------------------------------------------------------
4270 #  If the user has not set --prefix, we set our default to nothing.
4271 #  In this case, if the user has not set --sysconfdir, we set it
4272 #  to the package default of /etc/bacula.  If either --prefix or
4273 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4274 # ------------------------------------------------------------------
4275 if test x${prefix} = xNONE ; then
4276     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4277         sysconfdir=/etc/bacula
4278     fi
4279     prefix=
4280 fi
4281 sysconfdir=`eval echo ${sysconfdir}`
4282
4283 # -------------------------------------------------------------------------
4284 #  If the user has not set --exec-prefix, we default to ${prefix}
4285 # -------------------------------------------------------------------------
4286 if test x${exec_prefix} = xNONE ; then
4287     exec_prefix=${prefix}
4288 fi
4289
4290 # ------------------------------------------------------------------
4291 # If the user has not set --sbindir, we set our default as /sbin
4292 # ------------------------------------------------------------------
4293 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4294     sbindir=${exec_prefix}/sbin
4295 fi
4296 sbindir=`eval echo ${sbindir}`
4297
4298 # ------------------------------------------------------------------
4299 # All list of languages for which a translation exist. Each
4300 #  language is separated by a space.
4301 # ------------------------------------------------------------------
4302 ALL_LINGUAS=""
4303
4304 for ac_prog in msgfmt
4305 do
4306   # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310 if test "${ac_cv_path_MSGFMT+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   case $MSGFMT in
4314   [\\/]* | ?:[\\/]*)
4315   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4316   ;;
4317   *)
4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323   for ac_exec_ext in '' $ac_executable_extensions; do
4324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330 done
4331
4332   ;;
4333 esac
4334 fi
4335 MSGFMT=$ac_cv_path_MSGFMT
4336
4337 if test -n "$MSGFMT"; then
4338   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4339 echo "${ECHO_T}$MSGFMT" >&6
4340 else
4341   echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4343 fi
4344
4345   test -n "$MSGFMT" && break
4346 done
4347 test -n "$MSGFMT" || MSGFMT="no"
4348
4349 if test "$MSGFMT" = "no"
4350 then
4351    echo 'msgfmt program not found, disabling NLS !'
4352    USE_NLS=no
4353    USE_INCLUDED_LIBINTL=no
4354 #else
4355 #   AM_GNU_GETTEXT
4356 fi
4357
4358
4359 support_mysql=no
4360 support_sqlite=no
4361 support_postgresql=no
4362 support_smartalloc=yes
4363 support_readline=yes
4364 support_conio=yes
4365 support_gnome=no
4366 support_wx_console=no
4367 gnome_version=
4368 support_static_tools=no
4369 support_static_fd=no
4370 support_static_sd=no
4371 support_static_dir=no
4372 support_static_cons=no
4373 build_client_only=no
4374 cats=
4375 db_name=Internal
4376 DB_NAME=bdb
4377
4378
4379 # -------------------------------------------
4380 # gnome (default off)
4381 # -------------------------------------------
4382 # Check whether --enable-gnome or --disable-gnome was given.
4383 if test "${enable_gnome+set}" = set; then
4384   enableval="$enable_gnome"
4385   if test x$enableval = xyes; then
4386     support_gnome=yes
4387   fi
4388 fi;
4389
4390 GNOME_DIR=
4391 if test x$support_gnome = xyes; then
4392   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4393   pkg=$?
4394   if test $pkg = 0; then
4395      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4396      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4397      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4398      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4399
4400
4401
4402
4403      GNOME_DIR=src/gnome2-console
4404      gnome_version="Version 2.x"
4405   else
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4418 if test "${with_gnome_includes+set}" = set; then
4419   withval="$with_gnome_includes"
4420
4421         CFLAGS="$CFLAGS -I$withval"
4422
4423 fi;
4424
4425
4426 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4427 if test "${with_gnome_libs+set}" = set; then
4428   withval="$with_gnome_libs"
4429
4430         LDFLAGS="$LDFLAGS -L$withval"
4431         gnome_prefix=$withval
4432
4433 fi;
4434
4435
4436 # Check whether --with-gnome or --without-gnome was given.
4437 if test "${with_gnome+set}" = set; then
4438   withval="$with_gnome"
4439   if test x$withval = xyes; then
4440                         want_gnome=yes
4441                                                                         :
4442                 else
4443                         if test "x$withval" = xno; then
4444                                 want_gnome=no
4445                         else
4446                                 want_gnome=yes
4447                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4448                                 CFLAGS="$CFLAGS -I$withval/include"
4449                                 gnome_prefix=$withval/lib
4450                         fi
4451                 fi
4452 else
4453   want_gnome=yes
4454 fi;
4455
4456         if test "x$want_gnome" = xyes; then
4457
4458             # Extract the first word of "gnome-config", so it can be a program name with args.
4459 set dummy gnome-config; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   case $GNOME_CONFIG in
4466   [\\/]* | ?:[\\/]*)
4467   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4468   ;;
4469   *)
4470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483
4484   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4485   ;;
4486 esac
4487 fi
4488 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4489
4490 if test -n "$GNOME_CONFIG"; then
4491   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4492 echo "${ECHO_T}$GNOME_CONFIG" >&6
4493 else
4494   echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4496 fi
4497
4498             if test "$GNOME_CONFIG" = "no"; then
4499               no_gnome_config="yes"
4500             else
4501               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4502 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4503               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4504                 echo "$as_me:$LINENO: result: yes" >&5
4505 echo "${ECHO_T}yes" >&6
4506
4507
4508         # Extract the first word of "orbit-config", so it can be a program name with args.
4509 set dummy orbit-config; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $ORBIT_CONFIG in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4535   ;;
4536 esac
4537 fi
4538 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4539
4540 if test -n "$ORBIT_CONFIG"; then
4541   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4542 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548         # Extract the first word of "orbit-idl", so it can be a program name with args.
4549 set dummy orbit-idl; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   case $ORBIT_IDL in
4556   [\\/]* | ?:[\\/]*)
4557   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4558   ;;
4559   *)
4560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573
4574   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4575   ;;
4576 esac
4577 fi
4578 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4579
4580 if test -n "$ORBIT_IDL"; then
4581   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4582 echo "${ECHO_T}$ORBIT_IDL" >&6
4583 else
4584   echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4589 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4590 if test "${gnome_cv_orbit_found+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593
4594                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4595                         gnome_cv_orbit_found=no
4596                 else
4597                         gnome_cv_orbit_found=yes
4598                 fi
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4602 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4603
4604
4605 if test x$gnome_cv_orbit_found = xyes; then
4606   HAVE_ORBIT_TRUE=
4607   HAVE_ORBIT_FALSE='#'
4608 else
4609   HAVE_ORBIT_TRUE='#'
4610   HAVE_ORBIT_FALSE=
4611 fi
4612         if test x$gnome_cv_orbit_found = xyes; then
4613
4614                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4615                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4616
4617
4618         else
4619                 if test xfail = xfailure; then
4620                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4621 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4622    { (exit 1); exit 1; }; }
4623                 fi
4624         fi
4625
4626         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4627 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4628 if test "${gnome_cv_gnorba_found+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631
4632                 gnome_cv_gnorba_found=no
4633                 if test x$gnome_cv_orbit_found = xyes; then
4634                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4635                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4636                         if test -n "$GNORBA_LIBS"; then
4637                                 gnome_cv_gnorba_found=yes
4638                         fi
4639                 fi
4640
4641 fi
4642 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4643 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4644
4645
4646 if test x$gnome_cv_gnorba_found = xyes; then
4647   HAVE_GNORBA_TRUE=
4648   HAVE_GNORBA_FALSE='#'
4649 else
4650   HAVE_GNORBA_TRUE='#'
4651   HAVE_GNORBA_FALSE=
4652 fi
4653         if test x$gnome_cv_orbit_found = xyes; then
4654
4655                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4656                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4657
4658
4659         else
4660                 if test xfail = xfailure; then
4661                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4662 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4663    { (exit 1); exit 1; }; }
4664                 fi
4665         fi
4666
4667                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4668                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4669                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4670                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4671                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4672                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4673                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4674
4675               else
4676                 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678                 no_gnome_config="yes"
4679               fi
4680             fi
4681
4682             if test x$exec_prefix = xNONE; then
4683                 if test x$prefix = xNONE; then
4684                     gnome_prefix=$ac_default_prefix/lib
4685                 else
4686                     gnome_prefix=$prefix/lib
4687                 fi
4688             else
4689                 gnome_prefix=`eval echo \`echo $libdir\``
4690             fi
4691
4692             if test "$no_gnome_config" = "yes"; then
4693               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4694 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4695               if test -f $gnome_prefix/gnomeConf.sh; then
4696                 echo "$as_me:$LINENO: result: found" >&5
4697 echo "${ECHO_T}found" >&6
4698                 echo "loading gnome configuration from" \
4699                      "$gnome_prefix/gnomeConf.sh"
4700                 . $gnome_prefix/gnomeConf.sh
4701
4702               else
4703                 echo "$as_me:$LINENO: result: not found" >&5
4704 echo "${ECHO_T}not found" >&6
4705                 if test xfail = xfail; then
4706                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4707 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4708    { (exit 1); exit 1; }; }
4709                 fi
4710               fi
4711             fi
4712         fi
4713
4714         if test -n ""; then
4715           n=""
4716           for i in $n; do
4717             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4718 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4719             case $i in
4720               applets)
4721
4722                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4723                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4724 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4725               docklets)
4726
4727                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4728                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4729 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4730               capplet)
4731
4732                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4733                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4734 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4735               *)
4736                 echo "$as_me:$LINENO: result: unknown library" >&5
4737 echo "${ECHO_T}unknown library" >&6
4738             esac
4739             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4740             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4741           done
4742         fi
4743
4744
4745      GNOME_DIR=src/gnome-console
4746      gnome_version="Version 1.4"
4747   fi
4748 fi
4749
4750
4751
4752 # -------------------------------------------
4753 # wx-console (default off)
4754 # -------------------------------------------
4755 # Check whether --enable-wx-console or --disable-wx-console was given.
4756 if test "${enable_wx_console+set}" = set; then
4757   enableval="$enable_wx_console"
4758   if test x$enableval = xyes; then
4759     support_wx_console=yes
4760   fi
4761 fi;
4762
4763 WX_DIR=
4764 if test x$support_wx_console = xyes; then
4765   abc=`$WXCONFIG --cppflags`
4766   pkg=$?
4767   if test $pkg = 0; then
4768      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4769      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4770
4771
4772      WX_DIR=src/wx-console
4773   else
4774      echo " "
4775      echo "wx-config program not found. wx-console disabled."
4776      echo " "
4777      support_wx_console=no
4778   fi
4779 fi
4780
4781
4782
4783
4784 # -------------------------------------------
4785 # smartalloc (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4788 if test "${enable_smartalloc+set}" = set; then
4789   enableval="$enable_smartalloc"
4790   if test x$enableval = xno; then
4791     support_smartalloc=no
4792   fi
4793 fi;
4794
4795 if test x$support_smartalloc = xyes; then
4796    cat >>confdefs.h <<\_ACEOF
4797 #define SMARTALLOC 1
4798 _ACEOF
4799
4800 fi
4801
4802 # -------------------------------------------
4803 # static-tools (default off)
4804 # -------------------------------------------
4805 # Check whether --enable-static-tools or --disable-static-tools was given.
4806 if test "${enable_static_tools+set}" = set; then
4807   enableval="$enable_static_tools"
4808   if test x$enableval = xyes; then
4809      support_static_tools=yes
4810    fi
4811 fi;
4812
4813 TTOOL_LDFLAGS=
4814 if test x$support_static_tools = xyes; then
4815    TTOOL_LDFLAGS="-static"
4816 fi
4817
4818
4819 # -------------------------------------------
4820 # static-fd    (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-static-fd or --disable-static-fd was given.
4823 if test "${enable_static_fd+set}" = set; then
4824   enableval="$enable_static_fd"
4825   if test x$enableval = xyes; then
4826      support_static_fd=yes
4827    fi
4828 fi;
4829
4830 STATIC_FD=
4831 if test x$support_static_fd = xyes; then
4832    STATIC_FD="static-bacula-fd"
4833 fi
4834
4835
4836 # -------------------------------------------
4837 # static-sd    (default off)
4838 # -------------------------------------------
4839 # Check whether --enable-static-sd or --disable-static-sd was given.
4840 if test "${enable_static_sd+set}" = set; then
4841   enableval="$enable_static_sd"
4842   if test x$enableval = xyes; then
4843      support_static_sd=yes
4844    fi
4845 fi;
4846
4847 STATIC_SD=
4848 if test x$support_static_sd = xyes; then
4849    STATIC_SD="static-bacula-sd"
4850 fi
4851
4852
4853 # -------------------------------------------
4854 # static-dir   (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-static-dir or --disable-static-dir was given.
4857 if test "${enable_static_dir+set}" = set; then
4858   enableval="$enable_static_dir"
4859   if test x$enableval = xyes; then
4860      support_static_dir=yes
4861    fi
4862 fi;
4863
4864 STATIC_DIR=
4865 if test x$support_static_dir = xyes; then
4866    STATIC_DIR="static-bacula-dir"
4867 fi
4868
4869
4870 # -------------------------------------------
4871 # static-cons  (default off)
4872 # -------------------------------------------
4873 # Check whether --enable-static-cons or --disable-static-cons was given.
4874 if test "${enable_static_cons+set}" = set; then
4875   enableval="$enable_static_cons"
4876   if test x$enableval = xyes; then
4877      support_static_cons=yes
4878    fi
4879 fi;
4880
4881 STATIC_CONS=
4882 STATIC_GNOME_CONS=
4883 STATIC_WX_CONS=
4884 if test x$support_static_cons = xyes; then
4885    STATIC_CONS="static-bconsole"
4886    STATIC_GNOME_CONS="static-gnome-console"
4887    STATIC_WX_CONS="static-wx-console"
4888 fi
4889
4890
4891
4892
4893 # -------------------------------------------
4894 # client_only  (default off)
4895 # -------------------------------------------
4896 # Check whether --enable-client-only or --disable-client-only was given.
4897 if test "${enable_client_only+set}" = set; then
4898   enableval="$enable_client_only"
4899   if test x$enableval = xyes; then
4900      build_client_only=yes
4901    fi
4902 fi;
4903 if test x$build_client_only = xno; then
4904    ALL_DIRS="subdirs"
4905 else
4906    ALL_DIRS=""
4907 fi
4908
4909
4910 # ---------------------------------------------------
4911 # Check for conio (Bacula readline substitute)(
4912 # ---------------------------------------------------
4913 # this allows you to turn it completely off
4914 # Check whether --enable-conio or --disable-conio was given.
4915 if test "${enable_conio+set}" = set; then
4916   enableval="$enable_conio"
4917   if test x$enableval = xno; then
4918     support_conio=no
4919   fi
4920 fi;
4921
4922 got_conio="no"
4923 if test x$support_conio = xyes; then
4924    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4926 if test "${ac_cv_header_stdc+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   cat >conftest.$ac_ext <<_ACEOF
4930 #line $LINENO "configure"
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936 #include <stdlib.h>
4937 #include <stdarg.h>
4938 #include <string.h>
4939 #include <float.h>
4940
4941 int
4942 main ()
4943 {
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951   (eval $ac_compile) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } &&
4955          { ac_try='test -s conftest.$ac_objext'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; }; then
4961   ac_cv_header_stdc=yes
4962 else
4963   echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_cv_header_stdc=no
4967 fi
4968 rm -f conftest.$ac_objext conftest.$ac_ext
4969
4970 if test $ac_cv_header_stdc = yes; then
4971   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4972   cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 #include <string.h>
4980
4981 _ACEOF
4982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4983   $EGREP "memchr" >/dev/null 2>&1; then
4984   :
4985 else
4986   ac_cv_header_stdc=no
4987 fi
4988 rm -f conftest*
4989
4990 fi
4991
4992 if test $ac_cv_header_stdc = yes; then
4993   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4994   cat >conftest.$ac_ext <<_ACEOF
4995 #line $LINENO "configure"
4996 /* confdefs.h.  */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h.  */
5001 #include <stdlib.h>
5002
5003 _ACEOF
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005   $EGREP "free" >/dev/null 2>&1; then
5006   :
5007 else
5008   ac_cv_header_stdc=no
5009 fi
5010 rm -f conftest*
5011
5012 fi
5013
5014 if test $ac_cv_header_stdc = yes; then
5015   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016   if test "$cross_compiling" = yes; then
5017   :
5018 else
5019   cat >conftest.$ac_ext <<_ACEOF
5020 #line $LINENO "configure"
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 #include <ctype.h>
5027 #if ((' ' & 0x0FF) == 0x020)
5028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030 #else
5031 # define ISLOWER(c) \
5032                    (('a' <= (c) && (c) <= 'i') \
5033                      || ('j' <= (c) && (c) <= 'r') \
5034                      || ('s' <= (c) && (c) <= 'z'))
5035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036 #endif
5037
5038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039 int
5040 main ()
5041 {
5042   int i;
5043   for (i = 0; i < 256; i++)
5044     if (XOR (islower (i), ISLOWER (i))
5045         || toupper (i) != TOUPPER (i))
5046       exit(2);
5047   exit (0);
5048 }
5049 _ACEOF
5050 rm -f conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052   (eval $ac_link) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; }; then
5061   :
5062 else
5063   echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ( exit $ac_status )
5068 ac_cv_header_stdc=no
5069 fi
5070 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5071 fi
5072 fi
5073 fi
5074 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5075 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5076 if test $ac_cv_header_stdc = yes; then
5077
5078 cat >>confdefs.h <<\_ACEOF
5079 #define STDC_HEADERS 1
5080 _ACEOF
5081
5082 fi
5083
5084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5095                   inttypes.h stdint.h unistd.h
5096 do
5097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098 echo "$as_me:$LINENO: checking for $ac_header" >&5
5099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   cat >conftest.$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110 $ac_includes_default
5111
5112 #include <$ac_header>
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116   (eval $ac_compile) 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } &&
5120          { ac_try='test -s conftest.$ac_objext'
5121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122   (eval $ac_try) 2>&5
5123   ac_status=$?
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); }; }; then
5126   eval "$as_ac_Header=yes"
5127 else
5128   echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131 eval "$as_ac_Header=no"
5132 fi
5133 rm -f conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5138   cat >>confdefs.h <<_ACEOF
5139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5140 _ACEOF
5141
5142 fi
5143
5144 done
5145
5146
5147 if test "${ac_cv_header_termcap_h+set}" = set; then
5148   echo "$as_me:$LINENO: checking for termcap.h" >&5
5149 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5150 if test "${ac_cv_header_termcap_h+set}" = set; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5154 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5155 else
5156   # Is the header compilable?
5157 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5158 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166 $ac_includes_default
5167 #include <termcap.h>
5168 _ACEOF
5169 rm -f conftest.$ac_objext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171   (eval $ac_compile) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } &&
5175          { ac_try='test -s conftest.$ac_objext'
5176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177   (eval $ac_try) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; }; then
5181   ac_header_compiler=yes
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_header_compiler=no
5187 fi
5188 rm -f conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5190 echo "${ECHO_T}$ac_header_compiler" >&6
5191
5192 # Is the header present?
5193 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5194 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202 #include <termcap.h>
5203 _ACEOF
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5206   ac_status=$?
5207   grep -v '^ *+' conftest.er1 >conftest.err
5208   rm -f conftest.er1
5209   cat conftest.err >&5
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } >/dev/null; then
5212   if test -s conftest.err; then
5213     ac_cpp_err=$ac_c_preproc_warn_flag
5214   else
5215     ac_cpp_err=
5216   fi
5217 else
5218   ac_cpp_err=yes
5219 fi
5220 if test -z "$ac_cpp_err"; then
5221   ac_header_preproc=yes
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226   ac_header_preproc=no
5227 fi
5228 rm -f conftest.err conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5230 echo "${ECHO_T}$ac_header_preproc" >&6
5231
5232 # So?  What about this header?
5233 case $ac_header_compiler:$ac_header_preproc in
5234   yes:no )
5235     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5236 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5237     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5238 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5239     (
5240       cat <<\_ASBOX
5241 ## ------------------------------------ ##
5242 ## Report this to bug-autoconf@gnu.org. ##
5243 ## ------------------------------------ ##
5244 _ASBOX
5245     ) |
5246       sed "s/^/$as_me: WARNING:     /" >&2
5247     ;;
5248   no:yes )
5249     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5250 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5251     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5252 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5253     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5254 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5255     (
5256       cat <<\_ASBOX
5257 ## ------------------------------------ ##
5258 ## Report this to bug-autoconf@gnu.org. ##
5259 ## ------------------------------------ ##
5260 _ASBOX
5261     ) |
5262       sed "s/^/$as_me: WARNING:     /" >&2
5263     ;;
5264 esac
5265 echo "$as_me:$LINENO: checking for termcap.h" >&5
5266 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5267 if test "${ac_cv_header_termcap_h+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   ac_cv_header_termcap_h=$ac_header_preproc
5271 fi
5272 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5273 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5274
5275 fi
5276 if test $ac_cv_header_termcap_h = yes; then
5277    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5278 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5279 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-ltermcap  $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291
5292 /* Override any gcc2 internal prototype to avoid an error.  */
5293 #ifdef __cplusplus
5294 extern "C"
5295 #endif
5296 /* We use char because int might match the return type of a gcc2
5297    builtin and then its argument prototype would still apply.  */
5298 char tgetent ();
5299 int
5300 main ()
5301 {
5302 tgetent ();
5303   ;
5304   return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309   (eval $ac_link) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -s conftest$ac_exeext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_lib_termcap_tgetent=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_cv_lib_termcap_tgetent=no
5325 fi
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5330 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5331 if test $ac_cv_lib_termcap_tgetent = yes; then
5332    CONS_LIBS="-ltermcap"
5333          CONS_OBJ="conio.o"
5334          CONS_SRC="conio.c"
5335          got_conio="yes"
5336          support_readline=no
5337
5338 cat >>confdefs.h <<\_ACEOF
5339 #define HAVE_CONIO 1
5340 _ACEOF
5341
5342
5343 else
5344    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5345 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5346 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-lncurses  $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358
5359 /* Override any gcc2 internal prototype to avoid an error.  */
5360 #ifdef __cplusplus
5361 extern "C"
5362 #endif
5363 /* We use char because int might match the return type of a gcc2
5364    builtin and then its argument prototype would still apply.  */
5365 char tgetent ();
5366 int
5367 main ()
5368 {
5369 tgetent ();
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376   (eval $ac_link) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } &&
5380          { ac_try='test -s conftest$ac_exeext'
5381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382   (eval $ac_try) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; }; then
5386   ac_cv_lib_ncurses_tgetent=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_cv_lib_ncurses_tgetent=no
5392 fi
5393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5395 fi
5396 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5397 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5398 if test $ac_cv_lib_ncurses_tgetent = yes; then
5399    CONS_LIBS="-lncurses"
5400            CONS_OBJ="conio.o"
5401            CONS_SRC="conio.c"
5402            got_conio="yes"
5403            support_readline=no
5404
5405 cat >>confdefs.h <<\_ACEOF
5406 #define HAVE_CONIO 1
5407 _ACEOF
5408
5409
5410 else
5411    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5412 fi
5413
5414
5415 fi
5416
5417
5418 else
5419   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5420 fi
5421
5422
5423 fi
5424
5425
5426 # ---------------------------------------------------
5427 # Check for readline support/directory (default off)
5428 # ---------------------------------------------------
5429 # this allows you to turn it completely off
5430 # Check whether --enable-readline or --disable-readline was given.
5431 if test "${enable_readline+set}" = set; then
5432   enableval="$enable_readline"
5433   if test x$enableval = xno; then
5434     support_readline=no
5435   fi
5436 fi;
5437
5438 got_readline="no"
5439 READLINE_SRC=
5440 if test x$support_readline = xyes; then
5441
5442 # Check whether --with-readline or --without-readline was given.
5443 if test "${with_readline+set}" = set; then
5444   withval="$with_readline"
5445
5446         case "$with_readline" in
5447         no) : ;;
5448         yes|*)
5449           if test "$with_readline" != "yes"; then
5450             CONS_INC="-I${with_readline}"
5451             CONS_LDFLAGS="-L$with_readline"
5452           else
5453              with_readline="/usr/include/readline"
5454           fi
5455           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5458 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 fi
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5464 else
5465   # Is the header compilable?
5466 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5467 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 $ac_includes_default
5476 #include <${with_readline}/readline.h>
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480   (eval $ac_compile) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } &&
5484          { ac_try='test -s conftest.$ac_objext'
5485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486   (eval $ac_try) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; }; then
5490   ac_header_compiler=yes
5491 else
5492   echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495 ac_header_compiler=no
5496 fi
5497 rm -f conftest.$ac_objext conftest.$ac_ext
5498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5499 echo "${ECHO_T}$ac_header_compiler" >&6
5500
5501 # Is the header present?
5502 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5503 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 #include <${with_readline}/readline.h>
5512 _ACEOF
5513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5515   ac_status=$?
5516   grep -v '^ *+' conftest.er1 >conftest.err
5517   rm -f conftest.er1
5518   cat conftest.err >&5
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } >/dev/null; then
5521   if test -s conftest.err; then
5522     ac_cpp_err=$ac_c_preproc_warn_flag
5523   else
5524     ac_cpp_err=
5525   fi
5526 else
5527   ac_cpp_err=yes
5528 fi
5529 if test -z "$ac_cpp_err"; then
5530   ac_header_preproc=yes
5531 else
5532   echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535   ac_header_preproc=no
5536 fi
5537 rm -f conftest.err conftest.$ac_ext
5538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5539 echo "${ECHO_T}$ac_header_preproc" >&6
5540
5541 # So?  What about this header?
5542 case $ac_header_compiler:$ac_header_preproc in
5543   yes:no )
5544     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5545 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5546     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5547 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5548     (
5549       cat <<\_ASBOX
5550 ## ------------------------------------ ##
5551 ## Report this to bug-autoconf@gnu.org. ##
5552 ## ------------------------------------ ##
5553 _ASBOX
5554     ) |
5555       sed "s/^/$as_me: WARNING:     /" >&2
5556     ;;
5557   no:yes )
5558     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5559 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5561 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5562     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5563 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5564     (
5565       cat <<\_ASBOX
5566 ## ------------------------------------ ##
5567 ## Report this to bug-autoconf@gnu.org. ##
5568 ## ------------------------------------ ##
5569 _ASBOX
5570     ) |
5571       sed "s/^/$as_me: WARNING:     /" >&2
5572     ;;
5573 esac
5574 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5575 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   eval "$as_ac_Header=$ac_header_preproc"
5580 fi
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583
5584 fi
5585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5586    cat >>confdefs.h <<\_ACEOF
5587 #define HAVE_READLINE 1
5588 _ACEOF
5589
5590                CONS_LIBS="-lreadline -ltermcap"
5591                got_readline="yes"
5592
5593 else
5594    echo " "
5595                echo "readline.h not found. readline turned off ..."
5596                echo " "
5597
5598
5599 fi
5600
5601
5602           ;;
5603         esac
5604
5605 else
5606
5607        # check for standard readline library
5608        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5609   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5610 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5611 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 fi
5614 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5615 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5616 else
5617   # Is the header compilable?
5618 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5619 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 /* confdefs.h.  */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h.  */
5627 $ac_includes_default
5628 #include </usr/include/readline/readline.h>
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632   (eval $ac_compile) 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } &&
5636          { ac_try='test -s conftest.$ac_objext'
5637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638   (eval $ac_try) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); }; }; then
5642   ac_header_compiler=yes
5643 else
5644   echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647 ac_header_compiler=no
5648 fi
5649 rm -f conftest.$ac_objext conftest.$ac_ext
5650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5651 echo "${ECHO_T}$ac_header_compiler" >&6
5652
5653 # Is the header present?
5654 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5655 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5658 /* confdefs.h.  */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h.  */
5663 #include </usr/include/readline/readline.h>
5664 _ACEOF
5665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5667   ac_status=$?
5668   grep -v '^ *+' conftest.er1 >conftest.err
5669   rm -f conftest.er1
5670   cat conftest.err >&5
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } >/dev/null; then
5673   if test -s conftest.err; then
5674     ac_cpp_err=$ac_c_preproc_warn_flag
5675   else
5676     ac_cpp_err=
5677   fi
5678 else
5679   ac_cpp_err=yes
5680 fi
5681 if test -z "$ac_cpp_err"; then
5682   ac_header_preproc=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687   ac_header_preproc=no
5688 fi
5689 rm -f conftest.err conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5691 echo "${ECHO_T}$ac_header_preproc" >&6
5692
5693 # So?  What about this header?
5694 case $ac_header_compiler:$ac_header_preproc in
5695   yes:no )
5696     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5697 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5698     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5699 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5700     (
5701       cat <<\_ASBOX
5702 ## ------------------------------------ ##
5703 ## Report this to bug-autoconf@gnu.org. ##
5704 ## ------------------------------------ ##
5705 _ASBOX
5706     ) |
5707       sed "s/^/$as_me: WARNING:     /" >&2
5708     ;;
5709   no:yes )
5710     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5711 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5713 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5714     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5716     (
5717       cat <<\_ASBOX
5718 ## ------------------------------------ ##
5719 ## Report this to bug-autoconf@gnu.org. ##
5720 ## ------------------------------------ ##
5721 _ASBOX
5722     ) |
5723       sed "s/^/$as_me: WARNING:     /" >&2
5724     ;;
5725 esac
5726 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5727 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5728 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5732 fi
5733 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5734 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5735
5736 fi
5737 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5738    cat >>confdefs.h <<\_ACEOF
5739 #define HAVE_READLINE 1
5740 _ACEOF
5741
5742            got_readline="yes"
5743            CONS_INC="-I/usr/include/readline"
5744            CONS_LIBS="-lreadline -ltermcap"
5745
5746 else
5747
5748            # Did not find standard library, so try Bacula's default
5749             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5751   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5752 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 fi
5756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5758 else
5759   # Is the header compilable?
5760 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5761 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 $ac_includes_default
5770 #include <${TOP_DIR}/depkgs/readline/readline.h>
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774   (eval $ac_compile) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -s conftest.$ac_objext'
5779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780   (eval $ac_try) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; }; then
5784   ac_header_compiler=yes
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_header_compiler=no
5790 fi
5791 rm -f conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5793 echo "${ECHO_T}$ac_header_compiler" >&6
5794
5795 # Is the header present?
5796 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5797 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line $LINENO "configure"
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 #include <${TOP_DIR}/depkgs/readline/readline.h>
5806 _ACEOF
5807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } >/dev/null; then
5815   if test -s conftest.err; then
5816     ac_cpp_err=$ac_c_preproc_warn_flag
5817   else
5818     ac_cpp_err=
5819   fi
5820 else
5821   ac_cpp_err=yes
5822 fi
5823 if test -z "$ac_cpp_err"; then
5824   ac_header_preproc=yes
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829   ac_header_preproc=no
5830 fi
5831 rm -f conftest.err conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5833 echo "${ECHO_T}$ac_header_preproc" >&6
5834
5835 # So?  What about this header?
5836 case $ac_header_compiler:$ac_header_preproc in
5837   yes:no )
5838     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5839 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5840     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5841 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5842     (
5843       cat <<\_ASBOX
5844 ## ------------------------------------ ##
5845 ## Report this to bug-autoconf@gnu.org. ##
5846 ## ------------------------------------ ##
5847 _ASBOX
5848     ) |
5849       sed "s/^/$as_me: WARNING:     /" >&2
5850     ;;
5851   no:yes )
5852     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5853 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5855 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5857 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5858     (
5859       cat <<\_ASBOX
5860 ## ------------------------------------ ##
5861 ## Report this to bug-autoconf@gnu.org. ##
5862 ## ------------------------------------ ##
5863 _ASBOX
5864     ) |
5865       sed "s/^/$as_me: WARNING:     /" >&2
5866     ;;
5867 esac
5868 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5869 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   eval "$as_ac_Header=$ac_header_preproc"
5874 fi
5875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5877
5878 fi
5879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5880    cat >>confdefs.h <<\_ACEOF
5881 #define HAVE_READLINE 1
5882 _ACEOF
5883
5884                  got_readline="yes"
5885                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5886                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5887                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5888                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5889
5890 else
5891    echo " "
5892                 echo "readline.h not found. readline turned off ..."
5893                 echo " "
5894
5895
5896 fi
5897
5898
5899
5900
5901 fi
5902
5903
5904
5905
5906 fi;
5907 fi
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 # Minimal stuff for readline Makefile configuration
5919 MAKE_SHELL=/bin/sh
5920
5921
5922 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5923 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5924 if test "${ac_cv_header_stat_broken+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 #include <sys/types.h>
5935 #include <sys/stat.h>
5936
5937 #if defined(S_ISBLK) && defined(S_IFDIR)
5938 # if S_ISBLK (S_IFDIR)
5939 You lose.
5940 # endif
5941 #endif
5942
5943 #if defined(S_ISBLK) && defined(S_IFCHR)
5944 # if S_ISBLK (S_IFCHR)
5945 You lose.
5946 # endif
5947 #endif
5948
5949 #if defined(S_ISLNK) && defined(S_IFREG)
5950 # if S_ISLNK (S_IFREG)
5951 You lose.
5952 # endif
5953 #endif
5954
5955 #if defined(S_ISSOCK) && defined(S_IFREG)
5956 # if S_ISSOCK (S_IFREG)
5957 You lose.
5958 # endif
5959 #endif
5960
5961 _ACEOF
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963   $EGREP "You lose" >/dev/null 2>&1; then
5964   ac_cv_header_stat_broken=yes
5965 else
5966   ac_cv_header_stat_broken=no
5967 fi
5968 rm -f conftest*
5969
5970 fi
5971 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5972 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5973 if test $ac_cv_header_stat_broken = yes; then
5974
5975 cat >>confdefs.h <<\_ACEOF
5976 #define STAT_MACROS_BROKEN 1
5977 _ACEOF
5978
5979 fi
5980
5981
5982
5983
5984
5985
5986 ac_header_dirent=no
5987 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5988   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5989 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5990 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   cat >conftest.$ac_ext <<_ACEOF
5995 #line $LINENO "configure"
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 #include <sys/types.h>
6002 #include <$ac_hdr>
6003
6004 int
6005 main ()
6006 {
6007 if ((DIR *) 0)
6008 return 0;
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015   (eval $ac_compile) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          { ac_try='test -s conftest.$ac_objext'
6020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021   (eval $ac_try) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; }; then
6025   eval "$as_ac_Header=yes"
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 eval "$as_ac_Header=no"
6031 fi
6032 rm -f conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037   cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6039 _ACEOF
6040
6041 ac_header_dirent=$ac_hdr; break
6042 fi
6043
6044 done
6045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6046 if test $ac_header_dirent = dirent.h; then
6047   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6049 if test "${ac_cv_search_opendir+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   ac_func_search_save_LIBS=$LIBS
6053 ac_cv_search_opendir=no
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067    builtin and then its argument prototype would still apply.  */
6068 char opendir ();
6069 int
6070 main ()
6071 {
6072 opendir ();
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079   (eval $ac_link) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -s conftest$ac_exeext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_cv_search_opendir="none required"
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 fi
6095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6096 if test "$ac_cv_search_opendir" = no; then
6097   for ac_lib in dir; do
6098     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6099     cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106
6107 /* Override any gcc2 internal prototype to avoid an error.  */
6108 #ifdef __cplusplus
6109 extern "C"
6110 #endif
6111 /* We use char because int might match the return type of a gcc2
6112    builtin and then its argument prototype would still apply.  */
6113 char opendir ();
6114 int
6115 main ()
6116 {
6117 opendir ();
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124   (eval $ac_link) 2>&5
6125   ac_status=$?
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } &&
6128          { ac_try='test -s conftest$ac_exeext'
6129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130   (eval $ac_try) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; }; then
6134   ac_cv_search_opendir="-l$ac_lib"
6135 break
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140 fi
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142   done
6143 fi
6144 LIBS=$ac_func_search_save_LIBS
6145 fi
6146 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6147 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6148 if test "$ac_cv_search_opendir" != no; then
6149   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6150
6151 fi
6152
6153 else
6154   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6156 if test "${ac_cv_search_opendir+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   ac_func_search_save_LIBS=$LIBS
6160 ac_cv_search_opendir=no
6161 cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168
6169 /* Override any gcc2 internal prototype to avoid an error.  */
6170 #ifdef __cplusplus
6171 extern "C"
6172 #endif
6173 /* We use char because int might match the return type of a gcc2
6174    builtin and then its argument prototype would still apply.  */
6175 char opendir ();
6176 int
6177 main ()
6178 {
6179 opendir ();
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186   (eval $ac_link) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } &&
6190          { ac_try='test -s conftest$ac_exeext'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_search_opendir="none required"
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 fi
6202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 if test "$ac_cv_search_opendir" = no; then
6204   for ac_lib in x; do
6205     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6206     cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213
6214 /* Override any gcc2 internal prototype to avoid an error.  */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 /* We use char because int might match the return type of a gcc2
6219    builtin and then its argument prototype would still apply.  */
6220 char opendir ();
6221 int
6222 main ()
6223 {
6224 opendir ();
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231   (eval $ac_link) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -s conftest$ac_exeext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_search_opendir="-l$ac_lib"
6242 break
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 fi
6248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6249   done
6250 fi
6251 LIBS=$ac_func_search_save_LIBS
6252 fi
6253 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6254 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6255 if test "$ac_cv_search_opendir" != no; then
6256   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6257
6258 fi
6259
6260 fi
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6272 do
6273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6274 echo "$as_me:$LINENO: checking for $ac_func" >&5
6275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6276 if eval "test \"\${$as_ac_var+set}\" = set"; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 /* confdefs.h.  */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h.  */
6286 /* System header to define __stub macros and hopefully few prototypes,
6287     which can conflict with char $ac_func (); below.
6288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289     <limits.h> exists even on freestanding compilers.  */
6290 #ifdef __STDC__
6291 # include <limits.h>
6292 #else
6293 # include <assert.h>
6294 #endif
6295 /* Override any gcc2 internal prototype to avoid an error.  */
6296 #ifdef __cplusplus
6297 extern "C"
6298 {
6299 #endif
6300 /* We use char because int might match the return type of a gcc2
6301    builtin and then its argument prototype would still apply.  */
6302 char $ac_func ();
6303 /* The GNU C library defines this for functions which it implements
6304     to always fail with ENOSYS.  Some functions are actually named
6305     something starting with __ and the normal name is an alias.  */
6306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6307 choke me
6308 #else
6309 char (*f) () = $ac_func;
6310 #endif
6311 #ifdef __cplusplus
6312 }
6313 #endif
6314
6315 int
6316 main ()
6317 {
6318 return f != $ac_func;
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325   (eval $ac_link) 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } &&
6329          { ac_try='test -s conftest$ac_exeext'
6330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; }; then
6335   eval "$as_ac_var=yes"
6336 else
6337   echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6339
6340 eval "$as_ac_var=no"
6341 fi
6342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6343 fi
6344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6346 if test `eval echo '${'$as_ac_var'}'` = yes; then
6347   cat >>confdefs.h <<_ACEOF
6348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6349 _ACEOF
6350
6351 fi
6352 done
6353
6354
6355 for ac_func in nanosleep
6356 do
6357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6358 echo "$as_me:$LINENO: checking for $ac_func" >&5
6359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6360 if eval "test \"\${$as_ac_var+set}\" = set"; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   cat >conftest.$ac_ext <<_ACEOF
6364 #line $LINENO "configure"
6365 /* confdefs.h.  */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h.  */
6370 /* System header to define __stub macros and hopefully few prototypes,
6371     which can conflict with char $ac_func (); below.
6372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6373     <limits.h> exists even on freestanding compilers.  */
6374 #ifdef __STDC__
6375 # include <limits.h>
6376 #else
6377 # include <assert.h>
6378 #endif
6379 /* Override any gcc2 internal prototype to avoid an error.  */
6380 #ifdef __cplusplus
6381 extern "C"
6382 {
6383 #endif
6384 /* We use char because int might match the return type of a gcc2
6385    builtin and then its argument prototype would still apply.  */
6386 char $ac_func ();
6387 /* The GNU C library defines this for functions which it implements
6388     to always fail with ENOSYS.  Some functions are actually named
6389     something starting with __ and the normal name is an alias.  */
6390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6391 choke me
6392 #else
6393 char (*f) () = $ac_func;
6394 #endif
6395 #ifdef __cplusplus
6396 }
6397 #endif
6398
6399 int
6400 main ()
6401 {
6402 return f != $ac_func;
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext conftest$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409   (eval $ac_link) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -s conftest$ac_exeext'
6414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415   (eval $ac_try) 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); }; }; then
6419   eval "$as_ac_var=yes"
6420 else
6421   echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 eval "$as_ac_var=no"
6425 fi
6426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6427 fi
6428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6430 if test `eval echo '${'$as_ac_var'}'` = yes; then
6431   cat >>confdefs.h <<_ACEOF
6432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6433 _ACEOF
6434
6435 fi
6436 done
6437
6438
6439
6440 for ac_header in varargs.h
6441 do
6442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6444   echo "$as_me:$LINENO: checking for $ac_header" >&5
6445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 fi
6449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6451 else
6452   # Is the header compilable?
6453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6454 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
6463 #include <$ac_header>
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467   (eval $ac_compile) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); } &&
6471          { ac_try='test -s conftest.$ac_objext'
6472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473   (eval $ac_try) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; }; then
6477   ac_header_compiler=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_header_compiler=no
6483 fi
6484 rm -f conftest.$ac_objext conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6486 echo "${ECHO_T}$ac_header_compiler" >&6
6487
6488 # Is the header present?
6489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6491 cat >conftest.$ac_ext <<_ACEOF
6492 #line $LINENO "configure"
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498 #include <$ac_header>
6499 _ACEOF
6500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } >/dev/null; then
6508   if test -s conftest.err; then
6509     ac_cpp_err=$ac_c_preproc_warn_flag
6510   else
6511     ac_cpp_err=
6512   fi
6513 else
6514   ac_cpp_err=yes
6515 fi
6516 if test -z "$ac_cpp_err"; then
6517   ac_header_preproc=yes
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522   ac_header_preproc=no
6523 fi
6524 rm -f conftest.err conftest.$ac_ext
6525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6526 echo "${ECHO_T}$ac_header_preproc" >&6
6527
6528 # So?  What about this header?
6529 case $ac_header_compiler:$ac_header_preproc in
6530   yes:no )
6531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6535     (
6536       cat <<\_ASBOX
6537 ## ------------------------------------ ##
6538 ## Report this to bug-autoconf@gnu.org. ##
6539 ## ------------------------------------ ##
6540 _ASBOX
6541     ) |
6542       sed "s/^/$as_me: WARNING:     /" >&2
6543     ;;
6544   no:yes )
6545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6547     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6551     (
6552       cat <<\_ASBOX
6553 ## ------------------------------------ ##
6554 ## Report this to bug-autoconf@gnu.org. ##
6555 ## ------------------------------------ ##
6556 _ASBOX
6557     ) |
6558       sed "s/^/$as_me: WARNING:     /" >&2
6559     ;;
6560 esac
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   eval "$as_ac_Header=$ac_header_preproc"
6567 fi
6568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6570
6571 fi
6572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6573   cat >>confdefs.h <<_ACEOF
6574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6575 _ACEOF
6576
6577 fi
6578
6579 done
6580
6581
6582 # End of readline/conio stuff
6583 # -----------------------------------------------------------------------
6584
6585
6586 # ---------------------------------------------------
6587 # Check for GMP support/directory
6588 # ---------------------------------------------------
6589 #GMP_SRC=
6590 #local_gmp="no"
6591 #AC_ARG_WITH(gmp,
6592 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6593 #  [
6594 #     case "$with_gmp" in
6595 #     no) : ;;
6596 #     yes|*)
6597 #       if test "$with_gmp" != "yes"; then
6598 #         GMP_INC="-I$with_gmp"
6599 #         GMP_LIBS="-lgmp"
6600 #         GMP_LDFLAGS="-L$with_gmp"
6601 #       else
6602 #          with_gmp="/usr/include"
6603 #       fi
6604 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6605 #          [ AC_MSG_RESULT(yes)
6606 #            AC_DEFINE(HAVE_GMP)
6607 #            GMP_LIBS="-lgmp"
6608 #            got_gmp="yes"
6609 #          ],
6610 #          [ AC_MSG_ERROR([*** gmp library missing])
6611 #          ]
6612 #       )
6613 #       ;;
6614 #     esac
6615 #  ],[
6616 #    # check for standard gmp library
6617 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6618 #    [ AC_MSG_RESULT(yes)
6619 #      AC_DEFINE(HAVE_GMP)
6620 #      got_gmp="yes"
6621 #      GMP_INC=
6622 #      GMP_LIBS="-lgmp"
6623 #    ], [
6624 #      # Did not find standard library, so use our own
6625 #      AC_MSG_RESULT(yes)
6626 #      AC_DEFINE(HAVE_GMP)
6627 #      got_gmp="yes"
6628 #      local_gmp="yes"
6629 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6630 #      GMP_LIBS="-lgmp"
6631 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6632 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6633 #    ])
6634 #  ]
6635 #)
6636 #AC_SUBST(GMP_INC)
6637 #AC_SUBST(GMP_LIBS)
6638 #AC_SUBST(GMP_LDFLAGS)
6639 #AC_SUBST(GMP_SRC)
6640
6641 # End of GMP stuff
6642 # -----------------------------------------------------------------------
6643
6644
6645 # ---------------------------------------------------
6646 # Check for CWEB support/directory
6647 # ---------------------------------------------------
6648 #CWEB_SRC=
6649 #CWEB=/bin
6650 #local_cweb="no"
6651 #AC_ARG_WITH(cweb,
6652 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6653 #  [
6654 #     case "$with_cweb" in
6655 #     no) : ;;
6656 #     yes|*)
6657 #       if test "$with_cweb" != "yes"; then
6658 #         CWEB_INC="-I$with_cweb"
6659 #         CWEB_LIBS="-lcweb"
6660 #         CWEB_LDFLAGS="-L$with_cweb"
6661 #       else
6662 #          with_cweb="/usr/include"
6663 #       fi
6664 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6665 #          [ AC_MSG_RESULT(yes)
6666 #            AC_DEFINE(HAVE_CWEB)
6667 #            CWEB_LIBS="-lcweb"
6668 #            got_cweb="yes"
6669 #          ],
6670 #          [ AC_MSG_ERROR([*** cweb library missing])
6671 #          ]
6672 #       )
6673 #       ;;
6674 #     esac
6675 #  ],[
6676 #    # check for standard cweb library
6677 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6678 #    [ AC_MSG_RESULT(yes)
6679 #      AC_DEFINE(HAVE_CWEB)
6680 #      got_cweb="yes"
6681 #      CWEB_INC=
6682 #      CWEB_LIBS="-lcweb"
6683 #    ], [
6684 #      # Did not find starndard library, so use our own
6685 #      AC_MSG_RESULT(yes)
6686 #      AC_DEFINE(HAVE_CWEB)
6687 #      got_cweb="yes"
6688 #      local_cweb="yes"
6689 #      CWEB=${TOP_DIR}/depkgs/cweb
6690 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6691 #      CWEB_LIBS="-lcweb"
6692 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6693 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6694 #    ])
6695 #  ]
6696 #)
6697 #AC_SUBST(CWEB)
6698 #AC_SUBST(CWEB_INC)
6699 #AC_SUBST(CWEB_LIBS)
6700 #AC_SUBST(CWEB_LDFLAGS)
6701 #AC_SUBST(CWEB_SRC)
6702
6703 # End of CWEB stuff
6704 # -----------------------------------------------------------------------
6705
6706
6707
6708 # -----------------------------------------------------------
6709 # Check whether user wants TCP wrappers support (default off)
6710 # -----------------------------------------------------------
6711 TCPW_MSG="no"
6712
6713 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6714 if test "${with_tcp_wrappers+set}" = set; then
6715   withval="$with_tcp_wrappers"
6716
6717     if test "x$withval" != "xno" ; then
6718        saved_LIBS="$LIBS"
6719        LIBS="$saved_LIBS -lwrap"
6720        echo "$as_me:$LINENO: checking for libwrap" >&5
6721 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6722        cat >conftest.$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6724 /* confdefs.h.  */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h.  */
6729  #include <tcpd.h>
6730              int deny_severity = 0;
6731              int allow_severity = 0;
6732              struct request_info *req;
6733 int
6734 main ()
6735 {
6736  hosts_access(req);
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743   (eval $ac_link) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } &&
6747          { ac_try='test -s conftest$ac_exeext'
6748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; }; then
6753
6754             echo "$as_me:$LINENO: result: yes" >&5
6755 echo "${ECHO_T}yes" >&6
6756             cat >>confdefs.h <<\_ACEOF
6757 #define HAVE_LIBWRAP 1
6758 _ACEOF
6759
6760             TCPW_MSG="yes"
6761
6762 else
6763   echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766
6767             LIBS="$saved_LIBS -lwrap -lnsl"
6768             cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775  #include <tcpd.h>
6776                  int deny_severity = 0;
6777                  int allow_severity = 0;
6778                  struct request_info *req;
6779 int
6780 main ()
6781 {
6782  hosts_access(req);
6783   ;
6784   return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789   (eval $ac_link) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793          { ac_try='test -s conftest$ac_exeext'
6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; }; then
6799
6800                  echo "$as_me:$LINENO: result: yes" >&5
6801 echo "${ECHO_T}yes" >&6
6802                  cat >>confdefs.h <<\_ACEOF
6803 #define HAVE_LIBWRAP 1
6804 _ACEOF
6805
6806                  TCPW_MSG="yes"
6807
6808 else
6809   echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6813 echo "$as_me: error: *** libwrap missing" >&2;}
6814    { (exit 1); exit 1; }; }
6815
6816 fi
6817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6818
6819 fi
6820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6821     fi
6822
6823
6824 fi;
6825
6826 # ------------------------------------------
6827 # Where to place working dir
6828 # ------------------------------------------
6829 working_dir=`eval echo ${prefix}/var/bacula/working`
6830
6831 # Check whether --with-working-dir or --without-working-dir was given.
6832 if test "${with_working_dir+set}" = set; then
6833   withval="$with_working_dir"
6834
6835        if test "x$withval" != "xno" ; then
6836               working_dir=$withval
6837        fi
6838
6839
6840 fi;
6841
6842
6843
6844
6845 # ------------------------------------------
6846 # Where to place scriptdir (script files)
6847 # ------------------------------------------
6848 scriptdir=`eval echo ${sysconfdir}`
6849
6850 # Check whether --with-scriptdir or --without-scriptdir was given.
6851 if test "${with_scriptdir+set}" = set; then
6852   withval="$with_scriptdir"
6853
6854        if test "x$withval" != "xno" ; then
6855               scriptdir=$withval
6856        fi
6857
6858
6859 fi;
6860
6861
6862
6863
6864 # ------------------------------------------
6865 # Where to send dump email
6866 # ------------------------------------------
6867 dump_email=root@localhost
6868
6869 # Check whether --with-dump-email or --without-dump-email was given.
6870 if test "${with_dump_email+set}" = set; then
6871   withval="$with_dump_email"
6872
6873        if test "x$withval" != "xno" ; then
6874               dump_email=$withval
6875        fi
6876
6877
6878 fi;
6879
6880
6881
6882 # ------------------------------------------
6883 # Where to send job email
6884 # ------------------------------------------
6885 job_email=root@localhost
6886
6887 # Check whether --with-job-email or --without-job-email was given.
6888 if test "${with_job_email+set}" = set; then
6889   withval="$with_job_email"
6890
6891        if test "x$withval" != "xno" ; then
6892               job_email=$withval
6893        fi
6894
6895
6896 fi;
6897
6898
6899
6900 # ------------------------------------------
6901 # Where to find smtp host
6902 # ------------------------------------------
6903 smtp_host=localhost
6904
6905 # Check whether --with-smtp_host or --without-smtp_host was given.
6906 if test "${with_smtp_host+set}" = set; then
6907   withval="$with_smtp_host"
6908
6909        if test "x$withval" != "xno" ; then
6910               smtp_host=$withval
6911        fi
6912
6913
6914 fi;
6915
6916
6917
6918
6919 # ------------------------------------
6920 # Where to place pid files
6921 # ------------------------------------
6922 piddir=/var/run
6923
6924 # Check whether --with-pid-dir or --without-pid-dir was given.
6925 if test "${with_pid_dir+set}" = set; then
6926   withval="$with_pid_dir"
6927
6928         if test "x$withval" != "xno" ; then
6929             piddir=$withval
6930         fi
6931
6932
6933 fi;
6934
6935 cat >>confdefs.h <<_ACEOF
6936 #define _PATH_BACULA_PIDDIR "$piddir"
6937 _ACEOF
6938
6939
6940
6941
6942 # ------------------------------------
6943 # Where to place subsys "lock file"
6944 # ------------------------------------
6945 subsysdir=/var/run/subsys
6946
6947 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6948 if test "${with_subsys_dir+set}" = set; then
6949   withval="$with_subsys_dir"
6950
6951         if test "x$withval" != "xno" ; then
6952             subsysdir=$withval
6953         fi
6954
6955
6956 fi;
6957
6958
6959
6960
6961
6962 # ------------------------------------
6963 # Where to start assigning ports
6964 # ------------------------------------
6965 baseport=9101
6966
6967 # Check whether --with-baseport or --without-baseport was given.
6968 if test "${with_baseport+set}" = set; then
6969   withval="$with_baseport"
6970
6971         if test "x$withval" != "xno" ; then
6972              baseport=$withval
6973         fi
6974
6975
6976 fi;
6977
6978
6979 dir_port=`expr $baseport`
6980 fd_port=`expr $baseport + 1`
6981 sd_port=`expr $fd_port + 1`
6982
6983
6984
6985
6986
6987
6988 # ------------------------------------------
6989 # Generate passwords
6990 # ------------------------------------------
6991 dir_password=
6992
6993 # Check whether --with-dir-password or --without-dir-password was given.
6994 if test "${with_dir_password+set}" = set; then
6995   withval="$with_dir_password"
6996
6997        if test "x$withval" != "xno" ; then
6998            dir_password=$withval
6999        fi
7000
7001
7002 fi;
7003
7004 if test "x$dir_password" = "x" ; then
7005    if test "x$OPENSSL" = "xnone" ; then
7006 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7007       key=`autoconf/randpass 33`
7008    else
7009       key=`openssl rand -base64 33`
7010    fi
7011    dir_password=$key
7012 fi
7013
7014 fd_password=
7015
7016 # Check whether --with-fd-password or --without-fd-password was given.
7017 if test "${with_fd_password+set}" = set; then
7018   withval="$with_fd_password"
7019
7020        if test "x$withval" != "xno" ; then
7021            fd_password=$withval
7022        fi
7023
7024
7025 fi;
7026
7027 if test "x$fd_password" = "x" ; then
7028    if test "x$OPENSSL" = "xnone" ; then
7029 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7030       key=`autoconf/randpass 37`
7031    else
7032       key=`openssl rand -base64 33`
7033    fi
7034    fd_password=$key
7035 fi
7036
7037 sd_password=
7038
7039 # Check whether --with-sd-password or --without-sd-password was given.
7040 if test "${with_sd_password+set}" = set; then
7041   withval="$with_sd_password"
7042
7043        if test "x$withval" != "xno" ; then
7044            sd_password=$withval
7045        fi
7046
7047
7048 fi;
7049
7050 if test "x$sd_password" = "x" ; then
7051    if test "x$OPENSSL" = "xnone" ; then
7052 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7053       key=`autoconf/randpass 41`
7054    else
7055       key=`openssl rand -base64 33`
7056    fi
7057    sd_password=$key
7058 fi
7059
7060
7061
7062
7063
7064
7065
7066 #
7067 # Handle users and groups for each daemon
7068 #
7069 dir_user=
7070
7071 # Check whether --with-dir_user or --without-dir_user was given.
7072 if test "${with_dir_user+set}" = set; then
7073   withval="$with_dir_user"
7074
7075         if test "x$withval" != "x" ; then
7076              dir_user=$withval
7077         fi
7078
7079
7080 fi;
7081
7082 dir_group=
7083
7084 # Check whether --with-dir_group or --without-dir_group was given.
7085 if test "${with_dir_group+set}" = set; then
7086   withval="$with_dir_group"
7087
7088         if test "x$withval" != "x" ; then
7089              dir_group=$withval
7090         fi
7091
7092
7093 fi;
7094
7095 sd_user=
7096
7097 # Check whether --with-sd_user or --without-sd_user was given.
7098 if test "${with_sd_user+set}" = set; then
7099   withval="$with_sd_user"
7100
7101         if test "x$withval" != "x" ; then
7102              sd_user=$withval
7103         fi
7104
7105
7106 fi;
7107
7108 sd_group=
7109
7110 # Check whether --with-sd_group or --without-sd_group was given.
7111 if test "${with_sd_group+set}" = set; then
7112   withval="$with_sd_group"
7113
7114         if test "x$withval" != "x" ; then
7115              sd_group=$withval
7116         fi
7117
7118
7119 fi;
7120
7121 fd_user=
7122
7123 # Check whether --with-fd_user or --without-fd_user was given.
7124 if test "${with_fd_user+set}" = set; then
7125   withval="$with_fd_user"
7126
7127         if test "x$withval" != "x" ; then
7128              fd_user=$withval
7129         fi
7130
7131
7132 fi;
7133
7134 fd_group=
7135
7136 # Check whether --with-fd_group or --without-fd_group was given.
7137 if test "${with_fd_group+set}" = set; then
7138   withval="$with_fd_group"
7139
7140         if test "x$withval" != "x" ; then
7141              fd_group=$withval
7142         fi
7143
7144
7145 fi;
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157 # ------------------------------------------------
7158 # Bacula check for various SQL database engines
7159 # ------------------------------------------------
7160
7161 db_found=no
7162 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7163 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7164
7165 # Check whether --with-postgresql or --without-postgresql was given.
7166 if test "${with_postgresql+set}" = set; then
7167   withval="$with_postgresql"
7168
7169   if test "$withval" != "no"; then
7170       if test "$db_found" = "yes"; then
7171           echo "$as_me:$LINENO: result: error" >&5
7172 echo "${ECHO_T}error" >&6
7173           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7174 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7175    { (exit 1); exit 1; }; };
7176       fi
7177       if test "$withval" = "yes"; then
7178           if test -f /usr/local/include/libpq-fe.h; then
7179               POSTGRESQL_INCDIR=/usr/local/include
7180               POSTGRESQL_LIBDIR=/usr/local/lib
7181               POSTGRESQL_BINDIR=/usr/local/bin
7182           elif test -f /usr/include/libpq-fe.h; then
7183               POSTGRESQL_INCDIR=/usr/include
7184               POSTGRESQL_LIBDIR=/usr/lib
7185               POSTGRESQL_BINDIR=/usr/bin
7186           elif test -f /usr/include/pgsql/libpq-fe.h; then
7187               POSTGRESQL_INCDIR=/usr/include/pgsql
7188               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7189               POSTGRESQL_BINDIR=/usr/bin
7190           else
7191               echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7194 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7195    { (exit 1); exit 1; }; }
7196           fi
7197       elif test -f $withval/libpq-fe.h; then
7198           POSTGRESQL_INCDIR=$withval
7199           POSTGRESQL_LIBDIR=$withval
7200           POSTGRESQL_BINDIR=$withval
7201       else
7202           echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7205 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7206    { (exit 1); exit 1; }; }
7207       fi
7208       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7209       echo "$as_me:$LINENO: checking for crypt" >&5
7210 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7211 if test "${ac_cv_func_crypt+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221 /* System header to define __stub macros and hopefully few prototypes,
7222     which can conflict with char crypt (); below.
7223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224     <limits.h> exists even on freestanding compilers.  */
7225 #ifdef __STDC__
7226 # include <limits.h>
7227 #else
7228 # include <assert.h>
7229 #endif
7230 /* Override any gcc2 internal prototype to avoid an error.  */
7231 #ifdef __cplusplus
7232 extern "C"
7233 {
7234 #endif
7235 /* We use char because int might match the return type of a gcc2
7236    builtin and then its argument prototype would still apply.  */
7237 char crypt ();
7238 /* The GNU C library defines this for functions which it implements
7239     to always fail with ENOSYS.  Some functions are actually named
7240     something starting with __ and the normal name is an alias.  */
7241 #if defined (__stub_crypt) || defined (__stub___crypt)
7242 choke me
7243 #else
7244 char (*f) () = crypt;
7245 #endif
7246 #ifdef __cplusplus
7247 }
7248 #endif
7249
7250 int
7251 main ()
7252 {
7253 return f != crypt;
7254   ;
7255   return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260   (eval $ac_link) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -s conftest$ac_exeext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_cv_func_crypt=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_cv_func_crypt=no
7276 fi
7277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7278 fi
7279 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7280 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7281 if test $ac_cv_func_crypt = yes; then
7282   :
7283 else
7284   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7285 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7286 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-lcrypt  $LIBS"
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298
7299 /* Override any gcc2 internal prototype to avoid an error.  */
7300 #ifdef __cplusplus
7301 extern "C"
7302 #endif
7303 /* We use char because int might match the return type of a gcc2
7304    builtin and then its argument prototype would still apply.  */
7305 char crypt ();
7306 int
7307 main ()
7308 {
7309 crypt ();
7310   ;
7311   return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316   (eval $ac_link) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); } &&
7320          { ac_try='test -s conftest$ac_exeext'
7321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322   (eval $ac_try) 2>&5
7323   ac_status=$?
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); }; }; then
7326   ac_cv_lib_crypt_crypt=yes
7327 else
7328   echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 ac_cv_lib_crypt_crypt=no
7332 fi
7333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7335 fi
7336 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7337 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7338 if test $ac_cv_lib_crypt_crypt = yes; then
7339   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7340 fi
7341
7342 fi
7343
7344       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7345       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7346       SQL_BINDIR=$POSTGRESQL_BINDIR
7347       cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_POSTGRESQL 1
7349 _ACEOF
7350
7351       echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7353       db_found=yes
7354       support_postgresql=yes
7355       db_name=PostgreSQL
7356       DB_NAME=postgresql
7357   else
7358       echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6
7360   fi
7361
7362 else
7363
7364   echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366
7367 fi;
7368
7369
7370
7371
7372
7373
7374
7375 db_found=no
7376 echo "$as_me:$LINENO: checking for MySQL support" >&5
7377 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7378
7379 # Check whether --with-mysql or --without-mysql was given.
7380 if test "${with_mysql+set}" = set; then
7381   withval="$with_mysql"
7382
7383   if test "$withval" != "no"; then
7384         if test "$withval" = "yes"; then
7385                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7386                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7387                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7388                         MYSQL_BINDIR=/usr/local/mysql/bin
7389                 elif test -f /usr/include/mysql/mysql.h; then
7390                         MYSQL_INCDIR=/usr/include/mysql
7391                         MYSQL_LIBDIR=/usr/lib/mysql
7392                         MYSQL_BINDIR=/usr/bin
7393                 elif test -f /usr/include/mysql.h; then
7394                         MYSQL_INCDIR=/usr/include
7395                         MYSQL_LIBDIR=/usr/lib
7396                         MYSQL_BINDIR=/usr/bin
7397                 elif test -f /usr/local/include/mysql/mysql.h; then
7398                         MYSQL_INCDIR=/usr/local/include/mysql
7399                         MYSQL_LIBDIR=/usr/local/lib/mysql
7400                         MYSQL_BINDIR=/usr/local/bin
7401                 elif test -f /usr/local/include/mysql.h; then
7402                         MYSQL_INCDIR=/usr/local/include
7403                         MYSQL_LIBDIR=/usr/local/lib
7404                         MYSQL_BINDIR=/usr/local/bin
7405                 else
7406                    echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7408                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7409 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7410    { (exit 1); exit 1; }; }
7411                 fi
7412         else
7413                 if test -f $withval/include/mysql/mysql.h; then
7414                         MYSQL_INCDIR=$withval/include/mysql
7415                         MYSQL_LIBDIR=$withval/lib/mysql
7416                         MYSQL_BINDIR=$withval/bin
7417                 elif test -f $withval/include/mysql.h; then
7418                         MYSQL_INCDIR=$withval/include
7419                         MYSQL_LIBDIR=$withval/lib
7420                         MYSQL_BINDIR=$withval/bin
7421                 else
7422                    echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7424                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7425 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7426    { (exit 1); exit 1; }; }
7427                 fi
7428         fi
7429     SQL_INCLUDE=-I$MYSQL_INCDIR
7430     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7431        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7432        cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_THREAD_SAFE_MYSQL 1
7434 _ACEOF
7435
7436     else
7437        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7438     fi
7439     SQL_BINDIR=$MYSQL_BINDIR
7440
7441     cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_MYSQL 1
7443 _ACEOF
7444
7445     echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7447     db_found=yes
7448     support_mysql=yes
7449     db_name=MySQL
7450     DB_NAME=mysql
7451
7452   else
7453         echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7455   fi
7456
7457 else
7458
7459     echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6
7461
7462 fi;
7463
7464
7465 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7466 if test "${with_embedded_mysql+set}" = set; then
7467   withval="$with_embedded_mysql"
7468
7469   if test "$withval" != "no"; then
7470         if test "$withval" = "yes"; then
7471                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7472                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7473                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7474                         MYSQL_BINDIR=/usr/local/mysql/bin
7475                 elif test -f /usr/include/mysql/mysql.h; then
7476                         MYSQL_INCDIR=/usr/include/mysql
7477                         MYSQL_LIBDIR=/usr/lib/mysql
7478                         MYSQL_BINDIR=/usr/bin
7479                 elif test -f /usr/include/mysql.h; then
7480                         MYSQL_INCDIR=/usr/include
7481                         MYSQL_LIBDIR=/usr/lib
7482                         MYSQL_BINDIR=/usr/bin
7483                 elif test -f /usr/local/include/mysql/mysql.h; then
7484                         MYSQL_INCDIR=/usr/local/include/mysql
7485                         MYSQL_LIBDIR=/usr/local/lib/mysql
7486                         MYSQL_BINDIR=/usr/local/bin
7487                 elif test -f /usr/local/include/mysql.h; then
7488                         MYSQL_INCDIR=/usr/local/include
7489                         MYSQL_LIBDIR=/usr/local/lib
7490                         MYSQL_BINDIR=/usr/local/bin
7491                 else
7492                    echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7495 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7496    { (exit 1); exit 1; }; }
7497                 fi
7498         else
7499                 if test -f $withval/include/mysql/mysql.h; then
7500                         MYSQL_INCDIR=$withval/include/mysql
7501                         MYSQL_LIBDIR=$withval/lib/mysql
7502                         MYSQL_BINDIR=$withval/bin
7503                 elif test -f $withval/include/mysql.h; then
7504                         MYSQL_INCDIR=$withval/include
7505                         MYSQL_LIBDIR=$withval/lib
7506                         MYSQL_BINDIR=$withval/bin
7507                 else
7508                    echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7511 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7512    { (exit 1); exit 1; }; }
7513                 fi
7514         fi
7515     SQL_INCLUDE=-I$MYSQL_INCDIR
7516     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7517     SQL_BINDIR=$MYSQL_BINDIR
7518
7519     cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_MYSQL 1
7521 _ACEOF
7522
7523     cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_EMBEDDED_MYSQL 1
7525 _ACEOF
7526
7527     echo "$as_me:$LINENO: result: yes" >&5
7528 echo "${ECHO_T}yes" >&6
7529     db_found=yes
7530     support_mysql=yes
7531     db_name=MySQL
7532     DB_NAME=mysql
7533
7534   else
7535         echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6
7537   fi
7538
7539 else
7540
7541   echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7543
7544 fi;
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 db_found=no
7555 echo "$as_me:$LINENO: checking for SQLite support" >&5
7556 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7557
7558 # Check whether --with-sqlite or --without-sqlite was given.
7559 if test "${with_sqlite+set}" = set; then
7560   withval="$with_sqlite"
7561
7562   if test "$withval" != "no"; then
7563         if test "$withval" = "yes"; then
7564                 if test -f /usr/local/include/sqlite.h; then
7565                         SQLITE_INCDIR=/usr/local/include
7566                         SQLITE_LIBDIR=/usr/local/lib
7567                         SQLITE_BINDIR=/usr/local/bin
7568                 elif test -f /usr/include/sqlite.h; then
7569                         SQLITE_INCDIR=/usr/include
7570                         SQLITE_LIBDIR=/usr/lib
7571                         SQLITE_BINDIR=/usr/bin
7572                 else
7573                    echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7575                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7576 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7577    { (exit 1); exit 1; }; }
7578                 fi
7579         else
7580                 if test -f $withval/sqlite.h; then
7581                         SQLITE_INCDIR=$withval
7582                         SQLITE_LIBDIR=$withval
7583                         SQLITE_BINDIR=$withval
7584                 else
7585                    echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7588 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7589    { (exit 1); exit 1; }; }
7590                 fi
7591         fi
7592     SQL_INCLUDE=-I$SQLITE_INCDIR
7593     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7594     SQL_BINDIR=$SQLITE_BINDIR
7595
7596     cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_SQLITE 1
7598 _ACEOF
7599
7600     echo "$as_me:$LINENO: result: yes" >&5
7601 echo "${ECHO_T}yes" >&6
7602     db_found=yes
7603     support_sqlite=yes
7604     db_name=SQLite
7605     DB_NAME=sqlite
7606
7607   else
7608         echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6
7610   fi
7611
7612 else
7613
7614   echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7616
7617 fi;
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627 cat >>confdefs.h <<\_ACEOF
7628 #define PROTOTYPES 1
7629 _ACEOF
7630
7631
7632 if test -z "$CFLAGS"; then
7633     if test -z "$CCOPTS"; then
7634         CCOPTS='-g -O2'
7635     fi
7636     CFLAGS="$CCOPTS"
7637 fi
7638
7639
7640
7641
7642 largefile_support="no"
7643
7644    # Check whether --enable-largefile or --disable-largefile was given.
7645 if test "${enable_largefile+set}" = set; then
7646   enableval="$enable_largefile"
7647
7648 fi;
7649    if test "$enable_largefile" != no; then
7650      if test -n "$ac_tool_prefix"; then
7651   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7652 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7653 echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7655 if test "${ac_cv_prog_GETCONF+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   if test -n "$GETCONF"; then
7659   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664   IFS=$as_save_IFS
7665   test -z "$as_dir" && as_dir=.
7666   for ac_exec_ext in '' $ac_executable_extensions; do
7667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670     break 2
7671   fi
7672 done
7673 done
7674
7675 fi
7676 fi
7677 GETCONF=$ac_cv_prog_GETCONF
7678 if test -n "$GETCONF"; then
7679   echo "$as_me:$LINENO: result: $GETCONF" >&5
7680 echo "${ECHO_T}$GETCONF" >&6
7681 else
7682   echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6
7684 fi
7685
7686 fi
7687 if test -z "$ac_cv_prog_GETCONF"; then
7688   ac_ct_GETCONF=$GETCONF
7689   # Extract the first word of "getconf", so it can be a program name with args.
7690 set dummy getconf; ac_word=$2
7691 echo "$as_me:$LINENO: checking for $ac_word" >&5
7692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7693 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   if test -n "$ac_ct_GETCONF"; then
7697   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704   for ac_exec_ext in '' $ac_executable_extensions; do
7705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706     ac_cv_prog_ac_ct_GETCONF="getconf"
7707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711 done
7712
7713 fi
7714 fi
7715 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7716 if test -n "$ac_ct_GETCONF"; then
7717   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7718 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7719 else
7720   echo "$as_me:$LINENO: result: no" >&5
7721 echo "${ECHO_T}no" >&6
7722 fi
7723
7724   GETCONF=$ac_ct_GETCONF
7725 else
7726   GETCONF="$ac_cv_prog_GETCONF"
7727 fi
7728
7729      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7730 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7731 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7735         ac_cv_sys_largefile_CFLAGS=no
7736         case "$host_os" in
7737            # IRIX 6.2 and later require cc -n32.
7738            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7739              if test "$GCC" != yes; then
7740                ac_cv_sys_largefile_CFLAGS=-n32
7741              fi
7742              ac_save_CC="$CC"
7743              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7744              cat >conftest.$ac_ext <<_ACEOF
7745 #line $LINENO "configure"
7746 /* confdefs.h.  */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h.  */
7751
7752 int
7753 main ()
7754 {
7755
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762   (eval $ac_link) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } &&
7766          { ac_try='test -s conftest$ac_exeext'
7767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768   (eval $ac_try) 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); }; }; then
7772   :
7773 else
7774   echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7776
7777 ac_cv_sys_largefile_CFLAGS=no
7778 fi
7779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7780              CC="$ac_save_CC"
7781            esac
7782       }
7783 fi
7784 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7785 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7786      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7787 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7788 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7792         ac_cv_sys_largefile_LDFLAGS=no
7793
7794       }
7795 fi
7796 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7797 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7798      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7799 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7800 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7804         ac_cv_sys_largefile_LIBS=no
7805
7806       }
7807 fi
7808 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7809 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7810
7811      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7812        case "$ac_flag" in
7813        no) ;;
7814        -D_FILE_OFFSET_BITS=*) ;;
7815        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7816        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7817        -D?* | -I?*)
7818          case "$ac_flag" in
7819    no) ;;
7820    ?*)
7821      case "$CPPFLAGS" in
7822      '') CPPFLAGS="$ac_flag" ;;
7823      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7824      esac ;;
7825    esac ;;
7826        *)
7827          case "$ac_flag" in
7828    no) ;;
7829    ?*)
7830      case "$CFLAGS" in
7831      '') CFLAGS="$ac_flag" ;;
7832      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7833      esac ;;
7834    esac ;;
7835        esac
7836      done
7837      case "$ac_cv_sys_largefile_LDFLAGS" in
7838    no) ;;
7839    ?*)
7840      case "$LDFLAGS" in
7841      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7842      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7843      esac ;;
7844    esac
7845      case "$ac_cv_sys_largefile_LIBS" in
7846    no) ;;
7847    ?*)
7848      case "$LIBS" in
7849      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7850      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7851      esac ;;
7852    esac
7853      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7854 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7855 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   ac_cv_sys_file_offset_bits=no
7859       case "$host_os" in
7860         # HP-UX 10.20 and later
7861         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7862           ac_cv_sys_file_offset_bits=64 ;;
7863         esac
7864       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7865         case "$ac_flag" in
7866         -D_FILE_OFFSET_BITS)
7867           ac_cv_sys_file_offset_bits=1 ;;
7868         -D_FILE_OFFSET_BITS=*)
7869           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7870         esac
7871       done
7872
7873 fi
7874 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7875 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7876    if test "$ac_cv_sys_file_offset_bits" != no; then
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7880 _ACEOF
7881
7882    fi
7883      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7884 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7885 if test "${ac_cv_sys_largefile_source+set}" = set; then
7886   echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888   ac_cv_sys_largefile_source=no
7889       case "$host_os" in
7890         # HP-UX 10.20 and later
7891         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7892           ac_cv_sys_largefile_source=1 ;;
7893         esac
7894       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7895         case "$ac_flag" in
7896         -D_LARGEFILE_SOURCE)
7897           ac_cv_sys_largefile_source=1 ;;
7898         -D_LARGEFILE_SOURCE=*)
7899           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7900         esac
7901       done
7902
7903 fi
7904 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7905 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7906    if test "$ac_cv_sys_largefile_source" != no; then
7907
7908 cat >>confdefs.h <<_ACEOF
7909 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7910 _ACEOF
7911
7912    fi
7913      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7914 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7915 if test "${ac_cv_sys_large_files+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   ac_cv_sys_large_files=no
7919       case "$host_os" in
7920         # AIX 4.2 and later
7921         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7922           ac_cv_sys_large_files=1 ;;
7923         esac
7924       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7925         case "$ac_flag" in
7926         -D_LARGE_FILES)
7927           ac_cv_sys_large_files=1 ;;
7928         -D_LARGE_FILES=*)
7929           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7930         esac
7931       done
7932
7933 fi
7934 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7935 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7936    if test "$ac_cv_sys_large_files" != no; then
7937
7938 cat >>confdefs.h <<_ACEOF
7939 #define _LARGE_FILES $ac_cv_sys_large_files
7940 _ACEOF
7941
7942    fi
7943    fi
7944
7945
7946
7947 echo "$as_me:$LINENO: checking for X" >&5
7948 echo $ECHO_N "checking for X... $ECHO_C" >&6
7949
7950
7951 # Check whether --with-x or --without-x was given.
7952 if test "${with_x+set}" = set; then
7953   withval="$with_x"
7954
7955 fi;
7956 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7957 if test "x$with_x" = xno; then
7958   # The user explicitly disabled X.
7959   have_x=disabled
7960 else
7961   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7962     # Both variables are already set.
7963     have_x=yes
7964   else
7965     if test "${ac_cv_have_x+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   # One or both of the vars are not set, and there is no cached value.
7969 ac_x_includes=no ac_x_libraries=no
7970 rm -fr conftest.dir
7971 if mkdir conftest.dir; then
7972   cd conftest.dir
7973   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7974   cat >Imakefile <<'_ACEOF'
7975 acfindx:
7976         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7977 _ACEOF
7978   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7979     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7980     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7981     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7982     for ac_extension in a so sl; do
7983       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7984          test -f $ac_im_libdir/libX11.$ac_extension; then
7985         ac_im_usrlibdir=$ac_im_libdir; break
7986       fi
7987     done
7988     # Screen out bogus values from the imake configuration.  They are
7989     # bogus both because they are the default anyway, and because
7990     # using them would break gcc on systems where it needs fixed includes.
7991     case $ac_im_incroot in
7992         /usr/include) ;;
7993         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7994     esac
7995     case $ac_im_usrlibdir in
7996         /usr/lib | /lib) ;;
7997         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7998     esac
7999   fi
8000   cd ..
8001   rm -fr conftest.dir
8002 fi
8003
8004 # Standard set of common directories for X headers.
8005 # Check X11 before X11Rn because it is often a symlink to the current release.
8006 ac_x_header_dirs='
8007 /usr/X11/include
8008 /usr/X11R6/include
8009 /usr/X11R5/include
8010 /usr/X11R4/include
8011
8012 /usr/include/X11
8013 /usr/include/X11R6
8014 /usr/include/X11R5
8015 /usr/include/X11R4
8016
8017 /usr/local/X11/include
8018 /usr/local/X11R6/include
8019 /usr/local/X11R5/include
8020 /usr/local/X11R4/include
8021
8022 /usr/local/include/X11
8023 /usr/local/include/X11R6
8024 /usr/local/include/X11R5
8025 /usr/local/include/X11R4
8026
8027 /usr/X386/include
8028 /usr/x386/include
8029 /usr/XFree86/include/X11
8030
8031 /usr/include
8032 /usr/local/include
8033 /usr/unsupported/include
8034 /usr/athena/include
8035 /usr/local/x11r5/include
8036 /usr/lpp/Xamples/include
8037
8038 /usr/openwin/include
8039 /usr/openwin/share/include'
8040
8041 if test "$ac_x_includes" = no; then
8042   # Guess where to find include files, by looking for Intrinsic.h.
8043   # First, try using that file with no special directory specified.
8044   cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051 #include <X11/Intrinsic.h>
8052 _ACEOF
8053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } >/dev/null; then
8061   if test -s conftest.err; then
8062     ac_cpp_err=$ac_c_preproc_warn_flag
8063   else
8064     ac_cpp_err=
8065   fi
8066 else
8067   ac_cpp_err=yes
8068 fi
8069 if test -z "$ac_cpp_err"; then
8070   # We can compile using X headers with no special include directory.
8071 ac_x_includes=
8072 else
8073   echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076   for ac_dir in $ac_x_header_dirs; do
8077   if test -r "$ac_dir/X11/Intrinsic.h"; then
8078     ac_x_includes=$ac_dir
8079     break
8080   fi
8081 done
8082 fi
8083 rm -f conftest.err conftest.$ac_ext
8084 fi # $ac_x_includes = no
8085
8086 if test "$ac_x_libraries" = no; then
8087   # Check for the libraries.
8088   # See if we find them without any special options.
8089   # Don't add to $LIBS permanently.
8090   ac_save_LIBS=$LIBS
8091   LIBS="-lXt $LIBS"
8092   cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 /* confdefs.h.  */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h.  */
8099 #include <X11/Intrinsic.h>
8100 int
8101 main ()
8102 {
8103 XtMalloc (0)
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110   (eval $ac_link) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -s conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   LIBS=$ac_save_LIBS
8121 # We can link X programs with no special library path.
8122 ac_x_libraries=
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 LIBS=$ac_save_LIBS
8128 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8129 do
8130   # Don't even attempt the hair of trying to link an X program!
8131   for ac_extension in a so sl; do
8132     if test -r $ac_dir/libXt.$ac_extension; then
8133       ac_x_libraries=$ac_dir
8134       break 2
8135     fi
8136   done
8137 done
8138 fi
8139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140 fi # $ac_x_libraries = no
8141
8142 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8143   # Didn't find X anywhere.  Cache the known absence of X.
8144   ac_cv_have_x="have_x=no"
8145 else
8146   # Record where we found X for the cache.
8147   ac_cv_have_x="have_x=yes \
8148                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8149 fi
8150 fi
8151
8152   fi
8153   eval "$ac_cv_have_x"
8154 fi # $with_x != no
8155
8156 if test "$have_x" != yes; then
8157   echo "$as_me:$LINENO: result: $have_x" >&5
8158 echo "${ECHO_T}$have_x" >&6
8159   no_x=yes
8160 else
8161   # If each of the values was on the command line, it overrides each guess.
8162   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8163   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8164   # Update the cache value to reflect the command line values.
8165   ac_cv_have_x="have_x=yes \
8166                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8167   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8168 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8169 fi
8170
8171 if test "$no_x" = yes; then
8172   # Not all programs may use this symbol, but it does not hurt to define it.
8173
8174 cat >>confdefs.h <<\_ACEOF
8175 #define X_DISPLAY_MISSING 1
8176 _ACEOF
8177
8178   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8179 else
8180   if test -n "$x_includes"; then
8181     X_CFLAGS="$X_CFLAGS -I$x_includes"
8182   fi
8183
8184   # It would also be nice to do this for all -L options, not just this one.
8185   if test -n "$x_libraries"; then
8186     X_LIBS="$X_LIBS -L$x_libraries"
8187     # For Solaris; some versions of Sun CC require a space after -R and
8188     # others require no space.  Words are not sufficient . . . .
8189     case `(uname -sr) 2>/dev/null` in
8190     "SunOS 5"*)
8191       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8192 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8193       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8194       cat >conftest.$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8196 /* confdefs.h.  */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h.  */
8201
8202 int
8203 main ()
8204 {
8205
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212   (eval $ac_link) 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } &&
8216          { ac_try='test -s conftest$ac_exeext'
8217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218   (eval $ac_try) 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; }; then
8222   ac_R_nospace=yes
8223 else
8224   echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227 ac_R_nospace=no
8228 fi
8229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8230       if test $ac_R_nospace = yes; then
8231         echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8233         X_LIBS="$X_LIBS -R$x_libraries"
8234       else
8235         LIBS="$ac_xsave_LIBS -R $x_libraries"
8236         cat >conftest.$ac_ext <<_ACEOF
8237 #line $LINENO "configure"
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243
8244 int
8245 main ()
8246 {
8247
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254   (eval $ac_link) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } &&
8258          { ac_try='test -s conftest$ac_exeext'
8259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260   (eval $ac_try) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   ac_R_space=yes
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ac_R_space=no
8270 fi
8271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8272         if test $ac_R_space = yes; then
8273           echo "$as_me:$LINENO: result: yes" >&5
8274 echo "${ECHO_T}yes" >&6
8275           X_LIBS="$X_LIBS -R $x_libraries"
8276         else
8277           echo "$as_me:$LINENO: result: neither works" >&5
8278 echo "${ECHO_T}neither works" >&6
8279         fi
8280       fi
8281       LIBS=$ac_xsave_LIBS
8282     esac
8283   fi
8284
8285   # Check for system-dependent libraries X programs must link with.
8286   # Do this before checking for the system-independent R6 libraries
8287   # (-lICE), since we may need -lsocket or whatever for X linking.
8288
8289   if test "$ISC" = yes; then
8290     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8291   else
8292     # Martyn Johnson says this is needed for Ultrix, if the X
8293     # libraries were built with DECnet support.  And Karl Berry says
8294     # the Alpha needs dnet_stub (dnet does not exist).
8295     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8296     cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303
8304 /* Override any gcc2 internal prototype to avoid an error.  */
8305 #ifdef __cplusplus
8306 extern "C"
8307 #endif
8308 /* We use char because int might match the return type of a gcc2
8309    builtin and then its argument prototype would still apply.  */
8310 char XOpenDisplay ();
8311 int
8312 main ()
8313 {
8314 XOpenDisplay ();
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321   (eval $ac_link) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -s conftest$ac_exeext'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; }; then
8331   :
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8337 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8338 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   ac_check_lib_save_LIBS=$LIBS
8342 LIBS="-ldnet  $LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350
8351 /* Override any gcc2 internal prototype to avoid an error.  */
8352 #ifdef __cplusplus
8353 extern "C"
8354 #endif
8355 /* We use char because int might match the return type of a gcc2
8356    builtin and then its argument prototype would still apply.  */
8357 char dnet_ntoa ();
8358 int
8359 main ()
8360 {
8361 dnet_ntoa ();
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368   (eval $ac_link) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_lib_dnet_dnet_ntoa=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_lib_dnet_dnet_ntoa=no
8384 fi
8385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8390 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8391   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8392 fi
8393
8394     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8395       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8396 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8397 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   ac_check_lib_save_LIBS=$LIBS
8401 LIBS="-ldnet_stub  $LIBS"
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409
8410 /* Override any gcc2 internal prototype to avoid an error.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 /* We use char because int might match the return type of a gcc2
8415    builtin and then its argument prototype would still apply.  */
8416 char dnet_ntoa ();
8417 int
8418 main ()
8419 {
8420 dnet_ntoa ();
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427   (eval $ac_link) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -s conftest$ac_exeext'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; }; then
8437   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442 ac_cv_lib_dnet_stub_dnet_ntoa=no
8443 fi
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8448 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8449 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8450   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8451 fi
8452
8453     fi
8454 fi
8455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8456     LIBS="$ac_xsave_LIBS"
8457
8458     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8459     # to get the SysV transport functions.
8460     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8461     # needs -lnsl.
8462     # The nsl library prevents programs from opening the X display
8463     # on Irix 5.2, according to T.E. Dickey.
8464     # The functions gethostbyname, getservbyname, and inet_addr are
8465     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8466     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8467 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8468 if test "${ac_cv_func_gethostbyname+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478 /* System header to define __stub macros and hopefully few prototypes,
8479     which can conflict with char gethostbyname (); below.
8480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8481     <limits.h> exists even on freestanding compilers.  */
8482 #ifdef __STDC__
8483 # include <limits.h>
8484 #else
8485 # include <assert.h>
8486 #endif
8487 /* Override any gcc2 internal prototype to avoid an error.  */
8488 #ifdef __cplusplus
8489 extern "C"
8490 {
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493    builtin and then its argument prototype would still apply.  */
8494 char gethostbyname ();
8495 /* The GNU C library defines this for functions which it implements
8496     to always fail with ENOSYS.  Some functions are actually named
8497     something starting with __ and the normal name is an alias.  */
8498 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8499 choke me
8500 #else
8501 char (*f) () = gethostbyname;
8502 #endif
8503 #ifdef __cplusplus
8504 }
8505 #endif
8506
8507 int
8508 main ()
8509 {
8510 return f != gethostbyname;
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517   (eval $ac_link) 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); } &&
8521          { ac_try='test -s conftest$ac_exeext'
8522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523   (eval $ac_try) 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); }; }; then
8527   ac_cv_func_gethostbyname=yes
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 ac_cv_func_gethostbyname=no
8533 fi
8534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8535 fi
8536 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8537 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8538
8539     if test $ac_cv_func_gethostbyname = no; then
8540       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8541 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8542 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   ac_check_lib_save_LIBS=$LIBS
8546 LIBS="-lnsl  $LIBS"
8547 cat >conftest.$ac_ext <<_ACEOF
8548 #line $LINENO "configure"
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554
8555 /* Override any gcc2 internal prototype to avoid an error.  */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 /* We use char because int might match the return type of a gcc2
8560    builtin and then its argument prototype would still apply.  */
8561 char gethostbyname ();
8562 int
8563 main ()
8564 {
8565 gethostbyname ();
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572   (eval $ac_link) 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); } &&
8576          { ac_try='test -s conftest$ac_exeext'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   ac_cv_lib_nsl_gethostbyname=yes
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 ac_cv_lib_nsl_gethostbyname=no
8588 fi
8589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8590 LIBS=$ac_check_lib_save_LIBS
8591 fi
8592 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8593 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8594 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8595   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8596 fi
8597
8598       if test $ac_cv_lib_nsl_gethostbyname = no; then
8599         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8600 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8601 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   ac_check_lib_save_LIBS=$LIBS
8605 LIBS="-lbsd  $LIBS"
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613
8614 /* Override any gcc2 internal prototype to avoid an error.  */
8615 #ifdef __cplusplus
8616 extern "C"
8617 #endif
8618 /* We use char because int might match the return type of a gcc2
8619    builtin and then its argument prototype would still apply.  */
8620 char gethostbyname ();
8621 int
8622 main ()
8623 {
8624 gethostbyname ();
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631   (eval $ac_link) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); } &&
8635          { ac_try='test -s conftest$ac_exeext'
8636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637   (eval $ac_try) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; }; then
8641   ac_cv_lib_bsd_gethostbyname=yes
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_cv_lib_bsd_gethostbyname=no
8647 fi
8648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8649 LIBS=$ac_check_lib_save_LIBS
8650 fi
8651 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8652 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8653 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8654   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8655 fi
8656
8657       fi
8658     fi
8659
8660     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8661     # socket/setsockopt and other routines are undefined under SCO ODT
8662     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8663     # on later versions), says Simon Leinen: it contains gethostby*
8664     # variants that don't use the name server (or something).  -lsocket
8665     # must be given before -lnsl if both are needed.  We assume that
8666     # if connect needs -lnsl, so does gethostbyname.
8667     echo "$as_me:$LINENO: checking for connect" >&5
8668 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8669 if test "${ac_cv_func_connect+set}" = set; then
8670   echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672   cat >conftest.$ac_ext <<_ACEOF
8673 #line $LINENO "configure"
8674 /* confdefs.h.  */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h.  */
8679 /* System header to define __stub macros and hopefully few prototypes,
8680     which can conflict with char connect (); below.
8681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8682     <limits.h> exists even on freestanding compilers.  */
8683 #ifdef __STDC__
8684 # include <limits.h>
8685 #else
8686 # include <assert.h>
8687 #endif
8688 /* Override any gcc2 internal prototype to avoid an error.  */
8689 #ifdef __cplusplus
8690 extern "C"
8691 {
8692 #endif
8693 /* We use char because int might match the return type of a gcc2
8694    builtin and then its argument prototype would still apply.  */
8695 char connect ();
8696 /* The GNU C library defines this for functions which it implements
8697     to always fail with ENOSYS.  Some functions are actually named
8698     something starting with __ and the normal name is an alias.  */
8699 #if defined (__stub_connect) || defined (__stub___connect)
8700 choke me
8701 #else
8702 char (*f) () = connect;
8703 #endif
8704 #ifdef __cplusplus
8705 }
8706 #endif
8707
8708 int
8709 main ()
8710 {
8711 return f != connect;
8712   ;
8713   return 0;
8714 }
8715 _ACEOF
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718   (eval $ac_link) 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } &&
8722          { ac_try='test -s conftest$ac_exeext'
8723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724   (eval $ac_try) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; }; then
8728   ac_cv_func_connect=yes
8729 else
8730   echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733 ac_cv_func_connect=no
8734 fi
8735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8738 echo "${ECHO_T}$ac_cv_func_connect" >&6
8739
8740     if test $ac_cv_func_connect = no; then
8741       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8742 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8743 if test "${ac_cv_lib_socket_connect+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746   ac_check_lib_save_LIBS=$LIBS
8747 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line $LINENO "configure"
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755
8756 /* Override any gcc2 internal prototype to avoid an error.  */
8757 #ifdef __cplusplus
8758 extern "C"
8759 #endif
8760 /* We use char because int might match the return type of a gcc2
8761    builtin and then its argument prototype would still apply.  */
8762 char connect ();
8763 int
8764 main ()
8765 {
8766 connect ();
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8773   (eval $ac_link) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } &&
8777          { ac_try='test -s conftest$ac_exeext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   ac_cv_lib_socket_connect=yes
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 ac_cv_lib_socket_connect=no
8789 fi
8790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8792 fi
8793 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8794 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8795 if test $ac_cv_lib_socket_connect = yes; then
8796   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8797 fi
8798
8799     fi
8800
8801     # Guillermo Gomez says -lposix is necessary on A/UX.
8802     echo "$as_me:$LINENO: checking for remove" >&5
8803 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8804 if test "${ac_cv_func_remove+set}" = set; then
8805   echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807   cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 /* System header to define __stub macros and hopefully few prototypes,
8815     which can conflict with char remove (); below.
8816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8817     <limits.h> exists even on freestanding compilers.  */
8818 #ifdef __STDC__
8819 # include <limits.h>
8820 #else
8821 # include <assert.h>
8822 #endif
8823 /* Override any gcc2 internal prototype to avoid an error.  */
8824 #ifdef __cplusplus
8825 extern "C"
8826 {
8827 #endif
8828 /* We use char because int might match the return type of a gcc2
8829    builtin and then its argument prototype would still apply.  */
8830 char remove ();
8831 /* The GNU C library defines this for functions which it implements
8832     to always fail with ENOSYS.  Some functions are actually named
8833     something starting with __ and the normal name is an alias.  */
8834 #if defined (__stub_remove) || defined (__stub___remove)
8835 choke me
8836 #else
8837 char (*f) () = remove;
8838 #endif
8839 #ifdef __cplusplus
8840 }
8841 #endif
8842
8843 int
8844 main ()
8845 {
8846 return f != remove;
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853   (eval $ac_link) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); } &&
8857          { ac_try='test -s conftest$ac_exeext'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; }; then
8863   ac_cv_func_remove=yes
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_func_remove=no
8869 fi
8870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871 fi
8872 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8873 echo "${ECHO_T}$ac_cv_func_remove" >&6
8874
8875     if test $ac_cv_func_remove = no; then
8876       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8877 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8878 if test "${ac_cv_lib_posix_remove+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881   ac_check_lib_save_LIBS=$LIBS
8882 LIBS="-lposix  $LIBS"
8883 cat >conftest.$ac_ext <<_ACEOF
8884 #line $LINENO "configure"
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890
8891 /* Override any gcc2 internal prototype to avoid an error.  */
8892 #ifdef __cplusplus
8893 extern "C"
8894 #endif
8895 /* We use char because int might match the return type of a gcc2
8896    builtin and then its argument prototype would still apply.  */
8897 char remove ();
8898 int
8899 main ()
8900 {
8901 remove ();
8902   ;
8903   return 0;
8904 }
8905 _ACEOF
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908   (eval $ac_link) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); } &&
8912          { ac_try='test -s conftest$ac_exeext'
8913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914   (eval $ac_try) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; }; then
8918   ac_cv_lib_posix_remove=yes
8919 else
8920   echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 ac_cv_lib_posix_remove=no
8924 fi
8925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8926 LIBS=$ac_check_lib_save_LIBS
8927 fi
8928 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8929 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8930 if test $ac_cv_lib_posix_remove = yes; then
8931   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8932 fi
8933
8934     fi
8935
8936     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8937     echo "$as_me:$LINENO: checking for shmat" >&5
8938 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8939 if test "${ac_cv_func_shmat+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   cat >conftest.$ac_ext <<_ACEOF
8943 #line $LINENO "configure"
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949 /* System header to define __stub macros and hopefully few prototypes,
8950     which can conflict with char shmat (); below.
8951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952     <limits.h> exists even on freestanding compilers.  */
8953 #ifdef __STDC__
8954 # include <limits.h>
8955 #else
8956 # include <assert.h>
8957 #endif
8958 /* Override any gcc2 internal prototype to avoid an error.  */
8959 #ifdef __cplusplus
8960 extern "C"
8961 {
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964    builtin and then its argument prototype would still apply.  */
8965 char shmat ();
8966 /* The GNU C library defines this for functions which it implements
8967     to always fail with ENOSYS.  Some functions are actually named
8968     something starting with __ and the normal name is an alias.  */
8969 #if defined (__stub_shmat) || defined (__stub___shmat)
8970 choke me
8971 #else
8972 char (*f) () = shmat;
8973 #endif
8974 #ifdef __cplusplus
8975 }
8976 #endif
8977
8978 int
8979 main ()
8980 {
8981 return f != shmat;
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988   (eval $ac_link) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } &&
8992          { ac_try='test -s conftest$ac_exeext'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; }; then
8998   ac_cv_func_shmat=yes
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 ac_cv_func_shmat=no
9004 fi
9005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 fi
9007 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9008 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9009
9010     if test $ac_cv_func_shmat = no; then
9011       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9012 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9013 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016   ac_check_lib_save_LIBS=$LIBS
9017 LIBS="-lipc  $LIBS"
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025
9026 /* Override any gcc2 internal prototype to avoid an error.  */
9027 #ifdef __cplusplus
9028 extern "C"
9029 #endif
9030 /* We use char because int might match the return type of a gcc2
9031    builtin and then its argument prototype would still apply.  */
9032 char shmat ();
9033 int
9034 main ()
9035 {
9036 shmat ();
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043   (eval $ac_link) 2>&5
9044   ac_status=$?
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); } &&
9047          { ac_try='test -s conftest$ac_exeext'
9048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049   (eval $ac_try) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; }; then
9053   ac_cv_lib_ipc_shmat=yes
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058 ac_cv_lib_ipc_shmat=no
9059 fi
9060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_lib_save_LIBS
9062 fi
9063 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9064 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9065 if test $ac_cv_lib_ipc_shmat = yes; then
9066   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9067 fi
9068
9069     fi
9070   fi
9071
9072   # Check for libraries that X11R6 Xt/Xaw programs need.
9073   ac_save_LDFLAGS=$LDFLAGS
9074   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9075   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9076   # check for ICE first), but we must link in the order -lSM -lICE or
9077   # we get undefined symbols.  So assume we have SM if we have ICE.
9078   # These have to be linked with before -lX11, unlike the other
9079   # libraries we check for below, so use a different variable.
9080   # John Interrante, Karl Berry
9081   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9082 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9083 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086   ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9088 cat >conftest.$ac_ext <<_ACEOF
9089 #line $LINENO "configure"
9090 /* confdefs.h.  */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h.  */
9095
9096 /* Override any gcc2 internal prototype to avoid an error.  */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 /* We use char because int might match the return type of a gcc2
9101    builtin and then its argument prototype would still apply.  */
9102 char IceConnectionNumber ();
9103 int
9104 main ()
9105 {
9106 IceConnectionNumber ();
9107   ;
9108   return 0;
9109 }
9110 _ACEOF
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113   (eval $ac_link) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -s conftest$ac_exeext'
9118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119   (eval $ac_try) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; }; then
9123   ac_cv_lib_ICE_IceConnectionNumber=yes
9124 else
9125   echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128 ac_cv_lib_ICE_IceConnectionNumber=no
9129 fi
9130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9132 fi
9133 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9134 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9135 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9136   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9137 fi
9138
9139   LDFLAGS=$ac_save_LDFLAGS
9140
9141 fi
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166 for ac_header in \
9167         assert.h \
9168         fcntl.h \
9169         grp.h \
9170         pwd.h \
9171         libc.h \
9172         limits.h \
9173         stdarg.h \
9174         stdlib.h \
9175         stdint.h \
9176         string.h \
9177         termios.h \
9178         unistd.h \
9179         sys/byteorder.h \
9180         sys/ioctl.h \
9181         sys/select.h \
9182         sys/sockio.h \
9183         sys/time.h \
9184         sys/socket.h \
9185         arpa/nameser.h \
9186         resolv.h \
9187         mtio.h \
9188         sys/mtio.h \
9189
9190 do
9191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9193   echo "$as_me:$LINENO: checking for $ac_header" >&5
9194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 fi
9198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9200 else
9201   # Is the header compilable?
9202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9204 cat >conftest.$ac_ext <<_ACEOF
9205 #line $LINENO "configure"
9206 /* confdefs.h.  */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h.  */
9211 $ac_includes_default
9212 #include <$ac_header>
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216   (eval $ac_compile) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -s conftest.$ac_objext'
9221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; }; then
9226   ac_header_compiler=yes
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ac_header_compiler=no
9232 fi
9233 rm -f conftest.$ac_objext conftest.$ac_ext
9234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9235 echo "${ECHO_T}$ac_header_compiler" >&6
9236
9237 # Is the header present?
9238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9240 cat >conftest.$ac_ext <<_ACEOF
9241 #line $LINENO "configure"
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247 #include <$ac_header>
9248 _ACEOF
9249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9251   ac_status=$?
9252   grep -v '^ *+' conftest.er1 >conftest.err
9253   rm -f conftest.er1
9254   cat conftest.err >&5
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } >/dev/null; then
9257   if test -s conftest.err; then
9258     ac_cpp_err=$ac_c_preproc_warn_flag
9259   else
9260     ac_cpp_err=
9261   fi
9262 else
9263   ac_cpp_err=yes
9264 fi
9265 if test -z "$ac_cpp_err"; then
9266   ac_header_preproc=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271   ac_header_preproc=no
9272 fi
9273 rm -f conftest.err conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9275 echo "${ECHO_T}$ac_header_preproc" >&6
9276
9277 # So?  What about this header?
9278 case $ac_header_compiler:$ac_header_preproc in
9279   yes:no )
9280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9284     (
9285       cat <<\_ASBOX
9286 ## ------------------------------------ ##
9287 ## Report this to bug-autoconf@gnu.org. ##
9288 ## ------------------------------------ ##
9289 _ASBOX
9290     ) |
9291       sed "s/^/$as_me: WARNING:     /" >&2
9292     ;;
9293   no:yes )
9294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9296     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9300     (
9301       cat <<\_ASBOX
9302 ## ------------------------------------ ##
9303 ## Report this to bug-autoconf@gnu.org. ##
9304 ## ------------------------------------ ##
9305 _ASBOX
9306     ) |
9307       sed "s/^/$as_me: WARNING:     /" >&2
9308     ;;
9309 esac
9310 echo "$as_me:$LINENO: checking for $ac_header" >&5
9311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   eval "$as_ac_Header=$ac_header_preproc"
9316 fi
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9319
9320 fi
9321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322   cat >>confdefs.h <<_ACEOF
9323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324 _ACEOF
9325
9326 fi
9327
9328 done
9329
9330 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9332 if test "${ac_cv_header_stdc+set}" = set; then
9333   echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335   cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9337 /* confdefs.h.  */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h.  */
9342 #include <stdlib.h>
9343 #include <stdarg.h>
9344 #include <string.h>
9345 #include <float.h>
9346
9347 int
9348 main ()
9349 {
9350
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357   (eval $ac_compile) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -s conftest.$ac_objext'
9362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363   (eval $ac_try) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367   ac_cv_header_stdc=yes
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 ac_cv_header_stdc=no
9373 fi
9374 rm -f conftest.$ac_objext conftest.$ac_ext
9375
9376 if test $ac_cv_header_stdc = yes; then
9377   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9378   cat >conftest.$ac_ext <<_ACEOF
9379 #line $LINENO "configure"
9380 /* confdefs.h.  */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h.  */
9385 #include <string.h>
9386
9387 _ACEOF
9388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9389   $EGREP "memchr" >/dev/null 2>&1; then
9390   :
9391 else
9392   ac_cv_header_stdc=no
9393 fi
9394 rm -f conftest*
9395
9396 fi
9397
9398 if test $ac_cv_header_stdc = yes; then
9399   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9400   cat >conftest.$ac_ext <<_ACEOF
9401 #line $LINENO "configure"
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 #include <stdlib.h>
9408
9409 _ACEOF
9410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9411   $EGREP "free" >/dev/null 2>&1; then
9412   :
9413 else
9414   ac_cv_header_stdc=no
9415 fi
9416 rm -f conftest*
9417
9418 fi
9419
9420 if test $ac_cv_header_stdc = yes; then
9421   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9422   if test "$cross_compiling" = yes; then
9423   :
9424 else
9425   cat >conftest.$ac_ext <<_ACEOF
9426 #line $LINENO "configure"
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432 #include <ctype.h>
9433 #if ((' ' & 0x0FF) == 0x020)
9434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9436 #else
9437 # define ISLOWER(c) \
9438                    (('a' <= (c) && (c) <= 'i') \
9439                      || ('j' <= (c) && (c) <= 'r') \
9440                      || ('s' <= (c) && (c) <= 'z'))
9441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9442 #endif
9443
9444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9445 int
9446 main ()
9447 {
9448   int i;
9449   for (i = 0; i < 256; i++)
9450     if (XOR (islower (i), ISLOWER (i))
9451         || toupper (i) != TOUPPER (i))
9452       exit(2);
9453   exit (0);
9454 }
9455 _ACEOF
9456 rm -f conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458   (eval $ac_link) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463   (eval $ac_try) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; }; then
9467   :
9468 else
9469   echo "$as_me: program exited with status $ac_status" >&5
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 ( exit $ac_status )
9474 ac_cv_header_stdc=no
9475 fi
9476 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9477 fi
9478 fi
9479 fi
9480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9482 if test $ac_cv_header_stdc = yes; then
9483
9484 cat >>confdefs.h <<\_ACEOF
9485 #define STDC_HEADERS 1
9486 _ACEOF
9487
9488 fi
9489
9490 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9491 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9492 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   cat >conftest.$ac_ext <<_ACEOF
9496 #line $LINENO "configure"
9497 /* confdefs.h.  */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h.  */
9502 #include <sys/types.h>
9503 int
9504 main ()
9505 {
9506 return makedev(0, 0);
9507   ;
9508   return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513   (eval $ac_link) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } &&
9517          { ac_try='test -s conftest$ac_exeext'
9518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519   (eval $ac_try) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); }; }; then
9523   ac_cv_header_sys_types_h_makedev=yes
9524 else
9525   echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9527
9528 ac_cv_header_sys_types_h_makedev=no
9529 fi
9530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9531
9532 fi
9533 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9534 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9535
9536 if test $ac_cv_header_sys_types_h_makedev = no; then
9537 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9538   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9539 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9540 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 fi
9543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9544 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9545 else
9546   # Is the header compilable?
9547 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9548 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9550 #line $LINENO "configure"
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556 $ac_includes_default
9557 #include <sys/mkdev.h>
9558 _ACEOF
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561   (eval $ac_compile) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -s conftest.$ac_objext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   ac_header_compiler=yes
9572 else
9573   echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 ac_header_compiler=no
9577 fi
9578 rm -f conftest.$ac_objext conftest.$ac_ext
9579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9580 echo "${ECHO_T}$ac_header_compiler" >&6
9581
9582 # Is the header present?
9583 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9584 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9586 #line $LINENO "configure"
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592 #include <sys/mkdev.h>
9593 _ACEOF
9594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9596   ac_status=$?
9597   grep -v '^ *+' conftest.er1 >conftest.err
9598   rm -f conftest.er1
9599   cat conftest.err >&5
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); } >/dev/null; then
9602   if test -s conftest.err; then
9603     ac_cpp_err=$ac_c_preproc_warn_flag
9604   else
9605     ac_cpp_err=
9606   fi
9607 else
9608   ac_cpp_err=yes
9609 fi
9610 if test -z "$ac_cpp_err"; then
9611   ac_header_preproc=yes
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616   ac_header_preproc=no
9617 fi
9618 rm -f conftest.err conftest.$ac_ext
9619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9620 echo "${ECHO_T}$ac_header_preproc" >&6
9621
9622 # So?  What about this header?
9623 case $ac_header_compiler:$ac_header_preproc in
9624   yes:no )
9625     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9627     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9629     (
9630       cat <<\_ASBOX
9631 ## ------------------------------------ ##
9632 ## Report this to bug-autoconf@gnu.org. ##
9633 ## ------------------------------------ ##
9634 _ASBOX
9635     ) |
9636       sed "s/^/$as_me: WARNING:     /" >&2
9637     ;;
9638   no:yes )
9639     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9640 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9641     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9642 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9643     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9644 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9645     (
9646       cat <<\_ASBOX
9647 ## ------------------------------------ ##
9648 ## Report this to bug-autoconf@gnu.org. ##
9649 ## ------------------------------------ ##
9650 _ASBOX
9651     ) |
9652       sed "s/^/$as_me: WARNING:     /" >&2
9653     ;;
9654 esac
9655 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9656 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9657 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9661 fi
9662 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9663 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9664
9665 fi
9666 if test $ac_cv_header_sys_mkdev_h = yes; then
9667
9668 cat >>confdefs.h <<\_ACEOF
9669 #define MAJOR_IN_MKDEV 1
9670 _ACEOF
9671
9672 fi
9673
9674
9675
9676   if test $ac_cv_header_sys_mkdev_h = no; then
9677     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9678   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9679 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9680 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 fi
9683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9684 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9685 else
9686   # Is the header compilable?
9687 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9688 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9690 #line $LINENO "configure"
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 $ac_includes_default
9697 #include <sys/sysmacros.h>
9698 _ACEOF
9699 rm -f conftest.$ac_objext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9701   (eval $ac_compile) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } &&
9705          { ac_try='test -s conftest.$ac_objext'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; }; then
9711   ac_header_compiler=yes
9712 else
9713   echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716 ac_header_compiler=no
9717 fi
9718 rm -f conftest.$ac_objext conftest.$ac_ext
9719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9720 echo "${ECHO_T}$ac_header_compiler" >&6
9721
9722 # Is the header present?
9723 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9724 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 #include <sys/sysmacros.h>
9733 _ACEOF
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } >/dev/null; then
9742   if test -s conftest.err; then
9743     ac_cpp_err=$ac_c_preproc_warn_flag
9744   else
9745     ac_cpp_err=
9746   fi
9747 else
9748   ac_cpp_err=yes
9749 fi
9750 if test -z "$ac_cpp_err"; then
9751   ac_header_preproc=yes
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756   ac_header_preproc=no
9757 fi
9758 rm -f conftest.err conftest.$ac_ext
9759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9760 echo "${ECHO_T}$ac_header_preproc" >&6
9761
9762 # So?  What about this header?
9763 case $ac_header_compiler:$ac_header_preproc in
9764   yes:no )
9765     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9767     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9769     (
9770       cat <<\_ASBOX
9771 ## ------------------------------------ ##
9772 ## Report this to bug-autoconf@gnu.org. ##
9773 ## ------------------------------------ ##
9774 _ASBOX
9775     ) |
9776       sed "s/^/$as_me: WARNING:     /" >&2
9777     ;;
9778   no:yes )
9779     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9780 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9781     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9782 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9783     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9784 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9785     (
9786       cat <<\_ASBOX
9787 ## ------------------------------------ ##
9788 ## Report this to bug-autoconf@gnu.org. ##
9789 ## ------------------------------------ ##
9790 _ASBOX
9791     ) |
9792       sed "s/^/$as_me: WARNING:     /" >&2
9793     ;;
9794 esac
9795 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9796 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9797 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9801 fi
9802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9803 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9804
9805 fi
9806 if test $ac_cv_header_sys_sysmacros_h = yes; then
9807
9808 cat >>confdefs.h <<\_ACEOF
9809 #define MAJOR_IN_SYSMACROS 1
9810 _ACEOF
9811
9812 fi
9813
9814
9815   fi
9816 fi
9817
9818
9819
9820
9821
9822
9823 ac_header_dirent=no
9824 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9825   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9826 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9827 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   cat >conftest.$ac_ext <<_ACEOF
9832 #line $LINENO "configure"
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838 #include <sys/types.h>
9839 #include <$ac_hdr>
9840
9841 int
9842 main ()
9843 {
9844 if ((DIR *) 0)
9845 return 0;
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852   (eval $ac_compile) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -s conftest.$ac_objext'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; }; then
9862   eval "$as_ac_Header=yes"
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867 eval "$as_ac_Header=no"
9868 fi
9869 rm -f conftest.$ac_objext conftest.$ac_ext
9870 fi
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874   cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9876 _ACEOF
9877
9878 ac_header_dirent=$ac_hdr; break
9879 fi
9880
9881 done
9882 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9883 if test $ac_header_dirent = dirent.h; then
9884   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9885 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9886 if test "${ac_cv_search_opendir+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   ac_func_search_save_LIBS=$LIBS
9890 ac_cv_search_opendir=no
9891 cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898
9899 /* Override any gcc2 internal prototype to avoid an error.  */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 /* We use char because int might match the return type of a gcc2
9904    builtin and then its argument prototype would still apply.  */
9905 char opendir ();
9906 int
9907 main ()
9908 {
9909 opendir ();
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916   (eval $ac_link) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -s conftest$ac_exeext'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_search_opendir="none required"
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 fi
9932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9933 if test "$ac_cv_search_opendir" = no; then
9934   for ac_lib in dir; do
9935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9936     cat >conftest.$ac_ext <<_ACEOF
9937 #line $LINENO "configure"
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943
9944 /* Override any gcc2 internal prototype to avoid an error.  */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 /* We use char because int might match the return type of a gcc2
9949    builtin and then its argument prototype would still apply.  */
9950 char opendir ();
9951 int
9952 main ()
9953 {
9954 opendir ();
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961   (eval $ac_link) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_cv_search_opendir="-l$ac_lib"
9972 break
9973 else
9974   echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 fi
9978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9979   done
9980 fi
9981 LIBS=$ac_func_search_save_LIBS
9982 fi
9983 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9984 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9985 if test "$ac_cv_search_opendir" != no; then
9986   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9987
9988 fi
9989
9990 else
9991   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9992 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9993 if test "${ac_cv_search_opendir+set}" = set; then
9994   echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996   ac_func_search_save_LIBS=$LIBS
9997 ac_cv_search_opendir=no
9998 cat >conftest.$ac_ext <<_ACEOF
9999 #line $LINENO "configure"
10000 /* confdefs.h.  */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h.  */
10005
10006 /* Override any gcc2 internal prototype to avoid an error.  */
10007 #ifdef __cplusplus
10008 extern "C"
10009 #endif
10010 /* We use char because int might match the return type of a gcc2
10011    builtin and then its argument prototype would still apply.  */
10012 char opendir ();
10013 int
10014 main ()
10015 {
10016 opendir ();
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023   (eval $ac_link) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_cv_search_opendir="none required"
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 fi
10039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10040 if test "$ac_cv_search_opendir" = no; then
10041   for ac_lib in x; do
10042     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10043     cat >conftest.$ac_ext <<_ACEOF
10044 #line $LINENO "configure"
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050
10051 /* Override any gcc2 internal prototype to avoid an error.  */
10052 #ifdef __cplusplus
10053 extern "C"
10054 #endif
10055 /* We use char because int might match the return type of a gcc2
10056    builtin and then its argument prototype would still apply.  */
10057 char opendir ();
10058 int
10059 main ()
10060 {
10061 opendir ();
10062   ;
10063   return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068   (eval $ac_link) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } &&
10072          { ac_try='test -s conftest$ac_exeext'
10073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074   (eval $ac_try) 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   ac_cv_search_opendir="-l$ac_lib"
10079 break
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 fi
10085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10086   done
10087 fi
10088 LIBS=$ac_func_search_save_LIBS
10089 fi
10090 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10091 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10092 if test "$ac_cv_search_opendir" != no; then
10093   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10094
10095 fi
10096
10097 fi
10098
10099 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10100 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10101 if test "${ac_cv_header_stat_broken+set}" = set; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104   cat >conftest.$ac_ext <<_ACEOF
10105 #line $LINENO "configure"
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111 #include <sys/types.h>
10112 #include <sys/stat.h>
10113
10114 #if defined(S_ISBLK) && defined(S_IFDIR)
10115 # if S_ISBLK (S_IFDIR)
10116 You lose.
10117 # endif
10118 #endif
10119
10120 #if defined(S_ISBLK) && defined(S_IFCHR)
10121 # if S_ISBLK (S_IFCHR)
10122 You lose.
10123 # endif
10124 #endif
10125
10126 #if defined(S_ISLNK) && defined(S_IFREG)
10127 # if S_ISLNK (S_IFREG)
10128 You lose.
10129 # endif
10130 #endif
10131
10132 #if defined(S_ISSOCK) && defined(S_IFREG)
10133 # if S_ISSOCK (S_IFREG)
10134 You lose.
10135 # endif
10136 #endif
10137
10138 _ACEOF
10139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10140   $EGREP "You lose" >/dev/null 2>&1; then
10141   ac_cv_header_stat_broken=yes
10142 else
10143   ac_cv_header_stat_broken=no
10144 fi
10145 rm -f conftest*
10146
10147 fi
10148 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10149 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10150 if test $ac_cv_header_stat_broken = yes; then
10151
10152 cat >>confdefs.h <<\_ACEOF
10153 #define STAT_MACROS_BROKEN 1
10154 _ACEOF
10155
10156 fi
10157
10158 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10159 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10160 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170 #include <sys/types.h>
10171 #include <sys/wait.h>
10172 #ifndef WEXITSTATUS
10173 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10174 #endif
10175 #ifndef WIFEXITED
10176 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10177 #endif
10178
10179 int
10180 main ()
10181 {
10182   int s;
10183   wait (&s);
10184   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10185   ;
10186   return 0;
10187 }
10188 _ACEOF
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191   (eval $ac_compile) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -s conftest.$ac_objext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   ac_cv_header_sys_wait_h=yes
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_cv_header_sys_wait_h=no
10207 fi
10208 rm -f conftest.$ac_objext conftest.$ac_ext
10209 fi
10210 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10211 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10212 if test $ac_cv_header_sys_wait_h = yes; then
10213
10214 cat >>confdefs.h <<\_ACEOF
10215 #define HAVE_SYS_WAIT_H 1
10216 _ACEOF
10217
10218 fi
10219
10220 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10221 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10222 if test "${ac_cv_header_time+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   cat >conftest.$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 #include <sys/types.h>
10233 #include <sys/time.h>
10234 #include <time.h>
10235
10236 int
10237 main ()
10238 {
10239 if ((struct tm *) 0)
10240 return 0;
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247   (eval $ac_compile) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } &&
10251          { ac_try='test -s conftest.$ac_objext'
10252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253   (eval $ac_try) 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; }; then
10257   ac_cv_header_time=yes
10258 else
10259   echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_cv_header_time=no
10263 fi
10264 rm -f conftest.$ac_objext conftest.$ac_ext
10265 fi
10266 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10267 echo "${ECHO_T}$ac_cv_header_time" >&6
10268 if test $ac_cv_header_time = yes; then
10269
10270 cat >>confdefs.h <<\_ACEOF
10271 #define TIME_WITH_SYS_TIME 1
10272 _ACEOF
10273
10274 fi
10275
10276
10277 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10278 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10279 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   cat >conftest.$ac_ext <<_ACEOF
10283 #line $LINENO "configure"
10284 /* confdefs.h.  */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h.  */
10289 $ac_includes_default
10290 int
10291 main ()
10292 {
10293 static struct stat ac_aggr;
10294 if (ac_aggr.st_blksize)
10295 return 0;
10296   ;
10297   return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302   (eval $ac_compile) 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } &&
10306          { ac_try='test -s conftest.$ac_objext'
10307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308   (eval $ac_try) 2>&5
10309   ac_status=$?
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); }; }; then
10312   ac_cv_member_struct_stat_st_blksize=yes
10313 else
10314   echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 $ac_includes_default
10325 int
10326 main ()
10327 {
10328 static struct stat ac_aggr;
10329 if (sizeof ac_aggr.st_blksize)
10330 return 0;
10331   ;
10332   return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337   (eval $ac_compile) 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); } &&
10341          { ac_try='test -s conftest.$ac_objext'
10342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343   (eval $ac_try) 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; }; then
10347   ac_cv_member_struct_stat_st_blksize=yes
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 ac_cv_member_struct_stat_st_blksize=no
10353 fi
10354 rm -f conftest.$ac_objext conftest.$ac_ext
10355 fi
10356 rm -f conftest.$ac_objext conftest.$ac_ext
10357 fi
10358 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10359 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10360 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10361
10362 cat >>confdefs.h <<_ACEOF
10363 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10364 _ACEOF
10365
10366
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_ST_BLKSIZE 1
10369 _ACEOF
10370
10371 fi
10372
10373
10374 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10375 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10376 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   cat >conftest.$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386 $ac_includes_default
10387 int
10388 main ()
10389 {
10390 static struct stat ac_aggr;
10391 if (ac_aggr.st_blocks)
10392 return 0;
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399   (eval $ac_compile) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -s conftest.$ac_objext'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_member_struct_stat_st_blocks=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10416 /* confdefs.h.  */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h.  */
10421 $ac_includes_default
10422 int
10423 main ()
10424 {
10425 static struct stat ac_aggr;
10426 if (sizeof ac_aggr.st_blocks)
10427 return 0;
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434   (eval $ac_compile) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } &&
10438          { ac_try='test -s conftest.$ac_objext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   ac_cv_member_struct_stat_st_blocks=yes
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 ac_cv_member_struct_stat_st_blocks=no
10450 fi
10451 rm -f conftest.$ac_objext conftest.$ac_ext
10452 fi
10453 rm -f conftest.$ac_objext conftest.$ac_ext
10454 fi
10455 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10456 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10457 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10458
10459 cat >>confdefs.h <<_ACEOF
10460 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10461 _ACEOF
10462
10463
10464 cat >>confdefs.h <<\_ACEOF
10465 #define HAVE_ST_BLOCKS 1
10466 _ACEOF
10467
10468 else
10469   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10470 fi
10471
10472
10473 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10474 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10475 if test "${ac_cv_struct_tm+set}" = set; then
10476   echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478   cat >conftest.$ac_ext <<_ACEOF
10479 #line $LINENO "configure"
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485 #include <sys/types.h>
10486 #include <time.h>
10487
10488 int
10489 main ()
10490 {
10491 struct tm *tp; tp->tm_sec;
10492   ;
10493   return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498   (eval $ac_compile) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); } &&
10502          { ac_try='test -s conftest.$ac_objext'
10503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504   (eval $ac_try) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; }; then
10508   ac_cv_struct_tm=time.h
10509 else
10510   echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513 ac_cv_struct_tm=sys/time.h
10514 fi
10515 rm -f conftest.$ac_objext conftest.$ac_ext
10516 fi
10517 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10518 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10519 if test $ac_cv_struct_tm = sys/time.h; then
10520
10521 cat >>confdefs.h <<\_ACEOF
10522 #define TM_IN_SYS_TIME 1
10523 _ACEOF
10524
10525 fi
10526
10527 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10528 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10529 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539 #include <sys/types.h>
10540 #include <$ac_cv_struct_tm>
10541
10542
10543 int
10544 main ()
10545 {
10546 static struct tm ac_aggr;
10547 if (ac_aggr.tm_zone)
10548 return 0;
10549   ;
10550   return 0;
10551 }
10552 _ACEOF
10553 rm -f conftest.$ac_objext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555   (eval $ac_compile) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } &&
10559          { ac_try='test -s conftest.$ac_objext'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565   ac_cv_member_struct_tm_tm_zone=yes
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 cat >conftest.$ac_ext <<_ACEOF
10571 #line $LINENO "configure"
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 #include <sys/types.h>
10578 #include <$ac_cv_struct_tm>
10579
10580
10581 int
10582 main ()
10583 {
10584 static struct tm ac_aggr;
10585 if (sizeof ac_aggr.tm_zone)
10586 return 0;
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 rm -f conftest.$ac_objext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593   (eval $ac_compile) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } &&
10597          { ac_try='test -s conftest.$ac_objext'
10598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599   (eval $ac_try) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); }; }; then
10603   ac_cv_member_struct_tm_tm_zone=yes
10604 else
10605   echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_cv_member_struct_tm_tm_zone=no
10609 fi
10610 rm -f conftest.$ac_objext conftest.$ac_ext
10611 fi
10612 rm -f conftest.$ac_objext conftest.$ac_ext
10613 fi
10614 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10615 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10616 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10617
10618 cat >>confdefs.h <<_ACEOF
10619 #define HAVE_STRUCT_TM_TM_ZONE 1
10620 _ACEOF
10621
10622
10623 fi
10624
10625 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10626
10627 cat >>confdefs.h <<\_ACEOF
10628 #define HAVE_TM_ZONE 1
10629 _ACEOF
10630
10631 else
10632   echo "$as_me:$LINENO: checking for tzname" >&5
10633 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10634 if test "${ac_cv_var_tzname+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 #line $LINENO "configure"
10639 /* confdefs.h.  */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h.  */
10644 #include <time.h>
10645 #ifndef tzname /* For SGI.  */
10646 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10647 #endif
10648
10649 int
10650 main ()
10651 {
10652 atoi(*tzname);
10653   ;
10654   return 0;
10655 }
10656 _ACEOF
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659   (eval $ac_link) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -s conftest$ac_exeext'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; }; then
10669   ac_cv_var_tzname=yes
10670 else
10671   echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674 ac_cv_var_tzname=no
10675 fi
10676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677 fi
10678 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10679 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10680   if test $ac_cv_var_tzname = yes; then
10681
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_TZNAME 1
10684 _ACEOF
10685
10686   fi
10687 fi
10688
10689
10690 echo "$as_me:$LINENO: checking for utime.h" >&5
10691 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10692 if test "${ba_cv_header_utime_h+set}" = set; then
10693   echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695   cat >conftest.$ac_ext <<_ACEOF
10696 #line $LINENO "configure"
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702
10703 #include <sys/types.h>
10704 #include <utime.h>
10705 int
10706 main ()
10707 {
10708 struct utimbuf foo
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715   (eval $ac_compile) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } &&
10719          { ac_try='test -s conftest.$ac_objext'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ba_cv_header_utime_h=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 ba_cv_header_utime_h=no
10731 fi
10732 rm -f conftest.$ac_objext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10735 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10736 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_UTIME_H 1
10738 _ACEOF
10739
10740
10741 echo "$as_me:$LINENO: checking for socklen_t" >&5
10742 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10743 if test "${ba_cv_header_socklen_t+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   cat >conftest.$ac_ext <<_ACEOF
10747 #line $LINENO "configure"
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753
10754 #include <sys/types.h>
10755 #include <sys/socket.h>
10756 int
10757 main ()
10758 {
10759 socklen_t x
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766   (eval $ac_compile) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } &&
10770          { ac_try='test -s conftest.$ac_objext'
10771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772   (eval $ac_try) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; }; then
10776   ba_cv_header_socklen_t=yes
10777 else
10778   echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 ba_cv_header_socklen_t=no
10782 fi
10783 rm -f conftest.$ac_objext conftest.$ac_ext
10784 fi
10785 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10786 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10787 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10788 #define HAVE_SOCKLEN_T 1
10789 _ACEOF
10790
10791
10792 echo "$as_me:$LINENO: checking for bigendian" >&5
10793 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10794 if test "${ba_cv_bigendian+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   if test "$cross_compiling" = yes; then
10798   ba_cv_bigendian=no
10799 else
10800   cat >conftest.$ac_ext <<_ACEOF
10801 #line $LINENO "configure"
10802 /* confdefs.h.  */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h.  */
10807 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10808 _ACEOF
10809 rm -f conftest$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811   (eval $ac_link) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816   (eval $ac_try) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; }; then
10820   ba_cv_bigendian=yes
10821 else
10822   echo "$as_me: program exited with status $ac_status" >&5
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10825
10826 ( exit $ac_status )
10827 ba_cv_bigendian=no
10828 fi
10829 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10830 fi
10831 fi
10832 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10833 echo "${ECHO_T}$ba_cv_bigendian" >&6
10834 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_BIGENDIAN 1
10836 _ACEOF
10837
10838
10839
10840 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10842 if test "${ac_cv_c_const+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   cat >conftest.$ac_ext <<_ACEOF
10846 #line $LINENO "configure"
10847 /* confdefs.h.  */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h.  */
10852
10853 int
10854 main ()
10855 {
10856 /* FIXME: Include the comments suggested by Paul. */
10857 #ifndef __cplusplus
10858   /* Ultrix mips cc rejects this.  */
10859   typedef int charset[2];
10860   const charset x;
10861   /* SunOS 4.1.1 cc rejects this.  */
10862   char const *const *ccp;
10863   char **p;
10864   /* NEC SVR4.0.2 mips cc rejects this.  */
10865   struct point {int x, y;};
10866   static struct point const zero = {0,0};
10867   /* AIX XL C 1.02.0.0 rejects this.
10868      It does not let you subtract one const X* pointer from another in
10869      an arm of an if-expression whose if-part is not a constant
10870      expression */
10871   const char *g = "string";
10872   ccp = &g + (g ? g-g : 0);
10873   /* HPUX 7.0 cc rejects these. */
10874   ++ccp;
10875   p = (char**) ccp;
10876   ccp = (char const *const *) p;
10877   { /* SCO 3.2v4 cc rejects this.  */
10878     char *t;
10879     char const *s = 0 ? (char *) 0 : (char const *) 0;
10880
10881     *t++ = 0;
10882   }
10883   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10884     int x[] = {25, 17};
10885     const int *foo = &x[0];
10886     ++foo;
10887   }
10888   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10889     typedef const int *iptr;
10890     iptr p = 0;
10891     ++p;
10892   }
10893   { /* AIX XL C 1.02.0.0 rejects this saying
10894        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10895     struct s { int j; const int *ap[3]; };
10896     struct s *b; b->j = 5;
10897   }
10898   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10899     const int foo = 10;
10900   }
10901 #endif
10902
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909   (eval $ac_compile) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } &&
10913          { ac_try='test -s conftest.$ac_objext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_c_const=yes
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_c_const=no
10925 fi
10926 rm -f conftest.$ac_objext conftest.$ac_ext
10927 fi
10928 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10929 echo "${ECHO_T}$ac_cv_c_const" >&6
10930 if test $ac_cv_c_const = no; then
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define const
10934 _ACEOF
10935
10936 fi
10937
10938
10939
10940 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10941 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10942 fstype=no
10943 # The order of these tests is important.
10944 cat >conftest.$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10946 /* confdefs.h.  */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h.  */
10951 #include <sys/statvfs.h>
10952 #include <sys/fstyp.h>
10953 _ACEOF
10954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10956   ac_status=$?
10957   grep -v '^ *+' conftest.er1 >conftest.err
10958   rm -f conftest.er1
10959   cat conftest.err >&5
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } >/dev/null; then
10962   if test -s conftest.err; then
10963     ac_cpp_err=$ac_c_preproc_warn_flag
10964   else
10965     ac_cpp_err=
10966   fi
10967 else
10968   ac_cpp_err=yes
10969 fi
10970 if test -z "$ac_cpp_err"; then
10971   cat >>confdefs.h <<\_ACEOF
10972 #define FSTYPE_STATVFS 1
10973 _ACEOF
10974  fstype=SVR4
10975 else
10976   echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979
10980 fi
10981 rm -f conftest.err conftest.$ac_ext
10982 if test $fstype = no; then
10983 cat >conftest.$ac_ext <<_ACEOF
10984 #line $LINENO "configure"
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990 #include <sys/statfs.h>
10991 #include <sys/fstyp.h>
10992 _ACEOF
10993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } >/dev/null; then
11001   if test -s conftest.err; then
11002     ac_cpp_err=$ac_c_preproc_warn_flag
11003   else
11004     ac_cpp_err=
11005   fi
11006 else
11007   ac_cpp_err=yes
11008 fi
11009 if test -z "$ac_cpp_err"; then
11010   cat >>confdefs.h <<\_ACEOF
11011 #define FSTYPE_USG_STATFS 1
11012 _ACEOF
11013  fstype=SVR3
11014 else
11015   echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018
11019 fi
11020 rm -f conftest.err conftest.$ac_ext
11021 fi
11022 if test $fstype = no; then
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 /* confdefs.h.  */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h.  */
11030 #include <sys/statfs.h>
11031 #include <sys/vmount.h>
11032 _ACEOF
11033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11035   ac_status=$?
11036   grep -v '^ *+' conftest.er1 >conftest.err
11037   rm -f conftest.er1
11038   cat conftest.err >&5
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } >/dev/null; then
11041   if test -s conftest.err; then
11042     ac_cpp_err=$ac_c_preproc_warn_flag
11043   else
11044     ac_cpp_err=
11045   fi
11046 else
11047   ac_cpp_err=yes
11048 fi
11049 if test -z "$ac_cpp_err"; then
11050   cat >>confdefs.h <<\_ACEOF
11051 #define FSTYPE_AIX_STATFS 1
11052 _ACEOF
11053  fstype=AIX
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058
11059 fi
11060 rm -f conftest.err conftest.$ac_ext
11061 fi
11062 if test $fstype = no; then
11063 cat >conftest.$ac_ext <<_ACEOF
11064 #line $LINENO "configure"
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070 #include <mntent.h>
11071 _ACEOF
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } >/dev/null; then
11080   if test -s conftest.err; then
11081     ac_cpp_err=$ac_c_preproc_warn_flag
11082   else
11083     ac_cpp_err=
11084   fi
11085 else
11086   ac_cpp_err=yes
11087 fi
11088 if test -z "$ac_cpp_err"; then
11089   cat >>confdefs.h <<\_ACEOF
11090 #define FSTYPE_MNTENT 1
11091 _ACEOF
11092  fstype=4.3BSD
11093 else
11094   echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097
11098 fi
11099 rm -f conftest.err conftest.$ac_ext
11100 fi
11101 if test $fstype = no; then
11102 cat >conftest.$ac_ext <<_ACEOF
11103 #line $LINENO "configure"
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 #include <sys/mount.h>
11110
11111 _ACEOF
11112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11113   $EGREP "f_type;" >/dev/null 2>&1; then
11114   cat >>confdefs.h <<\_ACEOF
11115 #define FSTYPE_STATFS 1
11116 _ACEOF
11117  fstype=4.4BSD/OSF1
11118 fi
11119 rm -f conftest*
11120
11121 fi
11122 if test $fstype = no; then
11123 cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11125 /* confdefs.h.  */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h.  */
11130 #include <sys/mount.h>
11131 #include <sys/fs_types.h>
11132 _ACEOF
11133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11135   ac_status=$?
11136   grep -v '^ *+' conftest.er1 >conftest.err
11137   rm -f conftest.er1
11138   cat conftest.err >&5
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); } >/dev/null; then
11141   if test -s conftest.err; then
11142     ac_cpp_err=$ac_c_preproc_warn_flag
11143   else
11144     ac_cpp_err=
11145   fi
11146 else
11147   ac_cpp_err=yes
11148 fi
11149 if test -z "$ac_cpp_err"; then
11150   cat >>confdefs.h <<\_ACEOF
11151 #define FSTYPE_GETMNT 1
11152 _ACEOF
11153  fstype=Ultrix
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158
11159 fi
11160 rm -f conftest.err conftest.$ac_ext
11161 fi
11162 echo "$as_me:$LINENO: result: $fstype" >&5
11163 echo "${ECHO_T}$fstype" >&6
11164
11165 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11166 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11167 if test "${ac_cv_type_signal+set}" = set; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170   cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #include <sys/types.h>
11178 #include <signal.h>
11179 #ifdef signal
11180 # undef signal
11181 #endif
11182 #ifdef __cplusplus
11183 extern "C" void (*signal (int, void (*)(int)))(int);
11184 #else
11185 void (*signal ()) ();
11186 #endif
11187
11188 int
11189 main ()
11190 {
11191 int i;
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 rm -f conftest.$ac_objext
11197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198   (eval $ac_compile) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); } &&
11202          { ac_try='test -s conftest.$ac_objext'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; }; then
11208   ac_cv_type_signal=void
11209 else
11210   echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 ac_cv_type_signal=int
11214 fi
11215 rm -f conftest.$ac_objext conftest.$ac_ext
11216 fi
11217 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11218 echo "${ECHO_T}$ac_cv_type_signal" >&6
11219
11220 cat >>confdefs.h <<_ACEOF
11221 #define RETSIGTYPE $ac_cv_type_signal
11222 _ACEOF
11223
11224
11225
11226 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11227 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11228 if test "${bash_cv_signal_vintage+set}" = set; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231
11232   cat >conftest.$ac_ext <<_ACEOF
11233 #line $LINENO "configure"
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 #include <signal.h>
11240 int
11241 main ()
11242 {
11243
11244     sigset_t ss;
11245     struct sigaction sa;
11246     sigemptyset(&ss); sigsuspend(&ss);
11247     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11248     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11249
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256   (eval $ac_link) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); } &&
11260          { ac_try='test -s conftest$ac_exeext'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; }; then
11266   bash_cv_signal_vintage=posix
11267 else
11268   echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271
11272     cat >conftest.$ac_ext <<_ACEOF
11273 #line $LINENO "configure"
11274 /* confdefs.h.  */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h.  */
11279 #include <signal.h>
11280 int
11281 main ()
11282 {
11283
11284         int mask = sigmask(SIGINT);
11285         sigsetmask(mask); sigblock(mask); sigpause(mask);
11286
11287   ;
11288   return 0;
11289 }
11290 _ACEOF
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293   (eval $ac_link) 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); } &&
11297          { ac_try='test -s conftest$ac_exeext'
11298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299   (eval $ac_try) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }; }; then
11303   bash_cv_signal_vintage=4.2bsd
11304 else
11305   echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11307
11308
11309       cat >conftest.$ac_ext <<_ACEOF
11310 #line $LINENO "configure"
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316
11317         #include <signal.h>
11318         RETSIGTYPE foo() { }
11319 int
11320 main ()
11321 {
11322
11323                 int mask = sigmask(SIGINT);
11324                 sigset(SIGINT, foo); sigrelse(SIGINT);
11325                 sighold(SIGINT); sigpause(SIGINT);
11326
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333   (eval $ac_link) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } &&
11337          { ac_try='test -s conftest$ac_exeext'
11338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339   (eval $ac_try) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; }; then
11343   bash_cv_signal_vintage=svr3
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 bash_cv_signal_vintage=v7
11349
11350 fi
11351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11352
11353 fi
11354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11355
11356 fi
11357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11358
11359 fi
11360
11361 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11362 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11363 if test "$bash_cv_signal_vintage" = posix; then
11364 cat >>confdefs.h <<\_ACEOF
11365 #define HAVE_POSIX_SIGNALS 1
11366 _ACEOF
11367
11368 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_BSD_SIGNALS 1
11371 _ACEOF
11372
11373 elif test "$bash_cv_signal_vintage" = svr3; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_USG_SIGHOLD 1
11376 _ACEOF
11377
11378 fi
11379
11380 echo "$as_me:$LINENO: checking for mode_t" >&5
11381 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11382 if test "${ac_cv_type_mode_t+set}" = set; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   cat >conftest.$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392 $ac_includes_default
11393 int
11394 main ()
11395 {
11396 if ((mode_t *) 0)
11397   return 0;
11398 if (sizeof (mode_t))
11399   return 0;
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11406   (eval $ac_compile) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -s conftest.$ac_objext'
11411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412   (eval $ac_try) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); }; }; then
11416   ac_cv_type_mode_t=yes
11417 else
11418   echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_cv_type_mode_t=no
11422 fi
11423 rm -f conftest.$ac_objext conftest.$ac_ext
11424 fi
11425 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11426 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11427 if test $ac_cv_type_mode_t = yes; then
11428   :
11429 else
11430
11431 cat >>confdefs.h <<_ACEOF
11432 #define mode_t int
11433 _ACEOF
11434
11435 fi
11436
11437 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11438 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11439 if test "${ac_cv_type_uid_t+set}" = set; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442   cat >conftest.$ac_ext <<_ACEOF
11443 #line $LINENO "configure"
11444 /* confdefs.h.  */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h.  */
11449 #include <sys/types.h>
11450
11451 _ACEOF
11452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11453   $EGREP "uid_t" >/dev/null 2>&1; then
11454   ac_cv_type_uid_t=yes
11455 else
11456   ac_cv_type_uid_t=no
11457 fi
11458 rm -f conftest*
11459
11460 fi
11461 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11463 if test $ac_cv_type_uid_t = no; then
11464
11465 cat >>confdefs.h <<\_ACEOF
11466 #define uid_t int
11467 _ACEOF
11468
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define gid_t int
11472 _ACEOF
11473
11474 fi
11475
11476 echo "$as_me:$LINENO: checking for size_t" >&5
11477 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11478 if test "${ac_cv_type_size_t+set}" = set; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 $ac_includes_default
11489 int
11490 main ()
11491 {
11492 if ((size_t *) 0)
11493   return 0;
11494 if (sizeof (size_t))
11495   return 0;
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502   (eval $ac_compile) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -s conftest.$ac_objext'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   ac_cv_type_size_t=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_cv_type_size_t=no
11518 fi
11519 rm -f conftest.$ac_objext conftest.$ac_ext
11520 fi
11521 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11522 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11523 if test $ac_cv_type_size_t = yes; then
11524   :
11525 else
11526
11527 cat >>confdefs.h <<_ACEOF
11528 #define size_t unsigned
11529 _ACEOF
11530
11531 fi
11532
11533 echo "$as_me:$LINENO: checking for pid_t" >&5
11534 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11535 if test "${ac_cv_type_pid_t+set}" = set; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 $ac_includes_default
11546 int
11547 main ()
11548 {
11549 if ((pid_t *) 0)
11550   return 0;
11551 if (sizeof (pid_t))
11552   return 0;
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559   (eval $ac_compile) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -s conftest.$ac_objext'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; }; then
11569   ac_cv_type_pid_t=yes
11570 else
11571   echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11573
11574 ac_cv_type_pid_t=no
11575 fi
11576 rm -f conftest.$ac_objext conftest.$ac_ext
11577 fi
11578 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11579 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11580 if test $ac_cv_type_pid_t = yes; then
11581   :
11582 else
11583
11584 cat >>confdefs.h <<_ACEOF
11585 #define pid_t int
11586 _ACEOF
11587
11588 fi
11589
11590 echo "$as_me:$LINENO: checking for off_t" >&5
11591 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11592 if test "${ac_cv_type_off_t+set}" = set; then
11593   echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595   cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 /* confdefs.h.  */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h.  */
11602 $ac_includes_default
11603 int
11604 main ()
11605 {
11606 if ((off_t *) 0)
11607   return 0;
11608 if (sizeof (off_t))
11609   return 0;
11610   ;
11611   return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616   (eval $ac_compile) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); } &&
11620          { ac_try='test -s conftest.$ac_objext'
11621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622   (eval $ac_try) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   ac_cv_type_off_t=yes
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_cv_type_off_t=no
11632 fi
11633 rm -f conftest.$ac_objext conftest.$ac_ext
11634 fi
11635 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11636 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11637 if test $ac_cv_type_off_t = yes; then
11638   :
11639 else
11640
11641 cat >>confdefs.h <<_ACEOF
11642 #define off_t long
11643 _ACEOF
11644
11645 fi
11646
11647 echo "$as_me:$LINENO: checking for ino_t" >&5
11648 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11649 if test "${ac_cv_type_ino_t+set}" = set; then
11650   echo $ECHO_N "(cached) $ECHO_C" >&6
11651 else
11652   cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 $ac_includes_default
11660 int
11661 main ()
11662 {
11663 if ((ino_t *) 0)
11664   return 0;
11665 if (sizeof (ino_t))
11666   return 0;
11667   ;
11668   return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11673   (eval $ac_compile) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -s conftest.$ac_objext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   ac_cv_type_ino_t=yes
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688 ac_cv_type_ino_t=no
11689 fi
11690 rm -f conftest.$ac_objext conftest.$ac_ext
11691 fi
11692 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11693 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11694 if test $ac_cv_type_ino_t = yes; then
11695   :
11696 else
11697
11698 cat >>confdefs.h <<_ACEOF
11699 #define ino_t unsigned long
11700 _ACEOF
11701
11702 fi
11703
11704 echo "$as_me:$LINENO: checking for dev_t" >&5
11705 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11706 if test "${ac_cv_type_dev_t+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   cat >conftest.$ac_ext <<_ACEOF
11710 #line $LINENO "configure"
11711 /* confdefs.h.  */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h.  */
11716 $ac_includes_default
11717 int
11718 main ()
11719 {
11720 if ((dev_t *) 0)
11721   return 0;
11722 if (sizeof (dev_t))
11723   return 0;
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730   (eval $ac_compile) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } &&
11734          { ac_try='test -s conftest.$ac_objext'
11735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736   (eval $ac_try) 2>&5
11737   ac_status=$?
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); }; }; then
11740   ac_cv_type_dev_t=yes
11741 else
11742   echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745 ac_cv_type_dev_t=no
11746 fi
11747 rm -f conftest.$ac_objext conftest.$ac_ext
11748 fi
11749 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11750 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11751 if test $ac_cv_type_dev_t = yes; then
11752   :
11753 else
11754
11755 cat >>confdefs.h <<_ACEOF
11756 #define dev_t unsigned long
11757 _ACEOF
11758
11759 fi
11760
11761 echo "$as_me:$LINENO: checking for daddr_t" >&5
11762 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11763 if test "${ac_cv_type_daddr_t+set}" = set; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773 $ac_includes_default
11774 int
11775 main ()
11776 {
11777 if ((daddr_t *) 0)
11778   return 0;
11779 if (sizeof (daddr_t))
11780   return 0;
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787   (eval $ac_compile) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } &&
11791          { ac_try='test -s conftest.$ac_objext'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   ac_cv_type_daddr_t=yes
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 ac_cv_type_daddr_t=no
11803 fi
11804 rm -f conftest.$ac_objext conftest.$ac_ext
11805 fi
11806 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11807 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11808 if test $ac_cv_type_daddr_t = yes; then
11809   :
11810 else
11811
11812 cat >>confdefs.h <<_ACEOF
11813 #define daddr_t long
11814 _ACEOF
11815
11816 fi
11817
11818 echo "$as_me:$LINENO: checking for major_t" >&5
11819 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11820 if test "${ac_cv_type_major_t+set}" = set; then
11821   echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823   cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 $ac_includes_default
11831 int
11832 main ()
11833 {
11834 if ((major_t *) 0)
11835   return 0;
11836 if (sizeof (major_t))
11837   return 0;
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844   (eval $ac_compile) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } &&
11848          { ac_try='test -s conftest.$ac_objext'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   ac_cv_type_major_t=yes
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_cv_type_major_t=no
11860 fi
11861 rm -f conftest.$ac_objext conftest.$ac_ext
11862 fi
11863 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11864 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11865 if test $ac_cv_type_major_t = yes; then
11866   :
11867 else
11868
11869 cat >>confdefs.h <<_ACEOF
11870 #define major_t int
11871 _ACEOF
11872
11873 fi
11874
11875 echo "$as_me:$LINENO: checking for minor_t" >&5
11876 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11877 if test "${ac_cv_type_minor_t+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   cat >conftest.$ac_ext <<_ACEOF
11881 #line $LINENO "configure"
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887 $ac_includes_default
11888 int
11889 main ()
11890 {
11891 if ((minor_t *) 0)
11892   return 0;
11893 if (sizeof (minor_t))
11894   return 0;
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901   (eval $ac_compile) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -s conftest.$ac_objext'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   ac_cv_type_minor_t=yes
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_cv_type_minor_t=no
11917 fi
11918 rm -f conftest.$ac_objext conftest.$ac_ext
11919 fi
11920 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11921 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11922 if test $ac_cv_type_minor_t = yes; then
11923   :
11924 else
11925
11926 cat >>confdefs.h <<_ACEOF
11927 #define minor_t int
11928 _ACEOF
11929
11930 fi
11931
11932 echo "$as_me:$LINENO: checking for ssize_t" >&5
11933 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11934 if test "${ac_cv_type_ssize_t+set}" = set; then
11935   echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937   cat >conftest.$ac_ext <<_ACEOF
11938 #line $LINENO "configure"
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944 $ac_includes_default
11945 int
11946 main ()
11947 {
11948 if ((ssize_t *) 0)
11949   return 0;
11950 if (sizeof (ssize_t))
11951   return 0;
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958   (eval $ac_compile) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -s conftest.$ac_objext'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   ac_cv_type_ssize_t=yes
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_cv_type_ssize_t=no
11974 fi
11975 rm -f conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11978 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11979 if test $ac_cv_type_ssize_t = yes; then
11980   :
11981 else
11982
11983 cat >>confdefs.h <<_ACEOF
11984 #define ssize_t int
11985 _ACEOF
11986
11987 fi
11988
11989 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11990 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11991 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994   cat >conftest.$ac_ext <<_ACEOF
11995 #line $LINENO "configure"
11996 /* confdefs.h.  */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h.  */
12001 $ac_includes_default
12002 int
12003 main ()
12004 {
12005 static struct stat ac_aggr;
12006 if (ac_aggr.st_blocks)
12007 return 0;
12008   ;
12009   return 0;
12010 }
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014   (eval $ac_compile) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); } &&
12018          { ac_try='test -s conftest.$ac_objext'
12019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020   (eval $ac_try) 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; }; then
12024   ac_cv_member_struct_stat_st_blocks=yes
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 cat >conftest.$ac_ext <<_ACEOF
12030 #line $LINENO "configure"
12031 /* confdefs.h.  */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h.  */
12036 $ac_includes_default
12037 int
12038 main ()
12039 {
12040 static struct stat ac_aggr;
12041 if (sizeof ac_aggr.st_blocks)
12042 return 0;
12043   ;
12044   return 0;
12045 }
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049   (eval $ac_compile) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); } &&
12053          { ac_try='test -s conftest.$ac_objext'
12054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055   (eval $ac_try) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; }; then
12059   ac_cv_member_struct_stat_st_blocks=yes
12060 else
12061   echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 ac_cv_member_struct_stat_st_blocks=no
12065 fi
12066 rm -f conftest.$ac_objext conftest.$ac_ext
12067 fi
12068 rm -f conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12072 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12073
12074 cat >>confdefs.h <<_ACEOF
12075 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12076 _ACEOF
12077
12078
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_ST_BLOCKS 1
12081 _ACEOF
12082
12083 else
12084   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12085 fi
12086
12087
12088
12089 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12090 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12091 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   cat >conftest.$ac_ext <<_ACEOF
12095 #line $LINENO "configure"
12096 /* confdefs.h.  */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h.  */
12101 $ac_includes_default
12102 int
12103 main ()
12104 {
12105 static struct stat ac_aggr;
12106 if (ac_aggr.st_rdev)
12107 return 0;
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114   (eval $ac_compile) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -s conftest.$ac_objext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   ac_cv_member_struct_stat_st_rdev=yes
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 cat >conftest.$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136 $ac_includes_default
12137 int
12138 main ()
12139 {
12140 static struct stat ac_aggr;
12141 if (sizeof ac_aggr.st_rdev)
12142 return 0;
12143   ;
12144   return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149   (eval $ac_compile) 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -s conftest.$ac_objext'
12154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155   (eval $ac_try) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; }; then
12159   ac_cv_member_struct_stat_st_rdev=yes
12160 else
12161   echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164 ac_cv_member_struct_stat_st_rdev=no
12165 fi
12166 rm -f conftest.$ac_objext conftest.$ac_ext
12167 fi
12168 rm -f conftest.$ac_objext conftest.$ac_ext
12169 fi
12170 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12171 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12172 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12173
12174 cat >>confdefs.h <<_ACEOF
12175 #define HAVE_STRUCT_STAT_ST_RDEV 1
12176 _ACEOF
12177
12178
12179 cat >>confdefs.h <<\_ACEOF
12180 #define HAVE_ST_RDEV 1
12181 _ACEOF
12182
12183 fi
12184
12185
12186 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12187 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12188 if test "${ac_cv_struct_tm+set}" = set; then
12189   echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191   cat >conftest.$ac_ext <<_ACEOF
12192 #line $LINENO "configure"
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198 #include <sys/types.h>
12199 #include <time.h>
12200
12201 int
12202 main ()
12203 {
12204 struct tm *tp; tp->tm_sec;
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12211   (eval $ac_compile) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } &&
12215          { ac_try='test -s conftest.$ac_objext'
12216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217   (eval $ac_try) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; }; then
12221   ac_cv_struct_tm=time.h
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_cv_struct_tm=sys/time.h
12227 fi
12228 rm -f conftest.$ac_objext conftest.$ac_ext
12229 fi
12230 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12231 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12232 if test $ac_cv_struct_tm = sys/time.h; then
12233
12234 cat >>confdefs.h <<\_ACEOF
12235 #define TM_IN_SYS_TIME 1
12236 _ACEOF
12237
12238 fi
12239
12240 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12241 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12242 if test "${ac_cv_c_const+set}" = set; then
12243   echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245   cat >conftest.$ac_ext <<_ACEOF
12246 #line $LINENO "configure"
12247 /* confdefs.h.  */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h.  */
12252
12253 int
12254 main ()
12255 {
12256 /* FIXME: Include the comments suggested by Paul. */
12257 #ifndef __cplusplus
12258   /* Ultrix mips cc rejects this.  */
12259   typedef int charset[2];
12260   const charset x;
12261   /* SunOS 4.1.1 cc rejects this.  */
12262   char const *const *ccp;
12263   char **p;
12264   /* NEC SVR4.0.2 mips cc rejects this.  */
12265   struct point {int x, y;};
12266   static struct point const zero = {0,0};
12267   /* AIX XL C 1.02.0.0 rejects this.
12268      It does not let you subtract one const X* pointer from another in
12269      an arm of an if-expression whose if-part is not a constant
12270      expression */
12271   const char *g = "string";
12272   ccp = &g + (g ? g-g : 0);
12273   /* HPUX 7.0 cc rejects these. */
12274   ++ccp;
12275   p = (char**) ccp;
12276   ccp = (char const *const *) p;
12277   { /* SCO 3.2v4 cc rejects this.  */
12278     char *t;
12279     char const *s = 0 ? (char *) 0 : (char const *) 0;
12280
12281     *t++ = 0;
12282   }
12283   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12284     int x[] = {25, 17};
12285     const int *foo = &x[0];
12286     ++foo;
12287   }
12288   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12289     typedef const int *iptr;
12290     iptr p = 0;
12291     ++p;
12292   }
12293   { /* AIX XL C 1.02.0.0 rejects this saying
12294        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12295     struct s { int j; const int *ap[3]; };
12296     struct s *b; b->j = 5;
12297   }
12298   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12299     const int foo = 10;
12300   }
12301 #endif
12302
12303   ;
12304   return 0;
12305 }
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309   (eval $ac_compile) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } &&
12313          { ac_try='test -s conftest.$ac_objext'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; }; then
12319   ac_cv_c_const=yes
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 ac_cv_c_const=no
12325 fi
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12327 fi
12328 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12329 echo "${ECHO_T}$ac_cv_c_const" >&6
12330 if test $ac_cv_c_const = no; then
12331
12332 cat >>confdefs.h <<\_ACEOF
12333 #define const
12334 _ACEOF
12335
12336 fi
12337
12338
12339
12340 echo "$as_me:$LINENO: checking for char" >&5
12341 echo $ECHO_N "checking for char... $ECHO_C" >&6
12342 if test "${ac_cv_type_char+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   cat >conftest.$ac_ext <<_ACEOF
12346 #line $LINENO "configure"
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 $ac_includes_default
12353 int
12354 main ()
12355 {
12356 if ((char *) 0)
12357   return 0;
12358 if (sizeof (char))
12359   return 0;
12360   ;
12361   return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366   (eval $ac_compile) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); } &&
12370          { ac_try='test -s conftest.$ac_objext'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   ac_cv_type_char=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ac_cv_type_char=no
12382 fi
12383 rm -f conftest.$ac_objext conftest.$ac_ext
12384 fi
12385 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12386 echo "${ECHO_T}$ac_cv_type_char" >&6
12387
12388 echo "$as_me:$LINENO: checking size of char" >&5
12389 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12390 if test "${ac_cv_sizeof_char+set}" = set; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   if test "$ac_cv_type_char" = yes; then
12394   # The cast to unsigned long works around a bug in the HP C Compiler
12395   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12396   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12397   # This bug is HP SR number 8606223364.
12398   if test "$cross_compiling" = yes; then
12399   # Depending upon the size, compute the lo and hi bounds.
12400 cat >conftest.$ac_ext <<_ACEOF
12401 #line $LINENO "configure"
12402 /* confdefs.h.  */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h.  */
12407 $ac_includes_default
12408 int
12409 main ()
12410 {
12411 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12412 test_array [0] = 0
12413
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420   (eval $ac_compile) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } &&
12424          { ac_try='test -s conftest.$ac_objext'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; }; then
12430   ac_lo=0 ac_mid=0
12431   while :; do
12432     cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 $ac_includes_default
12440 int
12441 main ()
12442 {
12443 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12444 test_array [0] = 0
12445
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12452   (eval $ac_compile) 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } &&
12456          { ac_try='test -s conftest.$ac_objext'
12457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458   (eval $ac_try) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); }; }; then
12462   ac_hi=$ac_mid; break
12463 else
12464   echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12466
12467 ac_lo=`expr $ac_mid + 1`
12468                     if test $ac_lo -le $ac_mid; then
12469                       ac_lo= ac_hi=
12470                       break
12471                     fi
12472                     ac_mid=`expr 2 '*' $ac_mid + 1`
12473 fi
12474 rm -f conftest.$ac_objext conftest.$ac_ext
12475   done
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480 cat >conftest.$ac_ext <<_ACEOF
12481 #line $LINENO "configure"
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487 $ac_includes_default
12488 int
12489 main ()
12490 {
12491 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12492 test_array [0] = 0
12493
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 rm -f conftest.$ac_objext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500   (eval $ac_compile) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); } &&
12504          { ac_try='test -s conftest.$ac_objext'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; }; then
12510   ac_hi=-1 ac_mid=-1
12511   while :; do
12512     cat >conftest.$ac_ext <<_ACEOF
12513 #line $LINENO "configure"
12514 /* confdefs.h.  */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h.  */
12519 $ac_includes_default
12520 int
12521 main ()
12522 {
12523 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12524 test_array [0] = 0
12525
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 rm -f conftest.$ac_objext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532   (eval $ac_compile) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -s conftest.$ac_objext'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; }; then
12542   ac_lo=$ac_mid; break
12543 else
12544   echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547 ac_hi=`expr '(' $ac_mid ')' - 1`
12548                        if test $ac_mid -le $ac_hi; then
12549                          ac_lo= ac_hi=
12550                          break
12551                        fi
12552                        ac_mid=`expr 2 '*' $ac_mid`
12553 fi
12554 rm -f conftest.$ac_objext conftest.$ac_ext
12555   done
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560 ac_lo= ac_hi=
12561 fi
12562 rm -f conftest.$ac_objext conftest.$ac_ext
12563 fi
12564 rm -f conftest.$ac_objext conftest.$ac_ext
12565 # Binary search between lo and hi bounds.
12566 while test "x$ac_lo" != "x$ac_hi"; do
12567   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12568   cat >conftest.$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12570 /* confdefs.h.  */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h.  */
12575 $ac_includes_default
12576 int
12577 main ()
12578 {
12579 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12580 test_array [0] = 0
12581
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588   (eval $ac_compile) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } &&
12592          { ac_try='test -s conftest.$ac_objext'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598   ac_hi=$ac_mid
12599 else
12600   echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 ac_lo=`expr '(' $ac_mid ')' + 1`
12604 fi
12605 rm -f conftest.$ac_objext conftest.$ac_ext
12606 done
12607 case $ac_lo in
12608 ?*) ac_cv_sizeof_char=$ac_lo;;
12609 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12610 See \`config.log' for more details." >&5
12611 echo "$as_me: error: cannot compute sizeof (char), 77
12612 See \`config.log' for more details." >&2;}
12613    { (exit 1); exit 1; }; } ;;
12614 esac
12615 else
12616   if test "$cross_compiling" = yes; then
12617   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12618 See \`config.log' for more details." >&5
12619 echo "$as_me: error: cannot run test program while cross compiling
12620 See \`config.log' for more details." >&2;}
12621    { (exit 1); exit 1; }; }
12622 else
12623   cat >conftest.$ac_ext <<_ACEOF
12624 #line $LINENO "configure"
12625 /* confdefs.h.  */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h.  */
12630 $ac_includes_default
12631 long longval () { return (long) (sizeof (char)); }
12632 unsigned long ulongval () { return (long) (sizeof (char)); }
12633 #include <stdio.h>
12634 #include <stdlib.h>
12635 int
12636 main ()
12637 {
12638
12639   FILE *f = fopen ("conftest.val", "w");
12640   if (! f)
12641     exit (1);
12642   if (((long) (sizeof (char))) < 0)
12643     {
12644       long i = longval ();
12645       if (i != ((long) (sizeof (char))))
12646         exit (1);
12647       fprintf (f, "%ld\n", i);
12648     }
12649   else
12650     {
12651       unsigned long i = ulongval ();
12652       if (i != ((long) (sizeof (char))))
12653         exit (1);
12654       fprintf (f, "%lu\n", i);
12655     }
12656   exit (ferror (f) || fclose (f) != 0);
12657
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest$ac_exeext
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664   (eval $ac_link) 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669   (eval $ac_try) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; }; then
12673   ac_cv_sizeof_char=`cat conftest.val`
12674 else
12675   echo "$as_me: program exited with status $ac_status" >&5
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12678
12679 ( exit $ac_status )
12680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12681 See \`config.log' for more details." >&5
12682 echo "$as_me: error: cannot compute sizeof (char), 77
12683 See \`config.log' for more details." >&2;}
12684    { (exit 1); exit 1; }; }
12685 fi
12686 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12687 fi
12688 fi
12689 rm -f conftest.val
12690 else
12691   ac_cv_sizeof_char=0
12692 fi
12693 fi
12694 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12695 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12696 cat >>confdefs.h <<_ACEOF
12697 #define SIZEOF_CHAR $ac_cv_sizeof_char
12698 _ACEOF
12699
12700
12701 echo "$as_me:$LINENO: checking for short int" >&5
12702 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12703 if test "${ac_cv_type_short_int+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   cat >conftest.$ac_ext <<_ACEOF
12707 #line $LINENO "configure"
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713 $ac_includes_default
12714 int
12715 main ()
12716 {
12717 if ((short int *) 0)
12718   return 0;
12719 if (sizeof (short int))
12720   return 0;
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 rm -f conftest.$ac_objext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727   (eval $ac_compile) 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); } &&
12731          { ac_try='test -s conftest.$ac_objext'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; }; then
12737   ac_cv_type_short_int=yes
12738 else
12739   echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742 ac_cv_type_short_int=no
12743 fi
12744 rm -f conftest.$ac_objext conftest.$ac_ext
12745 fi
12746 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12747 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12748
12749 echo "$as_me:$LINENO: checking size of short int" >&5
12750 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12751 if test "${ac_cv_sizeof_short_int+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   if test "$ac_cv_type_short_int" = yes; then
12755   # The cast to unsigned long works around a bug in the HP C Compiler
12756   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12757   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12758   # This bug is HP SR number 8606223364.
12759   if test "$cross_compiling" = yes; then
12760   # Depending upon the size, compute the lo and hi bounds.
12761 cat >conftest.$ac_ext <<_ACEOF
12762 #line $LINENO "configure"
12763 /* confdefs.h.  */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h.  */
12768 $ac_includes_default
12769 int
12770 main ()
12771 {
12772 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12773 test_array [0] = 0
12774
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781   (eval $ac_compile) 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -s conftest.$ac_objext'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; }; then
12791   ac_lo=0 ac_mid=0
12792   while :; do
12793     cat >conftest.$ac_ext <<_ACEOF
12794 #line $LINENO "configure"
12795 /* confdefs.h.  */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h.  */
12800 $ac_includes_default
12801 int
12802 main ()
12803 {
12804 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12805 test_array [0] = 0
12806
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 rm -f conftest.$ac_objext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813   (eval $ac_compile) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } &&
12817          { ac_try='test -s conftest.$ac_objext'
12818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819   (eval $ac_try) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823   ac_hi=$ac_mid; break
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 ac_lo=`expr $ac_mid + 1`
12829                     if test $ac_lo -le $ac_mid; then
12830                       ac_lo= ac_hi=
12831                       break
12832                     fi
12833                     ac_mid=`expr 2 '*' $ac_mid + 1`
12834 fi
12835 rm -f conftest.$ac_objext conftest.$ac_ext
12836   done
12837 else
12838   echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 cat >conftest.$ac_ext <<_ACEOF
12842 #line $LINENO "configure"
12843 /* confdefs.h.  */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h.  */
12848 $ac_includes_default
12849 int
12850 main ()
12851 {
12852 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12853 test_array [0] = 0
12854
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12861   (eval $ac_compile) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } &&
12865          { ac_try='test -s conftest.$ac_objext'
12866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867   (eval $ac_try) 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); }; }; then
12871   ac_hi=-1 ac_mid=-1
12872   while :; do
12873     cat >conftest.$ac_ext <<_ACEOF
12874 #line $LINENO "configure"
12875 /* confdefs.h.  */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h.  */
12880 $ac_includes_default
12881 int
12882 main ()
12883 {
12884 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12885 test_array [0] = 0
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893   (eval $ac_compile) 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } &&
12897          { ac_try='test -s conftest.$ac_objext'
12898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899   (eval $ac_try) 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; }; then
12903   ac_lo=$ac_mid; break
12904 else
12905   echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 ac_hi=`expr '(' $ac_mid ')' - 1`
12909                        if test $ac_mid -le $ac_hi; then
12910                          ac_lo= ac_hi=
12911                          break
12912                        fi
12913                        ac_mid=`expr 2 '*' $ac_mid`
12914 fi
12915 rm -f conftest.$ac_objext conftest.$ac_ext
12916   done
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 ac_lo= ac_hi=
12922 fi
12923 rm -f conftest.$ac_objext conftest.$ac_ext
12924 fi
12925 rm -f conftest.$ac_objext conftest.$ac_ext
12926 # Binary search between lo and hi bounds.
12927 while test "x$ac_lo" != "x$ac_hi"; do
12928   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12929   cat >conftest.$ac_ext <<_ACEOF
12930 #line $LINENO "configure"
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 $ac_includes_default
12937 int
12938 main ()
12939 {
12940 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12941 test_array [0] = 0
12942
12943   ;
12944   return 0;
12945 }
12946 _ACEOF
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949   (eval $ac_compile) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); } &&
12953          { ac_try='test -s conftest.$ac_objext'
12954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955   (eval $ac_try) 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; }; then
12959   ac_hi=$ac_mid
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_lo=`expr '(' $ac_mid ')' + 1`
12965 fi
12966 rm -f conftest.$ac_objext conftest.$ac_ext
12967 done
12968 case $ac_lo in
12969 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12971 See \`config.log' for more details." >&5
12972 echo "$as_me: error: cannot compute sizeof (short int), 77
12973 See \`config.log' for more details." >&2;}
12974    { (exit 1); exit 1; }; } ;;
12975 esac
12976 else
12977   if test "$cross_compiling" = yes; then
12978   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12979 See \`config.log' for more details." >&5
12980 echo "$as_me: error: cannot run test program while cross compiling
12981 See \`config.log' for more details." >&2;}
12982    { (exit 1); exit 1; }; }
12983 else
12984   cat >conftest.$ac_ext <<_ACEOF
12985 #line $LINENO "configure"
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991 $ac_includes_default
12992 long longval () { return (long) (sizeof (short int)); }
12993 unsigned long ulongval () { return (long) (sizeof (short int)); }
12994 #include <stdio.h>
12995 #include <stdlib.h>
12996 int
12997 main ()
12998 {
12999
13000   FILE *f = fopen ("conftest.val", "w");
13001   if (! f)
13002     exit (1);
13003   if (((long) (sizeof (short int))) < 0)
13004     {
13005       long i = longval ();
13006       if (i != ((long) (sizeof (short int))))
13007         exit (1);
13008       fprintf (f, "%ld\n", i);
13009     }
13010   else
13011     {
13012       unsigned long i = ulongval ();
13013       if (i != ((long) (sizeof (short int))))
13014         exit (1);
13015       fprintf (f, "%lu\n", i);
13016     }
13017   exit (ferror (f) || fclose (f) != 0);
13018
13019   ;
13020   return 0;
13021 }
13022 _ACEOF
13023 rm -f conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025   (eval $ac_link) 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030   (eval $ac_try) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); }; }; then
13034   ac_cv_sizeof_short_int=`cat conftest.val`
13035 else
13036   echo "$as_me: program exited with status $ac_status" >&5
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13039
13040 ( exit $ac_status )
13041 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13042 See \`config.log' for more details." >&5
13043 echo "$as_me: error: cannot compute sizeof (short int), 77
13044 See \`config.log' for more details." >&2;}
13045    { (exit 1); exit 1; }; }
13046 fi
13047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13048 fi
13049 fi
13050 rm -f conftest.val
13051 else
13052   ac_cv_sizeof_short_int=0
13053 fi
13054 fi
13055 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13056 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13057 cat >>confdefs.h <<_ACEOF
13058 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13059 _ACEOF
13060
13061
13062 echo "$as_me:$LINENO: checking for int" >&5
13063 echo $ECHO_N "checking for int... $ECHO_C" >&6
13064 if test "${ac_cv_type_int+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   cat >conftest.$ac_ext <<_ACEOF
13068 #line $LINENO "configure"
13069 /* confdefs.h.  */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h.  */
13074 $ac_includes_default
13075 int
13076 main ()
13077 {
13078 if ((int *) 0)
13079   return 0;
13080 if (sizeof (int))
13081   return 0;
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 rm -f conftest.$ac_objext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088   (eval $ac_compile) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } &&
13092          { ac_try='test -s conftest.$ac_objext'
13093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094   (eval $ac_try) 2>&5
13095   ac_status=$?
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); }; }; then
13098   ac_cv_type_int=yes
13099 else
13100   echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 ac_cv_type_int=no
13104 fi
13105 rm -f conftest.$ac_objext conftest.$ac_ext
13106 fi
13107 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13108 echo "${ECHO_T}$ac_cv_type_int" >&6
13109
13110 echo "$as_me:$LINENO: checking size of int" >&5
13111 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13112 if test "${ac_cv_sizeof_int+set}" = set; then
13113   echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115   if test "$ac_cv_type_int" = yes; then
13116   # The cast to unsigned long works around a bug in the HP C Compiler
13117   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13118   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13119   # This bug is HP SR number 8606223364.
13120   if test "$cross_compiling" = yes; then
13121   # Depending upon the size, compute the lo and hi bounds.
13122 cat >conftest.$ac_ext <<_ACEOF
13123 #line $LINENO "configure"
13124 /* confdefs.h.  */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h.  */
13129 $ac_includes_default
13130 int
13131 main ()
13132 {
13133 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13134 test_array [0] = 0
13135
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 rm -f conftest.$ac_objext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142   (eval $ac_compile) 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -s conftest.$ac_objext'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; }; then
13152   ac_lo=0 ac_mid=0
13153   while :; do
13154     cat >conftest.$ac_ext <<_ACEOF
13155 #line $LINENO "configure"
13156 /* confdefs.h.  */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h.  */
13161 $ac_includes_default
13162 int
13163 main ()
13164 {
13165 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13166 test_array [0] = 0
13167
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174   (eval $ac_compile) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } &&
13178          { ac_try='test -s conftest.$ac_objext'
13179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180   (eval $ac_try) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   ac_hi=$ac_mid; break
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ac_lo=`expr $ac_mid + 1`
13190                     if test $ac_lo -le $ac_mid; then
13191                       ac_lo= ac_hi=
13192                       break
13193                     fi
13194                     ac_mid=`expr 2 '*' $ac_mid + 1`
13195 fi
13196 rm -f conftest.$ac_objext conftest.$ac_ext
13197   done
13198 else
13199   echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209 $ac_includes_default
13210 int
13211 main ()
13212 {
13213 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13214 test_array [0] = 0
13215
13216   ;
13217   return 0;
13218 }
13219 _ACEOF
13220 rm -f conftest.$ac_objext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222   (eval $ac_compile) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } &&
13226          { ac_try='test -s conftest.$ac_objext'
13227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228   (eval $ac_try) 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); }; }; then
13232   ac_hi=-1 ac_mid=-1
13233   while :; do
13234     cat >conftest.$ac_ext <<_ACEOF
13235 #line $LINENO "configure"
13236 /* confdefs.h.  */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h.  */
13241 $ac_includes_default
13242 int
13243 main ()
13244 {
13245 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13246 test_array [0] = 0
13247
13248   ;
13249   return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254   (eval $ac_compile) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); } &&
13258          { ac_try='test -s conftest.$ac_objext'
13259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260   (eval $ac_try) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   ac_lo=$ac_mid; break
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_hi=`expr '(' $ac_mid ')' - 1`
13270                        if test $ac_mid -le $ac_hi; then
13271                          ac_lo= ac_hi=
13272                          break
13273                        fi
13274                        ac_mid=`expr 2 '*' $ac_mid`
13275 fi
13276 rm -f conftest.$ac_objext conftest.$ac_ext
13277   done
13278 else
13279   echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282 ac_lo= ac_hi=
13283 fi
13284 rm -f conftest.$ac_objext conftest.$ac_ext
13285 fi
13286 rm -f conftest.$ac_objext conftest.$ac_ext
13287 # Binary search between lo and hi bounds.
13288 while test "x$ac_lo" != "x$ac_hi"; do
13289   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13290   cat >conftest.$ac_ext <<_ACEOF
13291 #line $LINENO "configure"
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297 $ac_includes_default
13298 int
13299 main ()
13300 {
13301 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13302 test_array [0] = 0
13303
13304   ;
13305   return 0;
13306 }
13307 _ACEOF
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310   (eval $ac_compile) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -s conftest.$ac_objext'
13315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316   (eval $ac_try) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }; }; then
13320   ac_hi=$ac_mid
13321 else
13322   echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325 ac_lo=`expr '(' $ac_mid ')' + 1`
13326 fi
13327 rm -f conftest.$ac_objext conftest.$ac_ext
13328 done
13329 case $ac_lo in
13330 ?*) ac_cv_sizeof_int=$ac_lo;;
13331 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13332 See \`config.log' for more details." >&5
13333 echo "$as_me: error: cannot compute sizeof (int), 77
13334 See \`config.log' for more details." >&2;}
13335    { (exit 1); exit 1; }; } ;;
13336 esac
13337 else
13338   if test "$cross_compiling" = yes; then
13339   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13340 See \`config.log' for more details." >&5
13341 echo "$as_me: error: cannot run test program while cross compiling
13342 See \`config.log' for more details." >&2;}
13343    { (exit 1); exit 1; }; }
13344 else
13345   cat >conftest.$ac_ext <<_ACEOF
13346 #line $LINENO "configure"
13347 /* confdefs.h.  */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h.  */
13352 $ac_includes_default
13353 long longval () { return (long) (sizeof (int)); }
13354 unsigned long ulongval () { return (long) (sizeof (int)); }
13355 #include <stdio.h>
13356 #include <stdlib.h>
13357 int
13358 main ()
13359 {
13360
13361   FILE *f = fopen ("conftest.val", "w");
13362   if (! f)
13363     exit (1);
13364   if (((long) (sizeof (int))) < 0)
13365     {
13366       long i = longval ();
13367       if (i != ((long) (sizeof (int))))
13368         exit (1);
13369       fprintf (f, "%ld\n", i);
13370     }
13371   else
13372     {
13373       unsigned long i = ulongval ();
13374       if (i != ((long) (sizeof (int))))
13375         exit (1);
13376       fprintf (f, "%lu\n", i);
13377     }
13378   exit (ferror (f) || fclose (f) != 0);
13379
13380   ;
13381   return 0;
13382 }
13383 _ACEOF
13384 rm -f conftest$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386   (eval $ac_link) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391   (eval $ac_try) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; }; then
13395   ac_cv_sizeof_int=`cat conftest.val`
13396 else
13397   echo "$as_me: program exited with status $ac_status" >&5
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ( exit $ac_status )
13402 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13403 See \`config.log' for more details." >&5
13404 echo "$as_me: error: cannot compute sizeof (int), 77
13405 See \`config.log' for more details." >&2;}
13406    { (exit 1); exit 1; }; }
13407 fi
13408 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13409 fi
13410 fi
13411 rm -f conftest.val
13412 else
13413   ac_cv_sizeof_int=0
13414 fi
13415 fi
13416 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13417 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13418 cat >>confdefs.h <<_ACEOF
13419 #define SIZEOF_INT $ac_cv_sizeof_int
13420 _ACEOF
13421
13422
13423 echo "$as_me:$LINENO: checking for long int" >&5
13424 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13425 if test "${ac_cv_type_long_int+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   cat >conftest.$ac_ext <<_ACEOF
13429 #line $LINENO "configure"
13430 /* confdefs.h.  */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h.  */
13435 $ac_includes_default
13436 int
13437 main ()
13438 {
13439 if ((long int *) 0)
13440   return 0;
13441 if (sizeof (long int))
13442   return 0;
13443   ;
13444   return 0;
13445 }
13446 _ACEOF
13447 rm -f conftest.$ac_objext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13449   (eval $ac_compile) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -s conftest.$ac_objext'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; }; then
13459   ac_cv_type_long_int=yes
13460 else
13461   echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 ac_cv_type_long_int=no
13465 fi
13466 rm -f conftest.$ac_objext conftest.$ac_ext
13467 fi
13468 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13469 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13470
13471 echo "$as_me:$LINENO: checking size of long int" >&5
13472 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13473 if test "${ac_cv_sizeof_long_int+set}" = set; then
13474   echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476   if test "$ac_cv_type_long_int" = yes; then
13477   # The cast to unsigned long works around a bug in the HP C Compiler
13478   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13479   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13480   # This bug is HP SR number 8606223364.
13481   if test "$cross_compiling" = yes; then
13482   # Depending upon the size, compute the lo and hi bounds.
13483 cat >conftest.$ac_ext <<_ACEOF
13484 #line $LINENO "configure"
13485 /* confdefs.h.  */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h.  */
13490 $ac_includes_default
13491 int
13492 main ()
13493 {
13494 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13495 test_array [0] = 0
13496
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503   (eval $ac_compile) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -s conftest.$ac_objext'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; }; then
13513   ac_lo=0 ac_mid=0
13514   while :; do
13515     cat >conftest.$ac_ext <<_ACEOF
13516 #line $LINENO "configure"
13517 /* confdefs.h.  */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h.  */
13522 $ac_includes_default
13523 int
13524 main ()
13525 {
13526 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13527 test_array [0] = 0
13528
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 rm -f conftest.$ac_objext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535   (eval $ac_compile) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); } &&
13539          { ac_try='test -s conftest.$ac_objext'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; }; then
13545   ac_hi=$ac_mid; break
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 ac_lo=`expr $ac_mid + 1`
13551                     if test $ac_lo -le $ac_mid; then
13552                       ac_lo= ac_hi=
13553                       break
13554                     fi
13555                     ac_mid=`expr 2 '*' $ac_mid + 1`
13556 fi
13557 rm -f conftest.$ac_objext conftest.$ac_ext
13558   done
13559 else
13560   echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 cat >conftest.$ac_ext <<_ACEOF
13564 #line $LINENO "configure"
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570 $ac_includes_default
13571 int
13572 main ()
13573 {
13574 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13575 test_array [0] = 0
13576
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583   (eval $ac_compile) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } &&
13587          { ac_try='test -s conftest.$ac_objext'
13588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589   (eval $ac_try) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593   ac_hi=-1 ac_mid=-1
13594   while :; do
13595     cat >conftest.$ac_ext <<_ACEOF
13596 #line $LINENO "configure"
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602 $ac_includes_default
13603 int
13604 main ()
13605 {
13606 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13607 test_array [0] = 0
13608
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615   (eval $ac_compile) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -s conftest.$ac_objext'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   ac_lo=$ac_mid; break
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_hi=`expr '(' $ac_mid ')' - 1`
13631                        if test $ac_mid -le $ac_hi; then
13632                          ac_lo= ac_hi=
13633                          break
13634                        fi
13635                        ac_mid=`expr 2 '*' $ac_mid`
13636 fi
13637 rm -f conftest.$ac_objext conftest.$ac_ext
13638   done
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_lo= ac_hi=
13644 fi
13645 rm -f conftest.$ac_objext conftest.$ac_ext
13646 fi
13647 rm -f conftest.$ac_objext conftest.$ac_ext
13648 # Binary search between lo and hi bounds.
13649 while test "x$ac_lo" != "x$ac_hi"; do
13650   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13651   cat >conftest.$ac_ext <<_ACEOF
13652 #line $LINENO "configure"
13653 /* confdefs.h.  */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h.  */
13658 $ac_includes_default
13659 int
13660 main ()
13661 {
13662 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13663 test_array [0] = 0
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671   (eval $ac_compile) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -s conftest.$ac_objext'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_hi=$ac_mid
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 ac_lo=`expr '(' $ac_mid ')' + 1`
13687 fi
13688 rm -f conftest.$ac_objext conftest.$ac_ext
13689 done
13690 case $ac_lo in
13691 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13693 See \`config.log' for more details." >&5
13694 echo "$as_me: error: cannot compute sizeof (long int), 77
13695 See \`config.log' for more details." >&2;}
13696    { (exit 1); exit 1; }; } ;;
13697 esac
13698 else
13699   if test "$cross_compiling" = yes; then
13700   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13701 See \`config.log' for more details." >&5
13702 echo "$as_me: error: cannot run test program while cross compiling
13703 See \`config.log' for more details." >&2;}
13704    { (exit 1); exit 1; }; }
13705 else
13706   cat >conftest.$ac_ext <<_ACEOF
13707 #line $LINENO "configure"
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713 $ac_includes_default
13714 long longval () { return (long) (sizeof (long int)); }
13715 unsigned long ulongval () { return (long) (sizeof (long int)); }
13716 #include <stdio.h>
13717 #include <stdlib.h>
13718 int
13719 main ()
13720 {
13721
13722   FILE *f = fopen ("conftest.val", "w");
13723   if (! f)
13724     exit (1);
13725   if (((long) (sizeof (long int))) < 0)
13726     {
13727       long i = longval ();
13728       if (i != ((long) (sizeof (long int))))
13729         exit (1);
13730       fprintf (f, "%ld\n", i);
13731     }
13732   else
13733     {
13734       unsigned long i = ulongval ();
13735       if (i != ((long) (sizeof (long int))))
13736         exit (1);
13737       fprintf (f, "%lu\n", i);
13738     }
13739   exit (ferror (f) || fclose (f) != 0);
13740
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747   (eval $ac_link) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752   (eval $ac_try) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; }; then
13756   ac_cv_sizeof_long_int=`cat conftest.val`
13757 else
13758   echo "$as_me: program exited with status $ac_status" >&5
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762 ( exit $ac_status )
13763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13764 See \`config.log' for more details." >&5
13765 echo "$as_me: error: cannot compute sizeof (long int), 77
13766 See \`config.log' for more details." >&2;}
13767    { (exit 1); exit 1; }; }
13768 fi
13769 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13770 fi
13771 fi
13772 rm -f conftest.val
13773 else
13774   ac_cv_sizeof_long_int=0
13775 fi
13776 fi
13777 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13778 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13779 cat >>confdefs.h <<_ACEOF
13780 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13781 _ACEOF
13782
13783
13784 echo "$as_me:$LINENO: checking for long long int" >&5
13785 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13786 if test "${ac_cv_type_long_long_int+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   cat >conftest.$ac_ext <<_ACEOF
13790 #line $LINENO "configure"
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796 $ac_includes_default
13797 int
13798 main ()
13799 {
13800 if ((long long int *) 0)
13801   return 0;
13802 if (sizeof (long long int))
13803   return 0;
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810   (eval $ac_compile) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -s conftest.$ac_objext'
13815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816   (eval $ac_try) 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); }; }; then
13820   ac_cv_type_long_long_int=yes
13821 else
13822   echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 ac_cv_type_long_long_int=no
13826 fi
13827 rm -f conftest.$ac_objext conftest.$ac_ext
13828 fi
13829 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13830 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13831
13832 echo "$as_me:$LINENO: checking size of long long int" >&5
13833 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13834 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13835   echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837   if test "$ac_cv_type_long_long_int" = yes; then
13838   # The cast to unsigned long works around a bug in the HP C Compiler
13839   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13840   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13841   # This bug is HP SR number 8606223364.
13842   if test "$cross_compiling" = yes; then
13843   # Depending upon the size, compute the lo and hi bounds.
13844 cat >conftest.$ac_ext <<_ACEOF
13845 #line $LINENO "configure"
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851 $ac_includes_default
13852 int
13853 main ()
13854 {
13855 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13856 test_array [0] = 0
13857
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 rm -f conftest.$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864   (eval $ac_compile) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); } &&
13868          { ac_try='test -s conftest.$ac_objext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_lo=0 ac_mid=0
13875   while :; do
13876     cat >conftest.$ac_ext <<_ACEOF
13877 #line $LINENO "configure"
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 $ac_includes_default
13884 int
13885 main ()
13886 {
13887 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13888 test_array [0] = 0
13889
13890   ;
13891   return 0;
13892 }
13893 _ACEOF
13894 rm -f conftest.$ac_objext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13896   (eval $ac_compile) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } &&
13900          { ac_try='test -s conftest.$ac_objext'
13901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902   (eval $ac_try) 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); }; }; then
13906   ac_hi=$ac_mid; break
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ac_lo=`expr $ac_mid + 1`
13912                     if test $ac_lo -le $ac_mid; then
13913                       ac_lo= ac_hi=
13914                       break
13915                     fi
13916                     ac_mid=`expr 2 '*' $ac_mid + 1`
13917 fi
13918 rm -f conftest.$ac_objext conftest.$ac_ext
13919   done
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924 cat >conftest.$ac_ext <<_ACEOF
13925 #line $LINENO "configure"
13926 /* confdefs.h.  */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h.  */
13931 $ac_includes_default
13932 int
13933 main ()
13934 {
13935 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13936 test_array [0] = 0
13937
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944   (eval $ac_compile) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } &&
13948          { ac_try='test -s conftest.$ac_objext'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; }; then
13954   ac_hi=-1 ac_mid=-1
13955   while :; do
13956     cat >conftest.$ac_ext <<_ACEOF
13957 #line $LINENO "configure"
13958 /* confdefs.h.  */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h.  */
13963 $ac_includes_default
13964 int
13965 main ()
13966 {
13967 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13968 test_array [0] = 0
13969
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976   (eval $ac_compile) 2>&5
13977   ac_status=$?
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -s conftest.$ac_objext'
13981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982   (eval $ac_try) 2>&5
13983   ac_status=$?
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); }; }; then
13986   ac_lo=$ac_mid; break
13987 else
13988   echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13990
13991 ac_hi=`expr '(' $ac_mid ')' - 1`
13992                        if test $ac_mid -le $ac_hi; then
13993                          ac_lo= ac_hi=
13994                          break
13995                        fi
13996                        ac_mid=`expr 2 '*' $ac_mid`
13997 fi
13998 rm -f conftest.$ac_objext conftest.$ac_ext
13999   done
14000 else
14001   echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14003
14004 ac_lo= ac_hi=
14005 fi
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 rm -f conftest.$ac_objext conftest.$ac_ext
14009 # Binary search between lo and hi bounds.
14010 while test "x$ac_lo" != "x$ac_hi"; do
14011   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14012   cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14014 /* confdefs.h.  */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h.  */
14019 $ac_includes_default
14020 int
14021 main ()
14022 {
14023 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14024 test_array [0] = 0
14025
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032   (eval $ac_compile) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } &&
14036          { ac_try='test -s conftest.$ac_objext'
14037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038   (eval $ac_try) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; }; then
14042   ac_hi=$ac_mid
14043 else
14044   echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 ac_lo=`expr '(' $ac_mid ')' + 1`
14048 fi
14049 rm -f conftest.$ac_objext conftest.$ac_ext
14050 done
14051 case $ac_lo in
14052 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14054 See \`config.log' for more details." >&5
14055 echo "$as_me: error: cannot compute sizeof (long long int), 77
14056 See \`config.log' for more details." >&2;}
14057    { (exit 1); exit 1; }; } ;;
14058 esac
14059 else
14060   if test "$cross_compiling" = yes; then
14061   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14062 See \`config.log' for more details." >&5
14063 echo "$as_me: error: cannot run test program while cross compiling
14064 See \`config.log' for more details." >&2;}
14065    { (exit 1); exit 1; }; }
14066 else
14067   cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074 $ac_includes_default
14075 long longval () { return (long) (sizeof (long long int)); }
14076 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14077 #include <stdio.h>
14078 #include <stdlib.h>
14079 int
14080 main ()
14081 {
14082
14083   FILE *f = fopen ("conftest.val", "w");
14084   if (! f)
14085     exit (1);
14086   if (((long) (sizeof (long long int))) < 0)
14087     {
14088       long i = longval ();
14089       if (i != ((long) (sizeof (long long int))))
14090         exit (1);
14091       fprintf (f, "%ld\n", i);
14092     }
14093   else
14094     {
14095       unsigned long i = ulongval ();
14096       if (i != ((long) (sizeof (long long int))))
14097         exit (1);
14098       fprintf (f, "%lu\n", i);
14099     }
14100   exit (ferror (f) || fclose (f) != 0);
14101
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest$ac_exeext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14108   (eval $ac_link) 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113   (eval $ac_try) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_cv_sizeof_long_long_int=`cat conftest.val`
14118 else
14119   echo "$as_me: program exited with status $ac_status" >&5
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123 ( exit $ac_status )
14124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14125 See \`config.log' for more details." >&5
14126 echo "$as_me: error: cannot compute sizeof (long long int), 77
14127 See \`config.log' for more details." >&2;}
14128    { (exit 1); exit 1; }; }
14129 fi
14130 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14131 fi
14132 fi
14133 rm -f conftest.val
14134 else
14135   ac_cv_sizeof_long_long_int=0
14136 fi
14137 fi
14138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14139 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14140 cat >>confdefs.h <<_ACEOF
14141 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14142 _ACEOF
14143
14144
14145 echo "$as_me:$LINENO: checking for int *" >&5
14146 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14147 if test "${ac_cv_type_int_p+set}" = set; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 $ac_includes_default
14158 int
14159 main ()
14160 {
14161 if ((int * *) 0)
14162   return 0;
14163 if (sizeof (int *))
14164   return 0;
14165   ;
14166   return 0;
14167 }
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171   (eval $ac_compile) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -s conftest.$ac_objext'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; }; then
14181   ac_cv_type_int_p=yes
14182 else
14183   echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14185
14186 ac_cv_type_int_p=no
14187 fi
14188 rm -f conftest.$ac_objext conftest.$ac_ext
14189 fi
14190 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14191 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14192
14193 echo "$as_me:$LINENO: checking size of int *" >&5
14194 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14195 if test "${ac_cv_sizeof_int_p+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   if test "$ac_cv_type_int_p" = yes; then
14199   # The cast to unsigned long works around a bug in the HP C Compiler
14200   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14201   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14202   # This bug is HP SR number 8606223364.
14203   if test "$cross_compiling" = yes; then
14204   # Depending upon the size, compute the lo and hi bounds.
14205 cat >conftest.$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212 $ac_includes_default
14213 int
14214 main ()
14215 {
14216 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14217 test_array [0] = 0
14218
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 rm -f conftest.$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225   (eval $ac_compile) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -s conftest.$ac_objext'
14230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231   (eval $ac_try) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   ac_lo=0 ac_mid=0
14236   while :; do
14237     cat >conftest.$ac_ext <<_ACEOF
14238 #line $LINENO "configure"
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244 $ac_includes_default
14245 int
14246 main ()
14247 {
14248 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14249 test_array [0] = 0
14250
14251   ;
14252   return 0;
14253 }
14254 _ACEOF
14255 rm -f conftest.$ac_objext
14256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14257   (eval $ac_compile) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } &&
14261          { ac_try='test -s conftest.$ac_objext'
14262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263   (eval $ac_try) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); }; }; then
14267   ac_hi=$ac_mid; break
14268 else
14269   echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14271
14272 ac_lo=`expr $ac_mid + 1`
14273                     if test $ac_lo -le $ac_mid; then
14274                       ac_lo= ac_hi=
14275                       break
14276                     fi
14277                     ac_mid=`expr 2 '*' $ac_mid + 1`
14278 fi
14279 rm -f conftest.$ac_objext conftest.$ac_ext
14280   done
14281 else
14282   echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 cat >conftest.$ac_ext <<_ACEOF
14286 #line $LINENO "configure"
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 $ac_includes_default
14293 int
14294 main ()
14295 {
14296 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14297 test_array [0] = 0
14298
14299   ;
14300   return 0;
14301 }
14302 _ACEOF
14303 rm -f conftest.$ac_objext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305   (eval $ac_compile) 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } &&
14309          { ac_try='test -s conftest.$ac_objext'
14310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311   (eval $ac_try) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; }; then
14315   ac_hi=-1 ac_mid=-1
14316   while :; do
14317     cat >conftest.$ac_ext <<_ACEOF
14318 #line $LINENO "configure"
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324 $ac_includes_default
14325 int
14326 main ()
14327 {
14328 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14329 test_array [0] = 0
14330
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337   (eval $ac_compile) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } &&
14341          { ac_try='test -s conftest.$ac_objext'
14342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343   (eval $ac_try) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }; }; then
14347   ac_lo=$ac_mid; break
14348 else
14349   echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 ac_hi=`expr '(' $ac_mid ')' - 1`
14353                        if test $ac_mid -le $ac_hi; then
14354                          ac_lo= ac_hi=
14355                          break
14356                        fi
14357                        ac_mid=`expr 2 '*' $ac_mid`
14358 fi
14359 rm -f conftest.$ac_objext conftest.$ac_ext
14360   done
14361 else
14362   echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14364
14365 ac_lo= ac_hi=
14366 fi
14367 rm -f conftest.$ac_objext conftest.$ac_ext
14368 fi
14369 rm -f conftest.$ac_objext conftest.$ac_ext
14370 # Binary search between lo and hi bounds.
14371 while test "x$ac_lo" != "x$ac_hi"; do
14372   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14373   cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380 $ac_includes_default
14381 int
14382 main ()
14383 {
14384 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14385 test_array [0] = 0
14386
14387   ;
14388   return 0;
14389 }
14390 _ACEOF
14391 rm -f conftest.$ac_objext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14393   (eval $ac_compile) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); } &&
14397          { ac_try='test -s conftest.$ac_objext'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; }; then
14403   ac_hi=$ac_mid
14404 else
14405   echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408 ac_lo=`expr '(' $ac_mid ')' + 1`
14409 fi
14410 rm -f conftest.$ac_objext conftest.$ac_ext
14411 done
14412 case $ac_lo in
14413 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14414 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14415 See \`config.log' for more details." >&5
14416 echo "$as_me: error: cannot compute sizeof (int *), 77
14417 See \`config.log' for more details." >&2;}
14418    { (exit 1); exit 1; }; } ;;
14419 esac
14420 else
14421   if test "$cross_compiling" = yes; then
14422   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14423 See \`config.log' for more details." >&5
14424 echo "$as_me: error: cannot run test program while cross compiling
14425 See \`config.log' for more details." >&2;}
14426    { (exit 1); exit 1; }; }
14427 else
14428   cat >conftest.$ac_ext <<_ACEOF
14429 #line $LINENO "configure"
14430 /* confdefs.h.  */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h.  */
14435 $ac_includes_default
14436 long longval () { return (long) (sizeof (int *)); }
14437 unsigned long ulongval () { return (long) (sizeof (int *)); }
14438 #include <stdio.h>
14439 #include <stdlib.h>
14440 int
14441 main ()
14442 {
14443
14444   FILE *f = fopen ("conftest.val", "w");
14445   if (! f)
14446     exit (1);
14447   if (((long) (sizeof (int *))) < 0)
14448     {
14449       long i = longval ();
14450       if (i != ((long) (sizeof (int *))))
14451         exit (1);
14452       fprintf (f, "%ld\n", i);
14453     }
14454   else
14455     {
14456       unsigned long i = ulongval ();
14457       if (i != ((long) (sizeof (int *))))
14458         exit (1);
14459       fprintf (f, "%lu\n", i);
14460     }
14461   exit (ferror (f) || fclose (f) != 0);
14462
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest$ac_exeext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14469   (eval $ac_link) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474   (eval $ac_try) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; }; then
14478   ac_cv_sizeof_int_p=`cat conftest.val`
14479 else
14480   echo "$as_me: program exited with status $ac_status" >&5
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484 ( exit $ac_status )
14485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14486 See \`config.log' for more details." >&5
14487 echo "$as_me: error: cannot compute sizeof (int *), 77
14488 See \`config.log' for more details." >&2;}
14489    { (exit 1); exit 1; }; }
14490 fi
14491 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14492 fi
14493 fi
14494 rm -f conftest.val
14495 else
14496   ac_cv_sizeof_int_p=0
14497 fi
14498 fi
14499 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14500 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14501 cat >>confdefs.h <<_ACEOF
14502 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14503 _ACEOF
14504
14505
14506
14507 # Check for sys/types.h types
14508 echo "$as_me:$LINENO: checking for u_int type" >&5
14509 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14510 if test "${ac_cv_have_u_int+set}" = set; then
14511   echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513
14514     cat >conftest.$ac_ext <<_ACEOF
14515 #line $LINENO "configure"
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521  #include <sys/types.h>
14522 int
14523 main ()
14524 {
14525  u_int a; a = 1;
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14532   (eval $ac_compile) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); } &&
14536          { ac_try='test -s conftest.$ac_objext'
14537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538   (eval $ac_try) 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; }; then
14542    ac_cv_have_u_int="yes"
14543 else
14544   echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547  ac_cv_have_u_int="no"
14548
14549 fi
14550 rm -f conftest.$ac_objext conftest.$ac_ext
14551
14552 fi
14553 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14554 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14555 if test "x$ac_cv_have_u_int" = "xyes" ; then
14556    cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_U_INT 1
14558 _ACEOF
14559
14560    have_u_int=1
14561 fi
14562
14563 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14564 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14565 if test "${ac_cv_have_intmax_t+set}" = set; then
14566   echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568
14569    cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 /* confdefs.h.  */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h.  */
14576  #include <sys/types.h>
14577 int
14578 main ()
14579 {
14580  intmax_t a; a = 1;
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587   (eval $ac_compile) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } &&
14591          { ac_try='test -s conftest.$ac_objext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597    ac_cv_have_intmax_t="yes"
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602
14603          cat >conftest.$ac_ext <<_ACEOF
14604 #line $LINENO "configure"
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610  #include <stdint.h>
14611 int
14612 main ()
14613 {
14614  intmax_t a; a = 1;
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621   (eval $ac_compile) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } &&
14625          { ac_try='test -s conftest.$ac_objext'
14626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627   (eval $ac_try) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; }; then
14631    ac_cv_have_intmax_t="yes"
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636  ac_cv_have_intmax_t="no"
14637
14638 fi
14639 rm -f conftest.$ac_objext conftest.$ac_ext
14640
14641
14642 fi
14643 rm -f conftest.$ac_objext conftest.$ac_ext
14644
14645
14646 fi
14647 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14648 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14649 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14650    cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_INTMAX_T 1
14652 _ACEOF
14653
14654    have_intmax_t=1
14655 fi
14656
14657
14658 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14659 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14660 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14661   echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663
14664    cat >conftest.$ac_ext <<_ACEOF
14665 #line $LINENO "configure"
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671  #include <sys/types.h>
14672 int
14673 main ()
14674 {
14675  u_intmax_t a; a = 1;
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 rm -f conftest.$ac_objext
14681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14682   (eval $ac_compile) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } &&
14686          { ac_try='test -s conftest.$ac_objext'
14687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688   (eval $ac_try) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; }; then
14692    ac_cv_have_u_intmax_t="yes"
14693 else
14694   echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697
14698          cat >conftest.$ac_ext <<_ACEOF
14699 #line $LINENO "configure"
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705  #include <stdint.h>
14706 int
14707 main ()
14708 {
14709  u_intmax_t a; a = 1;
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716   (eval $ac_compile) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); } &&
14720          { ac_try='test -s conftest.$ac_objext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726    ac_cv_have_u_intmax_t="yes"
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731  ac_cv_have_u_intmax_t="no"
14732
14733 fi
14734 rm -f conftest.$ac_objext conftest.$ac_ext
14735
14736
14737 fi
14738 rm -f conftest.$ac_objext conftest.$ac_ext
14739
14740 fi
14741 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14742 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14743 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14744    cat >>confdefs.h <<\_ACEOF
14745 #define HAVE_U_INTMAX_T 1
14746 _ACEOF
14747
14748    have_u_intmax_t=1
14749 fi
14750
14751
14752 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14753 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14754 if test "${ac_cv_have_intxx_t+set}" = set; then
14755   echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757
14758    cat >conftest.$ac_ext <<_ACEOF
14759 #line $LINENO "configure"
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765  #include <sys/types.h>
14766 int
14767 main ()
14768 {
14769  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776   (eval $ac_compile) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); } &&
14780          { ac_try='test -s conftest.$ac_objext'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }; then
14786    ac_cv_have_intxx_t="yes"
14787 else
14788   echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791  ac_cv_have_intxx_t="no"
14792
14793 fi
14794 rm -f conftest.$ac_objext conftest.$ac_ext
14795
14796 fi
14797 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14798 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14799 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14800    cat >>confdefs.h <<\_ACEOF
14801 #define HAVE_INTXX_T 1
14802 _ACEOF
14803
14804    have_intxx_t=1
14805 fi
14806
14807 echo "$as_me:$LINENO: checking for int64_t type" >&5
14808 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14809 if test "${ac_cv_have_int64_t+set}" = set; then
14810   echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812
14813    cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 /* confdefs.h.  */
14816 _ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h.  */
14820  #include <sys/types.h>
14821 int
14822 main ()
14823 {
14824  int64_t a; a = 1;
14825   ;
14826   return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831   (eval $ac_compile) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } &&
14835          { ac_try='test -s conftest.$ac_objext'
14836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837   (eval $ac_try) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; }; then
14841    ac_cv_have_int64_t="yes"
14842 else
14843   echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14845
14846  ac_cv_have_int64_t="no"
14847
14848 fi
14849 rm -f conftest.$ac_objext conftest.$ac_ext
14850
14851 fi
14852 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14853 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14854 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14855    cat >>confdefs.h <<\_ACEOF
14856 #define HAVE_INT64_T 1
14857 _ACEOF
14858
14859    have_int64_t=1
14860 fi
14861
14862 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14863 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14864 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867
14868    cat >conftest.$ac_ext <<_ACEOF
14869 #line $LINENO "configure"
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875  #include <sys/types.h>
14876 int
14877 main ()
14878 {
14879  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14880   ;
14881   return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest.$ac_objext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886   (eval $ac_compile) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } &&
14890          { ac_try='test -s conftest.$ac_objext'
14891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892   (eval $ac_try) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896    ac_cv_have_u_intxx_t="yes"
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901  ac_cv_have_u_intxx_t="no"
14902
14903 fi
14904 rm -f conftest.$ac_objext conftest.$ac_ext
14905
14906 fi
14907 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14908 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14909 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14910    cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_U_INTXX_T 1
14912 _ACEOF
14913
14914    have_u_intxx_t=1
14915 fi
14916
14917 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14918 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14919 if test "${ac_cv_have_u_int64_t+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922
14923    cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930  #include <sys/types.h>
14931 int
14932 main ()
14933 {
14934  u_int64_t a; a = 1;
14935   ;
14936   return 0;
14937 }
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941   (eval $ac_compile) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } &&
14945          { ac_try='test -s conftest.$ac_objext'
14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947   (eval $ac_try) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951    ac_cv_have_u_int64_t="yes"
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956  ac_cv_have_u_int64_t="no"
14957
14958 fi
14959 rm -f conftest.$ac_objext conftest.$ac_ext
14960
14961 fi
14962 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14963 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14964 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14965    cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_U_INT64_T 1
14967 _ACEOF
14968
14969    have_u_int64_t=1
14970 fi
14971
14972 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14973            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14974 then
14975    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14976 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14977    cat >conftest.$ac_ext <<_ACEOF
14978 #line $LINENO "configure"
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984  #include <sys/bitypes.h>
14985 int
14986 main ()
14987 {
14988  int8_t a; int16_t b; int32_t c;
14989         u_int8_t e; u_int16_t f; u_int32_t g;
14990         a = b = c = e = f = g = 1;
14991   ;
14992   return 0;
14993 }
14994 _ACEOF
14995 rm -f conftest.$ac_objext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997   (eval $ac_compile) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); } &&
15001          { ac_try='test -s conftest.$ac_objext'
15002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003   (eval $ac_try) 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; }; then
15007    cat >>confdefs.h <<\_ACEOF
15008 #define HAVE_U_INTXX_T 1
15009 _ACEOF
15010
15011         cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_INTXX_T 1
15013 _ACEOF
15014
15015         cat >>confdefs.h <<\_ACEOF
15016 #define HAVE_SYS_BITYPES_H 1
15017 _ACEOF
15018
15019         echo "$as_me:$LINENO: result: yes" >&5
15020 echo "${ECHO_T}yes" >&6
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025  echo "$as_me:$LINENO: result: no" >&5
15026 echo "${ECHO_T}no" >&6
15027
15028 fi
15029 rm -f conftest.$ac_objext conftest.$ac_ext
15030 fi
15031
15032 if test -z "$have_u_intxx_t" ; then
15033    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15034 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15035 if test "${ac_cv_have_uintxx_t+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038
15039       cat >conftest.$ac_ext <<_ACEOF
15040 #line $LINENO "configure"
15041 /* confdefs.h.  */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h.  */
15046  #include <sys/types.h>
15047 int
15048 main ()
15049 {
15050  uint8_t a; uint16_t b;
15051            uint32_t c; a = b = c = 1;
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058   (eval $ac_compile) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -s conftest.$ac_objext'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }; then
15068    ac_cv_have_uintxx_t="yes"
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073  ac_cv_have_uintxx_t="no"
15074
15075 fi
15076 rm -f conftest.$ac_objext conftest.$ac_ext
15077
15078 fi
15079 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15080 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15081    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15082       cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_UINTXX_T 1
15084 _ACEOF
15085
15086    fi
15087 fi
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103 for ac_func in \
15104         fork \
15105         getcwd \
15106         gethostname \
15107         getpid \
15108         gettimeofday \
15109         setpgid \
15110         setpgrp \
15111         setsid \
15112         signal \
15113         strerror \
15114         strncmp \
15115         strncpy \
15116         vfprintf \
15117
15118 do
15119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15120 echo "$as_me:$LINENO: checking for $ac_func" >&5
15121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15122 if eval "test \"\${$as_ac_var+set}\" = set"; then
15123   echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125   cat >conftest.$ac_ext <<_ACEOF
15126 #line $LINENO "configure"
15127 /* confdefs.h.  */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h.  */
15132 /* System header to define __stub macros and hopefully few prototypes,
15133     which can conflict with char $ac_func (); below.
15134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15135     <limits.h> exists even on freestanding compilers.  */
15136 #ifdef __STDC__
15137 # include <limits.h>
15138 #else
15139 # include <assert.h>
15140 #endif
15141 /* Override any gcc2 internal prototype to avoid an error.  */
15142 #ifdef __cplusplus
15143 extern "C"
15144 {
15145 #endif
15146 /* We use char because int might match the return type of a gcc2
15147    builtin and then its argument prototype would still apply.  */
15148 char $ac_func ();
15149 /* The GNU C library defines this for functions which it implements
15150     to always fail with ENOSYS.  Some functions are actually named
15151     something starting with __ and the normal name is an alias.  */
15152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15153 choke me
15154 #else
15155 char (*f) () = $ac_func;
15156 #endif
15157 #ifdef __cplusplus
15158 }
15159 #endif
15160
15161 int
15162 main ()
15163 {
15164 return f != $ac_func;
15165   ;
15166   return 0;
15167 }
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171   (eval $ac_link) 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } &&
15175          { ac_try='test -s conftest$ac_exeext'
15176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177   (eval $ac_try) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }; }; then
15181   eval "$as_ac_var=yes"
15182 else
15183   echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 eval "$as_ac_var=no"
15187 fi
15188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15189 fi
15190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15192 if test `eval echo '${'$as_ac_var'}'` = yes; then
15193   cat >>confdefs.h <<_ACEOF
15194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15195 _ACEOF
15196
15197 else
15198   echo 'configure: cannot find needed function.'; exit 1
15199
15200 fi
15201 done
15202
15203
15204
15205 for ac_func in fchdir
15206 do
15207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15208 echo "$as_me:$LINENO: checking for $ac_func" >&5
15209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15210 if eval "test \"\${$as_ac_var+set}\" = set"; then
15211   echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213   cat >conftest.$ac_ext <<_ACEOF
15214 #line $LINENO "configure"
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220 /* System header to define __stub macros and hopefully few prototypes,
15221     which can conflict with char $ac_func (); below.
15222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15223     <limits.h> exists even on freestanding compilers.  */
15224 #ifdef __STDC__
15225 # include <limits.h>
15226 #else
15227 # include <assert.h>
15228 #endif
15229 /* Override any gcc2 internal prototype to avoid an error.  */
15230 #ifdef __cplusplus
15231 extern "C"
15232 {
15233 #endif
15234 /* We use char because int might match the return type of a gcc2
15235    builtin and then its argument prototype would still apply.  */
15236 char $ac_func ();
15237 /* The GNU C library defines this for functions which it implements
15238     to always fail with ENOSYS.  Some functions are actually named
15239     something starting with __ and the normal name is an alias.  */
15240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15241 choke me
15242 #else
15243 char (*f) () = $ac_func;
15244 #endif
15245 #ifdef __cplusplus
15246 }
15247 #endif
15248
15249 int
15250 main ()
15251 {
15252 return f != $ac_func;
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest.$ac_objext conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259   (eval $ac_link) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } &&
15263          { ac_try='test -s conftest$ac_exeext'
15264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265   (eval $ac_try) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; }; then
15269   eval "$as_ac_var=yes"
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 eval "$as_ac_var=no"
15275 fi
15276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15277 fi
15278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15280 if test `eval echo '${'$as_ac_var'}'` = yes; then
15281   cat >>confdefs.h <<_ACEOF
15282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15283 _ACEOF
15284  cat >>confdefs.h <<\_ACEOF
15285 #define HAVE_FCHDIR 1
15286 _ACEOF
15287
15288 fi
15289 done
15290
15291
15292 for ac_func in strtoll
15293 do
15294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15295 echo "$as_me:$LINENO: checking for $ac_func" >&5
15296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_var+set}\" = set"; then
15298   echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300   cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15302 /* confdefs.h.  */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h.  */
15307 /* System header to define __stub macros and hopefully few prototypes,
15308     which can conflict with char $ac_func (); below.
15309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310     <limits.h> exists even on freestanding compilers.  */
15311 #ifdef __STDC__
15312 # include <limits.h>
15313 #else
15314 # include <assert.h>
15315 #endif
15316 /* Override any gcc2 internal prototype to avoid an error.  */
15317 #ifdef __cplusplus
15318 extern "C"
15319 {
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322    builtin and then its argument prototype would still apply.  */
15323 char $ac_func ();
15324 /* The GNU C library defines this for functions which it implements
15325     to always fail with ENOSYS.  Some functions are actually named
15326     something starting with __ and the normal name is an alias.  */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328 choke me
15329 #else
15330 char (*f) () = $ac_func;
15331 #endif
15332 #ifdef __cplusplus
15333 }
15334 #endif
15335
15336 int
15337 main ()
15338 {
15339 return f != $ac_func;
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346   (eval $ac_link) 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); } &&
15350          { ac_try='test -s conftest$ac_exeext'
15351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352   (eval $ac_try) 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; }; then
15356   eval "$as_ac_var=yes"
15357 else
15358   echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15360
15361 eval "$as_ac_var=no"
15362 fi
15363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15364 fi
15365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15367 if test `eval echo '${'$as_ac_var'}'` = yes; then
15368   cat >>confdefs.h <<_ACEOF
15369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15370 _ACEOF
15371  cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_STRTOLL 1
15373 _ACEOF
15374
15375 fi
15376 done
15377
15378
15379
15380 for ac_func in chflags
15381 do
15382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15383 echo "$as_me:$LINENO: checking for $ac_func" >&5
15384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15385 if eval "test \"\${$as_ac_var+set}\" = set"; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388   cat >conftest.$ac_ext <<_ACEOF
15389 #line $LINENO "configure"
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395 /* System header to define __stub macros and hopefully few prototypes,
15396     which can conflict with char $ac_func (); below.
15397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15398     <limits.h> exists even on freestanding compilers.  */
15399 #ifdef __STDC__
15400 # include <limits.h>
15401 #else
15402 # include <assert.h>
15403 #endif
15404 /* Override any gcc2 internal prototype to avoid an error.  */
15405 #ifdef __cplusplus
15406 extern "C"
15407 {
15408 #endif
15409 /* We use char because int might match the return type of a gcc2
15410    builtin and then its argument prototype would still apply.  */
15411 char $ac_func ();
15412 /* The GNU C library defines this for functions which it implements
15413     to always fail with ENOSYS.  Some functions are actually named
15414     something starting with __ and the normal name is an alias.  */
15415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15416 choke me
15417 #else
15418 char (*f) () = $ac_func;
15419 #endif
15420 #ifdef __cplusplus
15421 }
15422 #endif
15423
15424 int
15425 main ()
15426 {
15427 return f != $ac_func;
15428   ;
15429   return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434   (eval $ac_link) 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -s conftest$ac_exeext'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; }; then
15444   eval "$as_ac_var=yes"
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 eval "$as_ac_var=no"
15450 fi
15451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15452 fi
15453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15455 if test `eval echo '${'$as_ac_var'}'` = yes; then
15456   cat >>confdefs.h <<_ACEOF
15457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15458 _ACEOF
15459
15460 fi
15461 done
15462
15463
15464
15465
15466
15467
15468 for ac_func in snprintf vsnprintf gethostid getdomainname
15469 do
15470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15471 echo "$as_me:$LINENO: checking for $ac_func" >&5
15472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15473 if eval "test \"\${$as_ac_var+set}\" = set"; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   cat >conftest.$ac_ext <<_ACEOF
15477 #line $LINENO "configure"
15478 /* confdefs.h.  */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h.  */
15483 /* System header to define __stub macros and hopefully few prototypes,
15484     which can conflict with char $ac_func (); below.
15485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15486     <limits.h> exists even on freestanding compilers.  */
15487 #ifdef __STDC__
15488 # include <limits.h>
15489 #else
15490 # include <assert.h>
15491 #endif
15492 /* Override any gcc2 internal prototype to avoid an error.  */
15493 #ifdef __cplusplus
15494 extern "C"
15495 {
15496 #endif
15497 /* We use char because int might match the return type of a gcc2
15498    builtin and then its argument prototype would still apply.  */
15499 char $ac_func ();
15500 /* The GNU C library defines this for functions which it implements
15501     to always fail with ENOSYS.  Some functions are actually named
15502     something starting with __ and the normal name is an alias.  */
15503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15504 choke me
15505 #else
15506 char (*f) () = $ac_func;
15507 #endif
15508 #ifdef __cplusplus
15509 }
15510 #endif
15511
15512 int
15513 main ()
15514 {
15515 return f != $ac_func;
15516   ;
15517   return 0;
15518 }
15519 _ACEOF
15520 rm -f conftest.$ac_objext conftest$ac_exeext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15522   (eval $ac_link) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); } &&
15526          { ac_try='test -s conftest$ac_exeext'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   eval "$as_ac_var=yes"
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 eval "$as_ac_var=no"
15538 fi
15539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15540 fi
15541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15543 if test `eval echo '${'$as_ac_var'}'` = yes; then
15544   cat >>confdefs.h <<_ACEOF
15545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15546 _ACEOF
15547
15548 fi
15549 done
15550
15551
15552
15553
15554
15555
15556 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15557 do
15558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15559 echo "$as_me:$LINENO: checking for $ac_func" >&5
15560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15561 if eval "test \"\${$as_ac_var+set}\" = set"; then
15562   echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564   cat >conftest.$ac_ext <<_ACEOF
15565 #line $LINENO "configure"
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571 /* System header to define __stub macros and hopefully few prototypes,
15572     which can conflict with char $ac_func (); below.
15573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15574     <limits.h> exists even on freestanding compilers.  */
15575 #ifdef __STDC__
15576 # include <limits.h>
15577 #else
15578 # include <assert.h>
15579 #endif
15580 /* Override any gcc2 internal prototype to avoid an error.  */
15581 #ifdef __cplusplus
15582 extern "C"
15583 {
15584 #endif
15585 /* We use char because int might match the return type of a gcc2
15586    builtin and then its argument prototype would still apply.  */
15587 char $ac_func ();
15588 /* The GNU C library defines this for functions which it implements
15589     to always fail with ENOSYS.  Some functions are actually named
15590     something starting with __ and the normal name is an alias.  */
15591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15592 choke me
15593 #else
15594 char (*f) () = $ac_func;
15595 #endif
15596 #ifdef __cplusplus
15597 }
15598 #endif
15599
15600 int
15601 main ()
15602 {
15603 return f != $ac_func;
15604   ;
15605   return 0;
15606 }
15607 _ACEOF
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15610   (eval $ac_link) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); } &&
15614          { ac_try='test -s conftest$ac_exeext'
15615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616   (eval $ac_try) 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; }; then
15620   eval "$as_ac_var=yes"
15621 else
15622   echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15624
15625 eval "$as_ac_var=no"
15626 fi
15627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15628 fi
15629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15631 if test `eval echo '${'$as_ac_var'}'` = yes; then
15632   cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15634 _ACEOF
15635
15636 fi
15637 done
15638
15639
15640 # If resolver functions are not in libc check for -lnsl or -lresolv.
15641 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15642 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15643 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   cat >conftest.$ac_ext <<_ACEOF
15647 #line $LINENO "configure"
15648 /* confdefs.h.  */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h.  */
15653 /* System header to define __stub macros and hopefully few prototypes,
15654     which can conflict with char gethostbyname_r (); below.
15655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15656     <limits.h> exists even on freestanding compilers.  */
15657 #ifdef __STDC__
15658 # include <limits.h>
15659 #else
15660 # include <assert.h>
15661 #endif
15662 /* Override any gcc2 internal prototype to avoid an error.  */
15663 #ifdef __cplusplus
15664 extern "C"
15665 {
15666 #endif
15667 /* We use char because int might match the return type of a gcc2
15668    builtin and then its argument prototype would still apply.  */
15669 char gethostbyname_r ();
15670 /* The GNU C library defines this for functions which it implements
15671     to always fail with ENOSYS.  Some functions are actually named
15672     something starting with __ and the normal name is an alias.  */
15673 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15674 choke me
15675 #else
15676 char (*f) () = gethostbyname_r;
15677 #endif
15678 #ifdef __cplusplus
15679 }
15680 #endif
15681
15682 int
15683 main ()
15684 {
15685 return f != gethostbyname_r;
15686   ;
15687   return 0;
15688 }
15689 _ACEOF
15690 rm -f conftest.$ac_objext conftest$ac_exeext
15691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15692   (eval $ac_link) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } &&
15696          { ac_try='test -s conftest$ac_exeext'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702   ac_cv_func_gethostbyname_r=yes
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 ac_cv_func_gethostbyname_r=no
15708 fi
15709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15710 fi
15711 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15712 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15713 if test $ac_cv_func_gethostbyname_r = yes; then
15714   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15715 echo "${ECHO_T}using libc's resolver" >&6
15716 else
15717
15718 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15719 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15720 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15721   echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723   ac_check_lib_save_LIBS=$LIBS
15724 LIBS="-lnsl  $LIBS"
15725 cat >conftest.$ac_ext <<_ACEOF
15726 #line $LINENO "configure"
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732
15733 /* Override any gcc2 internal prototype to avoid an error.  */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 /* We use char because int might match the return type of a gcc2
15738    builtin and then its argument prototype would still apply.  */
15739 char gethostbyname_r ();
15740 int
15741 main ()
15742 {
15743 gethostbyname_r ();
15744   ;
15745   return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750   (eval $ac_link) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } &&
15754          { ac_try='test -s conftest$ac_exeext'
15755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756   (eval $ac_try) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); }; }; then
15760   ac_cv_lib_nsl_gethostbyname_r=yes
15761 else
15762   echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765 ac_cv_lib_nsl_gethostbyname_r=no
15766 fi
15767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15768 LIBS=$ac_check_lib_save_LIBS
15769 fi
15770 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15771 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15772 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15773   cat >>confdefs.h <<_ACEOF
15774 #define HAVE_LIBNSL 1
15775 _ACEOF
15776
15777   LIBS="-lnsl $LIBS"
15778
15779 fi
15780
15781
15782 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15783 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15784 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15785   echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787   ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lresolv  $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15790 #line $LINENO "configure"
15791 /* confdefs.h.  */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h.  */
15796
15797 /* Override any gcc2 internal prototype to avoid an error.  */
15798 #ifdef __cplusplus
15799 extern "C"
15800 #endif
15801 /* We use char because int might match the return type of a gcc2
15802    builtin and then its argument prototype would still apply.  */
15803 char gethostbyname_r ();
15804 int
15805 main ()
15806 {
15807 gethostbyname_r ();
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext conftest$ac_exeext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15814   (eval $ac_link) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } &&
15818          { ac_try='test -s conftest$ac_exeext'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_cv_lib_resolv_gethostbyname_r=yes
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_cv_lib_resolv_gethostbyname_r=no
15830 fi
15831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15832 LIBS=$ac_check_lib_save_LIBS
15833 fi
15834 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15835 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15836 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15837   cat >>confdefs.h <<_ACEOF
15838 #define HAVE_LIBRESOLV 1
15839 _ACEOF
15840
15841   LIBS="-lresolv $LIBS"
15842
15843 fi
15844
15845 fi
15846
15847
15848
15849 # Find where sockets are (especially for Solaris)
15850 echo "$as_me:$LINENO: checking for socket" >&5
15851 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15852 if test "${ac_cv_func_socket+set}" = set; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   cat >conftest.$ac_ext <<_ACEOF
15856 #line $LINENO "configure"
15857 /* confdefs.h.  */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h.  */
15862 /* System header to define __stub macros and hopefully few prototypes,
15863     which can conflict with char socket (); below.
15864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15865     <limits.h> exists even on freestanding compilers.  */
15866 #ifdef __STDC__
15867 # include <limits.h>
15868 #else
15869 # include <assert.h>
15870 #endif
15871 /* Override any gcc2 internal prototype to avoid an error.  */
15872 #ifdef __cplusplus
15873 extern "C"
15874 {
15875 #endif
15876 /* We use char because int might match the return type of a gcc2
15877    builtin and then its argument prototype would still apply.  */
15878 char socket ();
15879 /* The GNU C library defines this for functions which it implements
15880     to always fail with ENOSYS.  Some functions are actually named
15881     something starting with __ and the normal name is an alias.  */
15882 #if defined (__stub_socket) || defined (__stub___socket)
15883 choke me
15884 #else
15885 char (*f) () = socket;
15886 #endif
15887 #ifdef __cplusplus
15888 }
15889 #endif
15890
15891 int
15892 main ()
15893 {
15894 return f != socket;
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901   (eval $ac_link) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } &&
15905          { ac_try='test -s conftest$ac_exeext'
15906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907   (eval $ac_try) 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); }; }; then
15911   ac_cv_func_socket=yes
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_cv_func_socket=no
15917 fi
15918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15919 fi
15920 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15921 echo "${ECHO_T}$ac_cv_func_socket" >&6
15922 if test $ac_cv_func_socket = yes; then
15923   echo "$as_me:$LINENO: result: using libc's socket" >&5
15924 echo "${ECHO_T}using libc's socket" >&6
15925 else
15926
15927 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15928 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15929 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   ac_check_lib_save_LIBS=$LIBS
15933 LIBS="-lxnet  $LIBS"
15934 cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941
15942 /* Override any gcc2 internal prototype to avoid an error.  */
15943 #ifdef __cplusplus
15944 extern "C"
15945 #endif
15946 /* We use char because int might match the return type of a gcc2
15947    builtin and then its argument prototype would still apply.  */
15948 char socket ();
15949 int
15950 main ()
15951 {
15952 socket ();
15953   ;
15954   return 0;
15955 }
15956 _ACEOF
15957 rm -f conftest.$ac_objext conftest$ac_exeext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959   (eval $ac_link) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } &&
15963          { ac_try='test -s conftest$ac_exeext'
15964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965   (eval $ac_try) 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; }; then
15969   ac_cv_lib_xnet_socket=yes
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 ac_cv_lib_xnet_socket=no
15975 fi
15976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15977 LIBS=$ac_check_lib_save_LIBS
15978 fi
15979 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15980 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15981 if test $ac_cv_lib_xnet_socket = yes; then
15982   cat >>confdefs.h <<_ACEOF
15983 #define HAVE_LIBXNET 1
15984 _ACEOF
15985
15986   LIBS="-lxnet $LIBS"
15987
15988 fi
15989
15990
15991 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15992 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15993 if test "${ac_cv_lib_socket_socket+set}" = set; then
15994   echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996   ac_check_lib_save_LIBS=$LIBS
15997 LIBS="-lsocket  $LIBS"
15998 cat >conftest.$ac_ext <<_ACEOF
15999 #line $LINENO "configure"
16000 /* confdefs.h.  */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h.  */
16005
16006 /* Override any gcc2 internal prototype to avoid an error.  */
16007 #ifdef __cplusplus
16008 extern "C"
16009 #endif
16010 /* We use char because int might match the return type of a gcc2
16011    builtin and then its argument prototype would still apply.  */
16012 char socket ();
16013 int
16014 main ()
16015 {
16016 socket ();
16017   ;
16018   return 0;
16019 }
16020 _ACEOF
16021 rm -f conftest.$ac_objext conftest$ac_exeext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023   (eval $ac_link) 2>&5
16024   ac_status=$?
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); } &&
16027          { ac_try='test -s conftest$ac_exeext'
16028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029   (eval $ac_try) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; }; then
16033   ac_cv_lib_socket_socket=yes
16034 else
16035   echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 ac_cv_lib_socket_socket=no
16039 fi
16040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16042 fi
16043 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16044 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16045 if test $ac_cv_lib_socket_socket = yes; then
16046   cat >>confdefs.h <<_ACEOF
16047 #define HAVE_LIBSOCKET 1
16048 _ACEOF
16049
16050   LIBS="-lsocket $LIBS"
16051
16052 fi
16053
16054
16055 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16056 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16057 if test "${ac_cv_lib_inet_socket+set}" = set; then
16058   echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060   ac_check_lib_save_LIBS=$LIBS
16061 LIBS="-linet  $LIBS"
16062 cat >conftest.$ac_ext <<_ACEOF
16063 #line $LINENO "configure"
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069
16070 /* Override any gcc2 internal prototype to avoid an error.  */
16071 #ifdef __cplusplus
16072 extern "C"
16073 #endif
16074 /* We use char because int might match the return type of a gcc2
16075    builtin and then its argument prototype would still apply.  */
16076 char socket ();
16077 int
16078 main ()
16079 {
16080 socket ();
16081   ;
16082   return 0;
16083 }
16084 _ACEOF
16085 rm -f conftest.$ac_objext conftest$ac_exeext
16086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16087   (eval $ac_link) 2>&5
16088   ac_status=$?
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); } &&
16091          { ac_try='test -s conftest$ac_exeext'
16092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093   (eval $ac_try) 2>&5
16094   ac_status=$?
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); }; }; then
16097   ac_cv_lib_inet_socket=yes
16098 else
16099   echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16101
16102 ac_cv_lib_inet_socket=no
16103 fi
16104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16105 LIBS=$ac_check_lib_save_LIBS
16106 fi
16107 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16108 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16109 if test $ac_cv_lib_inet_socket = yes; then
16110   cat >>confdefs.h <<_ACEOF
16111 #define HAVE_LIBINET 1
16112 _ACEOF
16113
16114   LIBS="-linet $LIBS"
16115
16116 fi
16117
16118 fi
16119
16120
16121
16122 for ac_func in inet_pton
16123 do
16124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125 echo "$as_me:$LINENO: checking for $ac_func" >&5
16126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16127 if eval "test \"\${$as_ac_var+set}\" = set"; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 #line $LINENO "configure"
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 /* System header to define __stub macros and hopefully few prototypes,
16138     which can conflict with char $ac_func (); below.
16139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16140     <limits.h> exists even on freestanding compilers.  */
16141 #ifdef __STDC__
16142 # include <limits.h>
16143 #else
16144 # include <assert.h>
16145 #endif
16146 /* Override any gcc2 internal prototype to avoid an error.  */
16147 #ifdef __cplusplus
16148 extern "C"
16149 {
16150 #endif
16151 /* We use char because int might match the return type of a gcc2
16152    builtin and then its argument prototype would still apply.  */
16153 char $ac_func ();
16154 /* The GNU C library defines this for functions which it implements
16155     to always fail with ENOSYS.  Some functions are actually named
16156     something starting with __ and the normal name is an alias.  */
16157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16158 choke me
16159 #else
16160 char (*f) () = $ac_func;
16161 #endif
16162 #ifdef __cplusplus
16163 }
16164 #endif
16165
16166 int
16167 main ()
16168 {
16169 return f != $ac_func;
16170   ;
16171   return 0;
16172 }
16173 _ACEOF
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176   (eval $ac_link) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -s conftest$ac_exeext'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; }; then
16186   eval "$as_ac_var=yes"
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 eval "$as_ac_var=no"
16192 fi
16193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16194 fi
16195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16197 if test `eval echo '${'$as_ac_var'}'` = yes; then
16198   cat >>confdefs.h <<_ACEOF
16199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16200 _ACEOF
16201  cat >>confdefs.h <<\_ACEOF
16202 #define HAVE_INET_PTON 1
16203 _ACEOF
16204
16205 fi
16206 done
16207
16208
16209
16210 for ac_func in strftime
16211 do
16212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16213 echo "$as_me:$LINENO: checking for $ac_func" >&5
16214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16215 if eval "test \"\${$as_ac_var+set}\" = set"; then
16216   echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218   cat >conftest.$ac_ext <<_ACEOF
16219 #line $LINENO "configure"
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 /* System header to define __stub macros and hopefully few prototypes,
16226     which can conflict with char $ac_func (); below.
16227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16228     <limits.h> exists even on freestanding compilers.  */
16229 #ifdef __STDC__
16230 # include <limits.h>
16231 #else
16232 # include <assert.h>
16233 #endif
16234 /* Override any gcc2 internal prototype to avoid an error.  */
16235 #ifdef __cplusplus
16236 extern "C"
16237 {
16238 #endif
16239 /* We use char because int might match the return type of a gcc2
16240    builtin and then its argument prototype would still apply.  */
16241 char $ac_func ();
16242 /* The GNU C library defines this for functions which it implements
16243     to always fail with ENOSYS.  Some functions are actually named
16244     something starting with __ and the normal name is an alias.  */
16245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16246 choke me
16247 #else
16248 char (*f) () = $ac_func;
16249 #endif
16250 #ifdef __cplusplus
16251 }
16252 #endif
16253
16254 int
16255 main ()
16256 {
16257 return f != $ac_func;
16258   ;
16259   return 0;
16260 }
16261 _ACEOF
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264   (eval $ac_link) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -s conftest$ac_exeext'
16269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270   (eval $ac_try) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; }; then
16274   eval "$as_ac_var=yes"
16275 else
16276   echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16278
16279 eval "$as_ac_var=no"
16280 fi
16281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16282 fi
16283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16285 if test `eval echo '${'$as_ac_var'}'` = yes; then
16286   cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16288 _ACEOF
16289
16290 else
16291   # strftime is in -lintl on SCO UNIX.
16292 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16293 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16294 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16295   echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297   ac_check_lib_save_LIBS=$LIBS
16298 LIBS="-lintl  $LIBS"
16299 cat >conftest.$ac_ext <<_ACEOF
16300 #line $LINENO "configure"
16301 /* confdefs.h.  */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h.  */
16306
16307 /* Override any gcc2 internal prototype to avoid an error.  */
16308 #ifdef __cplusplus
16309 extern "C"
16310 #endif
16311 /* We use char because int might match the return type of a gcc2
16312    builtin and then its argument prototype would still apply.  */
16313 char strftime ();
16314 int
16315 main ()
16316 {
16317 strftime ();
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16324   (eval $ac_link) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } &&
16328          { ac_try='test -s conftest$ac_exeext'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334   ac_cv_lib_intl_strftime=yes
16335 else
16336   echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339 ac_cv_lib_intl_strftime=no
16340 fi
16341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16342 LIBS=$ac_check_lib_save_LIBS
16343 fi
16344 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16345 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16346 if test $ac_cv_lib_intl_strftime = yes; then
16347   cat >>confdefs.h <<\_ACEOF
16348 #define HAVE_STRFTIME 1
16349 _ACEOF
16350
16351 LIBS="-lintl $LIBS"
16352 fi
16353
16354 fi
16355 done
16356
16357
16358 for ac_func in vprintf
16359 do
16360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16361 echo "$as_me:$LINENO: checking for $ac_func" >&5
16362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16363 if eval "test \"\${$as_ac_var+set}\" = set"; then
16364   echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366   cat >conftest.$ac_ext <<_ACEOF
16367 #line $LINENO "configure"
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 /* System header to define __stub macros and hopefully few prototypes,
16374     which can conflict with char $ac_func (); below.
16375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16376     <limits.h> exists even on freestanding compilers.  */
16377 #ifdef __STDC__
16378 # include <limits.h>
16379 #else
16380 # include <assert.h>
16381 #endif
16382 /* Override any gcc2 internal prototype to avoid an error.  */
16383 #ifdef __cplusplus
16384 extern "C"
16385 {
16386 #endif
16387 /* We use char because int might match the return type of a gcc2
16388    builtin and then its argument prototype would still apply.  */
16389 char $ac_func ();
16390 /* The GNU C library defines this for functions which it implements
16391     to always fail with ENOSYS.  Some functions are actually named
16392     something starting with __ and the normal name is an alias.  */
16393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16394 choke me
16395 #else
16396 char (*f) () = $ac_func;
16397 #endif
16398 #ifdef __cplusplus
16399 }
16400 #endif
16401
16402 int
16403 main ()
16404 {
16405 return f != $ac_func;
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16412   (eval $ac_link) 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } &&
16416          { ac_try='test -s conftest$ac_exeext'
16417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418   (eval $ac_try) 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; }; then
16422   eval "$as_ac_var=yes"
16423 else
16424   echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 eval "$as_ac_var=no"
16428 fi
16429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16430 fi
16431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16433 if test `eval echo '${'$as_ac_var'}'` = yes; then
16434   cat >>confdefs.h <<_ACEOF
16435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16436 _ACEOF
16437
16438 echo "$as_me:$LINENO: checking for _doprnt" >&5
16439 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16440 if test "${ac_cv_func__doprnt+set}" = set; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   cat >conftest.$ac_ext <<_ACEOF
16444 #line $LINENO "configure"
16445 /* confdefs.h.  */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h.  */
16450 /* System header to define __stub macros and hopefully few prototypes,
16451     which can conflict with char _doprnt (); below.
16452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16453     <limits.h> exists even on freestanding compilers.  */
16454 #ifdef __STDC__
16455 # include <limits.h>
16456 #else
16457 # include <assert.h>
16458 #endif
16459 /* Override any gcc2 internal prototype to avoid an error.  */
16460 #ifdef __cplusplus
16461 extern "C"
16462 {
16463 #endif
16464 /* We use char because int might match the return type of a gcc2
16465    builtin and then its argument prototype would still apply.  */
16466 char _doprnt ();
16467 /* The GNU C library defines this for functions which it implements
16468     to always fail with ENOSYS.  Some functions are actually named
16469     something starting with __ and the normal name is an alias.  */
16470 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16471 choke me
16472 #else
16473 char (*f) () = _doprnt;
16474 #endif
16475 #ifdef __cplusplus
16476 }
16477 #endif
16478
16479 int
16480 main ()
16481 {
16482 return f != _doprnt;
16483   ;
16484   return 0;
16485 }
16486 _ACEOF
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16489   (eval $ac_link) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); } &&
16493          { ac_try='test -s conftest$ac_exeext'
16494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495   (eval $ac_try) 2>&5
16496   ac_status=$?
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); }; }; then
16499   ac_cv_func__doprnt=yes
16500 else
16501   echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 ac_cv_func__doprnt=no
16505 fi
16506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16507 fi
16508 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16509 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16510 if test $ac_cv_func__doprnt = yes; then
16511
16512 cat >>confdefs.h <<\_ACEOF
16513 #define HAVE_DOPRNT 1
16514 _ACEOF
16515
16516 fi
16517
16518 fi
16519 done
16520
16521
16522 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16523 # for constant arguments.  Useless!
16524 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16525 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16526 if test "${ac_cv_working_alloca_h+set}" = set; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   cat >conftest.$ac_ext <<_ACEOF
16530 #line $LINENO "configure"
16531 /* confdefs.h.  */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h.  */
16536 #include <alloca.h>
16537 int
16538 main ()
16539 {
16540 char *p = (char *) alloca (2 * sizeof (int));
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547   (eval $ac_link) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -s conftest$ac_exeext'
16552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553   (eval $ac_try) 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; }; then
16557   ac_cv_working_alloca_h=yes
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 ac_cv_working_alloca_h=no
16563 fi
16564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16565 fi
16566 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16568 if test $ac_cv_working_alloca_h = yes; then
16569
16570 cat >>confdefs.h <<\_ACEOF
16571 #define HAVE_ALLOCA_H 1
16572 _ACEOF
16573
16574 fi
16575
16576 echo "$as_me:$LINENO: checking for alloca" >&5
16577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16578 if test "${ac_cv_func_alloca_works+set}" = set; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581   cat >conftest.$ac_ext <<_ACEOF
16582 #line $LINENO "configure"
16583 /* confdefs.h.  */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h.  */
16588 #ifdef __GNUC__
16589 # define alloca __builtin_alloca
16590 #else
16591 # ifdef _MSC_VER
16592 #  include <malloc.h>
16593 #  define alloca _alloca
16594 # else
16595 #  if HAVE_ALLOCA_H
16596 #   include <alloca.h>
16597 #  else
16598 #   ifdef _AIX
16599  #pragma alloca
16600 #   else
16601 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16602 char *alloca ();
16603 #    endif
16604 #   endif
16605 #  endif
16606 # endif
16607 #endif
16608
16609 int
16610 main ()
16611 {
16612 char *p = (char *) alloca (1);
16613   ;
16614   return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619   (eval $ac_link) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); } &&
16623          { ac_try='test -s conftest$ac_exeext'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; }; then
16629   ac_cv_func_alloca_works=yes
16630 else
16631   echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ac_cv_func_alloca_works=no
16635 fi
16636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16637 fi
16638 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16639 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16640
16641 if test $ac_cv_func_alloca_works = yes; then
16642
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE_ALLOCA 1
16645 _ACEOF
16646
16647 else
16648   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16649 # that cause trouble.  Some versions do not even contain alloca or
16650 # contain a buggy version.  If you still want to use their alloca,
16651 # use ar to extract alloca.o from them instead of compiling alloca.c.
16652
16653 ALLOCA=alloca.$ac_objext
16654
16655 cat >>confdefs.h <<\_ACEOF
16656 #define C_ALLOCA 1
16657 _ACEOF
16658
16659
16660 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16661 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16662 if test "${ac_cv_os_cray+set}" = set; then
16663   echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665   cat >conftest.$ac_ext <<_ACEOF
16666 #line $LINENO "configure"
16667 /* confdefs.h.  */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h.  */
16672 #if defined(CRAY) && ! defined(CRAY2)
16673 webecray
16674 #else
16675 wenotbecray
16676 #endif
16677
16678 _ACEOF
16679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16680   $EGREP "webecray" >/dev/null 2>&1; then
16681   ac_cv_os_cray=yes
16682 else
16683   ac_cv_os_cray=no
16684 fi
16685 rm -f conftest*
16686
16687 fi
16688 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16689 echo "${ECHO_T}$ac_cv_os_cray" >&6
16690 if test $ac_cv_os_cray = yes; then
16691   for ac_func in _getb67 GETB67 getb67; do
16692     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693 echo "$as_me:$LINENO: checking for $ac_func" >&5
16694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16695 if eval "test \"\${$as_ac_var+set}\" = set"; then
16696   echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698   cat >conftest.$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16700 /* confdefs.h.  */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h.  */
16705 /* System header to define __stub macros and hopefully few prototypes,
16706     which can conflict with char $ac_func (); below.
16707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708     <limits.h> exists even on freestanding compilers.  */
16709 #ifdef __STDC__
16710 # include <limits.h>
16711 #else
16712 # include <assert.h>
16713 #endif
16714 /* Override any gcc2 internal prototype to avoid an error.  */
16715 #ifdef __cplusplus
16716 extern "C"
16717 {
16718 #endif
16719 /* We use char because int might match the return type of a gcc2
16720    builtin and then its argument prototype would still apply.  */
16721 char $ac_func ();
16722 /* The GNU C library defines this for functions which it implements
16723     to always fail with ENOSYS.  Some functions are actually named
16724     something starting with __ and the normal name is an alias.  */
16725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16726 choke me
16727 #else
16728 char (*f) () = $ac_func;
16729 #endif
16730 #ifdef __cplusplus
16731 }
16732 #endif
16733
16734 int
16735 main ()
16736 {
16737 return f != $ac_func;
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744   (eval $ac_link) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); } &&
16748          { ac_try='test -s conftest$ac_exeext'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   eval "$as_ac_var=yes"
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 eval "$as_ac_var=no"
16760 fi
16761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16762 fi
16763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16765 if test `eval echo '${'$as_ac_var'}'` = yes; then
16766
16767 cat >>confdefs.h <<_ACEOF
16768 #define CRAY_STACKSEG_END $ac_func
16769 _ACEOF
16770
16771     break
16772 fi
16773
16774   done
16775 fi
16776
16777 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16778 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16779 if test "${ac_cv_c_stack_direction+set}" = set; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   if test "$cross_compiling" = yes; then
16783   ac_cv_c_stack_direction=0
16784 else
16785   cat >conftest.$ac_ext <<_ACEOF
16786 #line $LINENO "configure"
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 int
16793 find_stack_direction ()
16794 {
16795   static char *addr = 0;
16796   auto char dummy;
16797   if (addr == 0)
16798     {
16799       addr = &dummy;
16800       return find_stack_direction ();
16801     }
16802   else
16803     return (&dummy > addr) ? 1 : -1;
16804 }
16805
16806 int
16807 main ()
16808 {
16809   exit (find_stack_direction () < 0);
16810 }
16811 _ACEOF
16812 rm -f conftest$ac_exeext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814   (eval $ac_link) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819   (eval $ac_try) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; }; then
16823   ac_cv_c_stack_direction=1
16824 else
16825   echo "$as_me: program exited with status $ac_status" >&5
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 ( exit $ac_status )
16830 ac_cv_c_stack_direction=-1
16831 fi
16832 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 fi
16835 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16836 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16837
16838 cat >>confdefs.h <<_ACEOF
16839 #define STACK_DIRECTION $ac_cv_c_stack_direction
16840 _ACEOF
16841
16842
16843 fi
16844
16845 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16846 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16847 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16848 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851   ac_check_lib_save_LIBS=$LIBS
16852 LIBS="-lsun  $LIBS"
16853 cat >conftest.$ac_ext <<_ACEOF
16854 #line $LINENO "configure"
16855 /* confdefs.h.  */
16856 _ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h.  */
16860
16861 /* Override any gcc2 internal prototype to avoid an error.  */
16862 #ifdef __cplusplus
16863 extern "C"
16864 #endif
16865 /* We use char because int might match the return type of a gcc2
16866    builtin and then its argument prototype would still apply.  */
16867 char getmntent ();
16868 int
16869 main ()
16870 {
16871 getmntent ();
16872   ;
16873   return 0;
16874 }
16875 _ACEOF
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878   (eval $ac_link) 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } &&
16882          { ac_try='test -s conftest$ac_exeext'
16883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884   (eval $ac_try) 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888   ac_cv_lib_sun_getmntent=yes
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 ac_cv_lib_sun_getmntent=no
16894 fi
16895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16896 LIBS=$ac_check_lib_save_LIBS
16897 fi
16898 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16899 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16900 if test $ac_cv_lib_sun_getmntent = yes; then
16901   LIBS="-lsun $LIBS"
16902 else
16903   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16904 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16905 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   ac_check_lib_save_LIBS=$LIBS
16909 LIBS="-lseq  $LIBS"
16910 cat >conftest.$ac_ext <<_ACEOF
16911 #line $LINENO "configure"
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917
16918 /* Override any gcc2 internal prototype to avoid an error.  */
16919 #ifdef __cplusplus
16920 extern "C"
16921 #endif
16922 /* We use char because int might match the return type of a gcc2
16923    builtin and then its argument prototype would still apply.  */
16924 char getmntent ();
16925 int
16926 main ()
16927 {
16928 getmntent ();
16929   ;
16930   return 0;
16931 }
16932 _ACEOF
16933 rm -f conftest.$ac_objext conftest$ac_exeext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16935   (eval $ac_link) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); } &&
16939          { ac_try='test -s conftest$ac_exeext'
16940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941   (eval $ac_try) 2>&5
16942   ac_status=$?
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); }; }; then
16945   ac_cv_lib_seq_getmntent=yes
16946 else
16947   echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950 ac_cv_lib_seq_getmntent=no
16951 fi
16952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16953 LIBS=$ac_check_lib_save_LIBS
16954 fi
16955 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16956 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16957 if test $ac_cv_lib_seq_getmntent = yes; then
16958   LIBS="-lseq $LIBS"
16959 else
16960   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16961 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16962 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16963   echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965   ac_check_lib_save_LIBS=$LIBS
16966 LIBS="-lgen  $LIBS"
16967 cat >conftest.$ac_ext <<_ACEOF
16968 #line $LINENO "configure"
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974
16975 /* Override any gcc2 internal prototype to avoid an error.  */
16976 #ifdef __cplusplus
16977 extern "C"
16978 #endif
16979 /* We use char because int might match the return type of a gcc2
16980    builtin and then its argument prototype would still apply.  */
16981 char getmntent ();
16982 int
16983 main ()
16984 {
16985 getmntent ();
16986   ;
16987   return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext conftest$ac_exeext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16992   (eval $ac_link) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } &&
16996          { ac_try='test -s conftest$ac_exeext'
16997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998   (eval $ac_try) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; }; then
17002   ac_cv_lib_gen_getmntent=yes
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17006
17007 ac_cv_lib_gen_getmntent=no
17008 fi
17009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17011 fi
17012 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17013 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17014 if test $ac_cv_lib_gen_getmntent = yes; then
17015   LIBS="-lgen $LIBS"
17016 fi
17017
17018 fi
17019
17020 fi
17021
17022
17023 for ac_func in getmntent
17024 do
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17028 if eval "test \"\${$as_ac_var+set}\" = set"; then
17029   echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031   cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17033 /* confdefs.h.  */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h.  */
17038 /* System header to define __stub macros and hopefully few prototypes,
17039     which can conflict with char $ac_func (); below.
17040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17041     <limits.h> exists even on freestanding compilers.  */
17042 #ifdef __STDC__
17043 # include <limits.h>
17044 #else
17045 # include <assert.h>
17046 #endif
17047 /* Override any gcc2 internal prototype to avoid an error.  */
17048 #ifdef __cplusplus
17049 extern "C"
17050 {
17051 #endif
17052 /* We use char because int might match the return type of a gcc2
17053    builtin and then its argument prototype would still apply.  */
17054 char $ac_func ();
17055 /* The GNU C library defines this for functions which it implements
17056     to always fail with ENOSYS.  Some functions are actually named
17057     something starting with __ and the normal name is an alias.  */
17058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17059 choke me
17060 #else
17061 char (*f) () = $ac_func;
17062 #endif
17063 #ifdef __cplusplus
17064 }
17065 #endif
17066
17067 int
17068 main ()
17069 {
17070 return f != $ac_func;
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17077   (eval $ac_link) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -s conftest$ac_exeext'
17082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083   (eval $ac_try) 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; }; then
17087   eval "$as_ac_var=yes"
17088 else
17089   echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17091
17092 eval "$as_ac_var=no"
17093 fi
17094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17095 fi
17096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099   cat >>confdefs.h <<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17101 _ACEOF
17102
17103 fi
17104 done
17105
17106
17107 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17108 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17109 if test "${ac_cv_func_closedir_void+set}" = set; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   if test "$cross_compiling" = yes; then
17113   ac_cv_func_closedir_void=yes
17114 else
17115   cat >conftest.$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17117 /* confdefs.h.  */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h.  */
17122 $ac_includes_default
17123 #include <$ac_header_dirent>
17124 #ifndef __cplusplus
17125 int closedir ();
17126 #endif
17127
17128 int
17129 main ()
17130 {
17131 exit (closedir (opendir (".")) != 0);
17132   ;
17133   return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138   (eval $ac_link) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_func_closedir_void=no
17148 else
17149   echo "$as_me: program exited with status $ac_status" >&5
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 ( exit $ac_status )
17154 ac_cv_func_closedir_void=yes
17155 fi
17156 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17157 fi
17158 fi
17159 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17160 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17161 if test $ac_cv_func_closedir_void = yes; then
17162
17163 cat >>confdefs.h <<\_ACEOF
17164 #define CLOSEDIR_VOID 1
17165 _ACEOF
17166
17167 fi
17168
17169 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17170 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17171 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17172   echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174   if test "$cross_compiling" = yes; then
17175   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17176 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17177    { (exit 1); exit 1; }; }
17178 else
17179   cat >conftest.$ac_ext <<_ACEOF
17180 #line $LINENO "configure"
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186 #if HAVE_UNISTD_H
17187 # include <unistd.h>
17188 #endif
17189
17190 int
17191 main ()
17192 {
17193 /* If this system has a BSD-style setpgrp which takes arguments,
17194   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17195   exit successfully. */
17196   exit (setpgrp (1,1) == -1 ? 0 : 1);
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203   (eval $ac_link) 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; }; then
17212   ac_cv_func_setpgrp_void=no
17213 else
17214   echo "$as_me: program exited with status $ac_status" >&5
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ( exit $ac_status )
17219 ac_cv_func_setpgrp_void=yes
17220 fi
17221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17222 fi
17223 fi
17224 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17225 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17226 if test $ac_cv_func_setpgrp_void = yes; then
17227
17228 cat >>confdefs.h <<\_ACEOF
17229 #define SETPGRP_VOID 1
17230 _ACEOF
17231
17232 fi
17233                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17234 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17235 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   # Some versions of Solaris, SCO, and the GNU C Library
17239    # have a broken or incompatible fnmatch.
17240    # So we run a test program.  If we are cross-compiling, take no chance.
17241    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17242    if test "$cross_compiling" = yes; then
17243   ac_cv_func_fnmatch_works=cross
17244 else
17245   cat >conftest.$ac_ext <<_ACEOF
17246 #line $LINENO "configure"
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252 #include <fnmatch.h>
17253 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17254 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17255
17256 int
17257 main ()
17258 {
17259 exit
17260            (!(y ("a*", "abc", 0)
17261               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17262               && y ("a\\\\bc", "abc", 0)
17263               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17264               && y ("*x", ".x", 0)
17265               && n ("*x", ".x", FNM_PERIOD)
17266               && 1));
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest$ac_exeext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17273   (eval $ac_link) 2>&5
17274   ac_status=$?
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278   (eval $ac_try) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; }; then
17282   ac_cv_func_fnmatch_works=yes
17283 else
17284   echo "$as_me: program exited with status $ac_status" >&5
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17287
17288 ( exit $ac_status )
17289 ac_cv_func_fnmatch_works=no
17290 fi
17291 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17292 fi
17293 fi
17294 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17295 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17296 if test $ac_cv_func_fnmatch_works = yes; then
17297
17298 cat >>confdefs.h <<\_ACEOF
17299 #define HAVE_FNMATCH 1
17300 _ACEOF
17301
17302 fi
17303
17304
17305
17306
17307
17308 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17309 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17310 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313   ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lxpg4  $LIBS"
17315 cat >conftest.$ac_ext <<_ACEOF
17316 #line $LINENO "configure"
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322
17323 /* Override any gcc2 internal prototype to avoid an error.  */
17324 #ifdef __cplusplus
17325 extern "C"
17326 #endif
17327 /* We use char because int might match the return type of a gcc2
17328    builtin and then its argument prototype would still apply.  */
17329 char setlocale ();
17330 int
17331 main ()
17332 {
17333 setlocale ();
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17340   (eval $ac_link) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -s conftest$ac_exeext'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   ac_cv_lib_xpg4_setlocale=yes
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_cv_lib_xpg4_setlocale=no
17356 fi
17357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS
17359 fi
17360 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17361 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17362 if test $ac_cv_lib_xpg4_setlocale = yes; then
17363   LIBS="$LIBS -lxpg4"
17364 fi
17365
17366
17367
17368
17369 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17370 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17371 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17372   echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374   ac_check_lib_save_LIBS=$LIBS
17375 LIBS="-lsun  $LIBS"
17376 cat >conftest.$ac_ext <<_ACEOF
17377 #line $LINENO "configure"
17378 /* confdefs.h.  */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h.  */
17383
17384 /* Override any gcc2 internal prototype to avoid an error.  */
17385 #ifdef __cplusplus
17386 extern "C"
17387 #endif
17388 /* We use char because int might match the return type of a gcc2
17389    builtin and then its argument prototype would still apply.  */
17390 char getpwnam ();
17391 int
17392 main ()
17393 {
17394 getpwnam ();
17395   ;
17396   return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401   (eval $ac_link) 2>&5
17402   ac_status=$?
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); } &&
17405          { ac_try='test -s conftest$ac_exeext'
17406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407   (eval $ac_try) 2>&5
17408   ac_status=$?
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); }; }; then
17411   ac_cv_lib_sun_getpwnam=yes
17412 else
17413   echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 ac_cv_lib_sun_getpwnam=no
17417 fi
17418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17419 LIBS=$ac_check_lib_save_LIBS
17420 fi
17421 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17422 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17423 if test $ac_cv_lib_sun_getpwnam = yes; then
17424   cat >>confdefs.h <<_ACEOF
17425 #define HAVE_LIBSUN 1
17426 _ACEOF
17427
17428   LIBS="-lsun $LIBS"
17429
17430 fi
17431
17432
17433
17434 for ac_header in zlib.h
17435 do
17436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17438   echo "$as_me:$LINENO: checking for $ac_header" >&5
17439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 fi
17443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17445 else
17446   # Is the header compilable?
17447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17449 cat >conftest.$ac_ext <<_ACEOF
17450 #line $LINENO "configure"
17451 /* confdefs.h.  */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h.  */
17456 $ac_includes_default
17457 #include <$ac_header>
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461   (eval $ac_compile) 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); } &&
17465          { ac_try='test -s conftest.$ac_objext'
17466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467   (eval $ac_try) 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; }; then
17471   ac_header_compiler=yes
17472 else
17473   echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 ac_header_compiler=no
17477 fi
17478 rm -f conftest.$ac_objext conftest.$ac_ext
17479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17480 echo "${ECHO_T}$ac_header_compiler" >&6
17481
17482 # Is the header present?
17483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17485 cat >conftest.$ac_ext <<_ACEOF
17486 #line $LINENO "configure"
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492 #include <$ac_header>
17493 _ACEOF
17494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17496   ac_status=$?
17497   grep -v '^ *+' conftest.er1 >conftest.err
17498   rm -f conftest.er1
17499   cat conftest.err >&5
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); } >/dev/null; then
17502   if test -s conftest.err; then
17503     ac_cpp_err=$ac_c_preproc_warn_flag
17504   else
17505     ac_cpp_err=
17506   fi
17507 else
17508   ac_cpp_err=yes
17509 fi
17510 if test -z "$ac_cpp_err"; then
17511   ac_header_preproc=yes
17512 else
17513   echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516   ac_header_preproc=no
17517 fi
17518 rm -f conftest.err conftest.$ac_ext
17519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17520 echo "${ECHO_T}$ac_header_preproc" >&6
17521
17522 # So?  What about this header?
17523 case $ac_header_compiler:$ac_header_preproc in
17524   yes:no )
17525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17529     (
17530       cat <<\_ASBOX
17531 ## ------------------------------------ ##
17532 ## Report this to bug-autoconf@gnu.org. ##
17533 ## ------------------------------------ ##
17534 _ASBOX
17535     ) |
17536       sed "s/^/$as_me: WARNING:     /" >&2
17537     ;;
17538   no:yes )
17539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17541     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17545     (
17546       cat <<\_ASBOX
17547 ## ------------------------------------ ##
17548 ## Report this to bug-autoconf@gnu.org. ##
17549 ## ------------------------------------ ##
17550 _ASBOX
17551     ) |
17552       sed "s/^/$as_me: WARNING:     /" >&2
17553     ;;
17554 esac
17555 echo "$as_me:$LINENO: checking for $ac_header" >&5
17556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   eval "$as_ac_Header=$ac_header_preproc"
17561 fi
17562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17564
17565 fi
17566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17567   cat >>confdefs.h <<_ACEOF
17568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17569 _ACEOF
17570
17571 fi
17572
17573 done
17574
17575 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17576 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17577 if test "${ac_cv_lib_z_deflate+set}" = set; then
17578   echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580   ac_check_lib_save_LIBS=$LIBS
17581 LIBS="-lz  $LIBS"
17582 cat >conftest.$ac_ext <<_ACEOF
17583 #line $LINENO "configure"
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589
17590 /* Override any gcc2 internal prototype to avoid an error.  */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 /* We use char because int might match the return type of a gcc2
17595    builtin and then its argument prototype would still apply.  */
17596 char deflate ();
17597 int
17598 main ()
17599 {
17600 deflate ();
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17607   (eval $ac_link) 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); } &&
17611          { ac_try='test -s conftest$ac_exeext'
17612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613   (eval $ac_try) 2>&5
17614   ac_status=$?
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); }; }; then
17617   ac_cv_lib_z_deflate=yes
17618 else
17619   echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 ac_cv_lib_z_deflate=no
17623 fi
17624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17625 LIBS=$ac_check_lib_save_LIBS
17626 fi
17627 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17628 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17629 if test $ac_cv_lib_z_deflate = yes; then
17630   FDLIBS="-lz"
17631 fi
17632
17633 have_zlib=no
17634 if test x$FDLIBS = x-lz; then
17635   cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_LIBZ 1
17637 _ACEOF
17638
17639   have_zlib=yes
17640 fi
17641
17642 PTHREAD_LIB=""
17643 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17644 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17645 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17646   echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648   ac_check_lib_save_LIBS=$LIBS
17649 LIBS="-lpthread  $LIBS"
17650 cat >conftest.$ac_ext <<_ACEOF
17651 #line $LINENO "configure"
17652 /* confdefs.h.  */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h.  */
17657
17658 /* Override any gcc2 internal prototype to avoid an error.  */
17659 #ifdef __cplusplus
17660 extern "C"
17661 #endif
17662 /* We use char because int might match the return type of a gcc2
17663    builtin and then its argument prototype would still apply.  */
17664 char pthread_create ();
17665 int
17666 main ()
17667 {
17668 pthread_create ();
17669   ;
17670   return 0;
17671 }
17672 _ACEOF
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675   (eval $ac_link) 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } &&
17679          { ac_try='test -s conftest$ac_exeext'
17680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681   (eval $ac_try) 2>&5
17682   ac_status=$?
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); }; }; then
17685   ac_cv_lib_pthread_pthread_create=yes
17686 else
17687   echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17689
17690 ac_cv_lib_pthread_pthread_create=no
17691 fi
17692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17693 LIBS=$ac_check_lib_save_LIBS
17694 fi
17695 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17697 if test $ac_cv_lib_pthread_pthread_create = yes; then
17698   PTHREAD_LIB="-lpthread"
17699 else
17700   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17701 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17702 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17703   echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705   ac_check_lib_save_LIBS=$LIBS
17706 LIBS="-lpthreads  $LIBS"
17707 cat >conftest.$ac_ext <<_ACEOF
17708 #line $LINENO "configure"
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714
17715 /* Override any gcc2 internal prototype to avoid an error.  */
17716 #ifdef __cplusplus
17717 extern "C"
17718 #endif
17719 /* We use char because int might match the return type of a gcc2
17720    builtin and then its argument prototype would still apply.  */
17721 char pthread_create ();
17722 int
17723 main ()
17724 {
17725 pthread_create ();
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732   (eval $ac_link) 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); } &&
17736          { ac_try='test -s conftest$ac_exeext'
17737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738   (eval $ac_try) 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; }; then
17742   ac_cv_lib_pthreads_pthread_create=yes
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747 ac_cv_lib_pthreads_pthread_create=no
17748 fi
17749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17750 LIBS=$ac_check_lib_save_LIBS
17751 fi
17752 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17753 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17754 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17755   PTHREAD_LIB="-lpthreads"
17756 else
17757   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17758 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17759 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   ac_check_lib_save_LIBS=$LIBS
17763 LIBS="-lc_r  $LIBS"
17764 cat >conftest.$ac_ext <<_ACEOF
17765 #line $LINENO "configure"
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771
17772 /* Override any gcc2 internal prototype to avoid an error.  */
17773 #ifdef __cplusplus
17774 extern "C"
17775 #endif
17776 /* We use char because int might match the return type of a gcc2
17777    builtin and then its argument prototype would still apply.  */
17778 char pthread_create ();
17779 int
17780 main ()
17781 {
17782 pthread_create ();
17783   ;
17784   return 0;
17785 }
17786 _ACEOF
17787 rm -f conftest.$ac_objext conftest$ac_exeext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789   (eval $ac_link) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } &&
17793          { ac_try='test -s conftest$ac_exeext'
17794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795   (eval $ac_try) 2>&5
17796   ac_status=$?
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); }; }; then
17799   ac_cv_lib_c_r_pthread_create=yes
17800 else
17801   echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 ac_cv_lib_c_r_pthread_create=no
17805 fi
17806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17808 fi
17809 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17810 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17811 if test $ac_cv_lib_c_r_pthread_create = yes; then
17812   PTHREAD_LIB="-lc_r"
17813 else
17814   echo "$as_me:$LINENO: checking for pthread_create" >&5
17815 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17816 if test "${ac_cv_func_pthread_create+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819   cat >conftest.$ac_ext <<_ACEOF
17820 #line $LINENO "configure"
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 /* System header to define __stub macros and hopefully few prototypes,
17827     which can conflict with char pthread_create (); below.
17828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829     <limits.h> exists even on freestanding compilers.  */
17830 #ifdef __STDC__
17831 # include <limits.h>
17832 #else
17833 # include <assert.h>
17834 #endif
17835 /* Override any gcc2 internal prototype to avoid an error.  */
17836 #ifdef __cplusplus
17837 extern "C"
17838 {
17839 #endif
17840 /* We use char because int might match the return type of a gcc2
17841    builtin and then its argument prototype would still apply.  */
17842 char pthread_create ();
17843 /* The GNU C library defines this for functions which it implements
17844     to always fail with ENOSYS.  Some functions are actually named
17845     something starting with __ and the normal name is an alias.  */
17846 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17847 choke me
17848 #else
17849 char (*f) () = pthread_create;
17850 #endif
17851 #ifdef __cplusplus
17852 }
17853 #endif
17854
17855 int
17856 main ()
17857 {
17858 return f != pthread_create;
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17865   (eval $ac_link) 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } &&
17869          { ac_try='test -s conftest$ac_exeext'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875   ac_cv_func_pthread_create=yes
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_cv_func_pthread_create=no
17881 fi
17882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17883 fi
17884 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17885 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17886
17887
17888 fi
17889
17890
17891 fi
17892
17893
17894 fi
17895
17896
17897
17898 cat >>confdefs.h <<\_ACEOF
17899 #define FDLIBS 1
17900 _ACEOF
17901
17902
17903
17904 CFLAGS=${CFLAGS--O}
17905 LDFLAGS=${LDFLAGS--O}
17906 DB_LIBS="${SQL_LFLAGS}"
17907
17908 CPPFLAGS="$CPPFLAGS"
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923 OBJLIST=
17924
17925
17926 lld="lld"
17927 llu="llu"
17928
17929 WCFLAGS=
17930 WLDFLAGS=
17931
17932 #
17933 # Finally we set appropriate distribution specific
17934 #  variables and defaults
17935 #
17936 # PFILES are platform specific files
17937 PFILES="platforms/Makefile"
17938 PSCMD="ps -e"
17939 WIN32=
17940 hostname=`uname -n | cut -d '.' -f 1`
17941 case "$DISTNAME" in
17942 aix)
17943         DISTVER=`uname -r`
17944         PSCMD="ps -e -o pid,comm"
17945         PFILES="${PFILES} \
17946            platforms/aix/Makefile"
17947         TAPEDRIVE="/dev/rmt0.1"
17948   ;;
17949 alpha)
17950         DISTVER=`uname -r`
17951         PTHREAD_LIB="-lpthread -lexc"
17952         if test "${CC}" = "gcc" ; then
17953            lld="lld"
17954            llu="llu"
17955         else
17956            lld="ld"
17957            llu="lu"
17958         fi
17959         TAPEDRIVE="/dev/nrmt0"
17960   ;;
17961 bsdi)
17962         DISTVER=`uname -a |awk '{print $3}'`
17963         TAPEDRIVE="/dev/nrmt0"
17964         PTHREAD_LIB="-pthread"
17965         CFLAGS="${CFLAGS} -pthread"
17966         PSCMD="ps -x -o pid,command"
17967         lld="qd"
17968         llu="qu"
17969         PFILES="${PFILES} \
17970             platforms/bsdi/Makefile \
17971             platforms/bsdi/bacula-fd \
17972             platforms/bsdi/bacula-sd \
17973             platforms/bsdi/bacula-dir"
17974         largefile_support="yes"
17975   ;;
17976 cygwin)
17977         DISTVER=`uname -a |awk '{print $3}'`
17978         TAPEDRIVE="/dev/nrst0"
17979         WIN32=win32
17980         WCFLAGS="-mwindows"
17981         WLDFLAGS="-mwindows"
17982   ;;
17983 darwin)
17984         DISTVER=`uname -r`
17985         TAPEDRIVE="/dev/nst0"
17986         PSCMD="ps -e -o pid,command"
17987         PFILES="${PFILES} \
17988            platforms/darwin/Makefile"
17989   ;;
17990 debian)
17991         DISTVER=`cat /etc/debian_version`
17992         TAPEDRIVE="/dev/nrst0"
17993         PSCMD="ps -e -o pid,command"
17994   ;;
17995 freebsd)
17996         DISTVER=`uname -a |awk '{print $3}'`
17997         VER=`echo $DISTVER | cut -c 1`
17998         if test x$VER = x4 ; then
17999            PTHREAD_LIB="-pthread"
18000            CFLAGS="${CFLAGS} -pthread"
18001         fi
18002         lld="qd"
18003         llu="qu"
18004         TAPEDRIVE="/dev/nrsa0"
18005         PSCMD="ps -x -o pid,command"
18006         PFILES="${PFILES} \
18007             platforms/freebsd/Makefile \
18008             platforms/freebsd/bacula-fd \
18009             platforms/freebsd/bacula-sd \
18010             platforms/freebsd/bacula-dir"
18011         largefile_support="yes"
18012   ;;
18013 hpux)
18014         PSCMD="UNIX95=1 ps -e -o pid,comm"
18015         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18016         DISTVER=`uname -r`
18017         TAPEDRIVE="/dev/rmt/0hnb"
18018   ;;
18019 irix)
18020         DISTVER=`uname -r`
18021         TAPEDRIVE="/dev/rmt/0cbn"
18022         PSCMD="ps -e -o pid,comm"
18023         PFILES="${PFILES} \
18024             platforms/irix/Makefile \
18025             platforms/irix/bacula-fd \
18026             platforms/irix/bacula-sd \
18027             platforms/irix/bacula-dir"
18028   ;;
18029 netbsd)
18030         DISTVER=`uname -a |awk '{print $3}'`
18031         lld="qd"
18032         llu="qu"
18033         TAPEDRIVE="/dev/nrst0"
18034         PSCMD="ps -a -o pid,command"
18035         PTHREAD_LIB="-pthread"
18036         CFLAGS="${CFLAGS} -pthread"
18037   ;;
18038 openbsd)
18039         DISTVER=`uname -a |awk '{print $3}'`
18040         lld="qd"
18041         llu="qu"
18042         TAPEDRIVE="/dev/nrst0"
18043         PSCMD="ps -a -o pid,command"
18044         PTHREAD_LIB="-pthread"
18045         CFLAGS="${CFLAGS} -pthread"
18046         PFILES="${PFILES} \
18047             platforms/openbsd/Makefile \
18048             platforms/openbsd/bacula-fd \
18049             platforms/openbsd/bacula-sd \
18050             platforms/openbsd/bacula-dir"
18051   ;;
18052 redhat)
18053         if test `cat /etc/redhat-release | grep release |\
18054                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18055            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18056                     cut -f 6 -d ' '`
18057         else
18058             DISTVER=`cat /etc/redhat-release | grep release |\
18059                      cut -f 5 -d ' '`
18060         fi
18061         TAPEDRIVE="/dev/nst0"
18062         PSCMD="ps -e -o pid,command"
18063         PFILES="${PFILES} \
18064             platforms/redhat/Makefile \
18065             platforms/redhat/bacula-fd \
18066             platforms/redhat/bacula-sd \
18067             platforms/redhat/bacula-dir \
18068             platforms/redhat/bacula.spec \
18069             "
18070         hostname=`hostname -s`
18071   ;;
18072 mandrake)
18073         DISTVER=`cat /etc/mandrake-release | grep release |\
18074            cut -f 5 -d ' '`
18075         TAPEDRIVE="/dev/nst0"
18076         PSCMD="ps -e -o pid,command"
18077         PFILES="${PFILES} \
18078             platforms/mandrake/Makefile \
18079             platforms/mandrake/bacula-fd \
18080             platforms/mandrake/bacula-sd \
18081             platforms/mandrake/bacula-dir \
18082             platforms/mandrake/bacula.spec \
18083             "
18084   ;;
18085 gentoo)
18086         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18087         TAPEDRIVE="/dev/nst0"
18088         PSCMD="ps -e -o pid,command"
18089         PFILES="${PFILES} \
18090             platforms/gentoo/Makefile \
18091             platforms/gentoo/bacula-fd \
18092             platforms/gentoo/bacula-sd \
18093             platforms/gentoo/bacula-dir"
18094   ;;
18095 slackware)
18096         DISTVER=`cat /etc/slackware-version`
18097         TAPEDRIVE="/dev/nst0"
18098         PSCMD="ps -e -o pid,command"
18099         PFILES="${PFILES} \
18100             platforms/slackware/Makefile \
18101             platforms/slackware/rc.bacula-fd \
18102             platforms/slackware/rc.bacula-sd \
18103             platforms/slackware/rc.bacula-dir\
18104             platforms/slackware/functions.bacula"
18105   ;;
18106 solaris)
18107         DISTVER=`uname -r`
18108         TAPEDRIVE="/dev/rmt/0cbn"
18109         PSCMD="ps -e -o pid,comm"
18110         PFILES="${PFILES} \
18111             platforms/solaris/Makefile \
18112             platforms/solaris/bacula-fd \
18113             platforms/solaris/bacula-sd \
18114             platforms/solaris/bacula-dir"
18115         if test x$DISTVER = x5.6 ; then
18116             cat >>confdefs.h <<\_ACEOF
18117 #define HAVE_OLD_SOCKOPT 1
18118 _ACEOF
18119
18120         fi
18121   ;;
18122 suse)
18123         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18124             cut -f 3 -d ' '`
18125         TAPEDRIVE="/dev/nst0"
18126         PSCMD="ps -e -o pid,command"
18127         PFILES="${PFILES} \
18128             platforms/suse/Makefile \
18129             platforms/suse/bacula-fd \
18130             platforms/suse/bacula-sd \
18131             platforms/suse/bacula-dir \
18132             platforms/suse/bacula \
18133             platforms/suse/bacula.spec"
18134   ;;
18135 suse5)
18136         DISTNAME=suse
18137         DISTVER=5.x
18138         TAPEDRIVE="/dev/nst0"
18139         PSCMD="ps -e -o pid,command"
18140         PFILES="${PFILES} \
18141             platforms/suse/Makefile \
18142             platforms/suse/bacula-fd \
18143             platforms/suse/bacula-sd \
18144             platforms/suse/bacula-dir"
18145   ;;
18146 unknown)
18147         DISTVER=unknown
18148         TAPEDRIVE="/dev/nst0"
18149   ;;
18150 *)
18151   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18152   ;;
18153 esac
18154
18155
18156
18157 LIBS="$PTHREAD_LIB $LIBS"
18158
18159 cat >>confdefs.h <<_ACEOF
18160 #define lld "$lld"
18161 _ACEOF
18162
18163 cat >>confdefs.h <<_ACEOF
18164 #define llu "$llu"
18165 _ACEOF
18166
18167
18168
18169
18170
18171
18172
18173 MCOMMON=./autoconf/Make.common
18174
18175
18176 if test "x${subsysdir}" = "x${sbindir}" ; then
18177    echo " "
18178    echo " "
18179    echo "You have set both --sbindir and --with-subsys-dir"
18180    echo "  equal to: ${subsysdir} "
18181    echo "This is not permitted. Please reconfigure."
18182    echo " "
18183    echo "Aborting configuration ..."
18184    echo " "
18185    echo " "
18186    exit 1
18187 fi
18188
18189                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             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/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/bacula-fd.conf src/win32/Makefile $PFILES"
18190           ac_config_commands="$ac_config_commands default"
18191 cat >confcache <<\_ACEOF
18192 # This file is a shell script that caches the results of configure
18193 # tests run on this system so they can be shared between configure
18194 # scripts and configure runs, see configure's option --config-cache.
18195 # It is not useful on other systems.  If it contains results you don't
18196 # want to keep, you may remove or edit it.
18197 #
18198 # config.status only pays attention to the cache file if you give it
18199 # the --recheck option to rerun configure.
18200 #
18201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18203 # following values.
18204
18205 _ACEOF
18206
18207 # The following way of writing the cache mishandles newlines in values,
18208 # but we know of no workaround that is simple, portable, and efficient.
18209 # So, don't put newlines in cache variables' values.
18210 # Ultrix sh set writes to stderr and can't be redirected directly,
18211 # and sets the high bit in the cache file unless we assign to the vars.
18212 {
18213   (set) 2>&1 |
18214     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18215     *ac_space=\ *)
18216       # `set' does not quote correctly, so add quotes (double-quote
18217       # substitution turns \\\\ into \\, and sed turns \\ into \).
18218       sed -n \
18219         "s/'/'\\\\''/g;
18220           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18221       ;;
18222     *)
18223       # `set' quotes correctly as required by POSIX, so do not add quotes.
18224       sed -n \
18225         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18226       ;;
18227     esac;
18228 } |
18229   sed '
18230      t clear
18231      : clear
18232      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18233      t end
18234      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18235      : end' >>confcache
18236 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18237   if test -w $cache_file; then
18238     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18239     cat confcache >$cache_file
18240   else
18241     echo "not updating unwritable cache $cache_file"
18242   fi
18243 fi
18244 rm -f confcache
18245
18246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18247 # Let make expand exec_prefix.
18248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18249
18250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18252 # trailing colons and then remove the whole line if VPATH becomes empty
18253 # (actually we leave an empty line to preserve line numbers).
18254 if test "x$srcdir" = x.; then
18255   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18256 s/:*\$(srcdir):*/:/;
18257 s/:*\${srcdir}:*/:/;
18258 s/:*@srcdir@:*/:/;
18259 s/^\([^=]*=[    ]*\):*/\1/;
18260 s/:*$//;
18261 s/^[^=]*=[      ]*$//;
18262 }'
18263 fi
18264
18265 DEFS=-DHAVE_CONFIG_H
18266
18267 ac_libobjs=
18268 ac_ltlibobjs=
18269 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18270   # 1. Remove the extension, and $U if already installed.
18271   ac_i=`echo "$ac_i" |
18272          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18273   # 2. Add them.
18274   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18275   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18276 done
18277 LIBOBJS=$ac_libobjs
18278
18279 LTLIBOBJS=$ac_ltlibobjs
18280
18281
18282
18283 : ${CONFIG_STATUS=./config.status}
18284 ac_clean_files_save=$ac_clean_files
18285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18286 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18287 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18288 cat >$CONFIG_STATUS <<_ACEOF
18289 #! $SHELL
18290 # Generated by $as_me.
18291 # Run this file to recreate the current configuration.
18292 # Compiler output produced by configure, useful for debugging
18293 # configure, is in config.log if it exists.
18294
18295 debug=false
18296 ac_cs_recheck=false
18297 ac_cs_silent=false
18298 SHELL=\${CONFIG_SHELL-$SHELL}
18299 _ACEOF
18300
18301 cat >>$CONFIG_STATUS <<\_ACEOF
18302 ## --------------------- ##
18303 ## M4sh Initialization.  ##
18304 ## --------------------- ##
18305
18306 # Be Bourne compatible
18307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18308   emulate sh
18309   NULLCMD=:
18310   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18311   # is contrary to our usage.  Disable this feature.
18312   alias -g '${1+"$@"}'='"$@"'
18313 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18314   set -o posix
18315 fi
18316
18317 # Support unset when possible.
18318 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18319   as_unset=unset
18320 else
18321   as_unset=false
18322 fi
18323
18324
18325 # Work around bugs in pre-3.0 UWIN ksh.
18326 $as_unset ENV MAIL MAILPATH
18327 PS1='$ '
18328 PS2='> '
18329 PS4='+ '
18330
18331 # NLS nuisances.
18332 for as_var in \
18333   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18334   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18335   LC_TELEPHONE LC_TIME
18336 do
18337   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18338     eval $as_var=C; export $as_var
18339   else
18340     $as_unset $as_var
18341   fi
18342 done
18343
18344 # Required to use basename.
18345 if expr a : '\(a\)' >/dev/null 2>&1; then
18346   as_expr=expr
18347 else
18348   as_expr=false
18349 fi
18350
18351 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18352   as_basename=basename
18353 else
18354   as_basename=false
18355 fi
18356
18357
18358 # Name of the executable.
18359 as_me=`$as_basename "$0" ||
18360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18361          X"$0" : 'X\(//\)$' \| \
18362          X"$0" : 'X\(/\)$' \| \
18363          .     : '\(.\)' 2>/dev/null ||
18364 echo X/"$0" |
18365     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18366           /^X\/\(\/\/\)$/{ s//\1/; q; }
18367           /^X\/\(\/\).*/{ s//\1/; q; }
18368           s/.*/./; q'`
18369
18370
18371 # PATH needs CR, and LINENO needs CR and PATH.
18372 # Avoid depending upon Character Ranges.
18373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18376 as_cr_digits='0123456789'
18377 as_cr_alnum=$as_cr_Letters$as_cr_digits
18378
18379 # The user is always right.
18380 if test "${PATH_SEPARATOR+set}" != set; then
18381   echo "#! /bin/sh" >conf$$.sh
18382   echo  "exit 0"   >>conf$$.sh
18383   chmod +x conf$$.sh
18384   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18385     PATH_SEPARATOR=';'
18386   else
18387     PATH_SEPARATOR=:
18388   fi
18389   rm -f conf$$.sh
18390 fi
18391
18392
18393   as_lineno_1=$LINENO
18394   as_lineno_2=$LINENO
18395   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18396   test "x$as_lineno_1" != "x$as_lineno_2" &&
18397   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18398   # Find who we are.  Look in the path if we contain no path at all
18399   # relative or not.
18400   case $0 in
18401     *[\\/]* ) as_myself=$0 ;;
18402     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18403 for as_dir in $PATH
18404 do
18405   IFS=$as_save_IFS
18406   test -z "$as_dir" && as_dir=.
18407   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18408 done
18409
18410        ;;
18411   esac
18412   # We did not find ourselves, most probably we were run as `sh COMMAND'
18413   # in which case we are not to be found in the path.
18414   if test "x$as_myself" = x; then
18415     as_myself=$0
18416   fi
18417   if test ! -f "$as_myself"; then
18418     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18419 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18420    { (exit 1); exit 1; }; }
18421   fi
18422   case $CONFIG_SHELL in
18423   '')
18424     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18426 do
18427   IFS=$as_save_IFS
18428   test -z "$as_dir" && as_dir=.
18429   for as_base in sh bash ksh sh5; do
18430          case $as_dir in
18431          /*)
18432            if ("$as_dir/$as_base" -c '
18433   as_lineno_1=$LINENO
18434   as_lineno_2=$LINENO
18435   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18436   test "x$as_lineno_1" != "x$as_lineno_2" &&
18437   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18438              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18439              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18440              CONFIG_SHELL=$as_dir/$as_base
18441              export CONFIG_SHELL
18442              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18443            fi;;
18444          esac
18445        done
18446 done
18447 ;;
18448   esac
18449
18450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18451   # uniformly replaced by the line number.  The first 'sed' inserts a
18452   # line-number line before each line; the second 'sed' does the real
18453   # work.  The second script uses 'N' to pair each line-number line
18454   # with the numbered line, and appends trailing '-' during
18455   # substitution so that $LINENO is not a special case at line end.
18456   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18457   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18458   sed '=' <$as_myself |
18459     sed '
18460       N
18461       s,$,-,
18462       : loop
18463       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18464       t loop
18465       s,-$,,
18466       s,^['$as_cr_digits']*\n,,
18467     ' >$as_me.lineno &&
18468   chmod +x $as_me.lineno ||
18469     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18470 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18471    { (exit 1); exit 1; }; }
18472
18473   # Don't try to exec as it changes $[0], causing all sort of problems
18474   # (the dirname of $[0] is not the place where we might find the
18475   # original and so on.  Autoconf is especially sensible to this).
18476   . ./$as_me.lineno
18477   # Exit status is that of the last command.
18478   exit
18479 }
18480
18481
18482 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18483   *c*,-n*) ECHO_N= ECHO_C='
18484 ' ECHO_T='      ' ;;
18485   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18486   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18487 esac
18488
18489 if expr a : '\(a\)' >/dev/null 2>&1; then
18490   as_expr=expr
18491 else
18492   as_expr=false
18493 fi
18494
18495 rm -f conf$$ conf$$.exe conf$$.file
18496 echo >conf$$.file
18497 if ln -s conf$$.file conf$$ 2>/dev/null; then
18498   # We could just check for DJGPP; but this test a) works b) is more generic
18499   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18500   if test -f conf$$.exe; then
18501     # Don't use ln at all; we don't have any links
18502     as_ln_s='cp -p'
18503   else
18504     as_ln_s='ln -s'
18505   fi
18506 elif ln conf$$.file conf$$ 2>/dev/null; then
18507   as_ln_s=ln
18508 else
18509   as_ln_s='cp -p'
18510 fi
18511 rm -f conf$$ conf$$.exe conf$$.file
18512
18513 if mkdir -p . 2>/dev/null; then
18514   as_mkdir_p=:
18515 else
18516   as_mkdir_p=false
18517 fi
18518
18519 as_executable_p="test -f"
18520
18521 # Sed expression to map a string onto a valid CPP name.
18522 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18523
18524 # Sed expression to map a string onto a valid variable name.
18525 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18526
18527
18528 # IFS
18529 # We need space, tab and new line, in precisely that order.
18530 as_nl='
18531 '
18532 IFS="   $as_nl"
18533
18534 # CDPATH.
18535 $as_unset CDPATH
18536
18537 exec 6>&1
18538
18539 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18540 # report actual input values of CONFIG_FILES etc. instead of their
18541 # values after options handling.  Logging --version etc. is OK.
18542 exec 5>>config.log
18543 {
18544   echo
18545   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18546 ## Running $as_me. ##
18547 _ASBOX
18548 } >&5
18549 cat >&5 <<_CSEOF
18550
18551 This file was extended by $as_me, which was
18552 generated by GNU Autoconf 2.57.  Invocation command line was
18553
18554   CONFIG_FILES    = $CONFIG_FILES
18555   CONFIG_HEADERS  = $CONFIG_HEADERS
18556   CONFIG_LINKS    = $CONFIG_LINKS
18557   CONFIG_COMMANDS = $CONFIG_COMMANDS
18558   $ $0 $@
18559
18560 _CSEOF
18561 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18562 echo >&5
18563 _ACEOF
18564
18565 # Files that config.status was made for.
18566 if test -n "$ac_config_files"; then
18567   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18568 fi
18569
18570 if test -n "$ac_config_headers"; then
18571   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18572 fi
18573
18574 if test -n "$ac_config_links"; then
18575   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18576 fi
18577
18578 if test -n "$ac_config_commands"; then
18579   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18580 fi
18581
18582 cat >>$CONFIG_STATUS <<\_ACEOF
18583
18584 ac_cs_usage="\
18585 \`$as_me' instantiates files from templates according to the
18586 current configuration.
18587
18588 Usage: $0 [OPTIONS] [FILE]...
18589
18590   -h, --help       print this help, then exit
18591   -V, --version    print version number, then exit
18592   -q, --quiet      do not print progress messages
18593   -d, --debug      don't remove temporary files
18594       --recheck    update $as_me by reconfiguring in the same conditions
18595   --file=FILE[:TEMPLATE]
18596                    instantiate the configuration file FILE
18597   --header=FILE[:TEMPLATE]
18598                    instantiate the configuration header FILE
18599
18600 Configuration files:
18601 $config_files
18602
18603 Configuration headers:
18604 $config_headers
18605
18606 Configuration commands:
18607 $config_commands
18608
18609 Report bugs to <bug-autoconf@gnu.org>."
18610 _ACEOF
18611
18612 cat >>$CONFIG_STATUS <<_ACEOF
18613 ac_cs_version="\\
18614 config.status
18615 configured by $0, generated by GNU Autoconf 2.57,
18616   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18617
18618 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18619 Free Software Foundation, Inc.
18620 This config.status script is free software; the Free Software Foundation
18621 gives unlimited permission to copy, distribute and modify it."
18622 srcdir=$srcdir
18623 INSTALL="$INSTALL"
18624 _ACEOF
18625
18626 cat >>$CONFIG_STATUS <<\_ACEOF
18627 # If no file are specified by the user, then we need to provide default
18628 # value.  By we need to know if files were specified by the user.
18629 ac_need_defaults=:
18630 while test $# != 0
18631 do
18632   case $1 in
18633   --*=*)
18634     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18635     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18636     ac_shift=:
18637     ;;
18638   -*)
18639     ac_option=$1
18640     ac_optarg=$2
18641     ac_shift=shift
18642     ;;
18643   *) # This is not an option, so the user has probably given explicit
18644      # arguments.
18645      ac_option=$1
18646      ac_need_defaults=false;;
18647   esac
18648
18649   case $ac_option in
18650   # Handling of the options.
18651 _ACEOF
18652 cat >>$CONFIG_STATUS <<\_ACEOF
18653   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18654     ac_cs_recheck=: ;;
18655   --version | --vers* | -V )
18656     echo "$ac_cs_version"; exit 0 ;;
18657   --he | --h)
18658     # Conflict between --help and --header
18659     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18660 Try \`$0 --help' for more information." >&5
18661 echo "$as_me: error: ambiguous option: $1
18662 Try \`$0 --help' for more information." >&2;}
18663    { (exit 1); exit 1; }; };;
18664   --help | --hel | -h )
18665     echo "$ac_cs_usage"; exit 0 ;;
18666   --debug | --d* | -d )
18667     debug=: ;;
18668   --file | --fil | --fi | --f )
18669     $ac_shift
18670     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18671     ac_need_defaults=false;;
18672   --header | --heade | --head | --hea )
18673     $ac_shift
18674     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18675     ac_need_defaults=false;;
18676   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18677   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18678     ac_cs_silent=: ;;
18679
18680   # This is an error.
18681   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18682 Try \`$0 --help' for more information." >&5
18683 echo "$as_me: error: unrecognized option: $1
18684 Try \`$0 --help' for more information." >&2;}
18685    { (exit 1); exit 1; }; } ;;
18686
18687   *) ac_config_targets="$ac_config_targets $1" ;;
18688
18689   esac
18690   shift
18691 done
18692
18693 ac_configure_extra_args=
18694
18695 if $ac_cs_silent; then
18696   exec 6>/dev/null
18697   ac_configure_extra_args="$ac_configure_extra_args --silent"
18698 fi
18699
18700 _ACEOF
18701 cat >>$CONFIG_STATUS <<_ACEOF
18702 if \$ac_cs_recheck; then
18703   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18704   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18705 fi
18706
18707 _ACEOF
18708
18709
18710
18711
18712
18713 cat >>$CONFIG_STATUS <<\_ACEOF
18714 for ac_config_target in $ac_config_targets
18715 do
18716   case "$ac_config_target" in
18717   # Handling of arguments.
18718   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18719   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18720   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18721   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18722   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18723   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18724   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18725   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18726   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18727   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18728   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18729   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18730   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18731   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18732   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18733   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18734   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18735   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18736   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18737   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18738   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18739   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18740   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18741   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18742   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18743   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18744   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18745   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18746   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18747   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18748   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18749   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18750   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18751   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18752   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18753   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18754   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18755   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18756   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18757   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18758   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18759   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18760   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18761   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18762   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18763   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18764   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18765   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18766   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18767   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18768   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18769   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18770   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18771   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18772   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18773   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18774   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18775   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18776   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18777   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18778   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18779   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18780   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18781   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18782   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18783   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18784   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18785   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18786   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18787   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18788   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18789   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18790   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18791   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18792   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18793   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18794   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18795   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18796   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18797   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18798   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18799   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18800   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18801   "src/win32/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/bacula-fd.conf" ;;
18802   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18803   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18804   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18805   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18806   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18807 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18808    { (exit 1); exit 1; }; };;
18809   esac
18810 done
18811
18812 # If the user did not use the arguments to specify the items to instantiate,
18813 # then the envvar interface is used.  Set only those that are not.
18814 # We use the long form for the default assignment because of an extremely
18815 # bizarre bug on SunOS 4.1.3.
18816 if $ac_need_defaults; then
18817   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18818   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18819   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18820 fi
18821
18822 # Have a temporary directory for convenience.  Make it in the build tree
18823 # simply because there is no reason to put it here, and in addition,
18824 # creating and moving files from /tmp can sometimes cause problems.
18825 # Create a temporary directory, and hook for its removal unless debugging.
18826 $debug ||
18827 {
18828   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18829   trap '{ (exit 1); exit 1; }' 1 2 13 15
18830 }
18831
18832 # Create a (secure) tmp directory for tmp files.
18833
18834 {
18835   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18836   test -n "$tmp" && test -d "$tmp"
18837 }  ||
18838 {
18839   tmp=./confstat$$-$RANDOM
18840   (umask 077 && mkdir $tmp)
18841 } ||
18842 {
18843    echo "$me: cannot create a temporary directory in ." >&2
18844    { (exit 1); exit 1; }
18845 }
18846
18847 _ACEOF
18848
18849 cat >>$CONFIG_STATUS <<_ACEOF
18850
18851 #
18852 # CONFIG_FILES section.
18853 #
18854
18855 # No need to generate the scripts if there are no CONFIG_FILES.
18856 # This happens for instance when ./config.status config.h
18857 if test -n "\$CONFIG_FILES"; then
18858   # Protect against being on the right side of a sed subst in config.status.
18859   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18860    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18861 s,@SHELL@,$SHELL,;t t
18862 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18863 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18864 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18865 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18866 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18867 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18868 s,@exec_prefix@,$exec_prefix,;t t
18869 s,@prefix@,$prefix,;t t
18870 s,@program_transform_name@,$program_transform_name,;t t
18871 s,@bindir@,$bindir,;t t
18872 s,@sbindir@,$sbindir,;t t
18873 s,@libexecdir@,$libexecdir,;t t
18874 s,@datadir@,$datadir,;t t
18875 s,@sysconfdir@,$sysconfdir,;t t
18876 s,@sharedstatedir@,$sharedstatedir,;t t
18877 s,@localstatedir@,$localstatedir,;t t
18878 s,@libdir@,$libdir,;t t
18879 s,@includedir@,$includedir,;t t
18880 s,@oldincludedir@,$oldincludedir,;t t
18881 s,@infodir@,$infodir,;t t
18882 s,@mandir@,$mandir,;t t
18883 s,@build_alias@,$build_alias,;t t
18884 s,@host_alias@,$host_alias,;t t
18885 s,@target_alias@,$target_alias,;t t
18886 s,@DEFS@,$DEFS,;t t
18887 s,@ECHO_C@,$ECHO_C,;t t
18888 s,@ECHO_N@,$ECHO_N,;t t
18889 s,@ECHO_T@,$ECHO_T,;t t
18890 s,@LIBS@,$LIBS,;t t
18891 s,@BUILD_DIR@,$BUILD_DIR,;t t
18892 s,@TRUEPRG@,$TRUEPRG,;t t
18893 s,@FALSEPRG@,$FALSEPRG,;t t
18894 s,@VERSION@,$VERSION,;t t
18895 s,@DATE@,$DATE,;t t
18896 s,@LSMDATE@,$LSMDATE,;t t
18897 s,@CC@,$CC,;t t
18898 s,@CFLAGS@,$CFLAGS,;t t
18899 s,@LDFLAGS@,$LDFLAGS,;t t
18900 s,@CPPFLAGS@,$CPPFLAGS,;t t
18901 s,@ac_ct_CC@,$ac_ct_CC,;t t
18902 s,@EXEEXT@,$EXEEXT,;t t
18903 s,@OBJEXT@,$OBJEXT,;t t
18904 s,@CXX@,$CXX,;t t
18905 s,@CXXFLAGS@,$CXXFLAGS,;t t
18906 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18907 s,@CPP@,$CPP,;t t
18908 s,@EGREP@,$EGREP,;t t
18909 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18910 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18911 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18912 s,@RANLIB@,$RANLIB,;t t
18913 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18914 s,@MV@,$MV,;t t
18915 s,@RM@,$RM,;t t
18916 s,@CP@,$CP,;t t
18917 s,@SED@,$SED,;t t
18918 s,@AWK@,$AWK,;t t
18919 s,@ECHO@,$ECHO,;t t
18920 s,@CMP@,$CMP,;t t
18921 s,@TBL@,$TBL,;t t
18922 s,@AR@,$AR,;t t
18923 s,@OPENSSL@,$OPENSSL,;t t
18924 s,@MTX@,$MTX,;t t
18925 s,@PKGCONFIG@,$PKGCONFIG,;t t
18926 s,@WXCONFIG@,$WXCONFIG,;t t
18927 s,@ARFLAGS@,$ARFLAGS,;t t
18928 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18929 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18930 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18931 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18932 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18933 s,@build@,$build,;t t
18934 s,@build_cpu@,$build_cpu,;t t
18935 s,@build_vendor@,$build_vendor,;t t
18936 s,@build_os@,$build_os,;t t
18937 s,@host@,$host,;t t
18938 s,@host_cpu@,$host_cpu,;t t
18939 s,@host_vendor@,$host_vendor,;t t
18940 s,@host_os@,$host_os,;t t
18941 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18942 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18943 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18944 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18945 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18946 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18947 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18948 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18949 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18950 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18951 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18952 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18953 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18954 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18955 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18956 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18957 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18958 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18959 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18960 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18961 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18962 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18963 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18964 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18965 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18966 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18967 s,@MSGFMT@,$MSGFMT,;t t
18968 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18969 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18970 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18971 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18972 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18973 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18974 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18975 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18976 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18977 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18978 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18979 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18980 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18981 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18982 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18983 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18984 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18985 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18986 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18987 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18988 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18989 s,@GNOME_DIR@,$GNOME_DIR,;t t
18990 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
18991 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
18992 s,@WX_DIR@,$WX_DIR,;t t
18993 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18994 s,@STATIC_FD@,$STATIC_FD,;t t
18995 s,@STATIC_SD@,$STATIC_SD,;t t
18996 s,@STATIC_DIR@,$STATIC_DIR,;t t
18997 s,@STATIC_CONS@,$STATIC_CONS,;t t
18998 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18999 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19000 s,@ALL_DIRS@,$ALL_DIRS,;t t
19001 s,@CONS_INC@,$CONS_INC,;t t
19002 s,@CONS_OBJ@,$CONS_OBJ,;t t
19003 s,@CONS_SRC@,$CONS_SRC,;t t
19004 s,@CONS_LIBS@,$CONS_LIBS,;t t
19005 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19006 s,@READLINE_SRC@,$READLINE_SRC,;t t
19007 s,@working_dir@,$working_dir,;t t
19008 s,@scriptdir@,$scriptdir,;t t
19009 s,@dump_email@,$dump_email,;t t
19010 s,@job_email@,$job_email,;t t
19011 s,@smtp_host@,$smtp_host,;t t
19012 s,@piddir@,$piddir,;t t
19013 s,@subsysdir@,$subsysdir,;t t
19014 s,@baseport@,$baseport,;t t
19015 s,@dir_port@,$dir_port,;t t
19016 s,@fd_port@,$fd_port,;t t
19017 s,@sd_port@,$sd_port,;t t
19018 s,@dir_password@,$dir_password,;t t
19019 s,@fd_password@,$fd_password,;t t
19020 s,@sd_password@,$sd_password,;t t
19021 s,@dir_user@,$dir_user,;t t
19022 s,@dir_group@,$dir_group,;t t
19023 s,@sd_user@,$sd_user,;t t
19024 s,@sd_group@,$sd_group,;t t
19025 s,@fd_user@,$fd_user,;t t
19026 s,@fd_group@,$fd_group,;t t
19027 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19028 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19029 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19030 s,@cats@,$cats,;t t
19031 s,@DB_NAME@,$DB_NAME,;t t
19032 s,@GETCONF@,$GETCONF,;t t
19033 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19034 s,@X_CFLAGS@,$X_CFLAGS,;t t
19035 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19036 s,@X_LIBS@,$X_LIBS,;t t
19037 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19038 s,@LIBOBJS@,$LIBOBJS,;t t
19039 s,@ALLOCA@,$ALLOCA,;t t
19040 s,@FDLIBS@,$FDLIBS,;t t
19041 s,@DEBUG@,$DEBUG,;t t
19042 s,@DINCLUDE@,$DINCLUDE,;t t
19043 s,@DLIB@,$DLIB,;t t
19044 s,@DB_LIBS@,$DB_LIBS,;t t
19045 s,@WCFLAGS@,$WCFLAGS,;t t
19046 s,@WLDFLAGS@,$WLDFLAGS,;t t
19047 s,@OBJLIST@,$OBJLIST,;t t
19048 s,@hostname@,$hostname,;t t
19049 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19050 s,@PSCMD@,$PSCMD,;t t
19051 s,@WIN32@,$WIN32,;t t
19052 s,@DISTNAME@,$DISTNAME,;t t
19053 s,@DISTVER@,$DISTVER,;t t
19054 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19055 /@MCOMMON@/r $MCOMMON
19056 s,@MCOMMON@,,;t t
19057 CEOF
19058
19059 _ACEOF
19060
19061   cat >>$CONFIG_STATUS <<\_ACEOF
19062   # Split the substitutions into bite-sized pieces for seds with
19063   # small command number limits, like on Digital OSF/1 and HP-UX.
19064   ac_max_sed_lines=48
19065   ac_sed_frag=1 # Number of current file.
19066   ac_beg=1 # First line for current file.
19067   ac_end=$ac_max_sed_lines # Line after last line for current file.
19068   ac_more_lines=:
19069   ac_sed_cmds=
19070   while $ac_more_lines; do
19071     if test $ac_beg -gt 1; then
19072       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19073     else
19074       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19075     fi
19076     if test ! -s $tmp/subs.frag; then
19077       ac_more_lines=false
19078     else
19079       # The purpose of the label and of the branching condition is to
19080       # speed up the sed processing (if there are no `@' at all, there
19081       # is no need to browse any of the substitutions).
19082       # These are the two extra sed commands mentioned above.
19083       (echo ':t
19084   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19085       if test -z "$ac_sed_cmds"; then
19086         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19087       else
19088         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19089       fi
19090       ac_sed_frag=`expr $ac_sed_frag + 1`
19091       ac_beg=$ac_end
19092       ac_end=`expr $ac_end + $ac_max_sed_lines`
19093     fi
19094   done
19095   if test -z "$ac_sed_cmds"; then
19096     ac_sed_cmds=cat
19097   fi
19098 fi # test -n "$CONFIG_FILES"
19099
19100 _ACEOF
19101 cat >>$CONFIG_STATUS <<\_ACEOF
19102 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19103   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19104   case $ac_file in
19105   - | *:- | *:-:* ) # input from stdin
19106         cat >$tmp/stdin
19107         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19108         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19109   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19110         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19111   * )   ac_file_in=$ac_file.in ;;
19112   esac
19113
19114   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19115   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19117          X"$ac_file" : 'X\(//\)[^/]' \| \
19118          X"$ac_file" : 'X\(//\)$' \| \
19119          X"$ac_file" : 'X\(/\)' \| \
19120          .     : '\(.\)' 2>/dev/null ||
19121 echo X"$ac_file" |
19122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19123           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19124           /^X\(\/\/\)$/{ s//\1/; q; }
19125           /^X\(\/\).*/{ s//\1/; q; }
19126           s/.*/./; q'`
19127   { if $as_mkdir_p; then
19128     mkdir -p "$ac_dir"
19129   else
19130     as_dir="$ac_dir"
19131     as_dirs=
19132     while test ! -d "$as_dir"; do
19133       as_dirs="$as_dir $as_dirs"
19134       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19136          X"$as_dir" : 'X\(//\)[^/]' \| \
19137          X"$as_dir" : 'X\(//\)$' \| \
19138          X"$as_dir" : 'X\(/\)' \| \
19139          .     : '\(.\)' 2>/dev/null ||
19140 echo X"$as_dir" |
19141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19142           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19143           /^X\(\/\/\)$/{ s//\1/; q; }
19144           /^X\(\/\).*/{ s//\1/; q; }
19145           s/.*/./; q'`
19146     done
19147     test ! -n "$as_dirs" || mkdir $as_dirs
19148   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19149 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19150    { (exit 1); exit 1; }; }; }
19151
19152   ac_builddir=.
19153
19154 if test "$ac_dir" != .; then
19155   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19156   # A "../" for each directory in $ac_dir_suffix.
19157   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19158 else
19159   ac_dir_suffix= ac_top_builddir=
19160 fi
19161
19162 case $srcdir in
19163   .)  # No --srcdir option.  We are building in place.
19164     ac_srcdir=.
19165     if test -z "$ac_top_builddir"; then
19166        ac_top_srcdir=.
19167     else
19168        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19169     fi ;;
19170   [\\/]* | ?:[\\/]* )  # Absolute path.
19171     ac_srcdir=$srcdir$ac_dir_suffix;
19172     ac_top_srcdir=$srcdir ;;
19173   *) # Relative path.
19174     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19175     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19176 esac
19177 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19178 # absolute.
19179 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19180 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19181 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19182 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19183
19184
19185   case $INSTALL in
19186   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19187   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19188   esac
19189
19190   if test x"$ac_file" != x-; then
19191     { echo "$as_me:$LINENO: creating $ac_file" >&5
19192 echo "$as_me: creating $ac_file" >&6;}
19193     rm -f "$ac_file"
19194   fi
19195   # Let's still pretend it is `configure' which instantiates (i.e., don't
19196   # use $as_me), people would be surprised to read:
19197   #    /* config.h.  Generated by config.status.  */
19198   if test x"$ac_file" = x-; then
19199     configure_input=
19200   else
19201     configure_input="$ac_file.  "
19202   fi
19203   configure_input=$configure_input"Generated from `echo $ac_file_in |
19204                                      sed 's,.*/,,'` by configure."
19205
19206   # First look for the input files in the build tree, otherwise in the
19207   # src tree.
19208   ac_file_inputs=`IFS=:
19209     for f in $ac_file_in; do
19210       case $f in
19211       -) echo $tmp/stdin ;;
19212       [\\/$]*)
19213          # Absolute (can't be DOS-style, as IFS=:)
19214          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19215 echo "$as_me: error: cannot find input file: $f" >&2;}
19216    { (exit 1); exit 1; }; }
19217          echo $f;;
19218       *) # Relative
19219          if test -f "$f"; then
19220            # Build tree
19221            echo $f
19222          elif test -f "$srcdir/$f"; then
19223            # Source tree
19224            echo $srcdir/$f
19225          else
19226            # /dev/null tree
19227            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19228 echo "$as_me: error: cannot find input file: $f" >&2;}
19229    { (exit 1); exit 1; }; }
19230          fi;;
19231       esac
19232     done` || { (exit 1); exit 1; }
19233 _ACEOF
19234 cat >>$CONFIG_STATUS <<_ACEOF
19235   sed "$ac_vpsub
19236 $extrasub
19237 _ACEOF
19238 cat >>$CONFIG_STATUS <<\_ACEOF
19239 :t
19240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19241 s,@configure_input@,$configure_input,;t t
19242 s,@srcdir@,$ac_srcdir,;t t
19243 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19244 s,@top_srcdir@,$ac_top_srcdir,;t t
19245 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19246 s,@builddir@,$ac_builddir,;t t
19247 s,@abs_builddir@,$ac_abs_builddir,;t t
19248 s,@top_builddir@,$ac_top_builddir,;t t
19249 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19250 s,@INSTALL@,$ac_INSTALL,;t t
19251 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19252   rm -f $tmp/stdin
19253   if test x"$ac_file" != x-; then
19254     mv $tmp/out $ac_file
19255   else
19256     cat $tmp/out
19257     rm -f $tmp/out
19258   fi
19259
19260 done
19261 _ACEOF
19262 cat >>$CONFIG_STATUS <<\_ACEOF
19263
19264 #
19265 # CONFIG_HEADER section.
19266 #
19267
19268 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19269 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19270 #
19271 # ac_d sets the value in "#define NAME VALUE" lines.
19272 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19273 ac_dB='[        ].*$,\1#\2'
19274 ac_dC=' '
19275 ac_dD=',;t'
19276 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19277 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19278 ac_uB='$,\1#\2define\3'
19279 ac_uC=' '
19280 ac_uD=',;t'
19281
19282 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19283   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19284   case $ac_file in
19285   - | *:- | *:-:* ) # input from stdin
19286         cat >$tmp/stdin
19287         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19288         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19289   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19290         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19291   * )   ac_file_in=$ac_file.in ;;
19292   esac
19293
19294   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19295 echo "$as_me: creating $ac_file" >&6;}
19296
19297   # First look for the input files in the build tree, otherwise in the
19298   # src tree.
19299   ac_file_inputs=`IFS=:
19300     for f in $ac_file_in; do
19301       case $f in
19302       -) echo $tmp/stdin ;;
19303       [\\/$]*)
19304          # Absolute (can't be DOS-style, as IFS=:)
19305          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19306 echo "$as_me: error: cannot find input file: $f" >&2;}
19307    { (exit 1); exit 1; }; }
19308          echo $f;;
19309       *) # Relative
19310          if test -f "$f"; then
19311            # Build tree
19312            echo $f
19313          elif test -f "$srcdir/$f"; then
19314            # Source tree
19315            echo $srcdir/$f
19316          else
19317            # /dev/null tree
19318            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19319 echo "$as_me: error: cannot find input file: $f" >&2;}
19320    { (exit 1); exit 1; }; }
19321          fi;;
19322       esac
19323     done` || { (exit 1); exit 1; }
19324   # Remove the trailing spaces.
19325   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19326
19327 _ACEOF
19328
19329 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19330 # `conftest.undefs', that substitutes the proper values into
19331 # config.h.in to produce config.h.  The first handles `#define'
19332 # templates, and the second `#undef' templates.
19333 # And first: Protect against being on the right side of a sed subst in
19334 # config.status.  Protect against being in an unquoted here document
19335 # in config.status.
19336 rm -f conftest.defines conftest.undefs
19337 # Using a here document instead of a string reduces the quoting nightmare.
19338 # Putting comments in sed scripts is not portable.
19339 #
19340 # `end' is used to avoid that the second main sed command (meant for
19341 # 0-ary CPP macros) applies to n-ary macro definitions.
19342 # See the Autoconf documentation for `clear'.
19343 cat >confdef2sed.sed <<\_ACEOF
19344 s/[\\&,]/\\&/g
19345 s,[\\$`],\\&,g
19346 t clear
19347 : clear
19348 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19349 t end
19350 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19351 : end
19352 _ACEOF
19353 # If some macros were called several times there might be several times
19354 # the same #defines, which is useless.  Nevertheless, we may not want to
19355 # sort them, since we want the *last* AC-DEFINE to be honored.
19356 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19357 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19358 rm -f confdef2sed.sed
19359
19360 # This sed command replaces #undef with comments.  This is necessary, for
19361 # example, in the case of _POSIX_SOURCE, which is predefined and required
19362 # on some systems where configure will not decide to define it.
19363 cat >>conftest.undefs <<\_ACEOF
19364 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19365 _ACEOF
19366
19367 # Break up conftest.defines because some shells have a limit on the size
19368 # of here documents, and old seds have small limits too (100 cmds).
19369 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19370 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19371 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19372 echo '  :' >>$CONFIG_STATUS
19373 rm -f conftest.tail
19374 while grep . conftest.defines >/dev/null
19375 do
19376   # Write a limited-size here document to $tmp/defines.sed.
19377   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19378   # Speed up: don't consider the non `#define' lines.
19379   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19380   # Work around the forget-to-reset-the-flag bug.
19381   echo 't clr' >>$CONFIG_STATUS
19382   echo ': clr' >>$CONFIG_STATUS
19383   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19384   echo 'CEOF
19385   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19386   rm -f $tmp/in
19387   mv $tmp/out $tmp/in
19388 ' >>$CONFIG_STATUS
19389   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19390   rm -f conftest.defines
19391   mv conftest.tail conftest.defines
19392 done
19393 rm -f conftest.defines
19394 echo '  fi # grep' >>$CONFIG_STATUS
19395 echo >>$CONFIG_STATUS
19396
19397 # Break up conftest.undefs because some shells have a limit on the size
19398 # of here documents, and old seds have small limits too (100 cmds).
19399 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19400 rm -f conftest.tail
19401 while grep . conftest.undefs >/dev/null
19402 do
19403   # Write a limited-size here document to $tmp/undefs.sed.
19404   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19405   # Speed up: don't consider the non `#undef'
19406   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19407   # Work around the forget-to-reset-the-flag bug.
19408   echo 't clr' >>$CONFIG_STATUS
19409   echo ': clr' >>$CONFIG_STATUS
19410   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19411   echo 'CEOF
19412   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19413   rm -f $tmp/in
19414   mv $tmp/out $tmp/in
19415 ' >>$CONFIG_STATUS
19416   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19417   rm -f conftest.undefs
19418   mv conftest.tail conftest.undefs
19419 done
19420 rm -f conftest.undefs
19421
19422 cat >>$CONFIG_STATUS <<\_ACEOF
19423   # Let's still pretend it is `configure' which instantiates (i.e., don't
19424   # use $as_me), people would be surprised to read:
19425   #    /* config.h.  Generated by config.status.  */
19426   if test x"$ac_file" = x-; then
19427     echo "/* Generated by configure.  */" >$tmp/config.h
19428   else
19429     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19430   fi
19431   cat $tmp/in >>$tmp/config.h
19432   rm -f $tmp/in
19433   if test x"$ac_file" != x-; then
19434     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19435       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19436 echo "$as_me: $ac_file is unchanged" >&6;}
19437     else
19438       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19439 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19440          X"$ac_file" : 'X\(//\)[^/]' \| \
19441          X"$ac_file" : 'X\(//\)$' \| \
19442          X"$ac_file" : 'X\(/\)' \| \
19443          .     : '\(.\)' 2>/dev/null ||
19444 echo X"$ac_file" |
19445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19446           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19447           /^X\(\/\/\)$/{ s//\1/; q; }
19448           /^X\(\/\).*/{ s//\1/; q; }
19449           s/.*/./; q'`
19450       { if $as_mkdir_p; then
19451     mkdir -p "$ac_dir"
19452   else
19453     as_dir="$ac_dir"
19454     as_dirs=
19455     while test ! -d "$as_dir"; do
19456       as_dirs="$as_dir $as_dirs"
19457       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19459          X"$as_dir" : 'X\(//\)[^/]' \| \
19460          X"$as_dir" : 'X\(//\)$' \| \
19461          X"$as_dir" : 'X\(/\)' \| \
19462          .     : '\(.\)' 2>/dev/null ||
19463 echo X"$as_dir" |
19464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19465           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19466           /^X\(\/\/\)$/{ s//\1/; q; }
19467           /^X\(\/\).*/{ s//\1/; q; }
19468           s/.*/./; q'`
19469     done
19470     test ! -n "$as_dirs" || mkdir $as_dirs
19471   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19472 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19473    { (exit 1); exit 1; }; }; }
19474
19475       rm -f $ac_file
19476       mv $tmp/config.h $ac_file
19477     fi
19478   else
19479     cat $tmp/config.h
19480     rm -f $tmp/config.h
19481   fi
19482 done
19483 _ACEOF
19484 cat >>$CONFIG_STATUS <<\_ACEOF
19485
19486 #
19487 # CONFIG_COMMANDS section.
19488 #
19489 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19490   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19491   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19492   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19493 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19494          X"$ac_dest" : 'X\(//\)[^/]' \| \
19495          X"$ac_dest" : 'X\(//\)$' \| \
19496          X"$ac_dest" : 'X\(/\)' \| \
19497          .     : '\(.\)' 2>/dev/null ||
19498 echo X"$ac_dest" |
19499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19500           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19501           /^X\(\/\/\)$/{ s//\1/; q; }
19502           /^X\(\/\).*/{ s//\1/; q; }
19503           s/.*/./; q'`
19504   ac_builddir=.
19505
19506 if test "$ac_dir" != .; then
19507   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19508   # A "../" for each directory in $ac_dir_suffix.
19509   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19510 else
19511   ac_dir_suffix= ac_top_builddir=
19512 fi
19513
19514 case $srcdir in
19515   .)  # No --srcdir option.  We are building in place.
19516     ac_srcdir=.
19517     if test -z "$ac_top_builddir"; then
19518        ac_top_srcdir=.
19519     else
19520        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19521     fi ;;
19522   [\\/]* | ?:[\\/]* )  # Absolute path.
19523     ac_srcdir=$srcdir$ac_dir_suffix;
19524     ac_top_srcdir=$srcdir ;;
19525   *) # Relative path.
19526     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19527     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19528 esac
19529 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19530 # absolute.
19531 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19532 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19533 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19534 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19535
19536
19537   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19538 echo "$as_me: executing $ac_dest commands" >&6;}
19539   case $ac_dest in
19540     default ) (echo "Doing make of dependencies"; make depend;)
19541  ;;
19542   esac
19543 done
19544 _ACEOF
19545
19546 cat >>$CONFIG_STATUS <<\_ACEOF
19547
19548 { (exit 0); exit 0; }
19549 _ACEOF
19550 chmod +x $CONFIG_STATUS
19551 ac_clean_files=$ac_clean_files_save
19552
19553
19554 # configure is writing to config.log, and then calls config.status.
19555 # config.status does its own redirection, appending to config.log.
19556 # Unfortunately, on DOS this fails, as config.log is still kept open
19557 # by configure, so config.status won't be able to write to it; its
19558 # output is simply discarded.  So we exec the FD to /dev/null,
19559 # effectively closing config.log, so it can be properly (re)opened and
19560 # appended to by config.status.  When coming back to configure, we
19561 # need to make the FD available again.
19562 if test "$no_create" != yes; then
19563   ac_cs_success=:
19564   ac_config_status_args=
19565   test "$silent" = yes &&
19566     ac_config_status_args="$ac_config_status_args --quiet"
19567   exec 5>/dev/null
19568   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19569   exec 5>>config.log
19570   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19571   # would make configure fail if this is the last instruction.
19572   $ac_cs_success || { (exit 1); exit 1; }
19573 fi
19574
19575
19576 cd scripts
19577 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19578 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19579 cd ..
19580
19581 c=src/cats
19582
19583 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19584 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19585
19586 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19587 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19588
19589 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19590 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19591
19592 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19593 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19594
19595 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19596 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19597
19598 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19599 chmod 755 $c/sqlite
19600 chmod 755 $c/mysql
19601
19602 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19603    largefile_support="yes"
19604 fi
19605
19606 #
19607 # A whole lot of hand springs to get the compiler version.
19608 #  This is because gcc changed the output in version 3.0
19609 #
19610 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19611 if test "x${CCVERSION}" = "x" ; then
19612   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19613 fi
19614 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19615 if test x"${CXXVERSION}" = x ; then
19616   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19617 fi
19618
19619 if test "x${subsysdir}" = "x${sbindir}" ; then
19620    echo " "
19621    echo " "
19622    echo "You have set --sbindir and --with-subsys-dir"
19623    echo "  both equal to: ${subsysdir} "
19624    echo "  This is not permitted. Please reconfigure."
19625    echo "Aborting configuration ..."
19626    echo " "
19627    echo " "
19628    exit 1
19629 fi
19630
19631 echo "
19632 Configuration on `date`:
19633
19634   Host:                       $host -- ${DISTNAME} ${DISTVER}
19635   Bacula version:             ${VERSION} (${DATE})
19636   Source code location:       ${srcdir}
19637   Install binaries:           ${sbindir}
19638   Install config files:       ${sysconfdir}
19639   Scripts directory:          ${scriptdir}
19640   Working directory:          ${working_dir}
19641   PID directory:              ${piddir}
19642   Subsys directory:           ${subsysdir}
19643   C Compiler:                 ${CC} ${CCVERSION}
19644   C++ Compiler:               ${CXX} ${CXXVERSION}
19645   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19646   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19647   Libraries:                  ${LIBS}
19648   Statically Linked Tools:    ${support_static_tools}
19649   Statically Linked FD:       ${support_static_fd}
19650   Statically Linked SD:       ${support_static_sd}
19651   Statically Linked DIR:      ${support_static_dir}
19652   Statically Linked CONS:     ${support_static_cons}
19653   Database type:              ${db_name}
19654   Database lib:               ${DB_LIBS}
19655
19656   Job Output Email:           ${job_email}
19657   Traceback Email:            ${dump_email}
19658   SMTP Host Address:          ${smtp_host}
19659
19660   Director Port:              ${dir_port}
19661   File daemon Port:           ${fd_port}
19662   Storage daemon Port:        ${sd_port}
19663
19664   Director User:              ${dir_user}
19665   Director Group:             ${dir_group}
19666   Storage Daemon User:        ${sd_user}
19667   Storage DaemonGroup:        ${sd_group}
19668   File Daemon User:           ${fd_user}
19669   File Daemon Group:          ${fd_group}
19670
19671   SQL binaries Directory      ${SQL_BINDIR}
19672
19673   Large file support:         $largefile_support
19674   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19675   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19676   TCP Wrappers support:       ${TCPW_MSG}
19677   ZLIB support:               ${have_zlib}
19678   enable-smartalloc:          ${support_smartalloc}
19679   enable-gnome:               ${support_gnome} ${gnome_version}
19680   enable-wx-console:          ${support_wx_console}
19681   client-only:                ${build_client_only}
19682
19683   " > config.out
19684
19685 cat config.out
19686
19687 # old stuff
19688 # cweb support:               ${got_cweb} ${CWEB_SRC}
19689 # gmp support:                ${got_gmp} ${GMP_SRC}